]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Merged from miles@gnu.org--gnu-2005 (patch 435-437)
[gnu-emacs] / src / ChangeLog
1 2005-06-20 Kim F. Storm <storm@cua.dk>
2
3 * fns.c (Fsort): Doc fix.
4
5 2005-06-20 Miles Bader <miles@gnu.org>
6
7 * xfaces.c (Qvertical_divider): New variable.
8 (realize_basic_faces): Realize its face.
9 (syms_of_xfaces): Initialize it.
10
11 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
12
13 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
14 window-separator on ttys using `vertical-divider' face by default.
15
16 2005-06-17 Richard M. Stallman <rms@gnu.org>
17
18 * xdisp.c (get_next_display_element): Reverse
19 test of Vshow_nonbreak_escape.
20
21 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
22 (Ftty_no_underline): New function.
23 (syms_of_term): defsubr it.
24
25 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
26
27 * dispnew.c (spec_glyph_lookup_face): New function.
28 (build_frame_matrix_from_leaf_window): Use it.
29
30 * dispextern.h (spec_glyph_lookup_face): Add declaration.
31
32 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
33
34 2005-06-12 Richard M. Stallman <rms@gnu.org>
35
36 * keyboard.c (read_char): After catching a longjmp,
37 call restore_getcjmp.
38
39 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
40
41 * xselect.c (lisp_data_to_selection_data): Fix spelling.
42
43 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
44
45 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
46 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
47 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
48 events.
49 (XTread_socket): Don't pass keyboard events with the option
50 modifier to the system when Vmac_command_key_is_meta is nil or
51 Vmac_option_modifier is non-nil.
52 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
53 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
54 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
55 handler function.
56 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
57 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
58 handler part to mac_handle_mouse_event.
59
60 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
61
62 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
63 NEW-ALIAS and BASE-VARIABLE, respectively.
64
65 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
66
67 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
68 (get_phys_cursor_geometry, format_mode_line_unwind_data)
69 (get_line_height_property, x_produce_glyphs): Remove unused vars.
70
71 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
72
73 2005-06-13 Eli Zaretskii <eliz@gnu.org>
74
75 * w32term.c (x_use_underline_position_properties): New variable.
76 (x_draw_glyph_string): Remind in a comment to change doc string of
77 x-use-underline-position-properties if/when underline positioning
78 is implemented.
79 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
80 and initialize it to nil.
81
82 2005-06-12 Jason Rumney <jasonr@gnu.org>
83
84 * w32fns.c (NEWOPENFILENAME): New struct.
85 (Fx_file_dialog): Use it to trick the system into giving us up to
86 date dialogs on systems that are documented to support it.
87 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
88
89 2005-06-12 Eli Zaretskii <eliz@gnu.org>
90
91 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
92 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
93
94 2005-06-11 Eli Zaretskii <eliz@gnu.org>
95
96 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
97 to CreateDIBSection to avoid a compiler warning.
98 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
99 warning.
100 (png_load): Cast return values of fn_png_create_read_struct and
101 fn_png_create_info_struct, to avoid compiler warnings on W32.
102 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
103 to avoid compiler warnings.
104 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
105 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
106 avoid a compiler warning.
107 (tiff_load): Cast return values of fn_TIFFOpen and
108 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
109 to IMAGE_BACKGROUND to avoid a compiler warning.
110 (gif_load): Cast return values of fn_DGifOpenFileName and
111 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
112 IMAGE_BACKGROUND to avoid a compiler warning.
113 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
114 before redefining.
115
116 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
117 the call to CreateDIBSection, to avoid a compiler warning.
118
119 2005-06-11 Jason Rumney <jasonr@gnu.org>
120
121 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
122 minibuffer.
123 * macfns.c (Fx_file_dialog): Likewise.
124
125 2005-06-10 Eli Zaretskii <eliz@gnu.org>
126
127 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
128
129 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
130
131 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
132 * w32fns.c (syms_of_w32fns): Fix spellings.
133
134 2005-06-10 Eli Zaretskii <eliz@gnu.org>
135
136 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
137 `verbose'; print diagnostic messages only if it is non-zero.
138 All callers changed to pass a zero value unless DEBUG_DUMP is defined
139 in the environment.
140 (copy_executable_and_dump_data): Print section names with %.8s.
141
142 2005-06-10 Masatake YAMATO <jet@gyve.org>
143
144 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
145 when mouse_face is not given.
146
147 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
148
149 * window.c (Fselect_window): Adapt call to Fselect_frame.
150
151 * lisp.h: Update EXFUN of Fselect_frame.
152
153 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
154
155 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
156 no_enter.
157 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
158 Adapt to above change.
159
160 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
161
162 * fns.c (Fmemq, Fmaphash): Doc fixes.
163
164 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
165
166 * xfaces.c (Fdisplay_supports_face_attributes_p):
167 Fix typo in docstring.
168
169 2005-06-08 Steven Tamm <steventamm@mac.com>
170
171 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
172 used by gcc4 on intel mac.
173
174 2005-06-09 Kim F. Storm <storm@cua.dk>
175
176 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
177 in REUSE list if non-nil; free them if equal to evaporate.
178 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
179 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
180 (restore_search_regs): Rename from restore_match_data. Uses changed.
181 (unwind_set_match_data): New function.
182 (record_unwind_save_match_data): New function like save-match-data.
183
184 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
185 (record_unwind_save_match_data): Add prototype.
186 (restore_search_regs): Rename from restore_match_data.
187
188 * composite.c (compose_chars_in_text):
189 * eval.c (do_autoload):
190 * macmenu.c (set_frame_menubar):
191 * process.c (read_process_output, exec_sentinel):
192 * xmenu.c (set_frame_menubar):
193 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
194 * w32menu.c (set_frame_menubar):
195 Use record_unwind_save_match_data.
196
197 2005-06-08 Richard M. Stallman <rms@gnu.org>
198
199 * xdisp.c (get_next_display_element): Alter previous change:
200 Distinguish Vshow_nonbreak_escape = t or not t.
201 For t, use escape_glyph once again, as before previous change.
202 Use space or hyphen for display, instead of the non-ASCII char.
203 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
204
205 * process.c (Fstart_process): Don't touch command_channel_p slot.
206
207 * process.h (struct process): Delete command_channel_p.
208
209 2005-06-07 Masatake YAMATO <jet@gyve.org>
210
211 * xdisp.c (note_mode_line_or_margin_highlight):
212 Check the overlapping of re-rendering area to avoid flickering.
213 (note_mouse_highlight): Call clear_mouse_face if PART
214 is not ON_MODE_LINE nor ON_HEADER_LINE.
215
216 2005-06-07 Kim F. Storm <storm@cua.dk>
217
218 * process.c: Improve commentary for adaptive read buffering.
219
220 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
221
222 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
223 if available.
224
225 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
226
227 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
228 New functions for popping down menus on C-g.
229 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
230
231 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
232 non-static.
233
234 * config.in: Add HAVE_CANCELMENUTRACKING.
235
236 2005-06-06 Eli Zaretskii <eliz@gnu.org>
237
238 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR):
239 Remove macros.
240
241 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
242
243 * w32proc.c (RVA_TO_PTR): New macro.
244
245 * w32heap.c (RVA_TO_PTR): No need to #undef now.
246
247 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
248 Depend on w32heap.h.
249
250 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
251
252 * keyboard.c (command_loop_1): Update Vthis_original_command.
253
254 2005-06-06 Richard M. Stallman <rms@gnu.org>
255
256 * xmenu.c (popup_get_selection): Undo previous change.
257
258 2005-06-06 Juri Linkov <juri@jurta.org>
259
260 * xdisp.c (Qno_break_space): New variable.
261 (syms_of_xdisp): Initialize it.
262 (get_next_display_element): Add no-break space and soft hypen
263 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
264 Use `no-break-space' face for no-break spaces.
265
266 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
267
268 * window.c (delete_window): Handle the case where a h/vchild has
269 a h/vchild.
270
271 2005-06-05 Eli Zaretskii <eliz@gnu.org>
272
273 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
274 call to pfn_setsockopt, cast optval to `const char *'.
275
276 2005-06-04 Eli Zaretskii <eliz@gnu.org>
277
278 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
279 (open_unc_volume): Cast return value of map_w32_filename, to avoid
280 compiler warnings.
281
282 * s/ms-w32.h (fileno): Don't define if already defined.
283
284 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
285
286 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
287
288 2005-06-04 Richard M. Stallman <rms@gnu.org>
289
290 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
291
292 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
293
294 * macmenu.c (cleanup_popup_menu): New function.
295 (Fx_popup_menu): unwind protect cleanup_popup_menu in case
296 mac_menu_show Quit:s.
297 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
298 a dialog).
299
300 2005-06-04 Kim F. Storm <storm@cua.dk>
301
302 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
303
304 * callproc.c (Fcall_process): Don't use alloca to gradually
305 increase size of buf, as it effectively uses twice the necessary
306 space on the stack. Instead, pre-allocate buf of full size, and
307 gradually increase the read size.
308
309 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
310
311 * eval.c (unbind_to): Preserve value of Vquit_flag.
312
313 * xterm.c (handle_one_xevent): Also ignore mouse motion just
314 before a button release event.
315
316 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
317
318 * xfaces.c (Finternal_lisp_face_equal_p): Really report
319 on faces in a frame, if the argument FRAME is non-nil.
320 Improve argument/docstring consistency.
321
322 2005-06-02 Kim F. Storm <storm@cua.dk>
323
324 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
325 (x_consider_frame_title, Fformat_mode_line): Save offset into
326 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
327
328 2005-06-01 Kim F. Storm <storm@cua.dk>
329
330 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
331
332 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
333
334 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
335 resolution fields for scalable fonts to 0.
336
337 * xfaces.c (build_scalable_font_name): Round pixel size to the
338 nearest integer.
339
340 2005-06-01 Kim F. Storm <storm@cua.dk>
341
342 * xdisp.c (display_mode_line): Support nested calls to redisplay
343 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
344
345 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
346
347 * fileio.c (Finsert_file_contents):
348 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
349
350 2005-05-31 Kim F. Storm <storm@cua.dk>
351
352 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
353 (mode_line_noprop_ptr): Rename from frame_title_*.
354 (store_mode_line_noprop_char): Rename from store_frame_title_char.
355 (store_mode_line_noprop): Rename from store_frame_title.
356 (mode_line_target): New enum to specify current output target
357 for mode line formatting.
358 (display_mode_element): Test it rather than frame_title_ptr and
359 mode_line_string_list to determine where output should go.
360 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
361 (Vmode_line_unwind_vector): New variable.
362 (format_mode_line_unwind_data, unwind_format_mode_line):
363 New functions for unwind protection in mode line formatting.
364 (x_consider_frame_title): Use them and new local var 'title_start'
365 to support nested calls to format-mode-line and redisplay.
366 Set mode_line_target to MODE_LINE_TITLE.
367 (Fformat_mode_line): Use them and new local var 'string_start' to
368 support nested calls to format-mode-line and redisplay.
369 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
370 Don't trim trailing dashes.
371 (decode_mode_spec): Don't make infinite number of trailing dashes
372 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
373 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
374 mode_line_string_face_prop, and Vmode_line_unwind_vector.
375 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
376 Initialize mode_line_target to MODE_LINE_DISPLAY.
377
378 2005-05-29 Richard M. Stallman <rms@gnu.org>
379
380 * buffer.c (Fbuffer_local_value): Call indirect_variable.
381
382 2005-05-28 Masatake YAMATO <jet@gyve.org>
383
384 * xdisp.c (note_mode_line_or_margin_highlight): Change the
385 pointer to a hand cursor when hoovering over a mouse-face.
386
387 2005-05-27 Kenichi Handa <handa@m17n.org>
388
389 * xterm.c (x_encode_char): Call check_ccl_update in advance.
390
391 * ccl.c: Now an element of Vccl_program_table is a vector of
392 length 4, not 3.
393 (ccl_get_compiled_code): New arg idx. Caller changed.
394 Adjust for the change of Vccl_program_table.
395 (setup_ccl_program): Adjust for the change of Vccl_program_table.
396 (check_ccl_update): New function.
397 (Fregister_ccl_program): Use ASET to set an element of a vector.
398 Adjusted for the change of Vccl_program_table.
399
400 * ccl.h (struct ccl_program): New member idx.
401 (check_ccl_update): Extern it.
402
403 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
404
405 * image.c (Vimage_library_alist): Move from image.el.
406 (syms_of_image): Defvar it.
407 (lookup_image_type): Use it.
408
409 * buffer.c (Fbuffer_local_value): Make argument name match its use
410 in docstring.
411
412 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
413
414 * keyboard.c (Frecursive_edit): Fix typo in docstring.
415 (Fposn_at_x_y): Make argument name match its use in docstring.
416
417 2005-05-26 Lute Kamstra <lute@gnu.org>
418
419 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
420
421 2005-05-24 Masatake YAMATO <jet@gyve.org>
422
423 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
424 as loop sentinels.
425
426 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
427
428 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
429 select frame title ("Question"/"Information").
430 (xdialog_show): Use it.
431
432 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
433
434 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
435
436 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
437 a third argument (Qnil).
438
439 * lisp.h: x-popup-dialog can have three arguments.
440
441 * editfns.c (Fmessage_box): Use "Information" for frame title.
442
443 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
444
445 * termcap.c [VMS]: Include <starlet.h>.
446
447 2005-05-23 Masatake YAMATO <jet@gyve.org>
448
449 * xdisp.c (note_mode_line_or_margin_highlight): Add code
450 for mouse-face. Change the type of the first argument from `window'
451 to `Lisp_Object'.
452 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
453 window instead of w.
454
455 2005-05-22 Andreas Schwab <schwab@suse.de>
456
457 * process.c (send_process): Move misplaced volatile.
458
459 2005-05-21 Richard M. Stallman <rms@gnu.org>
460
461 * xdisp.c (display_mode_element): If we're processing a list and
462 padding is specified, put it after the last element.
463
464 2005-05-21 Eli Zaretskii <eliz@gnu.org>
465
466 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
467 "superroot" on DOS_NT systems.
468
469 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
470
471 * process.c (send_process): Restore the SIGPIPE handler if we
472 catch a SIGPIPE.
473
474 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
475
476 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
477 misleading comments).
478 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
479
480 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
481
482 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
483 Correct the right value.
484
485 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
486
487 * keyboard.c (syms_of_keyboard): Remove Lisp variables
488 post-command-idle-hook and post-command-idle-delay.
489 (command_loop_1): Don't try to execute post-command-idle-hook.
490
491 2005-05-16 Kim F. Storm <storm@cua.dk>
492
493 * xdisp.c (handle_display_prop): Handle empty replacement.
494 (handle_single_display_spec): Return -1 for empty replacement.
495
496 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
497
498 * .gdbinit (pitx): Print more info about iterator.
499
500 2005-05-16 Andreas Schwab <schwab@suse.de>
501
502 * unexmacosx.c (unexec_realloc): Move declarations before statements.
503
504 2005-05-14 Richard M. Stallman <rms@gnu.org>
505
506 * xdisp.c (message3): Call cancel_echoing.
507
508 * alloc.c (Fmemory_full_p): New function.
509 (syms_of_alloc): defsubr it.
510
511 * process.c (send_process_trap): Unblock SIGPIPE.
512 (send_process): Reset SIGPIPE handler before reporting error.
513
514 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
515
516 * emacs.c (syms_of_emacs): Fix doc string for system-type.
517
518 2005-05-13 Richard M. Stallman <rms@gnu.org>
519
520 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
521 (Finsert_file_contents): If we read 0 bytes from a special file,
522 unlock the visited file if we locked it.
523 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
524 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
525
526 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
527
528 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
529
530 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
531 Regard toolkit scroll bar thumb drag events as squeezable and prevent
532 redisplay from being paused by them.
533
534 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
535 [!MAC_OSX] (target_ticks): Remove variable.
536 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
537 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
538 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
539 event occurs before timeout, behave as if the function were interrupted.
540 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
541 handling using Time Manager routines.
542 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
543 New variables.
544 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
545 (setitimer): New functions.
546
547 * macfns.c, macmenu.c: Don't include signal.h.
548
549 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
550 Rename from get_control_part_bound. All callers changed.
551 (x_scroll_bar_clear): New function.
552 (x_clear_frame): Use it.
553 (XTset_vertical_scroll_bar): Don't call Draw1Control.
554 (x_scroll_bar_handle_click): Change type of second argument from
555 int to ControlPartCode.
556 (check_alarm): Remove declaration.
557 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
558 (XTread_socket): Use ControlPartCode instead of SInt16.
559
560 2005-05-13 Nozomu Ando <nand@mac.com>
561
562 * unexmacosx.c: Include assert.h.
563 (MACOSX_MALLOC_MULT16): New define.
564 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
565 ptr is in unexec regions by checking it is multiple of 16.
566 (unexec_malloc_header_t): New typedef.
567 (unexec_malloc, unexec_realloc, unexec_free): Store and use
568 allocated size information in unexec_malloc_header.
569
570 2005-05-10 Richard M. Stallman <rms@gnu.org>
571
572 * xterm.c (noinclude): Add #undef.
573
574 * image.c, xfns.c, xmenu.c: Don't include signal.h.
575
576 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
577
578 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
579 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
580 Doc fixes.
581
582 * dired.c (Ffile_name_completion): Make argument name
583 match its use in docstring.
584
585 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
586
587 * eval.c (Fdefvaralias): Remove any pre-existing
588 variable-documentation property of the alias.
589
590 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
591
592 * xfns.c (start_hourglass): Do nothing when running on a tty.
593
594 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
595
596 * fns.c (Fchar_table_range): Fix typos in docstring.
597
598 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
599
600 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
601
602 2005-05-06 Eli Zaretskii <eliz@gnu.org>
603
604 * lread.c (Flocate_file_internal): Doc fix.
605
606 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
607
608 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
609
610 * macselect.c (x_own_selection): Accept Lisp string as result of
611 selection converter function.
612 (x_clear_frame_selections): Don't call x-lost-selection-functions
613 if Emacs is not owner of the selection.
614 (Vmac_services_selection): Put variable and initialization in
615 #ifdef MAC_OSX.
616 (syms_of_macselect) [MAC_OSX]: Set default value of
617 Vmac_services_selection to PRIMARY.
618
619 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
620 (mac_handle_tool_bar_click): Remove unused function and declaration.
621 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
622 (install_scroll_bar_timer, set_scroll_bar_timer)
623 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
624 (get_control_part_bound, x_scroll_bar_handle_press)
625 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
626 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
627 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
628 (scroll_bar_timer_event_posted_p): New variables.
629 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
630 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
631 (x_scroll_bar_create): Set control reference with NewControl.
632 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
633 Initialize track_top and track_height to nil.
634 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
635 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
636 (XTset_vertical_scroll_bar): Don't make space between scroll bar
637 and associated window.
638 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
639 from window config.
640 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
641 Set track_top and track_height to nil when scroll bar size is changed.
642 Recalculate them if they are nil.
643 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
644 clicked control is a scroll bar.
645 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
646 event handler functions. Don't add modifiers to scroll bar click
647 events. Call scroll bar release handler when window is deactivated.
648 (mac_initialize): Remove unused code for X toolkit.
649 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
650 Initialize Vx_toolkit_scroll_bars to nil.
651
652 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
653 New members track_top and track_height.
654
655 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
656 init_process when including sys/select.h.
657
658 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
659
660 * eval.c (Fdefvaralias): Doc fix.
661
662 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
663
664 2005-05-05 Kim F. Storm <storm@cua.dk>
665
666 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
667 default value.
668 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
669 Fix type of cursor-in-non-selected-windows.
670
671 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
672
673 * mac.c: #undef init_process so not to conflict with system headers.
674
675 2005-05-02 Richard M. Stallman <rms@gnu.org>
676
677 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
678
679 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
680
681 * xdisp.c (Vcursor_in_non_selected_windows)
682 (Qcursor_in_non_selected_windows): Vars deleted.
683 (syms_of_xdisp): Don't initialize them.
684 (get_window_cursor_type): Use cursor_in_non_selected_windows
685 buffer slot.
686
687 2005-05-02 Kim F. Storm <storm@cua.dk>
688
689 * macros.c (executing_kbd_macro_index): Rename from
690 executing_macro_index. All uses changed.
691 (executing_kbd_macro_iterations): Rename from
692 executing_macro_iterations. All uses changed.
693 (executing_kbd_macro): Rename from executing_macro.
694 All uses changed.
695 (syms_of_macros): Rename Lisp var executing-macro-index to
696 executing-kbd-macro-index.
697
698 * xdisp.c (move_it_in_display_line_to): Fix last change.
699
700 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
701
702 * xmenu.c (Fx_popup_menu): Doc fix.
703
704 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
705
706 2005-05-02 Jason Rumney <jasonr@gnu.org>
707
708 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
709
710 2005-05-02 Nozomu Ando <nand@mac.com>
711
712 * sysselect.h: Fix typo.
713
714 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
715
716 * charset.c (Fchars_in_region): Remove as obsolete.
717
718 2005-05-01 Kim F. Storm <storm@cua.dk>
719
720 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
721 TO_CHARPOS. This may happen if last glyphs was an image or stretch
722 glyph.
723
724 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
725
726 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
727
728 2005-05-01 Richard M. Stallman <rms@gnu.org>
729
730 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
731 If user cancels the menu, quit unless FOR_CLICK.
732
733 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
734 All uses changed.
735 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
736 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
737 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
738 * commands.h (Vexecuting_kbd_macro): Likewise.
739
740 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
741
742 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
743
744 2005-04-30 Richard M. Stallman <rms@gnu.org>
745
746 * fileio.c (Ffind_file_name_handler): Handle the `operations'
747 property of the file name handler.
748 (Qoperations): New variable.
749 (syms_of_fileio): Initialize and staticpro it.
750
751 * xdisp.c (set_message_1): Delete xassert.
752
753 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
754
755 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
756
757 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
758
759 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
760 before/after including Carbon.h if there is a working mktime.
761
762 2005-04-28 Kim F. Storm <storm@cua.dk>
763
764 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
765 Fix cyclic alias check. If alias loop is detected, signal
766 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
767
768 2005-04-28 Lute Kamstra <lute@gnu.org>
769
770 * eval.c (do_autoload): Record only autoloads in the autoload
771 property of symbols.
772
773 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
774
775 * emacs.c (USAGE1): Add --basic-display and --quick options.
776
777 2005-04-27 Kim F. Storm <storm@cua.dk>
778
779 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
780
781 2005-04-26 Richard M. Stallman <rms@gnu.org>
782
783 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
784 (syms_of_window): Doc fixes.
785
786 * indent.c (Fvertical_motion): Undo previous change.
787
788 2005-04-26 Kenichi Handa <handa@m17n.org>
789
790 * fns.c (char_table_range): New function.
791 (Fchar_table_range): Signal an error if characters in the range
792 have inconsistent values. Don't check the parent.
793
794 2005-04-25 Kenichi Handa <handa@m17n.org>
795
796 * fontset.c (fontset_set): Fix previous change.
797
798 2005-04-24 Richard M. Stallman <rms@gnu.org>
799
800 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
801
802 2005-04-24 Eli Zaretskii <eliz@gnu.org>
803
804 * regex.c (re_search_2, re_match_2_internal): Convert second arg
805 of RE_TRANSLATE to int, to shut up GCC warnings.
806
807 * fileio.c (Fcopy_file): Doc fix.
808 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
809 not needed.
810
811 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
812
813 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
814 (SOME_MACHINE_OBJECTS): Likewise.
815 (mac.o): Depend on ccl.h.
816 (macselect.o): New target.
817
818 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
819 Call syms_of_macselect.
820
821 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
822
823 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
824 (QCLIPBOARD): Remove variable.
825 (syms_of_mac): Don't initialize it.
826 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
827 Remove functions.
828 (syms_of_mac): Don't defsubr them.
829 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
830 (QHFS_plus_D, QHFS_plus_C): New variables.
831 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
832 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
833 (cfstring_create_normalized): New functions.
834 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
835 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
836
837 * macterm.c (handling_window_update, terminate_flag):
838 Remove variables.
839 (do_window_update, do_ae_quit_application, XTread_socket):
840 Don't use them.
841 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
842 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
843 (init_service_handler): Move to macselect.c. Remove declarations.
844 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
845 (Qapplication, Qabout): New variables.
846 (syms_of_mac): Initialize them.
847 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
848 (Qperform): New variables.
849 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
850 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
851 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
852 (mac_store_application_menu_event, init_menu_bar): New functions.
853 [USE_CARBON_EVENTS] (mac_handle_command_event)
854 (init_command_handler): New functions.
855 (mac_handle_window_event): Return noErr on window update event.
856 (do_ae_quit_application): Call mac_store_application_menu_event.
857 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
858 and init_menu_bar.
859
860 * macterm.h (x_clear_frame_selections): Add extern.
861
862 * macselect.c: New file for selection processing on Mac OS.
863
864 2005-04-23 Richard M. Stallman <rms@gnu.org>
865
866 * fileio.c (Fcopy_file): New arg MUSTBENEW.
867 (Frename_file): Pass new arg to Fcopy_file.
868
869 * window.c (window_size_fixed): Variable deleted.
870 (syms_of_window): Initialize window-size-fixed to nil.
871 But don't DEFVAR window_size_fixed.
872
873 2005-04-23 Andreas Schwab <schwab@suse.de>
874
875 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
876 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
877 use lib64 instead of lib.
878 (_LP64) [_ARCH_PPC64]: Define if not defined.
879
880 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
881
882 * s/ms-w32.h (HAVE_PWD_H): Define.
883
884 2005-04-22 Kenichi Handa <handa@m17n.org>
885
886 * fns.c (copy_sub_char_table): Explicitly copy the default value
887 of the sub-chartable.
888
889 * fontset.c (fontset_set): When a sub-chartable is created,
890 explicitly sets the defalt value.
891
892 2005-04-22 Kim F. Storm <storm@cua.dk>
893
894 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
895 (Fsafe_plist_get): Rename to Fplist_get.
896 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
897 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
898
899 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
900
901 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
902 (note_mode_line_or_margin_highlight, note_mouse_highlight):
903 Use Fplist_get instead of Fsafe_plist_get.
904
905 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
906
907 2005-04-21 Miles Bader <miles@gnu.org>
908
909 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
910
911 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
912
913 * sysdep.c: Remove reference to defunct vms-pwd.h.
914 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
915 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
916
917 * config.in: Regenerate.
918
919 2005-04-20 Kenichi Handa <handa@m17n.org>
920
921 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
922 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
923 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
924
925 * alloc.c (make_sub_char_table): Argument changed to initial
926 value of the slots.
927
928 * data.c (Faref): Handle special slots used as default values of
929 ascii, eight-bit-control, eight-bit-control. Don't ignore a
930 default value set for a group of characters.
931 (Faset): Signal an error if IDXVAL is not a valid character code.
932 Make a sub-chartable with correct initial value.
933
934 * fns.c (Fset_char_table_range): Don't set slots used as default
935 values for ascii, eight-bit-control, eight-bit-graphic.
936 Don't call Faref with charset-id.
937 (Fset_char_table_default): Document how to treat normal character
938 argument. Handle special slots used as default values of ascii,
939 eight-bit-control, eight-bit-control. Make a sub chartable if
940 necessary.
941
942 2005-04-20 Kenichi Handa <handa@m17n.org>
943
944 * search.c (boyer_moore): Fix previous change.
945
946 2005-04-19 Kim F. Storm <storm@cua.dk>
947
948 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
949 face unless last visible char and first invisible char have the
950 same face. Also use default face if saved_face_id is undefined.
951
952 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
953
954 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
955 `full_name'.
956 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
957 mac_scriptcode member.
958
959 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
960 (syms_of_mac): Don't initialize them.
961 (Vmac_charset_info_alist): New variable.
962 (syms_of_mac): Defvar it.
963 (create_text_encoding_info_alist): New function.
964 (decode_mac_font_name, mac_to_x_fontname)
965 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
966 code the correspondence among XLFD charsets, Mac script codes, and
967 Emacs coding systems. Use Vmac_charset_info_alist and result of
968 create_text_encoding_info_alist instead.
969 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
970 routines also on Mac OS Classic.
971 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
972 Use add_font_name_table_entry.
973 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
974 specified. Derive unspecified scalable fields from specified one.
975 (x_list_fonts): Consider Valternate_fontname_alist.
976 (kDefaultFontSize): Change value from 9 to 12.
977 (XLoadQueryFont): Get decoded font family, font face, and charset
978 from x_font_name_to_mac_font_name. Set full name of loaded font.
979 (mac_unload_font): Free `full_name' member.
980 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
981 NULL. Copy full_name member of struct MacFontStruct to that of
982 struct font_info.
983
984 2005-04-19 Kim F. Storm <storm@cua.dk>
985
986 * xdisp.c (handle_stop): Set saved_face_id to current face if
987 selective_display_ellipsis_p so ellipsis will be shown in same
988 face as preceding text.
989 (setup_for_ellipsis): Don't set saved_face_id here.
990 (next_element_from_display_vector): Default to saved_face_id.
991
992 * fns.c (Fsafe_get): New function.
993 (syms_of_fns): Defsubr it.
994
995 * lisp.h (Fsafe_get): EXFUN it.
996
997 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
998 loops in case of bad face property lists. Limit number of face
999 alias lookups to 10 (in case of face alias loops).
1000
1001 2005-04-18 Kim F. Storm <storm@cua.dk>
1002
1003 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
1004 It replaces the corresponding member from struct window, as a
1005 window may now show multiple overlay arrows.
1006 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
1007
1008 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
1009 Compare overlay_arrow_bitmap than overlay_arrow_p members.
1010
1011 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
1012 rather than from window.
1013 (update_window_fringes): Compare overlay_arrow_bitmap rather than
1014 overlay_arrow_p members.
1015 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
1016 if not default.
1017
1018 * window.h (struct window): Remove member overlay_arrow_bitmap.
1019
1020 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
1021
1022 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
1023 Calls changed. Don't check for overlay-arrow-bitmap property here.
1024 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
1025 fringe is present, return Lisp integer for bitmap (or -1 for default).
1026 Fix value of overlay-arrow-bitmap property to be a symbol, use
1027 lookup_fringe_bitmap to parse it.
1028 (display_line): Change call to overlay_arrow_at_row. Store integer
1029 return value as overlay bitmap in row rather than window.
1030 Only show overlay arrow if row displays text, or if no other overlay
1031 arrow is seen in window (if overlay marker is at point-max).
1032
1033 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1034
1035 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
1036
1037 2005-04-18 Lute Kamstra <lute@gnu.org>
1038
1039 * lread.c (Vloads_in_progress): Static.
1040 * fns.c (Vloads_in_progress): Remove extern.
1041 (load_in_progress): Add extern.
1042 (Frequire): Use load_in_progress instead of Vloads_in_progress.
1043
1044 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1045
1046 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
1047
1048 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1049
1050 * macterm.c (XTread_socket): Don't beep on keyboard input even if
1051 no frame is visible.
1052
1053 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1054
1055 * term.c (struct keys): Add support for shifted keys.
1056
1057 2005-04-16 Richard M. Stallman <rms@gnu.org>
1058
1059 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
1060 (set_message): Call with_echo_area_buffer with WHICH = 0.
1061 (set_message_1): Erase the echo area buffer first thing.
1062 (echo_area_display): Don't clear echo_message_buffer.
1063
1064 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1065
1066 * Makefile.in (mac.o): Depend on charset.h and coding.h.
1067
1068 * mac.c: Include charset.h and coding.h.
1069 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
1070 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
1071 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
1072
1073 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
1074
1075 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
1076
1077 * macterm.c (x_autoselect_window_p): Remove variable.
1078 (last_window): New variable.
1079 (XTreassert_line_highlight, x_change_line_highlight):
1080 Remove declarations.
1081 (mac_focus_changed, x_detect_focus_change): New functions and
1082 declarations.
1083 (XTextExtents16, front_emacs_window): Remove function.
1084 (mac_focus_frame): New function.
1085 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
1086 (mac_check_for_quit_char): Use it instead of front_emacs_window.
1087 (x_scroll_bar_report_motion): Obtain window from control owner.
1088 (x_make_frame_invisible): Set window manager size hint.
1089 (do_mouse_moved): Remove function.
1090 (XTread_socket): Move its contents here. Generate select-window
1091 event on mouse movement if needed. Use x_detect_focus_change on
1092 activate/deactivate events. Don't deiconify frame or invalidate
1093 window rectangle when dnd items are dropped.
1094 Don't activate/deactivate root control.
1095 (frame_highlight, frame_unhighlight): Activate/deactivate root
1096 control here.
1097 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
1098
1099 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
1100 New extern.
1101
1102 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
1103
1104 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
1105 (lisp): Use it.
1106 (SOME_MACHINE_LISP): Add tooltip.
1107
1108 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1109
1110 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
1111 Don't include TextEncodingConverter.h.
1112 (mac_system_script_code, Vmac_system_locale): New variables.
1113 (syms_of_mac): Defvar them.
1114 (mac_get_system_locale): New function.
1115
1116 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
1117 Use ENCODE_SYSTEM to encode title bar string.
1118 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
1119 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
1120 Use CFStringGetSystemEncoding to get system default string encoding.
1121
1122 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
1123 TextEncodingConverter.h.
1124
1125 2005-04-13 Steven Tamm <steventamm@mac.com>
1126
1127 * macterm.c (syms_of_macterm): Remove redundant definition of
1128 mac-pass-control-to-system.
1129
1130 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1131
1132 * window.c (Fset_window_configuration): Be careful when you choose
1133 among several possible points for the new_current_buffer.
1134
1135 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1136
1137 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
1138 poll_for_input_1. Set interrupt_input_pending to 1 instead.
1139 (Qlanguage_change) [MAC_OS]: New variable.
1140 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
1141 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
1142
1143 * macterm.c (mac_keyboard_text_encoding)
1144 (current_mac_keyboard_text_encoding): Remove variables.
1145 (XTread_socket): Store language-change event if keyboard script change
1146 is detected. Don't convert input to `mac_keyboard_text_encoding'.
1147 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
1148
1149 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
1150
1151 2005-04-10 Richard M. Stallman <rms@gnu.org>
1152
1153 * emacs.c (standard_args): Rename --bare-bones to --quick.
1154 Add -D aka --basic-display.
1155
1156 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
1157
1158 2005-04-09 Richard M. Stallman <rms@gnu.org>
1159
1160 * keymap.c (where_is_internal): Convert a string used as event type
1161 into "(any string)".
1162
1163 * lread.c (Vloads_in_progress): Not static.
1164 * fns.c (Vloads_in_progress): Add extern.
1165 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
1166
1167 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
1168
1169 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
1170
1171 2005-04-09 Lute Kamstra <lute@gnu.org>
1172
1173 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
1174 within the accessible part of the buffer.
1175
1176 2005-04-09 Kim F. Storm <storm@cua.dk>
1177
1178 * lread.c (readevalloop): Add args START and END as region in
1179 current buffer to read. Callers changed.
1180 When specified, narrow to this region only when reading,
1181 not during eval. Track next point to read from during eval.
1182 Also restore point to "real" buffer position before eval.
1183 (Feval_region): Don't save excursion and restriction here, and
1184 don't narrow to region. Just pass region to readevalloop.
1185 Note: Point is now preserved even when PRINTFLAG is nil.
1186
1187 2005-04-08 Kim F. Storm <storm@cua.dk>
1188
1189 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
1190
1191 2005-04-06 Kim F. Storm <storm@cua.dk>
1192
1193 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
1194
1195 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1196
1197 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
1198 (Fmac_get_preference): Doc fix.
1199
1200 * macfns.c (Fx_create_frame, x_create_tip_frame):
1201 Add "fontset-mac" to fallback font/fontsets.
1202
1203 2005-04-04 Kim F. Storm <storm@cua.dk>
1204
1205 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
1206
1207 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
1208 Call it again after autoload.
1209
1210 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1211
1212 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
1213 mallopt.
1214
1215 * ralloc.c (r_alloc_init): Ditto.
1216
1217 2005-04-01 Kenichi Handa <handa@m17n.org>
1218
1219 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
1220 (Vascii_eqv_table): Extern them.
1221
1222 * casetab.c (set_case_table): If standard is nonzero, setup
1223 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
1224
1225 * search.c (looking_at_1): Use current_buffer->case_canon_table,
1226 not DOWNCASE_TABLE.
1227 (string_match_1): Likewise.
1228 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
1229 Vascii_downcase_table.
1230 (fast_string_match_ignore_case): Likewise.
1231 (search_buffer): Fix checking of boyer-moore usability.
1232 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
1233 No need of tranlating characters in PAT. Fix calculation of
1234 simple_translate.
1235
1236 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1237
1238 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
1239 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
1240 Use XtNtopShadowPixel and XtNbottomShadowPixel.
1241 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
1242 really work and that breaks with some versions of Xaw3d.
1243
1244 2005-03-31 Kenichi Handa <handa@m17n.org>
1245
1246 * coding.c (syms_of_coding): Fix previous change.
1247
1248 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
1249
1250 * fileio.c (search_embedded_absfilename): Fix last change.
1251
1252 2005-03-25 Kenichi Handa <handa@m17n.org>
1253
1254 * coding.c (syms_of_coding): Suggest to use set-coding-category in
1255 the docstring of coding-category-list.
1256
1257 2005-03-31 Kim F. Storm <storm@cua.dk>
1258
1259 * keyboard.c (Qmouse_fixup_help_message): New var.
1260 (syms_of_keyboard): Intern and staticpro it.
1261 (show_help_echo): Apply mouse-fixup-help-message to help string.
1262
1263 2005-03-30 Kim F. Storm <storm@cua.dk>
1264
1265 * xdisp.c (display_line): Allow multiple overlay arrows in window.
1266
1267 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1268
1269 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
1270 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
1271 (Ffile_name_absolute_p): Use it.
1272 (search_embedded_absfilename): New fun, extracted from
1273 Fsubstitute_in_file_name. Use file_name_absolute_p.
1274 Free the pw data after use.
1275 (Fsubstitute_in_file_name): Use it.
1276 After cutting a prefix, re-check file-name-handler.
1277
1278 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
1279
1280 * w32term.h (x_output): Add focus_state.
1281
1282 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
1283 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
1284
1285 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
1286
1287 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
1288 Use Fexit_minibuffer.
1289 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
1290
1291 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
1292
1293 * dired.c (Ffile_attributes): Add a missing gcpro.
1294
1295 * alloc.c (make_number): The arg can be bigger than `int'.
1296 * lisp.h (make_number): Make prototype more precise.
1297
1298 * process.c, dired.c (Vfile_name_coding_system)
1299 (Vdefault_file_name_coding_system):
1300 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
1301 (Vdefault_file_name_coding_system): Remove unused declarations.
1302
1303 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1304
1305 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
1306 if it failed to pop up (Gnome "show pointer on ctrl" option makes
1307 menus fail to pop up).
1308
1309 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
1310
1311 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
1312 Just prepend a backslash without replacing the NBSP by an SPC.
1313
1314 2005-03-22 Kim F. Storm <storm@cua.dk>
1315
1316 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
1317 * dispextern.h (lookup_derived_face): Fix prototype.
1318 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
1319
1320 * xdisp.c (handle_single_display_spec): Derive left-fringe and
1321 right-fringe face from fringe face.
1322
1323 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
1324 Derive face from fringe face.
1325
1326 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1327
1328 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
1329
1330 2005-03-22 David Kastrup <dak@gnu.org>
1331
1332 * textprop.c (Fnext_char_property_change)
1333 (Fprevious_char_property_change): Allow marker as limit.
1334 (Fnext_single_char_property_change)
1335 (Fprevious_single_char_property_change): Check that limit is a
1336 number in strings.
1337 (Fnext_single_char_property_change): Coerce position to integer.
1338 (Fprevious_single_char_property_change): Same here.
1339
1340 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
1341
1342 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
1343
1344 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
1345
1346 * frame.c (Fignore_event): Remove.
1347 (syms_of_frame): Don't defsubr it.
1348
1349 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
1350 redundant `ignore-event'.
1351
1352 2005-03-19 Eli Zaretskii <eliz@gnu.org>
1353
1354 * unexec.c (write_segment, unexec): Move these functions to avoid
1355 forward references (which cause errors with "gcc -gcoff").
1356
1357 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1358
1359 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
1360 that it doesn't become "tooltip". The specbind is enough.
1361
1362 * xrdb.c (x_load_resources): Use different char *helv when I18N
1363 is present.
1364
1365 2005-03-17 Kenichi Handa <handa@m17n.org>
1366
1367 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
1368
1369 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1370
1371 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
1372 Use xic_create_fontsetname even for non-Motif menus.
1373 Don't forget to free the fontsetname.
1374
1375 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
1376
1377 2005-03-17 Richard M. Stallman <rms@gnu.org>
1378
1379 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
1380
1381 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
1382 (Fmake_symbolic_link): Use G to read the new file name.
1383
1384 * callint.c (Finteractive): Document G option.
1385 (Fcall_interactively): Implement G option.
1386
1387 * buffer.c (buffer_lisp_local_variables): New function,
1388 broken out from Fbuffer_local_variables.
1389 (clone_per_buffer_values): Use buffer_lisp_local_variables.
1390
1391 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1392
1393 * xfns.c (xic_create_fontsetname): Add `motif' argument.
1394 Always return a freshly allocated string.
1395 (xic_create_xfontset): Adjust call.
1396
1397 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
1398 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
1399 (dump_realized_face): Fix warning.
1400
1401 * emacs.c (Fkill_emacs): YAILOM.
1402
1403 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
1404
1405 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1406
1407 * mac.c (HASHKEY_TERMINAL): Remove.
1408 (HASHKEY_MAX_NID): New macro.
1409 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
1410 argument.
1411 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
1412 (xrm_create_database, xrm_q_put_resource)
1413 (xrm_merge_string_database, xrm_q_get_resource_1)
1414 (xrm_q_get_resource): Change resource database representation so
1415 that it may not use multiple hash tables for a single database.
1416 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
1417
1418 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
1419
1420 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
1421
1422 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
1423 locale-coding-system, as was already done for WINDOWSNT.
1424
1425 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
1426 translation for chars in the 0-255 range.
1427
1428 2005-03-16 Lute Kamstra <lute@gnu.org>
1429
1430 * floatfns.c (Ffloor): Doc fix.
1431
1432 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1433
1434 * mac.c: Include macterm.h instead of directly including Carbon.h.
1435 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
1436 (Qarray, Qdictionary): New variables.
1437 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
1438 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
1439 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
1440 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
1441 in callback for CFDictionaryApplyFunction.
1442 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
1443 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
1444 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
1445 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
1446 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
1447 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1448 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
1449 (skip_white_space, parse_comment, parse_include_file)
1450 (parse_binding, parse_component, parse_resource_name, parse_value)
1451 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
1452 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
1453 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
1454 New functions.
1455
1456 * macfns.c (mac_get_rdb_resource): Remove function.
1457 (x_get_string_resource): Use xrm_get_resource.
1458
1459 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
1460
1461 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
1462 name_list_element.
1463 (mac_make_rdb): Create resource database from preferences and
1464 argument string.
1465 (mac_term_init): Save resource database to cddr part of
1466 name_list_element.
1467
1468 * macterm.h (xrm_merge_string_database, xrm_get_resource)
1469 (xrm_get_preference_database): Add externs.
1470 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
1471 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
1472 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
1473
1474 * process.c (init_process): Change `#ifdef DARWIN' to `#if
1475 defined (DARWIN) || defined (MAC_OSX)'
1476
1477 * s/darwin.h (DARWIN): Don't define.
1478
1479 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1480
1481 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
1482 Remove unused variables.
1483 (syms_of_macfns): Don't initialize them. Likewise for
1484 Qface_set_after_frame_default. Defvar and initialize
1485 Vx_window_horizontal_drag_shape.
1486 (x_set_mouse_color): Change mouse pointer shape.
1487 (mac_window) [!MAC_OSX]: Create root control.
1488 (Fx_create_frame): Remove initializations of mouse pointer shapes.
1489 (hourglass_started): New function (from xfns.c).
1490 (start_hourglass, cancel_hourglass): Put function body in #ifdef
1491 MAC_OSX.
1492 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
1493 indicator for each non-tooltip frame if needed, and show it.
1494 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
1495
1496 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
1497 Controls.h. Use ThemeCursor instead of CursHandle.
1498
1499 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
1500 Remove functions and declarations.
1501 (mac_set_colors): Take argument for saving background color.
1502 All callers changed.
1503 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
1504 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
1505 background color.
1506 (x_update_end, mac_do_track_drag): Don't reset background color.
1507 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
1508 Use SetThemeCursor.
1509 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
1510 indicator control to the upper-right corner of the window.
1511 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
1512 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
1513 (do_window_update): Update controls after updating content area.
1514 (mac_handle_window_event): Remove unused extern.
1515 (XTread_socket): Check both control handle and control part code
1516 to determine whether a scroll bar is clicked. Activate/deactivate
1517 root control instead of contained scroll bar controls.
1518 (make_mac_terminal_frame): Use ThemeCursor constants.
1519
1520 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
1521 New member hourglass_control.
1522 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
1523 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
1524
1525 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1526
1527 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
1528 coincides with that in Apple X11 except `clear', `enter' on
1529 laptops, and fn + `enter' on laptops.
1530
1531 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
1532
1533 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
1534 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
1535 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
1536
1537 * xfns.c (xic_defaut_fontset): New constant.
1538 (xic_create_fontsetname): New function.
1539 Extracted from create_frame_xic. Try to generate a slightly
1540 better fontset.
1541 (xic_create_xfontset): Use it.
1542 (create_frame_xic): Simplify.
1543
1544 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
1545
1546 * fileio.c (Fmake_symbolic_link): Fix last change.
1547
1548 2005-03-11 Richard M. Stallman <rms@gnu.org>
1549
1550 * fileio.c (Frename_file, Fadd_name_to_file)
1551 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
1552 expand the basename of FILE relative to it.
1553
1554 2005-03-11 Kenichi Handa <handa@m17n.org>
1555
1556 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
1557 before calling setup_coding_system so that autoloading of a coding
1558 system work.
1559
1560 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1561
1562 * xfns.c (hourglass_started): New function.
1563
1564 * dispextern.h: Declare hourglass_started.
1565
1566 * keyboard.c (Fexecute_extended_command): Restart hourglass
1567 after call to Fcompleting_read if already started.
1568
1569 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
1570 GTK main loop is entered in xterm.c, thus doing the redraw.
1571
1572 2005-03-10 Kim F. Storm <storm@cua.dk>
1573
1574 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
1575
1576 2005-03-08 Kenichi Handa <handa@m17n.org>
1577
1578 * frame.c (x_set_font): Call set_default_ascii_font if an
1579 available font is found.
1580
1581 * fontset.c (set_default_ascii_font): New function.
1582 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
1583
1584 * fontset.h (set_default_ascii_font): Extern it.
1585
1586 2005-03-07 Kim F. Storm <storm@cua.dk>
1587
1588 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
1589 (clear_image_cache_count): New var.
1590 (redisplay_internal): Don't clear face and image caches in the
1591 middle of redisplay; do it afterwards.
1592
1593 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
1594
1595 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
1596 is valid. If not, clear phys_cursor_on_p and return.
1597
1598 2005-03-07 Andreas Schwab <schwab@suse.de>
1599
1600 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
1601
1602 2005-03-06 Richard M. Stallman <rms@gnu.org>
1603
1604 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
1605
1606 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
1607 (Feval, Ffuncall): Use CHECK_CONS_LIST.
1608
1609 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
1610
1611 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
1612 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
1613
1614 2005-03-05 Juri Linkov <juri@jurta.org>
1615
1616 * emacs.c (USAGE1): Replace Info node name "command arguments"
1617 with "emacs invocation".
1618 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
1619 allow arguments `--color' and `MODE' to be separated by space.
1620 Add --no-blinking-cursor, -nbc.
1621 (standard_args): Add -nbc, --no-blinking-cursor.
1622
1623 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
1624
1625 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
1626 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
1627 * fileio.c (Fexpand_file_name) [VMS]:
1628 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
1629 * doc.c (munge_doc_file_name) [VMS]: Likewise.
1630 (Fsnarf_documentation): Call munge_doc_file_name.
1631
1632 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
1633
1634 * s/vms.h (FILE_SYSTEM_CASE): New macro.
1635 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
1636 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
1637
1638 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1639
1640 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
1641 defined (MAC_OSX) && defined (HAVE_CARBON)'.
1642
1643 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
1644
1645 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
1646 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
1647 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
1648 (mac_clear_font_name_table): Move extern to macterm.h.
1649
1650 * macfns.c (install_window_handler): Move extern to macterm.h.
1651 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
1652 valid. Don't check !NILP (dir) because it is already checked with
1653 CHECK_STRING.
1654 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
1655 specifying the default location and obtaining the selected filename.
1656
1657 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
1658
1659 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
1660 are included via Carbon.h.
1661
1662 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
1663 Define USE_CARBON_EVENTS to 1.
1664 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
1665 (x_free_frame_resources): Call remove_window_handler for
1666 non-tooltip windows.
1667 [TARGET_API_MAC_CARBON]: Don't include headers that are included
1668 via Carbon.h.
1669 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
1670 (mac_do_receive_dragUPP): New variables.
1671 (mac_handle_service_event, init_service_handler): Put declarations
1672 and definitions in #ifdef MAC_OSX.
1673 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
1674 drag-and-drop handler functions and register them.
1675 (remove_window_handler): New function.
1676 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
1677 Use fsspec_to_posix_pathname.
1678 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
1679 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
1680 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
1681 Set default cursors.
1682 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
1683 init_service_handler or init_quit_char_handler.
1684 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
1685
1686 * macterm.h (install_window_handler, remove_window_handler)
1687 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
1688 (mac_clear_font_name_table): New externs.
1689
1690 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
1691
1692 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
1693 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
1694 (Fexpand_file_name): Likewise.
1695
1696 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
1697
1698 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
1699 no longer special-case VMS. Add bogus return value.
1700
1701 2005-03-02 Kim F. Storm <storm@cua.dk>
1702
1703 * dispextern.h (XASSERTS): Define to 0 if not already defined.
1704 (xassert) [!XASSERTS]: Define dummy version.
1705
1706 2005-03-02 Kim F. Storm <storm@cua.dk>
1707
1708 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
1709 Reported by David Kastrup.
1710
1711 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
1712
1713 * xdisp.c (get_next_display_element): Fix control and escape
1714 glyph from display vector.
1715
1716 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
1717
1718 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
1719
1720 2005-02-27 Richard M. Stallman <rms@gnu.org>
1721
1722 * xdisp.c (fast_find_position): Rename END to BEG.
1723 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
1724
1725 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1726
1727 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
1728 gtk_window_resize and x_wm_set_size_hint.
1729
1730 2005-02-25 Kim F. Storm <storm@cua.dk>
1731
1732 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
1733
1734 * xdisp.c (init_from_display_pos): Don't read past end of
1735 it->overlay_strings array.
1736
1737 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
1738
1739 * buffer.c (syms_of_buffer): Fix typo.
1740
1741 2005-02-23 Lute Kamstra <lute@gnu.org>
1742
1743 * buffer.c (Foverlay_buffer): Doc fix.
1744
1745 2005-02-22 Kim F. Storm <storm@cua.dk>
1746
1747 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
1748 and symbol keys in alists and hash tables.
1749
1750 * xdisp.c (fast_find_position): Fix search for start of overlay.
1751
1752 2005-02-21 Kim F. Storm <storm@cua.dk>
1753
1754 * window.c (window_scroll_pixel_based): When scrolling backwards,
1755 handle partial visible line at end of window even when we hit PT.
1756
1757 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
1758
1759 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
1760
1761 2005-02-21 Kim F. Storm <storm@cua.dk>
1762
1763 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
1764 I think those asserts are bogus if buffer contains invisible text
1765 or images.
1766
1767 2005-02-21 David Kastrup <dak@gnu.org>
1768
1769 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
1770
1771 2005-02-20 Kim F. Storm <storm@cua.dk>
1772
1773 * xdisp.c (pos_visible_p): Be sure to move to the specified
1774 position. Always get the full ascent / descent of the
1775 corresponding row, to return reliable rtop and rbot values.
1776 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
1777 Must look one character back, as back_to_previous_line_start
1778 returns position after the newline.
1779 (move_it_vertically_backward): Fix heuristic for when to move further
1780 back in case line_height * 2/3 is larger than window height.
1781 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
1782 as it does not do anything anymore. Add arg current_matrix_p to
1783 use current matrix rather than desired matrix when set.
1784 (try_cursor_movement): Don't scroll to make cursor row fully
1785 visible if cursor didn't move. This avoids unexpected recentering
1786 in case of blinking cursor or accepting process output.
1787 Use current matrix to check cursor row visibility.
1788 (redisplay_window): Fix whether to recenter or move to top in case
1789 cursor line is taller than window height.
1790 (find_first_unchanged_at_end_row): Stop search if we reach a row
1791 which not enabled (instead of abort).
1792
1793 2005-02-18 Kim F. Storm <storm@cua.dk>
1794
1795 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
1796 to be nil in a :box attribute value list; customize prints that
1797 as lisp value when no box color is specified.
1798
1799 * .gdbinit (pitx, pit): Pretty print display iterator.
1800 (prowx, prow): Pretty print glyph row.
1801 (pcursorx, pcursor): Pretty print a window cursor.
1802 (pwinx, pwin): Pretty print struct window.
1803
1804 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1805
1806 * alloc.c (BLOCK_BYTES): Harmless typo.
1807
1808 2005-02-17 Andreas Schwab <schwab@suse.de>
1809
1810 * xfns.c (hack_wm_protocols): Use correct type for last parameter
1811 of XGetWindowProperty to avoid aliasing issues.
1812 (Fx_window_property): Likewise.
1813
1814 * xselect.c (Fx_disown_selection_internal): Use union of struct
1815 input_event and struct selection_input_event to avoid aliasing issues.
1816
1817 * xterm.c (handle_one_xevent): Use union of struct input_event and
1818 struct selection_input_event to avoid aliasing issues.
1819 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
1820
1821 2005-02-17 Kim F. Storm <storm@cua.dk>
1822
1823 * dispextern.h (enum it_method): New enum.
1824 (GET_FROM_*): Its members.
1825 (struct it): Change member method from function pointer to enum.
1826
1827 * xdisp.c (check_it, init_from_display_pos, handle_stop)
1828 (setup_for_ellipsis, handle_single_display_spec)
1829 (handle_composition_prop, next_overlay_string)
1830 (get_overlay_strings, reseat_1, reseat_to_string)
1831 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
1832 (in_display_vector_p, display_line, get_next_display_element):
1833 Change it->method from function pointer to enum.
1834 (get_next_element): New array to map it->method to function.
1835 (get_next_display_element): Use it.
1836 (set_iterator_to_next): Use switch instead of if/else chain.
1837
1838 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1839
1840 * w32select.c: Summary: Thorough rework to implement Unicode
1841 clipboard operations and delayed rendering.
1842
1843 Drop last_clipboard_text and related code, keep track of
1844 ownership via clipboard_owner instead. Drop old #if0 sections.
1845
1846 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
1847 (clipboard_owner, modifying_clipboard, cfg_coding_system)
1848 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
1849 (current_coding_system, current_requires_encoding)
1850 (current_num_nls, current_clipboard_type, current_lcid):
1851 New static variables.
1852
1853 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
1854 (render, render_all, run_protected, lisp_error_handler)
1855 (owner_callback, create_owner, setup_config)
1856 (enum_locale_callback, cp_from_locale, coding_from_cp):
1857 New local functions.
1858
1859 (term_w32select, globals_of_w32select): New global functions.
1860
1861 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
1862 clipboard_owner instead. Use delayed rendering and provide
1863 all text formats. Provide CF_LOCALE if necessary.
1864
1865 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
1866 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
1867 available. Force DOS line-ends for decoding.
1868
1869 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
1870
1871 (syms_of_w32select): Init and register new variables.
1872
1873 * w32.h: Add prototypes for globals_of_w32select and
1874 term_w32select. Make the neighboring K&R declarations into
1875 prototypes, too.
1876
1877 * emacs.c: Include w32.h to get function prototypes.
1878 (main): Call globals_of_w32select.
1879
1880 * w32.c (term_ntproc): Call term_w32select.
1881
1882 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
1883
1884 2005-02-16 Kim F. Storm <storm@cua.dk>
1885
1886 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
1887 at end of display vector.
1888
1889 2005-02-15 Richard M. Stallman <rms@gnu.org>
1890
1891 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
1892 for mode and header lines.
1893
1894 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
1895
1896 * keymap.h (describe_map_tree): Change decl.
1897
1898 * keyboard.c (command_loop_1): Always use safe_run_hooks
1899 to run Qdeferred_action_function.
1900
1901 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
1902 (describe_map, describe_vector): Likewise. When it's 1,
1903 don't omit shadowed bindings, instead mark them as shadowed.
1904
1905 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
1906 for describe_map_tree. Pass 1 for MENTION_SHADOW.
1907
1908 * data.c (Fsetq_default): Allow no arg case.
1909
1910 2005-02-14 Kenichi Handa <handa@m17n.org>
1911
1912 * coding.c (encode_coding_string): Always return a unibyte string.
1913 If NOCOPY is nonzero and there's no need of encoding, make STR
1914 unibyte directly.
1915
1916 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
1917 multibyte string, signal an error instead of aborting.
1918
1919 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
1920
1921 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
1922
1923 2005-02-12 Kim F. Storm <storm@cua.dk>
1924
1925 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
1926
1927 2005-02-10 Kim F. Storm <storm@cua.dk>
1928
1929 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
1930 if it moves outside window or it doesn't display text.
1931
1932 2005-02-09 Kim F. Storm <storm@cua.dk>
1933
1934 * undo.c (Fprimitive_undo): Check that undo function does not
1935 switch buffer.
1936
1937 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1938
1939 * xselect.c (selection_data_to_lisp_data): For the special case
1940 type == XA_ATOM, data contains array of int, not array of Atom.
1941 (x_property_data_to_lisp, selection_data_to_lisp_data):
1942 Comment update: data must be array of int for format == 32.
1943
1944 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
1945
1946 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
1947
1948 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1949
1950 * xfns.c (Fx_change_window_property): Use long array when format is 32.
1951 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
1952 convert long array returned from XGetWindowProperty to an int array.
1953 (x_set_tool_bar_lines): Check that width and height is greater than
1954 zero before clearing area.
1955
1956 * xselect.c (x_reply_selection_request): Pass long array to
1957 XChangeProperty so that 64 bit longs are handeled correctly.
1958 (x_get_window_property): If format is 32 and long is bigger than 32
1959 bits convert data from XGetWindowProperty from long array to int array.
1960 (lisp_data_to_selection_data): When the input is a vector and the
1961 format is 32, allocate a long array even if long is bigger than 32 bits.
1962 (x_fill_property_data): Use char, short and long as the man page
1963 for XChangeProperty specifies. This way the data returned is OK for
1964 both 32 and 64 bit machines.
1965 (x_handle_dnd_message): Calculate size correctly even for 64 bit
1966 machines.
1967 (Fx_send_client_event): Undo change from 2005-02-05,
1968 x_fill_property_data now handles that case.
1969
1970 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
1971 reason for the approach in the code.
1972
1973 2005-02-07 Kim F. Storm <storm@cua.dk>
1974
1975 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
1976
1977 2005-02-06 Richard M. Stallman <rms@gnu.org>
1978
1979 * eval.c (Frun_hook_with_args)
1980 (Frun_hook_with_args_until_success)
1981 (Frun_hook_with_args_until_failure): Doc fixes.
1982
1983 2005-02-05 Andreas Schwab <schwab@suse.de>
1984
1985 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
1986
1987 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1988
1989 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
1990 the longs in a XClientMessageEvent correctly when long is 64 bits.
1991
1992 2005-02-05 Eli Zaretskii <eliz@gnu.org>
1993
1994 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
1995 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
1996
1997 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1998
1999 * xmenu.c (menubar_selection_callback): Force out GTK buffered
2000 events so the menu event comes after them. This is to prevent sit-for
2001 from exiting on buffered events directly after a menu selection,
2002 lisp code for Help => About Emacs uses sit-for.
2003
2004 * gtkutil.c (create_menus): Connect selection-done event instead of
2005 the deactivate event to deactivate_cb. This will make the last
2006 leave event come before the call to deactivate_cb, so the leave
2007 event does not make sit-for exit after a menu selection.
2008
2009 2005-02-03 Kim F. Storm <storm@cua.dk>
2010
2011 * dispnew.c (build_frame_matrix_from_leaf_window)
2012 [!GLYPH_DEBUG]: Fix xassert.
2013
2014 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
2015
2016 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2017
2018 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2019
2020 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
2021 the compiling OS version.
2022
2023 * macfns.c (x_create_tip_frame): Likewise.
2024
2025 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
2026
2027 2005-02-03 Richard M. Stallman <rms@gnu.org>
2028
2029 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
2030
2031 * xdisp.c (echo_area_display): Clear echo_message_buffer.
2032
2033 * buffer.c (Fbury_buffer): Doc fix.
2034
2035 2005-02-02 Steven Tamm <steventamm@mac.com>
2036
2037 * macfns.c (unwind_create_frame): Fix compile error due to
2038 xassert being uncondition, but predicate is.
2039 * dispnew.c (update_window): Fix compile error due to
2040 xassert being uncondition, but predicate is.
2041
2042 2005-02-02 Miles Bader <miles@gnu.org>
2043
2044 * dispextern.h (xassert): Enable unconditionally.
2045
2046 2005-02-02 Kim F. Storm <storm@cua.dk>
2047
2048 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
2049
2050 2005-02-02 Kenichi Handa <handa@m17n.org>
2051
2052 * casefiddle.c (casify_object): Enable changing characters of
2053 different byte length.
2054 (casify_region): Fix loop condition, args to replace_range_2, and
2055 update opoint_byte.
2056
2057 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
2058
2059 2005-02-01 Kim F. Storm <storm@cua.dk>
2060
2061 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
2062 stack before calling handle_display_prop.
2063
2064 2005-01-31 Kim F. Storm <storm@cua.dk>
2065
2066 * undo.c (Qapply): New lisp var.
2067 (syms_of_undo): Intern and staticpro it.
2068 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
2069 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
2070
2071 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2072
2073 2005-01-30 Jesper Harder <harder@phys.au.dk>
2074
2075 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
2076 <mac-emulate-three-button-mouse>: Fix docstring indentation.
2077
2078 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
2079
2080 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
2081 Increase value to 3 Meg.
2082
2083 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2084
2085 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
2086 button events are not received otherwise.
2087
2088 2005-01-29 Richard M. Stallman <rms@gnu.org>
2089
2090 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2091
2092 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
2093
2094 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2095
2096 * keymap.c (access_keymap): YAILOM.
2097
2098 2005-01-27 Kim F. Storm <storm@cua.dk>
2099
2100 * xdisp.c (get_phys_cursor_geometry): New function to calculate
2101 phys cursor position and size for hollow cursor. Position is
2102 aligned with get_glyph_string_clip_rect and ensures that a hollow
2103 cursor is shown, even when the actual glyph is not visible.
2104
2105 * dispextern.h (get_phys_cursor_geometry): Add prototype.
2106
2107 * xterm.c (x_clip_to_row): Ensure y >= 0.
2108 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2109
2110 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2111
2112 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2113
2114 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
2115
2116 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
2117
2118 2005-01-27 Kim F. Storm <storm@cua.dk>
2119
2120 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
2121 glyph, even when row is only partially visible and actual cursor
2122 position is not visible.
2123
2124 2005-01-24 Richard M. Stallman <rms@gnu.org>
2125
2126 * xterm.c (x_error_quitter): No longer static, and moved after
2127 x_error_handler.
2128
2129 2005-01-24 Kim F. Storm <storm@cua.dk>
2130
2131 * xdisp.c (move_it_by_lines): If we move forward after going too
2132 far back, cancel move if end position is same as start position.
2133
2134 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2135
2136 * dispextern.h (struct glyph_string): New members clip_head and
2137 clip_tail.
2138
2139 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
2140 region to the area between clip_head and clip_tail.
2141 (draw_glyphs): Record the area that need to be actually redrawn to
2142 the new variables clip_head and clip_tail when there are
2143 overhangs. Set values of these variables to the corresponding
2144 members in struct glyph_string. Refine x coordinates for
2145 notice_overwritten_cursor using clip_head and clip_tail.
2146
2147 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
2148
2149 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
2150 QDTextBounds.
2151 (x_draw_glyph_string): Don't fill the background of the successor
2152 of a glyph with a right overhang if the successor will draw a cursor.
2153 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
2154 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
2155
2156 2005-01-24 Kim F. Storm <storm@cua.dk>
2157
2158 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
2159 direction if window height was smaller than next-screen-context-lines.
2160 Now always scroll at least one line in the requested direction.
2161 Ensure that we actually do scroll backwards when requested to do so.
2162
2163 * xdisp.c (redisplay_window): Only try to make cursor line fully
2164 visible once (to avoid redisplay loop).
2165
2166 2005-01-23 Kim F. Storm <storm@cua.dk>
2167
2168 * window.c (Fpos_visible_in_window_p): Simplify return value for
2169 partially visible rows.
2170 (window_scroll_pixel_based): Adapt to that change.
2171
2172 * window.c (window_scroll_pixel_based): Force moving to next line
2173 if scrolling doesn't move start point, e.g. if looking at tall image.
2174
2175 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
2176 Clear last_height before calling line_bottom_y to get real height.
2177 Fix calculation of y.
2178
2179 2005-01-22 Steven Tamm <steventamm@mac.com>
2180
2181 * s/darwin.h: Removed PTY_ITERATION from here.
2182 (DARWIN): Define.
2183
2184 * process.c (init_process): Default process-connection-type to
2185 nil on darwin 6 or less, t if it is 7 or higher. This way the
2186 broken pty behavior is still allowed on darwin 6 for interactive
2187 processes for people that know what they are doing.
2188
2189 2005-01-22 Kim F. Storm <storm@cua.dk>
2190
2191 * window.c (auto_window_vscroll_p): New boolean.
2192 (syms_of_window): DEFVAR_BOOL it.
2193 (Fpos_visible_in_window_p): Extend return value to include RTOP
2194 and RBOT values if FULLY is nil.
2195 (window_scroll_pixel_based): Adjust vscroll for partially visible
2196 rows if auto_window_vscroll_p is set.
2197 (Fset_window_vscroll): Do nothing if vscroll is not modified.
2198
2199 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
2200 to return number of partially invisible pixels at top and bottom
2201 of the dislay row at POS.
2202
2203 * lisp.h (pos_visible_p): Fix prototype.
2204
2205 2005-01-21 Richard M. Stallman <rms@gnu.org>
2206
2207 * fileio.c (Fcopy_file): Doc fix.
2208
2209 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2210
2211 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
2212 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
2213 start of function for older compilers.
2214
2215 2005-01-20 Richard M. Stallman <rms@gnu.org>
2216
2217 * editfns.c (Fmessage): If arg is "", return "" (as before).
2218
2219 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
2220
2221 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
2222 variable.
2223
2224 2005-01-20 Steven Tamm <steventamm@mac.com>
2225
2226 * editfns.c (Voperating_system_release): Add.
2227 (init_editfns): Assign new variable operating-system-release
2228 based on call to uname if available.
2229 (get_operating_system_release): Add function to
2230 allow c-level access to operating system release.
2231
2232 * config.h: Regenerated.
2233
2234 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
2235 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
2236 using ptys as '7'.
2237
2238 2005-01-20 Kim F. Storm <storm@cua.dk>
2239
2240 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
2241
2242 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
2243 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
2244
2245 * macterm.c (x_draw_glyph_string_box): Likewise.
2246
2247 * w32term.c (x_draw_glyph_string_box): Likewise.
2248
2249 * indent.c (Fvertical_motion): Temporarily disable selective display.
2250
2251 2005-01-19 Kim F. Storm <storm@cua.dk>
2252
2253 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
2254 image property.
2255
2256 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
2257
2258 2005-01-18 Kim F. Storm <storm@cua.dk>
2259
2260 * xdisp.c (fast_find_position): Backtrack to find first row if
2261 charpos is inside a display overlay that spans multiple lines.
2262
2263 2005-01-18 Kenichi Handa <handa@m17n.org>
2264
2265 * coding.c (decode_coding_iso2022): Translate invalid codes if
2266 translation-table is specified.
2267
2268 2005-01-18 Kim F. Storm <storm@cua.dk>
2269
2270 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
2271 change. If handle_display_prop indicates newline is replaced by
2272 image or text, move back to start of relevant overlay or interval
2273 and continue scan from there. Simplify.
2274
2275 2005-01-17 Kim F. Storm <storm@cua.dk>
2276
2277 * dispnew.c (mode_line_string, marginal_area_string):
2278 Fix off-by-one error in search for glyph.
2279
2280 2005-01-16 Kim F. Storm <storm@cua.dk>
2281
2282 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
2283
2284 2005-01-16 Steven Tamm <steventamm@mac.com>
2285
2286 * macterm.c (mac_to_x_fontname): Remove spurious argument.
2287
2288 2005-01-16 Andreas Schwab <schwab@suse.de>
2289
2290 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
2291
2292 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2293
2294 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
2295 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
2296
2297 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2298
2299 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
2300 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
2301 New flags for readable_events.
2302 (get_filtered_input_pending, readable_filtered_events): Remove.
2303 (tracking_off): Call readable_events and get_input_pending with
2304 flag READABLE_EVENTS_DO_TIMERS_NOW.
2305 (readable_events): Move code from old readable_filtered_events here,
2306 but check new READABLE_EVENTS_* in argument flags instead of previous
2307 two boolean arguments do_timers_now and filter_events.
2308 If we are doing mouse tracking and the mouse moved, return only if
2309 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
2310 (swallow_events): Call get_input_pending with flag
2311 READABLE_EVENTS_DO_TIMERS_NOW.
2312 (get_input_pending): Move code from old get_filtered_input_pending
2313 here. Replace boolean arguments do_timers_now, filter_events with
2314 flags, and pass flags to readable_events. Document new
2315 READABLE_EVENTS_* flags.
2316 (detect_input_pending_ignore_squeezables): New function.
2317 (detect_input_pending_run_timers): Call get_input_pending with flag
2318 READABLE_EVENTS_DO_TIMERS_NOW.
2319 (Finput_pending_p): Call get_input_pending with flags
2320 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
2321
2322 * dispnew.c (update_window, update_frame_1): Replace calls to
2323 detect_input_pending with detect_input_pending_ignore_squeezables
2324 so that redisplay is not paused if the event queue contains only
2325 mouse movements.
2326
2327 * lisp.h: Declare detect_input_pending_ignore_squeezables.
2328
2329 2005-01-15 Steven Tamm <steventamm@mac.com>
2330
2331 * macterm.c (Vmac_use_core_graphics): Declare variable for
2332 mac-allow-anti-aliasing.
2333 (syms_of_macterm): DEFVAR_LISP and initialize it.
2334 (mac_draw_string_common): Use core graphics text rendering if
2335 mac-allow-anti-aliasing is enabled.
2336
2337 * macfns.c (Fx_file_dialog): Save As dialog includes only the
2338 file name in the text box.
2339
2340 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2341
2342 * macfns.c (x_set_foreground_color, x_set_background_color):
2343 Sync with xfns.c.
2344 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
2345 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
2346 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
2347
2348 2005-01-14 Kim F. Storm <storm@cua.dk>
2349
2350 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
2351
2352 2005-01-13 Richard M. Stallman <rms@gnu.org>
2353
2354 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
2355 if Voverriding_terminal_local_map is non-nil.
2356
2357 * keyboard.c (syms_of_keyboard): Doc fix.
2358
2359 2005-01-13 Kim F. Storm <storm@cua.dk>
2360
2361 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
2362 (specify 0 for FACE instead). Reorder arg list. Doc fix.
2363
2364 2005-01-12 Richard M. Stallman <rms@gnu.org>
2365
2366 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
2367 face property for characters that don't specify one.
2368
2369 * fns.c (Frequire): Record in load-history unconditionally.
2370
2371 2005-01-10 Kim F. Storm <storm@cua.dk>
2372
2373 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
2374
2375 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
2376 Callers changed.
2377 Add support to merge with lisp face id too (if face_name is t).
2378
2379 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2380 Don't lookup lface_id from display table glyphs here; instead use
2381 merge_faces to merge the lisp face id into current face.
2382
2383 2005-01-09 Kim F. Storm <storm@cua.dk>
2384
2385 * dispextern.h (struct it): New member dpvec_face_id.
2386 (merge_into_realized_face): Add prototype.
2387
2388 * xfaces.c (merge_into_realized_face): New function. Used to
2389 merge escape-glyph face or face from display table into current face.
2390
2391 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
2392 (syms_of_xdisp): DEFVAR_LISP it.
2393 (escape_glyph_face): Remove var.
2394 (redisplay_window): Don't initialize it.
2395 (setup_for_ellipsis, get_next_display_element):
2396 Set it->dpvec_face_id to -1.
2397 (get_next_display_element): Test Vshow_nonbreak_escape.
2398 Do not setup escape_glyph_face.
2399 Properly merge escape-glyph face or face from display table with
2400 current face for escape and control characters.
2401 Set it->dpvec_face_id to relevant face id instead of adding it to each
2402 element of display vector.
2403 (next_element_from_display_vector): If it->dpvec_face_id is set,
2404 use that instead of lface_id from glyph itself.
2405
2406 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2407
2408 * xterm.h (struct x_output): New member, toolbar_detached.
2409
2410 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
2411 38.
2412 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
2413 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
2414 (xg_create_tool_bar): Initialize toolbar_detached.
2415 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
2416 toolbar_detached is zero.
2417
2418 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2419
2420 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
2421 gtk_menu_popup if not for_click, so callbacks for the menu are called.
2422
2423 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
2424 (xg_tool_bar_callback, xg_tool_bar_help_callback)
2425 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
2426
2427 * xselect.c (x_get_foreign_selection, x_fill_property_data)
2428 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
2429 XFLOAT_DATA to get extract number from Lisp object.
2430
2431 2005-01-07 Kim F. Storm <storm@cua.dk>
2432
2433 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
2434 Set stop_charpos to current charpos instead of 0.
2435
2436 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
2437
2438 * xdisp.c (Fformat_mode_line): First arg now required.
2439
2440 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2441
2442 * macterm.c (XLoadQueryFont): Correctly handle 0 size
2443 font widths that are returned from some Japanese fonts.
2444
2445 2005-01-06 Kim F. Storm <storm@cua.dk>
2446
2447 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
2448 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
2449 (destroy_fringe_bitmap): Set fringe_faces element to nil.
2450 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
2451 fringe_faces array and init elements to nil.
2452 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
2453 non-persistent face id.
2454 (mark_fringe_data): New function for GC.
2455
2456 * alloc.c (mark_fringe_data): Declare extern.
2457 (Fgarbage_collect): Call mark_fringe_data.
2458
2459 * alloc.c (overrun_check_free): Invalidate freed memory if
2460 XMALLOC_CLEAR_FREE_MEMORY is defined.
2461
2462 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2463
2464 * macfns.c: Include sys/param.h.
2465 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
2466 and function.
2467 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
2468 of filename string. Set event callback function when creating
2469 dialog boxes. Add code conversions for filenames. Don't dispose
2470 apple event descriptor record if failed to create it.
2471
2472 * macterm.c: Include sys/param.h.
2473 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
2474 kEventWindowUpdate.
2475 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
2476 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
2477 of FSSpec from apple event descriptor record.
2478 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
2479 size of filename string.
2480 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
2481 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
2482 file dialog is in action.
2483 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
2484 Reject only when there are no filename items. Set background color
2485 before (un)highlighting the window below the dragged items.
2486 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
2487
2488 2005-01-05 Romain Francoise <romain@orebokech.com>
2489
2490 * term.c (encode_terminal_code): Fix buffer size computation.
2491
2492 2005-01-04 Richard M. Stallman <rms@gnu.org>
2493
2494 * xdisp.c (Fformat_mode_line): Doc fix.
2495
2496 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2497
2498 * alloc.c (refill_memory_reserve): Move.
2499 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
2500 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
2501
2502 2005-01-03 Richard M. Stallman <rms@gnu.org>
2503
2504 * window.c (window_scroll_pixel_based): Don't correct preserve_y
2505 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
2506
2507 2005-01-03 Jason Rumney <jasonr@gnu.org>
2508
2509 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
2510 fontp->space_width to FONT_WIDTH so they are valid.
2511
2512 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
2513 average width. Set fontp->average_width and fontp->space_width to
2514 their appropriate values.
2515
2516 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
2517 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
2518 fontp->space_width.
2519
2520 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2521
2522 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
2523 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
2524 metrics for max and min bounds.
2525 (x_load_font): Correctly calculate average font width metrics.
2526
2527 2005-01-02 Richard M. Stallman <rms@gnu.org>
2528
2529 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
2530
2531 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2532
2533 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
2534
2535 2004-12-31 Richard M. Stallman <rms@gnu.org>
2536
2537 * xdisp.c (setup_for_ellipsis, get_next_display_element):
2538 Set it->ellipsis_p to 1 or 0.
2539 (display_line): Record whether row ends in mid-ellipsis.
2540 (set_cursor_from_row): If ends in ellipsis, find start of it.
2541 (cursor_row_p): If PT's at the end of the ellipsis the row
2542 ends within, don't display cursor on this row.
2543
2544 * dispextern.h (struct it): New element ellipsis_p.
2545 (struct glyph_row): New element ends_in_ellipsis_p.
2546
2547 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
2548 position if we're reading from something other than the buffer.
2549
2550 * window.c (window_scroll_pixel_based): Only look at
2551 Vscroll_preserve_screen_position if the old PT can't be kept.
2552 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2553
2554 2004-12-30 Kim F. Storm <storm@cua.dk>
2555
2556 * xdisp.c (get_line_height_property): New function extracted from
2557 original calc_line_height_property.
2558 (calc_line_height_property): Rework. Handle t and (nil . ratio).
2559 (x_produce_glyphs): Use them to handle line-height and
2560 line-spacing according to new height spec.
2561 (Qtotal): Remove.
2562 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
2563
2564 2004-12-30 Kenichi Handa <handa@m17n.org>
2565
2566 * fileio.c (Finsert_file_contents): Don't use
2567 current_buffer->buffer_file_coding_system even if REPLACE is
2568 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
2569
2570 * fontset.h (struct font_info): New members space_width and
2571 average_width.
2572
2573 * frame.h (struct frame): New member space_width.
2574 (FRAME_SPACE_WIDTH): New macro.
2575
2576 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
2577
2578 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
2579 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
2580 fontp->space_width.
2581 (x_load_font): Calculate fontp->space_width and fontp->average_width.
2582 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
2583
2584 * xdisp.c (x_produce_glyphs): Calculate tab width by
2585 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
2586
2587 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
2588
2589 * macterm.c (SelectionRange): Add Xcode position apple event struct.
2590 (do_ae_open_documents): Handle Xcode-style file position open events.
2591
2592 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
2593
2594 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
2595
2596 2004-12-29 Richard M. Stallman <rms@gnu.org>
2597
2598 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
2599
2600 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2601
2602 * macfns.c (install_window_handler): Modify extern to return OSErr
2603 value.
2604 (mac_window): Handle return value of install_window_handler.
2605
2606 * macterm.c (reflect_byte): Remove function.
2607 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
2608 Lookup table instead.
2609 (mac_do_font_lists): Simplify calculation of the longest
2610 nonspecial string.
2611 (init_mac_drag_n_drop): Remove function and declaration.
2612 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
2613 init_mac_drag_n_drop.
2614 (mac_do_track_drag): New function and declaration.
2615 (install_window_handler): Return OSErr value.
2616 (install_window_handler) [TARGET_API_MAC_CARBON]:
2617 Register handlers for tracking/receiving drag-and-drop items.
2618 (do_ae_open_documents): Generate unibyte strings for filenames.
2619 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
2620 Reject only non-filename items. Set event modifiers, and return value.
2621
2622 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2623
2624 * coding.c (decode_coding): Fix previous change.
2625
2626 2004-12-28 Richard M. Stallman <rms@gnu.org>
2627
2628 * xdisp.c (back_to_previous_visible_line_start):
2629 Don't call handle_display_prop.
2630
2631 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
2632
2633 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
2634 (decode_coding_emacs_mule, encode_coding_emacs_mule)
2635 (decode_coding_iso2022, encode_designation_at_bol)
2636 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
2637 (decode_coding): Constify arguments and local vars.
2638
2639 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2640
2641 * xmenu.c (popup_get_selection): Only pop down dialogs
2642 on C-g and Escape.
2643 (popup_get_selection): Remove parameter down_on_keypress.
2644 (create_and_show_popup_menu, create_and_show_dialog):
2645 Remove parameter down_on_keypress to popup_get_selection.
2646
2647 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2648
2649 * dispextern.h: Change HAVE_CARBON to MAC_OS.
2650 (struct glyph_string): Likewise.
2651
2652 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
2653 mac_initialize.
2654
2655 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
2656 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
2657
2658 * fns.c (vector): Change MAC_OSX to MAC_OS.
2659
2660 * frame.c (x_set_frame_parameters, x_report_frame_params)
2661 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
2662 (x_set_border_width, Vdefault_frame_scroll_bars):
2663 Change HAVE_CARBON to MAC_OS.
2664
2665 * image.c [MAC_OS]: Include sys/stat.h.
2666 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
2667 QuickTimeComponents.h.
2668
2669 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
2670 [!MAC_OSX] (select): Use mac_wait_next_event.
2671 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
2672 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
2673 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2674 (mac_clear_font_name_table): Add extern.
2675 (Fmac_clear_font_name_table): New defun.
2676 (syms_of_mac): Defsubr it.
2677 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
2678 [MAC_OSX] (select_and_poll_event): New function.
2679 [MAC_OSX] (sys_select): Use it.
2680 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
2681 [MAC_OSX && SELECT_USE_CFSOCKET]
2682 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
2683 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
2684 RunLoop for simultaneously monitoring two kinds of inputs, window
2685 events and process outputs, without periodically polling.
2686
2687 * macfns.c (mac_initialized): Remove extern.
2688 (stricmp): Put in #if 0. All callers changed to use xstricmp in
2689 xfaces.c.
2690 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
2691 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
2692 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
2693 (mac_get_rdb_resource): New function (from w32reg.c).
2694 (x_get_string_resource): Use it.
2695 (install_window_handler): Add extern.
2696 (mac_window): New function.
2697 (Fx_create_frame): Use it instead of make_mac_frame.
2698 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
2699 (Fx_open_connection, Fx_close_connection): New defuns.
2700 (syms_of_macfns): Defsubr them.
2701 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
2702 Add kWindowNoUpdatesAttribute to the window attribute.
2703 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
2704 (x_create_tip_frame): Don't call ShowWindow.
2705 (Fx_show_tip): Call ShowWindow.
2706 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
2707 TARGET_API_MAC_CARBON'.
2708 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
2709 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
2710
2711 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
2712 (Window): Typedef to WindowPtr and move outside `#if
2713 TARGET_API_MAC_CARBON'.
2714 (XSizeHints): New struct.
2715
2716 * macterm.c (x_update_begin, x_update_end)
2717 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
2718 frame.
2719 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2720 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
2721 (construct_mouse_click): Put in #if 0.
2722 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
2723 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
2724 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2725 (activate_scroll_bars, deactivate_scroll_bars)
2726 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
2727 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
2728 if the position is neither user-specified nor program-specified.
2729 (x_free_frame_resources): Free size_hints.
2730 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
2731 (mac_clear_font_name_table): New function.
2732 (mac_do_list_fonts): Initialize font_name_table if needed.
2733 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
2734 around mac_do_list_fonts.
2735 (mac_unload_font): New function.
2736 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
2737 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
2738 and definitions with #if TARGET_API_MAC_CARBON.
2739 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
2740 (install_window_handler): Add decl.
2741 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
2742 window. Use UpdateControls. Get the rectangle that should be
2743 updated and restrict the target of expose_frame to it.
2744 (do_grow_window): Set minimum height/width according to size_hints.
2745 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
2746 (do_zoom_window): Don't use x_set_window_size.
2747 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
2748 (install_window_handler): New function.
2749 [!USE_CARBON_EVENTS] (mouse_region): New variable.
2750 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
2751 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
2752 GetEventDispatcherTarget inside BLOCK_INPUT.
2753 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
2754 Update mouse_region when mouse is moved.
2755 (make_mac_frame): Remove.
2756 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
2757 Initialize mouse pointer shapes. Change values of f->left_pos and
2758 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
2759 Don't call ShowWindow.
2760 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
2761 Vinvocation_name and Vsystem_name.
2762 (mac_make_rdb): New function (from w32term.c).
2763 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
2764 already been opened. Don't pass argument to
2765 mac_initialize_display_info. Don't set dpyinfo->height/width.
2766 Add entries to x_display_list and x_display_name_list.
2767 (x_delete_display): New function.
2768 (mac_initialize): Don't call mac_initialize_display_info.
2769 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
2770
2771 * macterm.h (check_mac): Add extern.
2772 (struct mac_output): New member size_hints.
2773 (FRAME_SIZE_HINTS): New macro.
2774 (mac_unload_font): Add extern.
2775
2776 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
2777
2778 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
2779
2780 2004-12-27 Richard M. Stallman <rms@gnu.org>
2781
2782 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
2783 (syms_of_buffer): Don't defsubr it.
2784
2785 * process.c (list_processes_1): Set undo_list instead
2786 of calling Fbuffer_disable_undo.
2787
2788 * xdisp.c (single_display_spec_string_p): Rename from
2789 single_display_prop_string_p.
2790 (single_display_spec_intangible_p): Rename from
2791 single_display_prop_intangible_p.
2792 (handle_single_display_spec): Rename from handle_single_display_prop.
2793 Rewritten to be easier to understand.
2794
2795 Change in load-history format. Functions now get (defun . NAME),
2796 and variables get just NAME.
2797
2798 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2799
2800 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2801 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
2802 (Qdefvar): Var deleted.
2803 (syms_of_eval): Don't initialze it.
2804
2805 * lread.c (syms_of_lread) <load-history>: Doc fix.
2806
2807 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2808
2809 * xmenu.c (popup_get_selection): Pop down on C-g.
2810 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
2811 pops down menu on C-g.
2812 (xdialog_show): If dialog popped down and no button in the dialog was
2813 pushed, call Fsignal to quit.
2814 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
2815 Fsignal to quit.
2816
2817 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
2818
2819 * gtkutil.c (xg_initialize): Install bindings for C-g so that
2820 dialogs and menus pop down.
2821
2822 2004-12-27 Kenichi Handa <handa@m17n.org>
2823
2824 * coding.c (code_convert_region): Fix calculation of `ratio'.
2825
2826 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2827
2828 * gtkutil.c (update_frame_tool_bar): Make the value of
2829 tool-bar-button-margin control margins of images in tool bar.
2830
2831 * alloc.c (check_depth): New variable.
2832 (overrun_check_malloc, overrun_check_realloc): Only add
2833 overhead and write check pattern if check_depth is 1 (to handle
2834 recursive calls). Increase/decrease check_depth in entry/exit.
2835 (overrun_check_free): Only check for overhead if check_depth is 1.
2836 Increase/decrease check_depth in entry/exit.
2837
2838 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2839
2840 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
2841 before touching input_available_clear_time, to avoid accessing it
2842 from multiple threads.
2843
2844 2004-12-23 Jason Rumney <jasonr@gnu.org>
2845
2846 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
2847 of JPEG library.
2848
2849 2004-12-22 Richard M. Stallman <rms@gnu.org>
2850
2851 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
2852
2853 * lisp.h (Vundo_outer_limit): Fix decl.
2854
2855 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
2856 Uses changed.
2857 (syms_of_undo): Initialize appropriately.
2858 (truncate_undo_list): If it's nil, there's no limit.
2859
2860 2004-12-22 Kenichi Handa <handa@m17n.org>
2861
2862 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
2863
2864 2004-12-21 Richard M. Stallman <rms@gnu.org>
2865
2866 * eval.c (unwind_to_catch): Clear immediate_quit.
2867
2868 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
2869 specially as `\ ' and `\-'.
2870
2871 * keyboard.c (kbd_buffer_store_event_hold):
2872 In the code for while-no-input, handle immediate_quit.
2873
2874 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
2875 Call that at the very start.
2876 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
2877 (syms_of_alloc): Don't define undo-limit,
2878 undo-strong-limit and undo-outer-limit here.
2879
2880 * undo.c (truncate_undo_list): Return void.
2881 Take just one argument, the buffer.
2882 Make it current, and inhibit recursive GC.
2883 Access and update the undo list directly; return void.
2884 Refer to the undo...limit variables directly.
2885 Test undo_outer_limit only after counting the whole current command.
2886 When it's exceeded, call the function in undo-outer-limit-function.
2887 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
2888 (Vundo_outer_limit_function): New variable.
2889 (syms_of_undo): Define undo-limit, undo-strong-limit
2890 and undo-outer-limit here, and undo-outer-limit-function.
2891 Doc fixes.
2892
2893 * lisp.h (truncate_undo_list): Update decl.
2894
2895 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
2896
2897 * fileio.c (Fread_file_name): Delete duplicates in
2898 file-name-history when history_delete_duplicates is true.
2899
2900 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2901
2902 * macterm.c (mac_do_list_fonts): Fix memory leak
2903
2904 2004-12-20 Richard M. Stallman <rms@gnu.org>
2905
2906 * regex.c (re_match_2_internal) <symend, wordend>:
2907 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
2908
2909 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2910
2911 * macterm.c (endif, x_font_name_to_mac_font_name):
2912 Use maccentraleurroman instead of maccentraleuropean
2913 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
2914 quickly finding a specific font without needing regexps.
2915
2916 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2917
2918 * syssignal.h: Declare main_thread.
2919 (SIGNAL_THREAD_CHECK): New macro.
2920
2921 * keyboard.c (input_available_signal): Move thread checking code
2922 to macro SIGNAL_THREAD_CHECK and call that macro.
2923 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
2924
2925 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
2926
2927 * emacs.c: Define main_thread.
2928 (main): Initialize main_thread.
2929 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
2930 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
2931
2932 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
2933
2934 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
2935
2936 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
2937
2938 * process.c (send_process_trap, sigchld_handler):
2939 Call SIGNAL_THREAD_CHECK.
2940
2941 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
2942
2943 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
2944
2945 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
2946 returning when xg_ignore_gtk_scrollbar is true.
2947
2948 2004-12-14 Kim F. Storm <storm@cua.dk>
2949
2950 * keyboard.c (read_char): Save and restore echo_string when
2951 handling input method.
2952
2953 2004-12-13 Richard M. Stallman <rms@gnu.org>
2954
2955 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
2956
2957 * keyboard.c (Vthrow_on_input): New variable.
2958 (syms_of_keyboard): Defvar and initialize it.
2959 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
2960
2961 * lisp.h (QUIT): Check for Vthrow_on_input.
2962 (Vthrow_on_input): Declare it.
2963
2964 2004-12-13 Kim F. Storm <storm@cua.dk>
2965
2966 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
2967 vector.
2968
2969 2004-12-12 Richard M. Stallman <rms@gnu.org>
2970
2971 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
2972
2973 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
2974 (Ftry_completion): Really use outer `zero'; eliminate inner one.
2975
2976 2004-12-12 Kenichi Handa <handa@m17n.org>
2977
2978 * term.c (encode_terminal_code): Fix previous change.
2979
2980 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
2981
2982 * keyboard.c (handle_async_input): Remove pthread mutex handling.
2983 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
2984
2985 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
2986 in macro arguments.
2987
2988 * minibuf.c (Ftry_completion, Fall_completions): Don't use
2989 XFASTINT blindly.
2990
2991 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
2992
2993 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2994
2995 * w32term.c (x_calc_absolute_position): Remove calculation of
2996 difference between inner and outer window. Don't subtract difference
2997 for left and top calculations.
2998
2999 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
3000 for left and top calculations. Remove call to x_real_positions.
3001 [Bug report by Drew Adams in November]
3002 (x_check_expected_move): Do not set change_gravity to 1 when calling
3003 x_set_offset.
3004
3005 2004-12-08 Richard M. Stallman <rms@gnu.org>
3006
3007 * xdisp.c (get_next_display_element): Use `escape-glyph' for
3008 control chars and escaped octal codes.
3009 (Qescape_glyph): New variable.
3010 (syms_of_xdisp): Initialize it.
3011 (escape_glyph_face): New variable.
3012 (redisplay_window): Initialize it.
3013
3014 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
3015
3016 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
3017 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
3018
3019 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3020
3021 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
3022 reset_malloc_hooks.
3023
3024 * keyboard.c (handle_async_input, input_available_signal):
3025 Add ! defined (SYSTEM_MALLOC) around thread code.
3026
3027 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
3028
3029 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
3030
3031 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
3032
3033 * config.in: Regenerate.
3034
3035 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3036
3037 * xmenu.c (Fx_popup_menu): Correct documentation about position.
3038 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
3039 if not given by a mouse click to correspond with x-popup-menu
3040 documentation.
3041
3042 * config.in: Regenerate.
3043
3044 * gtkutil.c: Include signal.h and syssignal.h.
3045 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
3046
3047 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
3048 new variables main_thread and alloc_mutex,
3049 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
3050 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
3051 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
3052 (UN)BLOCK_INPUT.
3053 (emacs_blocked_free, emacs_blocked_malloc)
3054 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
3055 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
3056 (reset_malloc_hooks): New function.
3057
3058 * lisp.h: Declare reset_malloc_hooks.
3059
3060 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
3061
3062 * keyboard.c: Conditionally include pthread.h
3063 (handle_async_input, input_available_signalt): If not in the main
3064 thread, block signal, send signal to main thread and return.
3065
3066 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
3067 Set current folder in file chooser if default_filename is a directory.
3068
3069 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
3070
3071 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
3072 Remove redundant correctness checks.
3073 (regex_compile): Fix up error codes for \{..\} expressions.
3074
3075 2004-12-05 Richard M. Stallman <rms@gnu.org>
3076
3077 * regex.c (regex_compile): Fix end-of-pattern case for space.
3078
3079 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3080
3081 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
3082 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
3083 crashes with invalid characters.
3084 * macmenu.c (add_menu_item): Use it.
3085 * image.c (image_load_quartz2d): Likewise.
3086 * macfns.c (x_set_name, x_set_title): Likewise.
3087 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
3088 creating them each time for labels.
3089
3090 2004-12-02 Richard M. Stallman <rms@gnu.org>
3091
3092 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
3093 don't use it here.
3094
3095 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
3096 (interactive_p): Skip Scalled_interactively_p frames
3097 like Sinteractive_p frames.
3098 (unwind_to_catch): Clear handling_signal.
3099
3100 * data.c (Fmake_variable_buffer_local): Doc fix.
3101 (Fmake_local_variable): Doc fix.
3102
3103 * insdel.c (insert_from_string_before_markers)
3104 (insert_from_string): Don't modify buffer on empty insertion.
3105
3106 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
3107
3108 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3109
3110 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
3111 menu text as UTF8 fails.
3112
3113 2004-12-01 Kim F. Storm <storm@cua.dk>
3114
3115 * alloc.c: Add commentary for last change.
3116 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
3117 sizeof(size_t) != 4.
3118 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
3119 Use them. Also clear header and trailer of freed memory.
3120 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
3121 (string_overrun_cookie): Rename from string_overrun_pattern.
3122 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
3123
3124 2004-12-01 Andreas Schwab <schwab@suse.de>
3125
3126 * lisp.h: Declare string_to_multibyte.
3127
3128 2004-12-01 Kenichi Handa <handa@m17n.org>
3129
3130 * w32console.c (w32con_write_glyphs): Decide coding here.
3131 Adjusted for the change of encode_terminal_code.
3132
3133 * term.c (encode_terminal_code): Don't make it "static".
3134
3135 2004-11-30 Kenichi Handa <handa@m17n.org>
3136
3137 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
3138 (encode_terminal_code): Argument changed. Encode all
3139 characters at once, and return a pointer to the result of encoding.
3140 (write_glyphs): Decide coding here. Adjusted for the above change.
3141 (insert_glyphs): Likewise.
3142 (term_init): Initialize encode_terminal_bufsize to 0.
3143
3144 * coding.c (Vcode_conversion_workbuf_name): New variable.
3145 (syms_of_coding): Initialize and staticpro it.
3146 (set_conversion_work_buffer): New function.
3147 (run_pre_post_conversion_on_str): Use it.
3148 (run_pre_write_conversin_on_c_str): New function.
3149
3150 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
3151
3152 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3153
3154 * keyboard.c: Don't undef SIGIO
3155 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
3156 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
3157 (macfns.o): Don't depend on ccl.h.
3158 * macfns.c (mac_frame_parm_handlers): Set handlers for
3159 Qleft_fringe and Qright_fringe.
3160 * macterm.c (mac_fill_rectangle_to_pixmap)
3161 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
3162 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
3163 Put in #if 0.
3164 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
3165 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
3166 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
3167 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
3168 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
3169 XDrawImageString. Always draw background and foreground separately.
3170 (x_draw_image_foreground): Use clipping instead of computing the
3171 intersection rectangle.
3172 (x_draw_image_glyph_string): Don't draw an image with mask to a
3173 pixmap.
3174 (x_redisplay_interface): Set flush_display_optional member to 0.
3175 (XTread_socket): Correctly reset the TEConverter
3176 object.
3177
3178 2004-11-30 Kim F. Storm <storm@cua.dk>
3179
3180 * lisp.h: New defines to enable buffer overrun checking.
3181 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
3182 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
3183
3184 * alloc.c: Add more checks for buffer overruns.
3185 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
3186 xmalloc_overrun_check_trailer, overrun_check_malloc)
3187 overrun_check_realloc, overrun_check_free): Add.
3188 (GC_STRING_EXTRA, string_overrun_pattern): Add.
3189 (check_sblock, allocate_string_data, compact_small_strings):
3190 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
3191 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
3192 (check_string_free_list): Add.
3193 (allocate_string, sweep_strings): Call check_string_free_list.
3194
3195 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
3196 XMALLOC_OVERRUN_CHECK to avoid crash during load.
3197
3198 2004-11-29 Kim F. Storm <storm@cua.dk>
3199
3200 * fns.c (concat): Use SAFE_ALLOCA.
3201
3202 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
3203
3204 * sysdep.c (emacs_write): Don't use QUIT.
3205
3206 2004-11-29 Kenichi Handa <handa@m17n.org>
3207
3208 * buffer.c (init_buffer): Set current_buffer->directory to a
3209 multibyte string made by string_to_multibyte.
3210
3211 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
3212
3213 2004-11-27 Andreas Schwab <schwab@suse.de>
3214
3215 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
3216
3217 * s/gnu-linux.h: Enable no-op gcpros on ia64.
3218 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
3219
3220 * filelock.c (lock_file_1): Call get_boot_time early.
3221 Increase buffer size.
3222
3223 2004-11-27 Eli Zaretskii <eliz@gnu.org>
3224
3225 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
3226 is not defined.
3227
3228 2004-11-27 Kim F. Storm <storm@cua.dk>
3229
3230 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
3231 marker out of doc string.
3232
3233 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
3234
3235 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
3236 which was not mentioned in the log.
3237
3238 2004-11-26 Kim F. Storm <storm@cua.dk>
3239
3240 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
3241 angle bitmaps at top/bottom line.
3242
3243 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
3244 set it when it->method is set to next_element_from_display_vector.
3245 (setup_for_ellipsis): Add LEN argument. Callers changed.
3246 Set it->saved_face_id.
3247 (get_next_display_element): Use loop instead of recursion.
3248 Set it->saved_face_id. Combine duplicate code for ctr chars.
3249 (next_element_from_display_vector): Do not set it->saved_face_id.
3250 (next_element_from_ellipsis): Use setup_for_ellipsis.
3251
3252 2004-11-26 Eli Zaretskii <eliz@gnu.org>
3253
3254 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
3255 prevent compiler warnings.
3256
3257 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
3258
3259 * keyboard.c (command_loop_1): Print a message describing the key
3260 the user just pressed when this key has no binding.
3261
3262 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
3263 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
3264
3265 * lread.c (readchar): Check QUIT when `getc' is interrupted.
3266
3267 2004-11-24 Richard M. Stallman <rms@gnu.org>
3268
3269 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
3270
3271 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
3272
3273 2004-11-24 Kim F. Storm <storm@cua.dk>
3274
3275 * xdisp.c (move_it_in_display_line_to, display_line):
3276 Restore saved_face_id also when truncate-lines or hscrolled.
3277
3278 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3279
3280 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
3281 x-use-old-gtk-file-dialog.
3282
3283 * xfns.c: Define x_use_old_gtk_file_dialog.
3284 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
3285 outside ifdef USE_GTK.
3286
3287 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
3288
3289 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
3290 Don't use XFASTINT blindly.
3291
3292 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
3293
3294 * indent.c (skip_invisible): Avoid non-idempotent side-effects
3295 in macro arguments.
3296
3297 * keymap.c (Flookup_key): Check INTEGERP before XINT.
3298
3299 * lread.c (oblookup): Don't use XFASTINT blindly.
3300
3301 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
3302 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
3303
3304 2004-11-23 Kim F. Storm <storm@cua.dk>
3305
3306 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
3307 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
3308
3309 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
3310 signal_p is zero and face name is unknown.
3311 (Fx_list_fonts): Don't signal error in lookup_named_face.
3312 (Fface_font): Signal error in lookup_named_face.
3313 (ascii_face_of_lisp_face): Likewise.
3314
3315 * dispextern.h (lookup_named_face): Fix prototype.
3316
3317 * xdisp.c (handle_single_display_prop): Don't signal error in
3318 lookup_named_face for unknown fringe face name.
3319 (highlight_trailing_whitespace): Don't signal error in
3320 lookup_named_face if trailing-whitespace face unknown.
3321 (calc_line_height_property): Don't signal error in
3322 lookup_named_face if specified face name is unknown.
3323
3324 * fringe.c (update_window_fringes): Show top row indicator if
3325 window has header-line. Don't show arrow at bob and eob
3326 if the boundary indicators are not used.
3327 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
3328
3329 * window.c (set_window_buffer): Clear display_error_modiff.
3330
3331 2004-11-22 Kim F. Storm <storm@cua.dk>
3332
3333 * fringe.c (update_window_fringes): Provide sensible fall-back
3334 value for non-nil indicate-buffer-boundaries setting.
3335
3336 2004-11-22 Markus Rost <rost@ias.edu>
3337
3338 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
3339
3340 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
3341
3342 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
3343
3344 2004-11-21 Kim F. Storm <storm@cua.dk>
3345
3346 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
3347
3348 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
3349 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3350
3351 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
3352 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3353
3354 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
3355 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
3356
3357 * xdisp.c (move_it_in_display_line_to, display_line):
3358 Restore saved_face_id if overflow-newline-into-fringe is enabled and
3359 line is continued before or in middle of element from display vector.
3360
3361 * indent.c (Fvertical_motion): Fix last change. Use another
3362 method to detect if iterator moved too far ahead after reseat.
3363
3364 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
3365 expand matrix width for overflow in zero-width area.
3366 (append_glyph, append_composite_glyph, produce_image_glyph)
3367 (append_stretch_glyph): Use it to avoid loop in redisplay.
3368 (note_mode_line_or_margin_highlight): Don't let help-echo from
3369 string override help-echo from image map.
3370
3371 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
3372
3373 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
3374 * callint.c (Fcall_interactively): Ditto.
3375
3376 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
3377
3378 * minibuf.c (Fminibuffer_complete_and_exit):
3379 Fixup the case of the completed value, for case-indep completion.
3380
3381 2004-11-20 Richard M. Stallman <rms@gnu.org>
3382
3383 * lisp.h (Fread_from_minibuffer): Add arg in decl.
3384
3385 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
3386 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
3387
3388 * search.c (Vsearch_spaces_regexp):
3389 Rename from Vsearch_whitespace_regexp. All uses changed.
3390
3391 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
3392
3393 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
3394
3395 2004-11-19 Richard M. Stallman <rms@gnu.org>
3396
3397 * search.c (Vsearch_whitespace_regexp): New variable.
3398 (syms_of_search): Defvar it.
3399 (compile_pattern_1): Call re_set_whitespace_regexp with it.
3400 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
3401 is non-nil.
3402 (struct regexp_cache): New element whitespace_regexp.
3403 (syms_of_search): Initialize whitespace_regexp elements.
3404 (compile_pattern): Compare whitespace_regexp elements.
3405 (compile_pattern_1): Set whitespace_regexp elements.
3406
3407 * regex.c (regex_compile): Substitute whitespace_regexp
3408 for spaces, if it is nonzero.
3409 (whitespace_regexp): New variable.
3410 (re_set_whitespace_regexp): New function.
3411
3412 2004-11-19 Kim F. Storm <storm@cua.dk>
3413
3414 * indent.c (Fvertical_motion): Fix last change.
3415
3416 2004-11-18 Kim F. Storm <storm@cua.dk>
3417
3418 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
3419 Instead, move back again if reseating moves too far ahead.
3420
3421 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
3422
3423 * xdisp.c (message3): Call clear_message.
3424
3425 2004-11-17 Kim F. Storm <storm@cua.dk>
3426
3427 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
3428
3429 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3430
3431 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
3432
3433 * xmenu.c (x_menu_in_use): Remove.
3434 (x_menu_set_in_use): Also set popup_activated_flag.
3435
3436 * xfns.c (Fx_file_dialog): Call popup_activated instead of
3437 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
3438
3439 * xterm.h (x_menu_in_use): Remove.
3440
3441 2004-11-16 Richard M. Stallman <rms@gnu.org>
3442
3443 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
3444 Use map-keymap-internal to implement that.
3445
3446 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
3447
3448 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
3449
3450 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
3451 a window before using XWINDOW.
3452
3453 * window.c (make_window, Fselect_window, make_dummy_parent)
3454 (save_window_save):
3455 * frame.c (make_frame):
3456 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
3457
3458 * lisp.h (NILP): Use EQ rather than XFASTINT.
3459
3460 2004-11-16 Kim F. Storm <storm@cua.dk>
3461
3462 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
3463
3464 * indent.c (Fvertical_motion): Fix last change. Only reseat when
3465 moving backwards.
3466
3467 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
3468
3469 * dispextern.h: Extern reseat_at_previous_visible_line_start.
3470
3471 2004-11-16 Kenichi Handa <handa@m17n.org>
3472
3473 * xdisp.c (display_mode_element): Fix previous change (calculate
3474 end position of substring to display correctly).
3475
3476 2004-11-16 Kim F. Storm <storm@cua.dk>
3477
3478 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
3479 Reported by Andrew M. Scott.
3480
3481 2004-11-15 Kim F. Storm <storm@cua.dk>
3482
3483 * fns.c (Fsafe_plist_get): New defun.
3484 (syms_of_fns): Defsubr it.
3485
3486 * lisp.h (Fsafe_plist_get): Add EXFUN.
3487
3488 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
3489 Use Fsafe_plist_get.
3490 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3491 Fix image map element parsing. Use Fsafe_plist_get.
3492
3493 2004-11-15 Richard M. Stallman <rms@gnu.org>
3494
3495 * xdisp.c (get_next_display_element): Fix previous change.
3496
3497 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3498
3499 * window.c (shrink_windows): Handle special case of one window left
3500 when trying to shrink the final reminder. Grow windows if
3501 total_removed is less than total_shrink.
3502
3503 * xmenu.c (pop_down_menu): Remove global variable current_menu,
3504 extract pointer from arg with XSAVE_VALUE.
3505 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
3506 Construct arg to record_unwind_protect with make_save_value.
3507
3508 2004-11-13 Richard M. Stallman <rms@gnu.org>
3509
3510 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
3511 (get_next_display_element): Fix previous change to apply only to \n.
3512
3513 * indent.c (Fvertical_motion): Scan to PT from start of line to
3514 make iterator consistent.
3515
3516 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3517
3518 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3519
3520 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
3521
3522 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
3523 Record unwind with clean_up_file_dialog.
3524
3525 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
3526 Declare.
3527
3528 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
3529
3530 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3531
3532 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
3533 (xg_file_sel_destroy): Remove.
3534 (xg_file_response_cb, pop_down_file_dialog)
3535 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
3536 New functions.
3537 (xg_get_file_with_chooser, xg_get_file_with_selection):
3538 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
3539 Move common code to xg_get_file_name. Return widget created.
3540 (xg_get_file_name): Set name, transient for, modal and destroy
3541 with parent here. Connect response signal to xg_file_response_cb,
3542 connect delete-event to gtk_true. Record pop_down_file_dialog
3543 for unwind. Do event loop and call x_menu_wait_for_event in loop.
3544 (xg_create_widget): Make dialogs modal.
3545
3546 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
3547 Lisp_Object.
3548 (popup_get_selection): Move unwind protect ...
3549 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
3550 Move destroy of widget to pop_down_menu.
3551 (popup_widget_loop): Move unwind protect ...
3552 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
3553 Move destroy of widget to pop_down_menu.
3554 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
3555 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
3556 x_mouse_leave and grabbed = 0 to pop_down_menu.
3557
3558 2004-11-13 Kim F. Storm <storm@cua.dk>
3559
3560 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
3561 (syms_of_xdisp): DEFVAR_BOOL it.
3562 (make_cursor_line_fully_visible, try_cursor_movement)
3563 (try_window_id): Use it.
3564
3565 2004-11-12 Kim F. Storm <storm@cua.dk>
3566
3567 * dispextern.h (struct glyph_row): New member extra_line_spacing.
3568 (struct it): New member max_extra_line_spacing.
3569 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
3570 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
3571 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
3572 part of last line is only extra line spacing (so the text on the
3573 line is fully visible). Use helper macros.
3574 Add W arg (to use them). All callers changed.
3575 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
3576 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
3577
3578 * window.c (window_scroll_pixel_based, Frecenter):
3579 Use move_it_vertically_backward directly.
3580 (Frecenter): Fix calculation of new start pos for negative arg.
3581 Before, the new start pos was sometimes chosen too far back, so
3582 the last line became only partially visible, and thus would be
3583 either only semi-visible or automatically scrolled to the middle
3584 of the window by redisplay.
3585
3586 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
3587 (move_it_vertically_backward): Don't recure to move further back.
3588 (move_it_vertically): Remove superfluous condition.
3589 (move_it_by_lines): Clear last_height when moved 0 lines.
3590 (resize_mini_window): Use it.max_extra_line_spacing.
3591 (display_tool_bar_line): Clear row->extra_line_spacing.
3592 (try_scrolling): Use move_it_vertically_backward directly.
3593 (redisplay_window): Likewise.
3594 (compute_line_metrics): Set row->extra_line_spacing.
3595 (display_line, display_string): Likewise.
3596 (x_produce_glyphs): Update it->max_extra_line_spacing.
3597
3598 * xmenu.c (pop_down_menu): Return nil.
3599
3600 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3601
3602 * xmenu.c (x_menu_wait_for_event): New function.
3603 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
3604 to handle timers.
3605 (popup_widget_loop): Add argument do_timers.
3606 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
3607 do_timers to popup_widget_loop.
3608 (xmenu_show): Call XMenuActivateSetWaitFunction so that
3609 x_menu_wait_for_event is called by XMenuActivate.
3610 (create_and_show_popup_menu): Pass 1 for do_timers to
3611 popup_get_selection.
3612 (pop_down_menu): New function.
3613 (popup_get_selection, popup_widget_loop): Unwind protect to
3614 pop_down_menu.
3615 (popup_widget_loop): Add argument widget.
3616 (create_and_show_popup_menu, create_and_show_dialog): Pass new
3617 argument widget to popup_widget_loop.
3618
3619 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3620
3621 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
3622
3623 2004-11-09 Kim F. Storm <storm@cua.dk>
3624
3625 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
3626 Fix various comments referring to XEvents instead of input events.
3627 (x_queue_event): Fix format strings.
3628 (x_stop_queuing_selection_requests): Likewise.
3629
3630 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
3631 (pint2hrstr): Add extra braces to silence compiler.
3632
3633 * print.c (print_object): Fix format string.
3634
3635 * lread.c (read1): Fix next_char matching.
3636
3637 * lisp.h (Fdelete): Add EXFUN.
3638 (replace_range_2): Add prototype.
3639
3640 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
3641
3642 * intervals.h (NULL_INTERVAL_P): Add separate version when
3643 ENABLE_CHECKING is not defined to silence compiler.
3644 (compare_string_intervals): Add prototype.
3645
3646 * fringe.c (destroy_fringe_bitmap): Fix return type.
3647 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
3648
3649 * emacs.c (Fdump_emacs): Fix format string.
3650
3651 * doc.c: Include <ctype.h>.
3652 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
3653
3654 * data.c (store_symval_forwarding): Remove unused variables.
3655
3656 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
3657
3658 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3659
3660 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
3661 to ${OLDXMENU}.
3662
3663 2004-11-09 Kim F. Storm <storm@cua.dk>
3664
3665 * process.c (Fmake_network_process): Remove kludge for interrupted
3666 connects on BSD. If connect is interrupted, just close socket and
3667 start over rather than sleeping and retry with same socket.
3668
3669 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3670
3671 * .cvsignore: Add buildobj.lst.
3672
3673 * doc.c: New variable Vbuild_files.
3674 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
3675 file names from buildobj.lst. Only attach docstrings from files
3676 that are in Vbuild_files.
3677 (syms_of_doc): Defvar Vbuild_files.
3678
3679 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
3680 and w32*.o.
3681 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
3682 (mostlyclean): Rm buildobj.lst
3683
3684 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
3685 is linked.
3686
3687 2004-11-09 Kim F. Storm <storm@cua.dk>
3688
3689 * fringe.c (update_window_fringes): Update fringe bitmaps if
3690 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
3691 also update previous row to get rid of misc. artifacts.
3692
3693 2004-11-08 Kim F. Storm <storm@cua.dk>
3694
3695 * xdisp.c (fast_find_position): Fix start pos if header line present.
3696 (note_mouse_highlight): Clear mouse face if we move out of text area.
3697
3698 2004-11-08 Eli Zaretskii <eliz@gnu.org>
3699
3700 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
3701 Don't include <sys/time.h> explicitly.
3702 Include <stdio.h> unconditionally, not just on MacOS.
3703
3704 2004-11-08 Kenichi Handa <handa@m17n.org>
3705
3706 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
3707 don't pay attention to '\' before '*'.
3708 (fontset_pattern_regexp): Change the meaning of the second arg.
3709 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
3710 (check_fontset_name): Try NAME as literal at first, and if it
3711 failes, try NAME as pattern.
3712
3713 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3714
3715 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
3716
3717 2004-11-07 Andreas Schwab <schwab@suse.de>
3718
3719 * lisp.h (Fmsdos_downcase_filename): Declare.
3720 * dired.c (Fmsdos_downcase_filename): Don't declare here.
3721 * fileio.c: Likewise.
3722
3723 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3724
3725 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
3726 comparisons with integers instead of Lisp_Object address.
3727 (Fmsdos_set_keyboard): Declare argument allkeys.
3728
3729 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
3730
3731 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
3732 int/Lisp_Object mixup.
3733
3734 * fileio.c: Ditto.
3735
3736 2004-11-06 Steven Tamm <steventamm@mac.com>
3737
3738 * editfns.c: Need to include sys/time.h before resource.h on darwin.
3739
3740 2004-11-06 Richard M. Stallman <rms@gnu.org>
3741
3742 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
3743
3744 * xfaces.c (merge_named_face): GCPRO the face_name in the
3745 named_merge_point struct that we make.
3746 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
3747
3748 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
3749 before deciding whether to inactivate mark.
3750
3751 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
3752
3753 * config.in: Regenerate (add HAVE_GETRUSAGE).
3754 * editfns.c (Fget_internal_run_time): New function.
3755 (syms_of_data): Defsubr it.
3756 * fns.c (sxhash): As far as possible, merge calculation of
3757 hash code for symbols and strings.
3758
3759 2004-11-06 Eli Zaretskii <eliz@gnu.org>
3760
3761 * frame.c (syms_of_frame): Fix the example in the doc string.
3762
3763 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3764
3765 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
3766
3767 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
3768 (create_and_show_dialog): Revert change from 2004-10-31.
3769
3770 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
3771
3772 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
3773
3774 2004-11-05 Kim F. Storm <storm@cua.dk>
3775
3776 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
3777
3778 * fileio.c (Ffile_modes): Doc fix.
3779 (auto_save_1): Check for Ffile_modes nil value.
3780
3781 2004-11-05 Kim F. Storm <storm@cua.dk>
3782
3783 * xselect.c (struct selection_event_queue, selection_queue)
3784 (x_queue_selection_requests, x_queue_event)
3785 (x_start_queuing_selection_requests)
3786 (x_stop_queuing_selection_requests): Add new queue for selection
3787 input events to replace previous XEvent queue in xterm.c.
3788 (queue_selection_requests_unwind): Adapt to new queue.
3789 (x_reply_selection_request): Adapt to new queue.
3790 Unexpect wait_object in case of x errors (memory leak).
3791 (x_handle_selection_request, x_handle_selection_clear): Make static.
3792 (x_handle_selection_event): New function. May queue selection events.
3793 (wait_for_property_change_unwind): Use save_value instead of cons.
3794 Clear property_change_reply_object.
3795 (wait_for_property_change): Abort if already waiting.
3796 Use save_value instead of cons for unwind data.
3797 (x_handle_property_notify): Skip events already arrived, but don't
3798 free them, as "arrived" field is checked by wait_for_property_change,
3799 and it will be freed by unwind or explicit unexpect_property_change.
3800 (x_get_foreign_selection): Add to new queue.
3801 (receive_incremental_selection): Don't unexpect wait_object when done
3802 as it has already been freed by previous wait_for_property_change.
3803
3804 * xterm.h (x_start_queuing_selection_requests)
3805 (x_stop_queuing_selection_requests, x_handle_selection_request)
3806 (x_handle_selection_clear): Remove prototypes.
3807 (x_handle_selection_event): Add prototype.
3808
3809 * xterm.c (handle_one_xevent): Don't queue X selection events
3810 here, it may be too late if we start queuing after we have already
3811 stored some selection events into the kbd buffer.
3812 (struct selection_event_queue, queue, x_queue_selection_requests)
3813 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
3814 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
3815 (x_catch_errors_unwind): Block input around final XSync.
3816
3817 * keyboard.h (kbd_buffer_unget_event): Add prototype.
3818
3819 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
3820 (kbd_buffer_unget_event): New function.
3821 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
3822 and use x_handle_selection_event.
3823 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
3824
3825 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3826
3827 * xselect.c (TRACE3): New debug macro.
3828 (x_reply_selection_request): Use it.
3829 (receive_incremental_selection): In call to TRACE0, the name of
3830 a symbol is in xname.
3831
3832 2004-11-05 Kim F. Storm <storm@cua.dk>
3833
3834 * fontset.c (fontset_pattern_regexp): Use unsigned char.
3835
3836 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3837
3838 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
3839
3840 * gtkutil.h (use_old_gtk_file_dialog): Declare.
3841
3842 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
3843 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
3844 * xfns.c (syms_of_xfns): ... to here.
3845
3846 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
3847 it doesn't start with /.
3848
3849 2004-11-04 Kenichi Handa <handa@m17n.org>
3850
3851 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
3852 treat it as a literal character.
3853
3854 2004-11-03 Kim F. Storm <storm@cua.dk>
3855
3856 * .gdbinit (ppt): New function.
3857
3858 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3859
3860 * xterm.c (x_window_to_scroll_bar): Only call
3861 xg_get_scroll_id_for_window if toolkit scroll bars are used.
3862
3863 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
3864 of save.
3865
3866 2004-11-02 Andreas Schwab <schwab@suse.de>
3867
3868 * window.c (Fscroll_right): Fix last change.
3869
3870 2004-11-02 Kim F. Storm <storm@cua.dk>
3871
3872 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
3873
3874 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3875
3876 * callproc.c (Fcall_process): Block input around vfork.
3877
3878 2004-11-02 Kim F. Storm <storm@cua.dk>
3879
3880 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
3881 (syms_of_eval): Defsubr it.
3882
3883 2004-11-02 Richard M. Stallman <rms@gnu.org>
3884
3885 * insdel.c (replace_range_2): New function.
3886
3887 * casefiddle.c (casify_region): Handle changes in byte-length
3888 using replace_range_2.
3889
3890 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
3891
3892 * xdisp.c (back_to_previous_visible_line_start):
3893 Subtract 1 from pos when checking previous newline for invisibility.
3894
3895 * window.c (window_scroll_pixel_based): Update preserve_y
3896 for header line if any.
3897 (Fscroll_left, Fscroll_right): Don't call interactive_p;
3898 use a new second argument instead.
3899
3900 * eval.c (Fcall_interactive_p): New function.
3901 (interactive_p): Don't test INTERACTIVE here.
3902 (Finteractive_p): Doc fix.
3903
3904 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
3905
3906 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3907
3908 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
3909 comparing font names.
3910
3911 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3912
3913 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
3914 Fx_file_dialog if only directories should be read.
3915
3916 * lisp.h: Fx_file_dialog takes 5 parameters.
3917
3918 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
3919 Add parameter only_dir_p.
3920 In Motif version, don't put DEFAULT_FILENAME in filter part of the
3921 dialog, just text field part. Do not add DEFAULT_FILENAME
3922 to list of files if it isn't there.
3923 In GTK version, pass only_dir_p parameter to xg_get_file_name.
3924
3925 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
3926 Check only_dir_p instead of comparing prompt to "Dired". When using
3927 a save dialog, add option kNavDontConfirmReplacement, change title
3928 to "Enter name", change text for save button to "Ok".
3929
3930 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
3931 Check only_dir_p instead of comparing prompt to "Dired".
3932
3933 * gtkutil.c (xg_get_file_with_chooser)
3934 (xg_get_file_with_selection): New functions, only defined ifdef
3935 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
3936 respectively.
3937 (xg_get_file_name): Add parameter only_dir_p.
3938 Call xg_get_file_with_chooser or xg_get_file_with_selection
3939 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
3940 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
3941
3942 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
3943
3944 * config.in: Rebuild (added HAVE_GTK_FILE_*).
3945
3946 2004-11-01 Kim F. Storm <storm@cua.dk>
3947
3948 * process.c (connect_wait_mask, num_pending_connects):
3949 Only declare and use them if NON_BLOCKING_CONNECT is defined.
3950 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
3951 (IF_NON_BLOCKING_CONNECT): New helper macro.
3952 (wait_reading_process_output): Only declare and use local vars
3953 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
3954
3955 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
3956
3957 * w32term.c (x_scroll_run): Delete region objects after use.
3958
3959 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3960
3961 * xmenu.c: Add prototypes for forward function declarations.
3962 (popup_get_selection): Remove parameter do_timers, remove call to
3963 timer_check.
3964 (create_and_show_popup_menu, create_and_show_dialog):
3965 Remove parameter do_timers from call to popup_get_selection.
3966
3967 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
3968 tool_bar_items and assign the result to f->tool_bar_items if
3969 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
3970 tool_bar_items to assignment of result.
3971
3972 * atimer.c (alarm_signal_handler): Do not call set_alarm if
3973 pending_atmers is non-zero.
3974
3975 2004-10-31 Kim F. Storm <storm@cua.dk>
3976
3977 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
3978
3979 2004-10-28 Will <will@glozer.net>
3980
3981 * macterm.c: allow user to assign key modifiers to the Mac Option
3982 key via a 'mac-option-modifier' variable.
3983
3984 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3985
3986 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
3987 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
3988 (x_handle_selection_request, x_handle_selection_clear)
3989 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
3990
3991 2004-10-28 Richard M. Stallman <rms@gnu.org>
3992
3993 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
3994
3995 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
3996
3997 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
3998
3999 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
4000 comment-starter over a 1-char one.
4001
4002 2004-10-27 Richard M. Stallman <rms@gnu.org>
4003
4004 * xdisp.c (get_next_display_element): In mode lines,
4005 treat newline and tab like other control characters.
4006
4007 * editfns.c (Fmessage): Doc fix.
4008
4009 * indent.c (vmotion): When moving up, check the newline before.
4010 Make prevline an int, not a Lisp_Object.
4011
4012 2004-10-27 Kim F. Storm <storm@cua.dk>
4013
4014 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
4015 Only allocate info and discarded tables once.
4016
4017 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
4018 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
4019 (SAFE_FREE): Test it to determine if we need to unwind to free.
4020 Remove size arg. All users changed.
4021 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
4022
4023 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4024
4025 * gtkutil.c: Put empty line between comment and function body.
4026 (xg_destroy_widgets): Rename from remove_from_container.
4027 Just destroy all widgets in list. Argument wcont removed.
4028 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
4029 instead of remove_from_container.
4030 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
4031 (free_frame_tool_bar): Add comment.
4032
4033 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
4034 is not NULL before strcmp.
4035
4036 2004-10-26 Kim F. Storm <storm@cua.dk>
4037
4038 * callint.c (Fcall_interactively): Add 'U' code to get the
4039 up-event discarded by a previous 'k' or 'K' argument.
4040
4041 2004-10-26 David Kastrup <dak@gnu.org>
4042
4043 * buffer.c (syms_of_buffer): Fix a few typos.
4044
4045 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4046
4047 * xsmfns.c: Put empty line between comment and function body.
4048 Use two spaces before comment end.
4049
4050 2004-10-25 Kenichi Handa <handa@m17n.org>
4051
4052 * fontset.c (fontset_pattern_regexp): Optimize for the case that
4053 PATTERN is full XLFD.
4054
4055 2004-10-24 Kenichi Handa <handa@m17n.org>
4056
4057 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
4058
4059 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
4060 (regex_compile): Return REG_ERANGEX if appropriate.
4061
4062 2004-10-22 Kenichi Handa <handa@m17n.org>
4063
4064 * editfns.c (Ftranslate_region_internal): New function.
4065 (syms_of_editfns): Defsubr it.
4066
4067 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4068
4069 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
4070
4071 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
4072
4073 * xterm.h (x_output): New member `xic_base_fontname'.
4074 (FRAME_XIC_BASE_FONTNAME): New macro.
4075 (xic_free_xfontset): Declare.
4076
4077 * xfns.c (xic_create_xfontset): Share fontsets between frames
4078 based on base_fontname.
4079 (xic_free_xfontset): New function.
4080 (free_frame_xic): Use it.
4081 (xic_set_xfontset): Ditto.
4082
4083 * xterm.c (xim_destroy_callback): Ditto.
4084
4085
4086 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
4087
4088 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
4089
4090 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4091
4092 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
4093 XSync.
4094
4095 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
4096 New variables and constant.
4097 (main): Calculate heap_bss_diff. If we are dumping and the
4098 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
4099 and exec ourself again.
4100 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
4101 print a warning.
4102
4103 * lastfile.c: Make my_endbss and my_endbss_static available on all
4104 platforms.
4105
4106 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
4107 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
4108
4109 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
4110
4111 * data.c (Flocal_variable_if_set_p): Doc fix.
4112
4113 2004-10-19 Jason Rumney <jasonr@gnu.org>
4114
4115 * w32.c (init_environment): Set emacs_dir correctly when running
4116 emacs from the build directory.
4117
4118 2004-10-19 Richard M. Stallman <rms@gnu.org>
4119
4120 * editfns.c (Fdelete_and_extract_region):
4121 If region is empty, return null string.
4122
4123 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4124
4125 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
4126 and canon_width.
4127 (xg_frame_cleared): Remove.
4128
4129 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
4130 (xg_find_top_left_in_fixed): Remove.
4131 (xg_create_scroll_bar): Put an event box widget between
4132 the scroll bar widget and the edit widget.
4133 (xg_show_scroll_bar): Show the parent widget (the event box).
4134 (xg_remove_scroll_bar): Destroy parent (the event box) also.
4135 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
4136 Move the parent (the event box) widget inside the fixed widget.
4137 Move window clear to xterm.c.
4138
4139 * gtkutil.h (xg_frame_cleared): Remove.
4140
4141 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
4142 (x_scroll_bar_create, XTset_vertical_scroll_bar):
4143 Remove arguments left and width to xg_update_scrollbar_pos.
4144 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
4145
4146 2004-10-19 Kenichi Handa <handa@m17n.org>
4147
4148 * xdisp.c (display_mode_element): Fix display of wide chars.
4149
4150 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4151
4152 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
4153 gdk_window_clear and move gdk_window_process_all_updates after
4154 clear so events are sent to the X server in correct order.
4155
4156 2004-10-18 Kenichi Handa <handa@m17n.org>
4157
4158 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
4159 comparing font names.
4160 (fs_query_fontset): Use fast_string_match for comparing fontset names.
4161 (list_fontsets): Likewise.
4162
4163 * search.c (fast_string_match_ignore_case): New function.
4164
4165 * lisp.h (fast_string_match_ignore_case): Extern it.
4166
4167 2004-10-17 Kim F. Storm <storm@cua.dk>
4168
4169 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
4170 than bitmap if there is not left fringe.
4171 (get_overlay_arrow_glyph_row): Also used on windows system.
4172 (display_line): Display overlay string if no left fringe.
4173
4174 2004-10-16 Jason Rumney <jasonr@gnu.org>
4175
4176 * w32fns.c (w32_font_match): Encode font name being matched.
4177
4178 2004-10-16 Richard M. Stallman <rms@gnu.org>
4179
4180 * window.c (Fspecial_display_p): Doc fix.
4181
4182 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
4183
4184 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
4185 Don't ignore menus, because where-is-internal already does it for us.
4186
4187 2004-10-15 Kim F. Storm <storm@cua.dk>
4188
4189 * xdisp.c (redisplay_window): Only update fringes and vertical
4190 border on window frames.
4191
4192 2004-10-14 Andreas Schwab <schwab@suse.de>
4193
4194 * m/ia64.h (DATA_SEG_BITS): Don't define.
4195
4196 2004-10-14 Kim F. Storm <storm@cua.dk>
4197
4198 * xterm.h: Include Xutil.h after keysym.h to work around bug
4199 in some X versions.
4200
4201 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
4202
4203 * fns.c (map_char_table): Add missing gcpros.
4204
4205 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
4206
4207 * keymap.c (get_keymap): An autoload form is not a keymap.
4208
4209 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
4210
4211 2004-10-13 Kim F. Storm <storm@cua.dk>
4212
4213 * callproc.c (Fcall_process): Simplify handling of display arg.
4214 Resume `display_on_the_fly' once a coding system is determined.
4215
4216 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
4217
4218 2004-10-12 Kim F. Storm <storm@cua.dk>
4219
4220 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
4221 caller, such as call-process, is not going to poll for input.
4222 (calc_line_height_property): Handle case where it->object is nil.
4223
4224 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
4225
4226 2004-10-12 Kenichi Handa <handa@m17n.org>
4227
4228 * xdisp.c (get_next_display_element):
4229 If unibyte_display_via_language_environment is zero, display 8-bit
4230 chars in octal in unibyte buffer.
4231
4232 2004-10-12 Kim F. Storm <storm@cua.dk>
4233
4234 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
4235 are no ordinary bindings.
4236
4237 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4238
4239 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
4240
4241 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4242
4243 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
4244 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
4245 (make_mac_frame): Add BLOCK_INPUT around the making of a
4246 terminal frame.
4247 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
4248 * macgui.h (mktime): Use emacs_mktime.
4249 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
4250 Make a cancel file-open dialog be like C-g.
4251 * mac.c (mktime): Use emacs_mktime.
4252 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
4253 (Fmac_paste_function): Add better error handling for carbon cut/paste.
4254
4255 2004-10-10 Kim F. Storm <storm@cua.dk>
4256
4257 * keyboard.c (timer_resume_idle): New function to resume idle
4258 timer without resetting timers on the idle list.
4259 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
4260 (timer_start_idle, timer_stop_idle): Declare static.
4261 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
4262
4263 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
4264
4265 2004-10-08 Steven Tamm <steventamm@mac.com>
4266
4267 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
4268 * macterm.c (mac_check_for_quit_char): Remove warning for using
4269 NULL where 0 should be used.
4270 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
4271 objc/malloc.h
4272 * mac.c: Include time.h for Tiger compatibility.
4273
4274 2004-10-07 Kim F. Storm <storm@cua.dk>
4275
4276 * xdisp.c (redisplay_window): Fix flicker on vertical line between
4277 windows. Update vertical line after drawing window fringes, but
4278 only if actually drawing any bitmaps--or there is no fringe.
4279
4280 * xterm.c (x_update_window_end): Likewise.
4281 * macterm.c (x_update_window_end): Likewise.
4282 * w32term.c (x_update_window_end): Likewise.
4283
4284 * fringe.c (draw_window_fringes): Return value now indicates if
4285 any fringe bitmaps were redrawn (or there are no fringes).
4286
4287 * dispextern.h (draw_window_fringes): Update prototype.
4288
4289 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4290
4291 * macfns.c (mac_get_window_bounds): Add extern.
4292 (x_real_positions): Use mac_get_window_bounds.
4293
4294 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
4295 xmenu.c (YAILOM).
4296
4297 * macterm.c [!MAC_OSX]: Include Windows.h.
4298 (front_emacs_window): Rename from mac_front_window. All uses
4299 changed. Return the frontmost non-tooltip emacs window.
4300 (mac_get_window_bounds): New function.
4301 (x_calc_absolute_position): Use the difference of width and height
4302 between the inner and outer window.
4303 (x_set_offset): Specify window position by the coordinae of the
4304 outer window. Adjust the position if the title bar is completely
4305 outside the screen.
4306 (app_is_suspended, app_sleep_time): Remove unused variables.
4307 (do_app_resume, do_app_suspend): Remove their contents because
4308 window-activate/deactivate events will do the job.
4309 (do_zoom_window): Remove unused variables. Make compliant to the
4310 standard way of zooming. Set f->left_pos and f->top_pos.
4311 (XTread_socket): Don't use argument `expected'. Don't use
4312 FrontWindow to determine the clicked window. Exclude unprocessed
4313 mouseUp cases in the early stage. Add parentheses to fix operator
4314 precedence.
4315 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
4316
4317 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
4318
4319 * config.in: Regenerate.
4320
4321 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
4322 HAVE_EXECSHIELD.
4323
4324 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4325
4326 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
4327 a row if Alt or Meta has been found for that row. Also stop scanning
4328 for Keysyms for that row.
4329
4330 2004-10-04 Kim F. Storm <storm@cua.dk>
4331
4332 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
4333 to list. Include overlay arrow bitmap in return value.
4334
4335 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
4336 bars with fractional column width. If scroll bar separates two
4337 windows, move it towards the window it belongs to. Only update
4338 the padding area below the scroll bar widget when necessary,
4339 i.e. when scroll bar widget is created, moved, or resized.
4340
4341 * xdisp.c (define_frame_cursor1): Do not change frame cursor
4342 while tracking/dragging mouse.
4343 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
4344
4345 * window.c (coordinates_in_window): Relax check for cursor
4346 on vertial border between mode lines.
4347 (Fset_window_fringes): Do not allow negative widths.
4348 (Fset_window_scroll_bars): Likewise.
4349
4350 * .gdbinit (pp): Shorthand for p ARG + pr.
4351 (ff): New command: flush frame updates (X only).
4352
4353 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
4354
4355 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
4356
4357 2004-09-30 Kenichi Handa <handa@m17n.org>
4358
4359 * process.c (send_process): Free composition data.
4360
4361 * fileio.c (Finsert_file_contents): Free composition data.
4362
4363 * coding.c (code_convert_region): Don't skip ASCIIs if there are
4364 compositions to encode.
4365 (encode_coding_string): Likewise. Free composition data.
4366
4367 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
4368
4369 * coding.c (code_convert_region): Free composition data.
4370
4371 2004-09-29 Kim F. Storm <storm@cua.dk>
4372
4373 * fringe.c: Remove limit on number of bitmaps.
4374 (fringe_bitmaps, fringe_faces): Change to pointers.
4375 (max_fringe_bitmaps): New var.
4376 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
4377 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
4378
4379 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
4380 (struct glyph_row): Reorder fringe_bitmap related fields.
4381 (struct it): Likewise.
4382
4383 * w32term.c (fringe_bmp): Change to pointer.
4384 (max_fringe_bmp): New var.
4385 (w32_define_fringe_bitmap): Expand fringe_bmp.
4386 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
4387 (w32_destroy_fringe_bitmap): Likewise.
4388
4389 2004-09-29 Kim F. Storm <storm@cua.dk>
4390
4391 * fringe.c: Simplify last change.
4392 (lookup_fringe_bitmap): New function.
4393 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
4394 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
4395 Keep standard bitmaps in Vfringe_bitmaps.
4396 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
4397 (Fset_fringe_bitmap_face): Likewise.
4398
4399 * dispextern.h (lookup_fringe_bitmap): Add prototype.
4400 (valid_fringe_bitmap_p): Remove prototype.
4401
4402 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
4403
4404 2004-09-29 Kim F. Storm <storm@cua.dk>
4405
4406 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
4407 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
4408
4409 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
4410
4411 * fringe.c (Vfringe_bitmaps): New variable.
4412 (syms_of_fringe): DEFVAR_LISP it.
4413 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
4414 Change arg to Lisp_Object and fail if not an integer.
4415 (get_fringe_bitmap_name, resolve_fringe_bitmap)
4416 (destroy_fringe_bitmap): New functions.
4417 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
4418 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
4419 clear its fringe property.
4420 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
4421 Fdestroy_fringe_bitmap.
4422 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
4423 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
4424 and set fringe property. Signal error if no free slots.
4425 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
4426 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
4427
4428 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
4429 symbols with a fringe property.
4430
4431 2004-09-27 Kim F. Storm <storm@cua.dk>
4432
4433 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
4434 Doc fix. Format may now be a symbol or alist, not a cons.
4435
4436 * fringe.c (update_window_fringes): Handle new formats of
4437 indicate-buffer-boundaries (symbol or alist). No longer
4438 allow a simple cons.
4439 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
4440
4441 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4442
4443 * config.in: Rebuild.
4444
4445 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4446
4447 * config.in: Rebuild.
4448
4449 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
4450
4451 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
4452
4453 * xterm.c (x_term_init): Work around a bug in some X servers.
4454
4455 2004-09-18 Richard M. Stallman <rms@gnu.org>
4456
4457 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
4458
4459 * xdisp.c (try_window_reusing_current_matrix):
4460 Handle the case where we reach the old displayed text,
4461 out of sync with the old line boundary.
4462
4463 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4464
4465 * fileio.c (Finsert_file_contents): Fix case of replacement in a
4466 narrowed buffer.
4467
4468 2004-09-14 Kim F. Storm <storm@cua.dk>
4469
4470 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
4471
4472 * xfaces.c (Qface_no_inherit): New var.
4473 (syms_of_xfaces): Intern and staticpro it.
4474 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
4475 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
4476 Don't increment face_change_count when face has non-nil
4477 face-no-inherit property.
4478
4479 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
4480
4481 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
4482 (Fbyte_code): Remove dead code after `wrong_type_argument'.
4483
4484 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
4485 before doing the mark_stack_check_gcpros since they're not on the stack.
4486
4487 2004-09-12 Kim F. Storm <storm@cua.dk>
4488
4489 * editfns.c (Fformat): Handle format strings with multiple text
4490 properties. Reverse text property list from the format string,
4491 so the positions are in increasing order.
4492
4493 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4494
4495 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
4496 x_uncatch_errors so that possible protocol errors are delivered.
4497
4498 2004-09-10 Eli Zaretskii <eliz@gnu.org>
4499
4500 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
4501 blockinput.h.
4502 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
4503 charset.h, and coding.h
4504 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
4505 (term.o): Depend on window.h and keymap.h.
4506 (abbrev.o): Depend on syntax.h.
4507 (callint.o): Depend on keymap.h.
4508 (casefiddle.o): Depend on charset.h and keymap.h.
4509 (category.o): Depend on keymap.h.
4510 (coding.o): Depend on dispextern.h.
4511 (cmds.o): Depend on keyboard.h and keymap.h.
4512 (dispnew.o): Depend on indent.h and intervals.h.
4513 (doc.o): Depend on keymap.h.
4514 (editfns.o): Depend on frame.h.
4515 (emacs.o): Depend on dispextern.h.
4516 (fileio.o): Don't depend on ccl.h.
4517 (filelock.o): Depend on charset.h and coding.h.
4518 (frame.o): Depend on w32term.h and macterm.h.
4519 (insdel.o): Depend on region-cache.h.
4520 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
4521 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
4522 (search.o): Depend on $(INTERVALS_SRC).
4523 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
4524 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
4525 xterm.h, w32term.h, and macterm.h.
4526 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
4527 w32term.h, and macterm.h.
4528 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
4529 region-cache.h, xterm.h, w32term.h, and macterm.h.
4530 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
4531 (data.o): Depend on frame.h.
4532 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
4533 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
4534 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
4535 (intervals.o): Depend on keymap.h.
4536
4537 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
4538 Add debugging print-out to termscript.
4539
4540 2004-09-09 Richard M. Stallman <rms@gnu.org>
4541
4542 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
4543
4544 2004-09-08 Richard M. Stallman <rms@gnu.org>
4545
4546 * window.c (Fset_window_buffer): Doc fix.
4547
4548 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
4549
4550 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
4551
4552 * minibuf.c (history_delete_duplicates): New variable.
4553 (read_minibuf): Use it.
4554 (syms_of_minibuf): Create the corresponding lisp variable.
4555
4556 2004-09-08 Kim F. Storm <storm@cua.dk>
4557
4558 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
4559 overlay just before point.
4560
4561 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
4562
4563 * buffer.h (struct buffer): Add auto_save_file_format field.
4564 * buffer.c (reset_buffer, init_buffer_once):
4565 Handle auto_save_file_format field.
4566 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
4567 `buffer-auto-save-file-format'.
4568 * fileio.c: Delete declaration for removed Vauto_save_file_format.
4569 (build_annotations): Adapt to replacement of
4570 `auto-save-file-format' with the new buffer-local variable
4571 `buffer-auto-save-file-format'.
4572 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
4573
4574 2004-09-07 Jason Rumney <jasonr@gnu.org>
4575
4576 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
4577
4578 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
4579 Handle Unicode menu titles.
4580
4581 2004-09-07 Kim F. Storm <storm@cua.dk>
4582
4583 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
4584 property from text property or overlay strings at point.
4585
4586 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
4587
4588 * xmenu.c (update_submenu_strings): YAILOM.
4589 (set_frame_menubar): Make sure last_i is initialized.
4590
4591 2004-09-03 Jason Rumney <jasonr@gnu.org>
4592
4593 * w32menu.c (_widget_value): Add lname and lkey.
4594 (digest_single_submenu): Set lname and lkey in widget_value
4595 instead of name and key.
4596 (update_submenu_strings): New function.
4597 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4598 call update_submenu_strings.
4599
4600 * w32menu.c (globals_of_w32menu): Check for Unicode API.
4601 (digest_single_submenu, w32_menu_show): Encode menu strings as
4602 UTF-8 if Unicode API is available.
4603 (utf8to16): New function.
4604 (add_menu_item): Use it when calling Unicode API.
4605
4606 2004-09-03 Kim F. Storm <storm@cua.dk>
4607
4608 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
4609 in overlay or text-property strings; set cursor on corresponding
4610 glyph rather than at end of the string.
4611
4612 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4613
4614 * macfns.c (x_real_positions): Save the current window port and
4615 set a new one before obtaining the global coordinate.
4616 Use FRAME_MAC_WINDOW.
4617 (x_set_name, x_set_title): Encode title to UTF8.
4618 Use SetWindowTitleWithCFString.
4619 (Fx_server_version): Get correct OS version.
4620
4621 * macmenu.c (add_menu_item): Remove unused variable `i'.
4622 Don't let separator items destroy refence constants of other menu items.
4623
4624 * macterm.c (x_update_end): Move SetPortWindowPort to inside
4625 BLOCK_INPUT.
4626 (x_set_offset): Use FRAME_MAC_WINDOW.
4627
4628 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
4629 nontext_cursor if it is on a scroll bar.
4630
4631 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
4632 Carbon support.
4633 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
4634 Use LIBS_CARBON.
4635
4636 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4637
4638 * xfns.c (x_set_name_internal): New function. Check if we shall call
4639 xfree before ENCODE_UTF_8.
4640 (x_set_name, x_set_title): Call x_set_name_internal.
4641
4642 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
4643
4644 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
4645 reload it.
4646
4647 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4648
4649 * macmenu.c (_widget_value): Add lname and lkey.
4650 (single_submenu): Set lname and lkey in widget_value
4651 instead of name and key.
4652 (update_submenu_strings): New function.
4653 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4654 call update_submenu_strings.
4655
4656 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
4657 instead of name and key.
4658 (update_submenu_strings): New function.
4659 (set_frame_menubar): Remove call to inhibit_garbage_collection,
4660 call update_submenu_strings.
4661
4662 * gtkutil.h (_widget_value): Added lname and lkey.
4663
4664 2004-08-30 Steven Tamm <steventamm@mac.com>
4665
4666 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
4667 by using different names for inner loop variables.
4668
4669 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4670
4671 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
4672 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
4673
4674 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
4675 tool bar items is 0.
4676
4677 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4678
4679 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
4680 strings in menu items.
4681 (single_submenu): Use ENCODE_MENU_STRING
4682 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
4683 button release isn't passed to event loop
4684 (add_menu_item): Use SetMenuItemWithCFString
4685
4686 2004-08-26 Steven Tamm <steventamm@mac.com>
4687
4688 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
4689 tool-bar/menu click.
4690 * macfns.c (Fx_file_dialog): Implement using NavServices.
4691
4692 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4693
4694 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
4695
4696 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4697 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4698 (x_top_window_to_frame): Return 0 if wdesc is None.
4699
4700 2004-08-22 Richard M. Stallman <rms@gnu.org>
4701
4702 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
4703 HAVE_TERMIOS]: If there's no char for this signal, drop through
4704 and use system calls.
4705
4706 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
4707
4708 2004-08-20 Kim F. Storm <storm@cua.dk>
4709
4710 * process.c (wait_reading_process_output): Rename from
4711 wait_reading_process_input. All uses changed.
4712 (wait_reading_process_output_1): Rename from
4713 wait_reading_process_input_1. All uses changed.
4714
4715 * dispnew.c (Fsleep_for): Remove obsolete code.
4716
4717 2004-08-20 Kenichi Handa <handa@m17n.org>
4718
4719 * syntax.c (skip_chars): Fix for unibyte case.
4720
4721 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4722
4723 * syntax.c (char_quoted): Mixup byte/char pos.
4724 (back_comment): Fixup globals in all cases.
4725
4726 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4727
4728 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
4729 passing it to gtk_window_set_title.
4730
4731 2004-08-19 Kim F. Storm <storm@cua.dk>
4732
4733 * process.c (wait_reading_process_input): Clean up.
4734 Add wait_for_cell, wait_proc, and just_wait_proc args
4735 to avoid overloading `read_kbd' and `do_display' args.
4736 Change read_kbd arg to int. All callers changed.
4737
4738 * process.c (process_send_signal): Use CDISABLE.
4739
4740 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
4741
4742 2004-08-18 Kim F. Storm <storm@cua.dk>
4743
4744 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
4745 forward to wait_reading_process_input via DO_DISPLAY arg.
4746 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
4747 object, only process output from that process; also inhibit
4748 running timers if DO_DISPLAY==-2.
4749
4750 2004-08-17 Kim F. Storm <storm@cua.dk>
4751
4752 * process.c (process_send_signal): Fix last change--use
4753 _POSIX_VDISABLE instead of CVDISABLE when available.
4754
4755 2004-08-16 Richard M. Stallman <rms@gnu.org>
4756
4757 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
4758 Set VQUIT and VINTR chars to the standard ones if they are unset.
4759 [AIX]: Don't do that here. And don't force VINTR to standard
4760 when SIGNALS_VIA_CHARACTERS.
4761
4762 * process.c (process_send_signal)
4763 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
4764 Do nothing if the character is CVDISABLE.
4765
4766 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
4767
4768 * intervals.c (move_if_not_intangible):
4769 Force POSITION to be between BEGV and ZV.
4770
4771 2004-08-14 John Paul Wallington <jpw@gnu.org>
4772
4773 * buffer.c (Frestore_buffer_modified_p): Doc fix.
4774
4775 * fileio.c (Fread_file_name): Doc fix.
4776
4777 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
4778
4779 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
4780
4781 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
4782
4783 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
4784
4785 * keyboard.c: Declare Qdisabled_command_function instead of
4786 Qdisabled_command_hook.
4787 (Fcommand_execute): Use Qdisabled_command_function instead of
4788 Qdisabled_command_hook.
4789 (syms_of_keyboard): Ditto.
4790
4791 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
4792
4793 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
4794 (syms_of_keymap) <key-translation-map>: Doc fixes.
4795
4796 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
4797
4798 * window.c (window_list_1): YAILOM.
4799
4800 * fileio.c (make_temp_name): Handle multibyte prefixes.
4801
4802 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
4803
4804 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4805 Doc fix.
4806
4807 2004-08-03 Kenichi Handa <handa@m17n.org>
4808
4809 * coding.c (decode_coding_string): Adjust coding->consumed, and
4810 etc. with shrinked_bytes.
4811
4812 2004-08-03 Kim F. Storm <storm@cua.dk>
4813
4814 * indent.c (compute_motion): Fix check for full width window
4815 in non-window case. Do not count left truncation glyph on
4816 window systems.
4817
4818 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
4819
4820 * data.c (Finteractive_form): Doc fix.
4821
4822 2004-08-02 Kim F. Storm <storm@cua.dk>
4823
4824 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
4825 properly accounting for continuation glyph on non-window systems.
4826 (Fcompute_motion): Use actual window width if WIDTH is nil, and
4827 actual window width/height if TOPOS is nil, properly accounting for
4828 continuation glyphs on non-window systems, and optional header lines.
4829 (vmotion): Let compute_motion calculate actual window width.
4830
4831 * window.c (window_scroll_line_based): Let compute_motion
4832 calculate actual window width.
4833
4834 2004-08-02 Kim F. Storm <storm@cua.dk>
4835
4836 * process.c (read_process_output): Use whole read buffer.
4837 Don't trigger adaptive read buffering on errors.
4838
4839 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
4840
4841 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
4842
4843 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
4844
4845 * callint.c (Fcall_interactively): Doc fix.
4846
4847 2004-07-30 Richard M. Stallman <rms@gnu.org>
4848
4849 * abbrev.c (Fexpand_abbrev): Undo previous change.
4850
4851 2004-07-30 Kim F. Storm <storm@cua.dk>
4852
4853 * editfns.c (Fformat): Allocate extra (dummy) element in info.
4854
4855 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
4856
4857 * eval.c (Fdefvar, Fdefconst): Doc fixes.
4858
4859 2004-07-27 Kim F. Storm <storm@cua.dk>
4860
4861 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
4862 we have ensured that the glyph fits on the current line (or returned
4863 MOVE_LINE_CONTINUED otherwise).
4864
4865 2004-07-26 Kim F. Storm <storm@cua.dk>
4866
4867 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
4868 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
4869 if target position is at end of display line but char is not a newline.
4870
4871 2004-07-25 Richard M. Stallman <rms@gnu.org>
4872
4873 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
4874 instead of ON_VERTICAL_BORDER, when on scroll bar.
4875 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
4876
4877 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
4878
4879 * window.c (Fcoordinates_in_window_p):
4880 Take account of FRAME_INTERNAL_BORDER_WIDTH.
4881
4882 * alloc.c (check_cons_list): New function (contents commented out).
4883
4884 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
4885
4886 * xfaces.c (Fcolor_supported_p): Doc fix.
4887
4888 * frame.c (Fselect_frame, Fset_frame_selected_window)
4889 (Fframe_visible_p, Fraise_frame): Doc fixes.
4890
4891 2004-07-24 Richard M. Stallman <rms@gnu.org>
4892
4893 * keyboard.h (not_single_kboard_state): Declare.
4894
4895 * fileio.c (Fwrite_region): Doc fix.
4896
4897 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
4898
4899 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
4900 only when a real abbrev is present.
4901
4902 * xfns.c (x_icon_verify): New function.
4903 (Fx_create_frame): Use it.
4904
4905 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
4906
4907 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
4908
4909 2004-07-21 Kim F. Storm <storm@cua.dk>
4910
4911 * window.h (struct glyph_matrix): New members nrows_scale_factor
4912 and ncols_scale_factor.
4913
4914 * window.c (make_window): Initialize nrows_scale_factor and
4915 ncols_scale_factor members.
4916
4917 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
4918 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
4919 (required_matrix_height): Apply nrows_scale_factor.
4920 (required_matrix_width): Apply ncols_scale_factor.
4921
4922 * xdisp.c (display_line): Increment nrows_scale_factor and set
4923 fonts_changed_p if past last allocated row.
4924 (append_glyph, append_composite_glyph, produce_image_glyph)
4925 (append_stretch_glyph): Increment ncols_scale_factor and set
4926 fonts_changed_p if current area is full.
4927
4928 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4929
4930 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
4931
4932 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
4933
4934 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
4935 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
4936 (Fset_window_start, Fscroll_up, Fscroll_down)
4937 (Fother_window_for_scrolling, Fscroll_other_window)
4938 (Fsave_window_excursion, Fset_window_vscroll)
4939 (syms_of_window) <window-size-fixed>: Doc fixes.
4940
4941 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
4942
4943 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
4944 ENCODE_SYSTEM for filenames.
4945
4946 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4947
4948 * mac.c (sys_select): Block input around call to
4949 ReceiveNextEvent to prevent breakage. Correctly handle
4950 blocking on event queue only by calling ReceiveNextEvent
4951 instead of select (since GUI events aren't on an fd).
4952 (sys_read): Remove function
4953 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
4954
4955 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4956
4957 * mac.c (sys_select): Redo sys_select to use alarm-based
4958 polling instead of 1 sec timeouts (like solaris).
4959
4960 * macterm.c (x_make_frame_visible): Comment in polling on
4961 frame creation.
4962
4963 * keyboard.c: Undef SIGIO on Carbon
4964
4965 * atimer.c (alarm_signal_handler): Call alarm handlers after
4966 scheduling.
4967
4968 * eval.c (Feval): Remove quit_char test
4969
4970 * process.c (wait_reading_process_input): Remove clearing
4971 stdin for select call on process input.
4972
4973 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
4974
4975 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
4976 capitalization error in docstring.
4977
4978 2004-07-17 Juanma Barranquero <lektu@terra.es>
4979
4980 * keyboard.c (not_single_kboard_state): Do nothing unless
4981 MULTI_KBOARD is defined.
4982
4983 2004-07-17 Richard M. Stallman <rms@gnu.org>
4984
4985 * window.c (coordinates_in_window): Inside the window but outside
4986 its box to the L or R, return ON_VERTICAL_BORDER.
4987 (window_list_1): Rotate the list to start with WINDOW.
4988
4989 * print.c (print_preprocess): Test for print_depth at limit
4990 before entering in being_printed.
4991
4992 * keyboard.c (not_single_kboard_state): New function.
4993 (stuff_buffered_input): Now no-op only if no SIGTSTP.
4994
4995 * frame.c (Fdelete_frame): If we're in single_bboard_state on
4996 this kboard, and we delete its last frame, go to any_kboard_state.
4997
4998 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
4999
5000 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
5001
5002 * w32fns.c (Fx_file_dialog): Encode strings in system coding
5003 system before passing them to OS functions for display.
5004
5005 2004-07-15 David Kastrup <dak@gnu.org>
5006
5007 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
5008 Apparently fixes an abort condition.
5009
5010 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
5011
5012 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
5013 instead of a cons.
5014
5015 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
5016
5017 * keyboard.c (echo_dash): Do nothing if there already is a dash
5018 at the end of the echo string.
5019
5020 2004-07-12 Kim F. Storm <storm@cua.dk>
5021
5022 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
5023 if GC_MARK_STACK.
5024
5025 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
5026
5027 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
5028
5029 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
5030 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
5031 (Freplace_buffer_in_windows, Fset_window_buffer)
5032 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
5033 (syms_of_window): Expand docstring of `display-buffer-function'.
5034
5035 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
5036
5037 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
5038 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
5039 that time values of the type (HIGH . LOW) are considered obsolete.
5040
5041 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
5042
5043 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
5044 docstring.
5045
5046 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
5047
5048 2004-07-06 John Paul Wallington <jpw@gnu.org>
5049
5050 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
5051
5052 * fns.c (Fclear_string): Signal an error if STRING is not a string.
5053
5054 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5055
5056 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
5057 instead of CGMainDisplayID (only in OSX 10.2 and later).
5058
5059 2004-07-04 John Paul Wallington <jpw@gnu.org>
5060
5061 * fileio.c (read_file_name_completion_ignore_case): New variable.
5062 (syms_of_fileio): Declare and initialise it.
5063 (Fread_file_name): Bind `completion-ignore-case' to respect it.
5064
5065 2004-07-03 Eli Zaretskii <eliz@gnu.org>
5066
5067 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
5068 for event.x and event.y.
5069
5070 2004-07-01 Kenichi Handa <handa@m17n.org>
5071
5072 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
5073 after getting a new string by pre-write-conversion.
5074
5075 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
5076
5077 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
5078 (x_calc_absolute_position): Remove unused var `child'.
5079
5080 * xfaces.c (x_supports_face_attributes_p)
5081 (Fdisplay_supports_face_attributes_p): YAILOM.
5082 (tty_supports_face_attributes_p): Remove unused var `i'.
5083
5084 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
5085 back_unibyte_ok.
5086
5087 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
5088
5089 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
5090
5091 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
5092
5093 2004-06-30 Andreas Schwab <schwab@suse.de>
5094
5095 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
5096 (Finit_image_library): Pass LIBRARIES through to
5097 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
5098 (lookup_image_type): Pass Qnil as second argument to
5099 Finit_image_library.
5100
5101 * lisp.h (Finit_image_library): Declare.
5102
5103 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5104
5105 * macterm.c (do_window_activate, do_window_deactivate): Remove.
5106 (XTread_socket): Send mouse button events to the toolbox
5107 dispatcher even when the mouse is grabbed. Don't process window
5108 activate events for non-Emacs windows. Replace function calls to
5109 do_window_activate and do_window_deactivate with their contents.
5110 Reset mouse grabbing status when a window is deactivated.
5111
5112 2004-06-29 Steven Tamm <steventamm@mac.com>
5113
5114 * macterm.c (mac_get_emulated_btn)
5115 (mac_event_to_emacs_modifiers): Fix emulated mouse button
5116 support to correctly mask out modifiers.
5117
5118 2004-06-29 David Kastrup <dak@gnu.org>
5119
5120 * search.c (Fset_match_data): Allow buffer before end of list
5121 which can happen if set-match-data is using a pre-consed list.
5122
5123 2004-06-28 Steven Tamm <steventamm@mac.com>
5124
5125 * macterm.c (XTread_socket): Correctly set the frame position
5126 after the window is moved.
5127
5128 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5129
5130 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
5131 gpix and gmask just before return to avoid memory leak.
5132 (xg_get_image_for_pixmap): Add workaround for monochrome displays
5133 so insensitive and activated icons look ok.
5134
5135 2004-06-27 Jason Rumney <jasonr@gnu.org>
5136
5137 * w32fns.c (file_dialog_callback): Disable edit control if set
5138 to directories only on CDN_INITDONE message.
5139 (Fx_file_dialog): Default to directories only when prompt starts
5140 with "Dired".
5141
5142 2004-06-25 Kim F. Storm <storm@cua.dk>
5143
5144 * alloc.c (allocate_misc): Update total_free_markers.
5145 (free_misc): New function.
5146 (safe_alloca_unwind, free_marker): Use it.
5147
5148 * lisp.h (free_misc): Add prototype.
5149
5150 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
5151
5152 2004-06-24 Richard M. Stallman <rms@gnu.org>
5153
5154 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
5155 (syms_of_emacs): Lisp variables deleted.
5156
5157 2004-06-23 David Kastrup <dak@gnu.org>
5158
5159 * search.c (Freplace_match): Adjust the match-data more thoroughly
5160 when replacing strings in the buffer.
5161 (Fmatch_data): When INTEGERS is non-nil and the last match was in
5162 a buffer, add the buffer as last element to the match data.
5163 (Fset_match_data): If an additional element of the match-data is a
5164 buffer, restore it to last_thing_searched.
5165 (save_search_regs): Save last_thing_searched as part of the match data.
5166 (restore_match_data): Restore it again.
5167
5168 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
5169
5170 * keymap.c (Ftext_char_description): Doc fix.
5171 * doc.c (Fsnarf_documentation): Doc fix.
5172
5173 2004-06-22 Kim F. Storm <storm@cua.dk>
5174
5175 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
5176
5177 * lisp.h (struct Lisp_Save_Value): New member dogc.
5178 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
5179 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
5180 (SAFE_FREE_LISP): New macro.
5181
5182 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
5183 (make_save_value): Init new dogc member.
5184 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
5185
5186 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
5187 SAFE_FREE_LISP macros.
5188
5189 2004-06-22 Kim F. Storm <storm@cua.dk>
5190
5191 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
5192 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
5193 in that memory area are unknown to GC. Add comments.
5194
5195 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
5196
5197 2004-06-21 Kim F. Storm <storm@cua.dk>
5198
5199 * lisp.h (MAX_ALLOCA): Define here.
5200 (safe_alloca_unwind): Add prototype.
5201 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
5202
5203 * alloc.c (safe_alloca_unwind): New function.
5204
5205 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
5206
5207 * charset.c (Fstring): Use SAFE_ALLOCA.
5208
5209 * coding.c (MAX_ALLOCA): Remove define.
5210
5211 * data.c (MAX_ALLOCA): Remove define.
5212 (Faset): Use SAFE_ALLOCA.
5213
5214 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
5215
5216 * fns.c (string_make_multibyte, string_to_multibyte)
5217 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
5218 (MAX_ALLOCA): Remove define.
5219 (Fbase64_encode_region, Fbase64_encode_string)
5220 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
5221 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
5222 memory leak if encoding fails.
5223
5224 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
5225
5226 2004-06-21 Eli Zaretskii <eliz@gnu.org>
5227
5228 * print.c (Fwith_output_to_temp_buffer): Doc fix.
5229
5230 2004-06-20 Richard M. Stallman <rms@gnu.org>
5231
5232 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
5233
5234 * search.c (match_limit): Cleaner err msg when no match data available.
5235
5236 * window.c (syms_of_window): Doc fix.
5237
5238 * keyboard.c (command_loop_1): Handle values `only' and `identity'
5239 for Vtransient_mark_mode.
5240
5241 * buffer.c (syms_of_buffer): Doc fix.
5242
5243 2004-06-21 David Kastrup <dak@gnu.org>
5244
5245 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
5246 and unbinding of `case-fold-search' according to
5247 `completion-ignore-case' around calls of string-match and
5248 predicates, respectively. Should give satisfactory performance
5249 in all relevant cases.
5250
5251 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5252
5253 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
5254 clip_x/y_origin.
5255
5256 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
5257
5258 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
5259
5260 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
5261 on Mac OSX.
5262
5263 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
5264
5265 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
5266
5267 2004-06-16 Kim F. Storm <storm@cua.dk>
5268
5269 * dispextern.h (Vimage_types): Remove extern.
5270
5271 2004-06-16 Miles Bader <miles@gnu.org>
5272
5273 * image.c (lookup_image_type): Initialize image type if necessary.
5274
5275 2004-06-15 Kim F. Storm <storm@cua.dk>
5276
5277 * xdisp.c (try_cursor_movement): Exclude header line from scroll
5278 margin at top of window.
5279 (try_window_reusing_current_matrix): Calculate proper cursor position
5280 after scrolling up with non-zero scroll margin, as the old cursor
5281 position corresponds to value of PT before executing this command.
5282 (try_window_id): Consider scroll margin at bottom of window too;
5283 otherwise we fail to scroll when hl-line-mode is enabled.
5284
5285 * syntax.c (skip_chars): Only recognize [:class:] when it has the
5286 proper format and class is a lower-case word.
5287
5288 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5289
5290 * gtkutil.c (xg_get_image_for_pixmap): New function.
5291 (xg_get_gdk_pixmap_and_mask): Remove.
5292 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
5293 xg_get_gdk_pixmap_and_mask.
5294
5295 * xterm.h (struct x_display_info): Typo in comment fixed.
5296
5297 2004-06-14 Juanma Barranquero <lektu@terra.es>
5298
5299 * dispextern.h (Vimage_types): Make it conditional on
5300 HAVE_WINDOW_SYSTEM.
5301
5302 * image.c (Vimage_types): Move from xdisp.c.
5303 (Vimage_type_cache): New variable.
5304 (define_image_type): New argument indicating whether an image
5305 library was loaded; cache loaded status and return t on success,
5306 nil otherwise.
5307 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
5308 (w32_delayed_load): New function to load an image library from a
5309 list of possible filenames.
5310 (init_xpm_functions, init_png_functions, init_jpeg_functions)
5311 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
5312 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
5313 (Finit_image_library): New function, extracted from `init_image'.
5314 Try to initialize an image library on demand and cache whether we
5315 were successful or not.
5316 (syms_of_image): Initialize `Vimage_types' and
5317 `Vimage_type_cache'. Add recognized image types to Vimage_types.
5318 Export `init-image-library'.
5319 (init_image): Remove initialization of all image types, except xbm
5320 and pbm.
5321
5322 * xdisp.c (Vimage_types): Delete (moved to image.c).
5323
5324 2004-06-14 Andreas Schwab <schwab@suse.de>
5325
5326 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
5327 Avoid calling specbind when completion-regexp-list is empty.
5328
5329 2004-06-13 Richard M. Stallman <rms@gnu.org>
5330
5331 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
5332 (re_wctype, re_iswctype, re_wctype_to_bit):
5333 Non-function definitions moved here from regex.c.
5334
5335 * regex.c (re_wctype, re_iswctype): Function defs longer static.
5336 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
5337 (re_wctype, re_iswctype, re_wctype_to_bit):
5338 Non-function definitions moved to regex.h.
5339
5340 * window.c (Fselect_window): Doc fix.
5341
5342 * syntax.c: Include regex.h.
5343 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
5344 If requested, make a list of classes, then check the scanned
5345 chars for membership in them.
5346 (in_classes): New function.
5347 Doc fix.
5348
5349 * keyboard.c (cmd_error): Don't call any_kboard_state
5350 if inside a recursive edit level.
5351
5352 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
5353
5354 * keyboard.c (command_loop): Call any_kboard_state before
5355 command_loop_2 when at top level.
5356
5357 2004-06-13 Andreas Schwab <schwab@suse.de>
5358
5359 * print.c (print_object): Always use %ld for printing EMACS_INT.
5360
5361 * keyboard.c (cancel_hourglass_unwind): Return a value.
5362 (modify_event_symbol): Always use %ld for printing EMACS_INT.
5363 (Fexecute_extended_command): Likewise.
5364
5365 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
5366 avoid clashes.
5367 (SYNTAX): Likewise.
5368 (SYNTAX_WITH_FLAGS): Likewise.
5369 (SYNTAX_MATCH): Likewise.
5370
5371 * syntax.c (char_quoted): Avoid warning about undefined operation.
5372 (find_defun_start): Likewise.
5373 (scan_lists): Likewise.
5374 (INC_FROM): Likewise.
5375 (scan_sexps_forward): Likewise.
5376
5377 * image.c: Include <ctype.h>.
5378
5379 * xfaces.c (face_attr_equal_p): Declare parameters.
5380
5381 2004-06-13 Kenichi Handa <handa@m17n.org>
5382
5383 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
5384
5385 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
5386
5387 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
5388
5389 2004-06-12 Kenichi Handa <handa@m17n.org>
5390
5391 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
5392 ccl_prog_stack_struct and update it.
5393 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
5394 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
5395 ccl->eof_ic on EOF.
5396 (ccl_debug_hook): New function.
5397 (struct ccl_prog_stack): New member eof_ic.
5398 (ccl_driver): Handle EOF in subrountine call correctly.
5399
5400 2004-06-11 Kenichi Handa <handa@m17n.org>
5401
5402 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
5403
5404 2004-06-11 Kim F. Storm <storm@cua.dk>
5405
5406 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
5407
5408 2004-06-11 Juanma Barranquero <lektu@terra.es>
5409
5410 * keyboard.c (Fposn_at_point): Doc fix.
5411
5412 2004-06-11 David Kastrup <dak@gnu.org>
5413
5414 * search.c (match_limit): Don't flag an error if match-data
5415 exceeding the allocated search_regs.num_regs gets requested, just
5416 return Qnil.
5417
5418 2004-06-08 Miles Bader <miles@gnu.org>
5419
5420 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
5421
5422 2004-06-07 Juanma Barranquero <lektu@terra.es>
5423
5424 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
5425 (Fcurrent_time_string, Fcurrent_time_zone)
5426 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
5427
5428 2004-06-07 Miles Bader <miles@gnu.org>
5429
5430 * xfaces.c (struct named_merge_point): New type.
5431 (push_named_merge_point): New function.
5432 (merge_named_face): New function.
5433 (merge_face_ref, face_at_buffer_position, face_at_string_position):
5434 Use `merge_named_face'.
5435 (merge_face_inheritance): Function removed.
5436 (merge_face_ref): Rename from `merge_face_vector_with_property'.
5437 Add new `err_msgs' and `named_merge_points' args. Return error
5438 status. Only print error messages if ERR_MSGS is true. Don't try to
5439 do :inherit attribute validation.
5440 (merge_face_heights): Handle `unspecified' in both directions.
5441 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
5442 Call `merge_face_ref' instead of `merge_face_inheritance'.
5443 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
5444 (compute_char_face, face_at_buffer_position)
5445 (face_at_string_position): Call `merge_face_ref' instead of
5446 `merge_face_vector_with_property'.
5447
5448 2004-06-07 Kenichi Handa <handa@m17n.org>
5449
5450 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
5451 the necessary places.
5452
5453 2004-06-07 Kim F. Storm <storm@cua.dk>
5454
5455 * process.c (Fdelete_process): Undo 2004-05-28 change.
5456 Instead, call status_notify also for network process.
5457 (status_message): Use process instead of status as arg.
5458 Give messages "deleted" or "connection broken by remote peer" for
5459 an exited network process.
5460 (status_notify): Change call to status_message.
5461 (read_process_output): Increase readmax to 4096. Do not increase
5462 buffer size for datagram channels (default is now large enough).
5463
5464 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
5465
5466 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
5467 problem due to newly defined variable.
5468
5469 2004-06-06 Miles Bader <miles@gnu.org>
5470
5471 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
5472 immediately if non-interactive or not initialized.
5473
5474 2004-06-05 Richard M. Stallman <rms@gnu.org>
5475
5476 * minibuf.c (Fcompleting_read): Doc fix.
5477
5478 2004-06-05 Andreas Schwab <schwab@suse.de>
5479
5480 * macfns.c (x_create_tip_frame): Fix declaration after statement.
5481
5482 2004-06-05 Juanma Barranquero <lektu@terra.es>
5483
5484 * keymap.c (Fdescribe_vector): Fix docstring.
5485 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
5486
5487 2004-06-05 Miles Bader <miles@gnu.org>
5488
5489 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
5490 attributes have different values than the default face.
5491
5492 2004-06-04 Eli Zaretskii <eliz@gnu.org>
5493
5494 * xfaces.c (x_supports_face_attributes_p): Make this function
5495 conditional on HAVE_WINDOW_SYSTEM.
5496 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
5497 Don't call x_supports_face_attributes_p if it was not compiled in.
5498
5499 2004-06-04 Miles Bader <miles@gnu.org>
5500
5501 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
5502 from Ftty_supports_face_attributes_p.
5503 (x_supports_face_attributes_p): New function.
5504 (Ftty_supports_face_attributes_p): Function deleted.
5505 (Fdisplay_supports_face_attributes_p): New function.
5506 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
5507 (face_attr_equal_p): New function.
5508 (lface_equal_p): Use it.
5509
5510 2004-06-03 Juanma Barranquero <lektu@terra.es>
5511
5512 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
5513 (Vw32_color_map): Fix typo in docstring.
5514 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
5515 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
5516 Make argument names match their use in docstring.
5517
5518 2004-06-02 Juanma Barranquero <lektu@terra.es>
5519
5520 Work around bugs/problems with MinGW builds of graphics libraries
5521 called from MSVC builds of Emacs.
5522
5523 * image.c (lookup_image): Make pointer to img static.
5524 (png_read_from_memory): Disable "global" optimization.
5525
5526 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
5527
5528 * eval.c (Fcondition_case): Fix usage. Simplify.
5529
5530 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
5531
5532 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5533
5534 * macfns.c: Don't include ccl.h.
5535 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
5536 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
5537 TextUtils.h.
5538 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
5539 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
5540 display height/width.
5541 (compute_tip_xy, Vx_max_tooltip_size): Declare.
5542 (unwind_create_tip_frame, compute_tip_xy): New functions.
5543 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
5544 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
5545 and last_show_tip_args.
5546
5547 * macgui.h [!MAC_OSX]: Include Gestalt.h.
5548 (Cursor, No_Cursor): New defines.
5549 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
5550 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
5551
5552 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
5553
5554 * macterm.c: Don't include Gestalt.h.
5555 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
5556 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
5557 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
5558 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
5559 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
5560 (construct_mouse_click, XTmouse_position)
5561 (x_scroll_bar_report_motion, x_calc_absolute_position)
5562 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
5563 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
5564 (note_mouse_movement): Clear the mouse face and reset the pointer
5565 shape when the pointer goes outside the frame without grabbing.
5566 (mac_front_window): New function.
5567 (mac_window_to_frame): New macro.
5568 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
5569 (do_window_activate, do_window_deactivate, do_app_resume)
5570 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
5571 (do_zoom_window, mac_do_receive_drag, XTread_socket)
5572 (mac_check_for_quit_char): Use mac_front_window and/or
5573 mac_window_to_frame.
5574 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
5575 scroll-bar click event.
5576 (mac_define_frame_cursor): Change the pointer shape.
5577 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
5578 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
5579 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
5580 (do_window_update): Don't do anything if the updated window is the
5581 tooltip window.
5582 (do_mouse_moved): Handle mouse movement events here (previously in
5583 XTread_socket). Clear the mouse face if
5584 dpyinfo->mouse_face_hidden is set.
5585 (do_os_event, do_events): Remove (now in XTread_socket).
5586 (XTread_socket): Immediately return if interrupt_input_blocked.
5587 Loop until all the events in the queue are processed.
5588 Rearrange codes for mouse grabbing. Add tooltip support. Include the
5589 contents of do_os_event and do_events. Remove mouse movement
5590 handling (now in do_mouse_moved). Add the case where
5591 Vmouse_highlight has an integer value.
5592 (NewMacWindow): Remove.
5593 (make_mac_frame): Do what NewMacWindow previously did. Don't do
5594 excess initializations.
5595 (make_mac_terminal_frame): Previous initializations in
5596 make_mac_frame are moved here.
5597 (mac_initialize_display_info):
5598 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
5599
5600 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
5601 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
5602
5603 2004-05-29 Richard M. Stallman <rms@gnu.org>
5604
5605 * lisp.h (truncate_undo_list): Update decl.
5606
5607 * alloc.c (undo_outer_limit): New variable.
5608 (syms_of_alloc): Defvar it.
5609 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
5610
5611 * undo.c (truncate_undo_list): New arg LIMITSIZE.
5612
5613 * alloc.c (lisp_align_malloc): Check for base == 0
5614 regardless of HAVE_POSIX_MEMALIGN.
5615 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
5616
5617 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5618
5619 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
5620 (marker_blocks_pending_free): Remove.
5621 (Fgarbage_collect): Sweep after cleaning up undo-lists.
5622 Mark the undo lists after claning them up.
5623 Don't free block in marker_blocks_pending_free.
5624 (mark_buffer): Don't mark undo_list.
5625 (gc_sweep): Sweep hash-tables and strings first.
5626 Do free marker blocks that are empty.
5627
5628 2004-05-28 Jim Blandy <jimb@redhat.com>
5629
5630 * regex.c (print_partial_compiled_pattern): Add missing 'break'
5631 after 'case wordend'. For symbeg and symend, print to stderr,
5632 like the other cases.
5633
5634 2004-05-28 Noah Friedman <friedman@splode.com>
5635
5636 * process.c (Fdelete_process): Do not call remove_process.
5637
5638 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5639
5640 * alloc.c (struct backtrace): Remove.
5641 (Fgarbage_collect): Use the new mark_backtrace.
5642
5643 * eval.c (mark_backtrace): New function.
5644
5645 * minibuf.c (run_exit_minibuf_hook): New function.
5646 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
5647 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
5648
5649 2004-05-27 Kim F. Storm <storm@cua.dk>
5650
5651 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
5652 over display properties, e.g. images, that replace buffer text.
5653
5654 2004-05-25 Kim F. Storm <storm@cua.dk>
5655
5656 * alloc.c (marker_blocks_pending_free): New var.
5657 (gc_sweep): Store free marker blocks on that list.
5658 (Fgarbage_collect): Free them after undo-list cleanup.
5659
5660 * process.c (wait_reading_process_input): Check connect_wait_mask
5661 before actually accepting connection in case it has already been
5662 accepted due to recursion.
5663
5664 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
5665
5666 * coding.c (Fset_safe_terminal_coding_system_internal):
5667 Set suppress_error in safe_terminal_coding, not terminal_coding.
5668
5669 2004-05-22 Richard M. Stallman <rms@gnu.org>
5670
5671 * alloc.c (Fmake_string): Doc fix.
5672
5673 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
5674 and the alist pairs too.
5675
5676 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
5677
5678 * emacs.c (main): Update copyright year.
5679
5680 * fileio.c (Fread_file_name): Expand DIR if not absolute.
5681
5682 * insdel.c (del_range_2, replace_range): Don't write an anchor
5683 if the gap is empty.
5684
5685 * xdisp.c (try_scrolling): If scroll-up-aggressively or
5686 scroll-down-aggressively is small but positive, put point
5687 near the screen edge.
5688
5689 2004-05-22 Juanma Barranquero <lektu@terra.es>
5690
5691 * keymap.c (Fdefine_key): Doc fix.
5692
5693 2004-05-22 Kim F. Storm <storm@cua.dk>
5694
5695 * alloc.c (struct backtrace): Add debug_on_exit member.
5696 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
5697 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
5698 the removed cons cells.
5699 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
5700 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
5701 any cons cells pointing to unallocated stings.
5702 Do not lisp_free any marker blocks, as there may still be pointers
5703 to them from buffer undo lists at this stage of GC.
5704
5705 * keyboard.c (struct backtrace): Add debug_on_exit member.
5706 (Fcommand_execute): Clear it.
5707
5708 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
5709
5710 * intervals.c (lookup_char_property): Do not prematurely return nil.
5711
5712 2004-05-19 Jim Blandy <jimb@redhat.com>
5713
5714 Add support for new '\_<' and '\_>' regexp operators, matching the
5715 beginning and end of symbols.
5716
5717 * regex.c (enum syntaxcode): Add Ssymbol.
5718 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
5719 (re_opcode_t): New opcodes `symbeg' and `symend'.
5720 (print_partial_compiled_pattern): Print the new opcodes properly.
5721 (regex_compile): Parse the new operators.
5722 (analyse_first): Skip sym(beg|end) (they match only the empty string).
5723 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
5724 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
5725 (re_match_2_internal): Match symbeg and symend.
5726
5727 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
5728
5729 2004-05-19 Kim F. Storm <storm@cua.dk>
5730
5731 * .gdbinit (xsymbol): Fix last change.
5732
5733 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
5734
5735 * .gdbinit (xprintstr): New fun.
5736 (xstring, xprintsym): Use it.
5737
5738 * w32proc.c (create_child): Use INTMASK.
5739
5740 * alloc.c (Fgarbage_collect): Do all the marking before flushing
5741 unmarked elements of the undo list.
5742
5743 2004-05-18 David Ponce <david@dponce.com>
5744
5745 * print.c (print): Reset print_depth before to call print_object.
5746
5747 2004-05-18 Jason Rumney <jasonr@gnu.org>
5748
5749 * w32console.c: Prefix RIF functions with w32con_ to avoid
5750 namespace clash with functions in term.c and w32term.c.
5751
5752 * w32menu.c (add_menu_item, w32_menu_display_help)
5753 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
5754
5755 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
5756
5757 2004-05-18 Eli Zaretskii <eliz@gnu.org>
5758
5759 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
5760
5761 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
5762 with make_number.
5763 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
5764 with XINT.
5765
5766 2004-05-18 Kim F. Storm <storm@cua.dk>
5767
5768 * blockinput.h (INPUT_BLOCKED_P): New macros.
5769
5770 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
5771 (Ftop_level): Unblock input if blocked.
5772
5773 * buffer.h (GET_OVERLAYS_AT): New macro.
5774 * msdos.c (IT_note_mouse_highlight): Use it.
5775 * textprop.c (get_char_property_and_overlay): Use it.
5776 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
5777 * xfaces.c (face_at_buffer_position): Use it.
5778
5779 * print.c (print_object): Increase buf size.
5780
5781 2004-05-17 Jason Rumney <jasonr@gnu.org>
5782
5783 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
5784 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
5785 Lisp_Object using i member.
5786 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
5787 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
5788 consistently.
5789
5790 * w32proc.c (create_child): Use make_number instead of masking pid.
5791
5792 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
5793 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
5794 Use EQ to compare Lisp_Objects.
5795 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
5796
5797 * w32term.c (w32_num_mouse_buttons): Rename from
5798 Vw32_num_mouse_buttons and make it an int.
5799
5800 * w32.c (init_environment): Use it.
5801
5802 * w32fns.c (w32_wnd_proc): Likewise.
5803
5804 * w32proc.c (w32_pipe_read_delay): Rename from
5805 Vw32_pipe_read_delay and make it an int.
5806
5807 * w32.c (_sys_read_ahead): Use it.
5808
5809 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
5810
5811 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
5812
5813 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
5814 (key_event): Don't mix Lisp_Object and int.
5815
5816 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
5817
5818 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
5819 modifiers in language change event.
5820
5821 2004-05-17 Kim F. Storm <storm@cua.dk>
5822
5823 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
5824 Such objects may be freed markers which still exist on an undo list.
5825
5826 2004-05-16 Juanma Barranquero <lektu@terra.es>
5827
5828 * data.c (Fset_default): Make argument names match their use in
5829 docstring.
5830
5831 2004-05-15 Andreas Schwab <schwab@suse.de>
5832
5833 * emacs.c (gdb_array_mark_flag): Define.
5834 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
5835
5836 2004-05-15 Eli Zaretskii <eliz@gnu.org>
5837
5838 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
5839 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
5840 defined for the MS-DOS build.
5841
5842 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5843
5844 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
5845
5846 2004-05-14 Kenichi Handa <handa@m17n.org>
5847
5848 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
5849
5850 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5851
5852 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
5853 section to frame.c section.
5854 (Fxw_display_color_p, Fx_file_dialog): Declare if
5855 HAVE_WINDOW_SYSTEM defined.
5856
5857 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
5858
5859 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
5860
5861 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
5862 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
5863 (XTread_socket): Fix int/Lisp_Object mixup.
5864 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
5865
5866 * macterm.h (struct frame, struct face, struct image)
5867 (display_x_get_resource, Fx_display_color_p)
5868 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
5869 Add prototypes.
5870
5871 2004-05-14 Kim F. Storm <storm@cua.dk>
5872
5873 * process.c (wait_reading_process_input): Make reentrant.
5874 Make Available and Connecting non-static. Save and restore value
5875 of waiting_for_user_input_p.
5876
5877 2004-05-13 Kim F. Storm <storm@cua.dk>
5878
5879 * keyboard.c (mark_kboards): Don't mark x and y members
5880 that are overloaded in selection request events.
5881
5882 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
5883
5884 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
5885
5886 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
5887
5888 * window.c (Fdisplay_buffer, Fsplit_window)
5889 (split-height-threshold): Doc fix.
5890
5891 2004-05-13 Juanma Barranquero <lektu@terra.es>
5892
5893 * xfaces.c (Ftty_supports_face_attributes_p)
5894 (Finternal_copy_lisp_face): Fix typo in docstring.
5895 (Finternal_get_lisp_face_attribute): Fix docstring.
5896
5897 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5898
5899 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
5900
5901 2004-05-11 Steven Tamm <steventamm@mac.com>
5902
5903 * macfns.c (Fx_create_frame): Default to using tool-bar by
5904 setting tool-bar-lines to 1 in default-frame-alist.
5905
5906 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5907
5908 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
5909 (xpm_get_color_table_v, xpm_make_color_table_h)
5910 (xpm_put_color_table_h, xpm_get_color_table_h)
5911 (xpm_str_to_color_key, xpm_load_image, xpm_load)
5912 (syms_of_image): Support XPM on Carbon Emacs. Does not
5913 depend on libXpm, but only supports XPM version 3 without extensions.
5914
5915 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5916
5917 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
5918 instead of FRAME_X_P
5919
5920 2004-05-11 Kim F. Storm <storm@cua.dk>
5921
5922 * process.c (read_process_output): Grow decoding_buf when needed;
5923 this could cause a crash in allocate_string and compact_small_strings.
5924
5925 2004-04-29 Jim Blandy <jimb@redhat.com>
5926
5927 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
5928 against proper opcode.
5929
5930 2004-05-10 Juanma Barranquero <lektu@terra.es>
5931
5932 * process.c (Fstart_process): Fix docstring.
5933
5934 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
5935 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
5936 (Fsplit_char, Fchar_charset): Make argument names match their use
5937 in docstring.
5938
5939 2004-05-10 Richard M. Stallman <rms@gnu.org>
5940
5941 * print.c (print_preprocess): Use being_printed, loop_count and
5942 halftail to detect overdeep nesting and cyclic cdr chains.
5943
5944 2004-05-10 Andreas Schwab <schwab@suse.de>
5945
5946 * lisp.h (Fmake_symbolic_link): Declare.
5947
5948 * fileio.c (Frename_file): Remove extra argument in call to
5949 Fmake_symbolic_link.
5950
5951 2004-05-10 Kim F. Storm <storm@cua.dk>
5952
5953 * xdisp.c (calc_line_height_property): Use string position when
5954 object is a string.
5955
5956 2004-05-10 Kenichi Handa <handa@m17n.org>
5957
5958 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
5959 inhibit-modification-hooks to t temporarily before calling
5960 Ferase_buffer.
5961
5962 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
5963 inhibit-modification-hooks to t temporarily before calling
5964 Ferase_buffer.
5965
5966 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
5967 inhibit-modification-hooks to t temporarily before calling
5968 Ferase_buffer.
5969
5970 * fns.c (count_combining): Delete it.
5971 (concat): Don't check combining bytes.
5972
5973 2004-05-09 Jason Rumney <jasonr@gnu.org>
5974
5975 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
5976 (globals_of_w32fns): Set it.
5977
5978 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
5979
5980 * data.c (Fquo): Simplify.
5981
5982 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
5983
5984 * data.c (Fquo): If any argument is float, do the computation in
5985 floating point.
5986
5987 2004-05-08 Juanma Barranquero <lektu@terra.es>
5988
5989 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
5990 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
5991 Fix spelling of Emacs on docstring.
5992 (Fset_process_coding_system, Fprocess_coding_system)
5993 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
5994 Make argument names match their use in docstring.
5995 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
5996 Fix docstring.
5997
5998 * editfns.c (Finsert_buffer_substring): Make argument names match their
5999 use in docstring.
6000
6001 * syntax.c (Fmodify_syntax_entry): Fix docstring.
6002
6003 2004-05-07 Steven Tamm <steventamm@mac.com>
6004
6005 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
6006 around call to ReceiveEvent to avoid certain crashes.
6007
6008 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6009
6010 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
6011 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
6012 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
6013 Save/restore the current graphics port and device handle when
6014 drawing into an offscreen graphics world.
6015
6016 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
6017 (gif_load): Likewise.
6018
6019 2004-05-07 Juanma Barranquero <lektu@terra.es>
6020
6021 * window.c (Fset_window_buffer): Fix docstring.
6022
6023 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
6024
6025 * emacs.c (main) [VMS]: Fix var ref.
6026
6027 2004-05-06 Romain Francoise <romain@orebokech.com>
6028
6029 * data.c (Fsetq_default): Fix docstring.
6030
6031 2004-05-06 Jason Rumney <jasonr@gnu.org>
6032
6033 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
6034 to avoid name clash.
6035
6036 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6037
6038 * fileio.c (barf_or_query_if_file_exists): Use lstat.
6039 (Frename_file): Handle renaming of symlinks across file systems.
6040 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
6041
6042 2004-05-04 Kim F. Storm <storm@cua.dk>
6043
6044 * xdisp.c (Qtotal): New var.
6045 (syms_of_xdisp): Intern and staticpro it.
6046 (calc_line_height_property): New arg total. Set it if
6047 line-spacing property has format (total . VALUE).
6048 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
6049 Handle total line-spacing property.
6050
6051 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6052
6053 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
6054 "under" scroll bar when size/position changes.
6055
6056 2004-05-03 Jason Rumney <jasonr@gnu.org>
6057
6058 * makefile.nt: Remove.
6059
6060 2004-05-02 Eli Zaretskii <eliz@gnu.org>
6061
6062 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
6063 Avoid compiler warnings.
6064
6065 * Makefile.in (region-cache.o): Depend on config.h.
6066
6067 2004-05-02 Romain Francoise <romain@orebokech.com>
6068
6069 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
6070 with continuation lines, too.
6071
6072 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
6073
6074 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
6075
6076 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
6077
6078 * xdisp.c (calc_line_height_property): YAILOM (yet another
6079 int/Lisp_Object mixup).
6080
6081 2004-05-01 Eli Zaretskii <eliz@gnu.org>
6082
6083 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
6084 undo bad effect of pack(4) in some versions of system headers.
6085
6086 2004-05-01 Jason Rumney <jasonr@gnu.org>
6087
6088 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
6089
6090 2004-04-30 Kim F. Storm <storm@cua.dk>
6091
6092 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
6093 (syms_of_buffer) <cursor-type>: Doc fix.
6094
6095 * dispextern.h (struct it): Remove member use_default_face.
6096 Add members override_ascent, override_descent, override_boff.
6097
6098 * xdisp.c (init_iterator): Handle line-spacing float value.
6099 Initialize override_ascent member.
6100 (append_space_for_newline): Reset override_ascent.
6101 Remove use_default_face.
6102 (calc_line_height_property): New function to calculate value of
6103 line-height and line-spacing properties. Look at overlays, too.
6104 Set override_ascent, override_descent, override_boff members when
6105 using another face than the current face. Float values are now
6106 relative to the frame default font, by default; accept a cons
6107 of ratio and face name to specify value relative to a specific face.
6108 (x_produce_glyphs): Use calc_line_height_property.
6109 Use override_ascent etc. when set to handle different face heights.
6110 A negative line-spacing property value is interpreted as a total
6111 line height, rather than inter-line spacing.
6112 (note_mouse_highlight): Allocate room for 40 overlays initially.
6113
6114 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
6115
6116 * data.c (Fsubr_name): New fun.
6117 (syms_of_data): Defsubr it.
6118
6119 2004-04-29 Kim F. Storm <storm@cua.dk>
6120
6121 * xdisp.c (null_glyph_slice): New var.
6122 (append_glyph, append_composite_glyph, append_stretch_glyph):
6123 Use it to initialize glyph slice.
6124
6125 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
6126
6127 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
6128 (on_hot_spot_p): Make sure we always return a value.
6129 (Flookup_image_map): Remove unused var ix and iy.
6130 (note_mode_line_or_margin_highlight): Remove unused var `image'.
6131
6132 2004-04-27 Eli Zaretskii <eliz@gnu.org>
6133
6134 * msdos.c (init_environment): If one of the TMP... environment
6135 variables is set to a drive letter without a trailing slash,
6136 append a slash.
6137
6138 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
6139
6140 * editfns.c (lisp_time_argument): Provide externally.
6141
6142 * fileio.c (Fset_file_times): New function.
6143 (syms_of_fileio): Intern and staticpro it.
6144
6145 2004-04-27 Kim F. Storm <storm@cua.dk>
6146
6147 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
6148 header line strings.
6149
6150 * dispextern.h (struct it): New member use_default_face.
6151
6152 * xdisp.c (Qline_height): New variable.
6153 (syms_of_xdisp): Intern and staticpro it.
6154 (append_space_for_newline): Partially undo 2004-04-25 change;
6155 add default_face_p arg, and restore callers.
6156 Clear it->use_default_face after use.
6157 (x_produce_glyphs): Set default font for ascii char if
6158 it->use_default_font is set. Change line-spacing property to set
6159 just extra line spacing. Handle new line-height property.
6160
6161 2004-04-26 Andreas Schwab <schwab@suse.de>
6162
6163 * print.c (print_object): Print non-ascii characters in bool
6164 vector representation as octal escapes.
6165
6166 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
6167 * print.c (print_object): Use it instead of BITS_PER_CHAR for
6168 bool vectors.
6169 * lread.c (read1): Likewise.
6170 * alloc.c (Fmake_bool_vector): Likewise.
6171 * data.c (Faref, Faset): Likewise.
6172 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
6173 (mapcar1): Likewise.
6174
6175 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
6176
6177 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
6178
6179 2004-04-26 Miles Bader <miles@gnu.org>
6180
6181 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
6182
6183 2004-04-26 Juanma Barranquero <lektu@terra.es>
6184
6185 * buffer.c (Fpop_to_buffer): Fix docstring.
6186
6187 2004-04-26 Steven Tamm <steventamm@mac.com>
6188
6189 * lread.c (init_lread): Don't display missing lisp directory
6190 warnings with Carbon Emacs because self-contained bundled Emacs
6191 may be built without correct installation path.
6192
6193 2004-04-25 Kim F. Storm <storm@cua.dk>
6194
6195 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
6196
6197 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
6198
6199 * xdisp.c (append_space_for_newline): Rename from append_space.
6200 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
6201 (x_produce_glyphs): Handle line-spacing property on newline char.
6202 If value is t, adjust ascent and descent to fit current row height.
6203 If value is an integer or float, set extra_line_spacing to integer
6204 value, or to float value x current line height.
6205
6206 2004-04-23 Kenichi Handa <handa@m17n.org>
6207
6208 * fontset.c (Finternal_char_font): If POSITION is nil, return
6209 font for displaying CH with the default face.
6210
6211 2004-04-23 Juanma Barranquero <lektu@terra.es>
6212
6213 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
6214
6215 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
6216
6217 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
6218 Don't make assumptions about the relative place of i and val.
6219 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
6220
6221 2004-04-21 Kim F. Storm <storm@cua.dk>
6222
6223 * dispextern.h (struct glyph_slice): New struct.
6224 (struct glyph): New member slice.
6225 (GLYPH_SLICE_EQUAL_P): New macro.
6226 (GLYPH_EQUAL_P): Use it.
6227 (struct glyph_string): New member slice.
6228 (struct it_slice): New struct.
6229 (struct it): New member slice, add member to stack too.
6230 New member constrain_row_ascent_descent_p.
6231 (image_ascent): Add prototype.
6232
6233 * dispnew.c (buffer_posn_from_coords): Return full image width
6234 and height even for image slices (posn is relative to full image).
6235 (marginal_area_string): Adjust x0,y0 for image slice.
6236
6237 * image.c (image_ascent): Add slice arg; calculate ascent for
6238 image slice (or full image).
6239
6240 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
6241 (syms_of_keyboard): Defsubr them.
6242
6243 * lisp.h (pos_visible_p): Fix prototype.
6244
6245 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
6246 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6247 (x_draw_image_foreground, x_draw_image_relief)
6248 (x_draw_image_foreground_1, x_draw_image_glyph_string):
6249 Draw sliced images.
6250
6251 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
6252 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6253 (x_draw_image_foreground, x_draw_image_relief)
6254 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
6255 Draw sliced images.
6256
6257 * w32term.h (image_ascent): Remove prototype.
6258
6259 * window.c (Fpos_visible_in_window_p): Return pixel position if
6260 PARTIALLY arg is non-nil. Simplify. Doc fix.
6261 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
6262 to return/set vscroll in pixels.
6263
6264 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
6265
6266 * xdisp.c (Qslice): New variable.
6267 (syms_of_xdisp): Intern and staticpro it.
6268 (pos_visible_p): Return pixel position in new x and y args.
6269 (init_iterator): Reset it->slice info.
6270 (handle_display_prop): Parse (slice ...) property.
6271 (push_it, pop_it): Save/restore slice info.
6272 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
6273 force repositioning of tall row if window is vscrolled, as that
6274 would reset vscroll.
6275 (append_space): Set it->constrain_row_ascent_descent_p to avoid
6276 increasing row height if row is non-empty.
6277 (fill_image_glyph_string): Copy slice info.
6278 (take_vertical_position_into_account): Simplify.
6279 (produce_image_glyph): Handle iterator slice info, setup glyph
6280 slice info. Do not force minimum line height.
6281 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
6282 do not increase height (ascent/descent) of non-empty row when
6283 adding normal character glyph; instead reduce glyph ascent/descent
6284 appropriately; if row is higher than current glyph, adjust glyph
6285 descent/ascent to reposition glyph within the existing row.
6286 Likewise, when char is newline, only set ascent/descent if row is
6287 currently empty.
6288 (note_mouse_highlight): Handle hotspots with sliced image.
6289
6290 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
6291 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
6292 (x_draw_image_foreground, x_draw_image_relief)
6293 (x_draw_image_foreground_1, x_draw_image_glyph_string):
6294 Draw sliced images.
6295
6296 * xterm.h (image_ascent): Remove prototype.
6297
6298 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6299
6300 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
6301
6302 2004-04-20 John Paul Wallington <jpw@gnu.org>
6303
6304 * fns.c (Fassoc, Feql): Fix indentation.
6305
6306 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
6307
6308 2004-04-19 John Paul Wallington <jpw@gnu.org>
6309
6310 * fns.c (Feql): New function.
6311 (syms_of_fns): Defsubr it.
6312
6313 2004-04-18 Jason Rumney <jasonr@gnu.org>
6314
6315 * w32select.c (Fw32_set_clipboard_data): Get sequence number
6316 after closing the clipboard.
6317
6318 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
6319
6320 * buffer.c (Fbuffer_base_buffer): Doc fix.
6321
6322 2004-04-17 Kim F. Storm <storm@cua.dk>
6323
6324 * keymap.c (Fkey_description): Add optional PREFIX arg.
6325 Combine prefix with KEYS to make up the full key sequence to describe.
6326 Correlate meta_prefix_char and following (simple) key to describe
6327 as meta modifier. All callers changed.
6328 (describe_map): Rename arg `keys' to `prefix'. Remove local
6329 `elt_prefix' var. Use Fkey_description with prefix instead of
6330 elt_prefix combined with Fsingle_key_description.
6331 (describe_vector): Declare static. Replace arg `elt_prefix' with
6332 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
6333 if !KEYMAP_P. Use Fkey_description with prefix instead of
6334 Fsingle_key_description.
6335
6336 * keymap.h (Fkey_description): Fix prototype.
6337 (describe_vector): Remove prototype.
6338
6339 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
6340
6341 * image.c (PNG_BG_COLOR_SHIFT): Remove.
6342 (png_load): Fix calculation of transparent background color on X
6343 and W32 platforms.
6344
6345 2004-04-16 Juanma Barranquero <lektu@terra.es>
6346
6347 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
6348 not too large before computing how much to scroll.
6349
6350 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
6351
6352 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
6353
6354 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
6355
6356 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
6357 Add hyperlink to Elisp manual to the docstring.
6358
6359 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
6360
6361 * callint.c (fix_command): Use XDCR.
6362
6363 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
6364
6365 * window.c (Fget_lru_window): Doc fix.
6366
6367 2004-04-14 Kim F. Storm <storm@cua.dk>
6368
6369 * editfns.c (Fformat): Fix allocation size of precision array.
6370
6371 * dispnew.c (update_window): Only set changed_p if
6372 scrolling_window actually did scroll.
6373 (scrolling_window): Only return 1 if we actually did scroll.
6374
6375 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
6376 height to glyph height when cursor row is not fully visible.
6377 (make_cursor_line_fully_visible): Add FORCE_P arg to return
6378 failure in case row is higher than window. Callers changed.
6379 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
6380 Try to scroll partially visible, higher-than-window cursor row.
6381 (redisplay_window): Always try to scroll partially visible,
6382 higher-than-window cursor row - both initially and again with
6383 centering_position = 0.
6384 Clear desired matrix before retrying with centering_position = 0.
6385
6386 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6387
6388 * syntax.c (scan_lists): Simplify backward string scan.
6389 Fix off-by-one boundary check for string and comment fences.
6390
6391 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
6392
6393 * sheap.c, unexcw.c: New files.
6394
6395 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
6396
6397 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
6398 base buffer has been killed. Correct the error message if the
6399 base buffer does not exist.
6400
6401 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
6402
6403 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
6404 Cygwin itself. Add support for Xaw3d scrollbars.
6405
6406 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
6407
6408 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
6409
6410 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
6411 before Cygwin unexec.
6412
6413 * Makefile.in: Link changes for Cygwin unexec() support.
6414
6415 2004-04-12 Andreas Schwab <schwab@suse.de>
6416
6417 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
6418
6419 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
6420
6421 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
6422 IGNORE argument equals NAME. Doc fix.
6423
6424 2004-04-11 Masatake YAMATO <jet@gyve.org>
6425
6426 * buffer.c (fix_start_end_in_overlays): Make overlays
6427 empty if they are backwards.
6428
6429 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
6430
6431 * xfaces.c (face_color_supported_p): Fix compilation without X11.
6432
6433 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
6434
6435 * doc.c (Fsnarf_documentation): Ignore new file name entries.
6436
6437 2004-04-06 Kim F. Storm <storm@cua.dk>
6438
6439 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
6440 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
6441
6442 * w32term.c (w32_read_socket): Set mouse_face_hidden after
6443 clearing highlight.
6444
6445 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
6446
6447 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
6448 clearing highlight.
6449
6450 * indent.c (vmotion): Do not reserve one column for continuation
6451 marks on window frames.
6452
6453 2004-04-04 Eli Zaretskii <eliz@gnu.org>
6454
6455 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
6456 from GCC.
6457
6458 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
6459
6460 * .gdbinit-union: Remove.
6461
6462 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
6463 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
6464 ($nonvalbits): Remove.
6465 ($valmask): Set it by calling xreload to avoid redundancy.
6466
6467 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
6468 (gdb_emacs_intbits): Remove.
6469
6470 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6471
6472 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
6473
6474 2004-03-30 Kenichi Handa <handa@m17n.org>
6475
6476 * editfns.c (Fformat): Fix initialization of the array info.
6477
6478 2004-03-30 Kim F. Storm <storm@cua.dk>
6479
6480 * xterm.c (x_mouse_click_focus_ignore_position): New var.
6481 (syms_of_xterm): DEFVAR_BOOL it.
6482 (ignore_next_mouse_click_timeout): New var.
6483 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
6484 Use it to filter mouse clicks following focus event.
6485
6486 2004-03-29 David Ponce <david@dponce.com>
6487
6488 * callint.c (Fcall_interactively): Fix last change.
6489
6490 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6491
6492 * eval.c (Fcommandp): Simplify.
6493
6494 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
6495 Extend to handle all kinds of functions.
6496
6497 * lisp.h (Finteractive_form): Declare.
6498
6499 * callint.c (Fcall_interactively): Use it.
6500
6501 2004-03-26 Kim F. Storm <storm@cua.dk>
6502
6503 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
6504 to catch errors in calc_pixel_width_or_height during redisplay.
6505
6506 2004-03-26 Masatake YAMATO <jet@gyve.org>
6507
6508 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
6509
6510 * lisp.h (fix_start_end_in_overlays): Likewise.
6511
6512 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
6513
6514 * editfns.c (Ftranspose_regions): Likewise.
6515
6516 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6517
6518 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
6519
6520 2004-03-19 Richard M. Stallman <rms@gnu.org>
6521
6522 * s/sol2-6.h: Delete previous change.
6523
6524 2004-03-19 Kim F. Storm <storm@cua.dk>
6525
6526 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
6527 to_charpos corresponds to newline in right fringe. Use local
6528 BUFFER_POS_REACHED_P macro.
6529
6530 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6531
6532 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
6533 to compile on non-window system.
6534
6535 2004-03-19 Kim F. Storm <storm@cua.dk>
6536
6537 * dispextern.h (calc_pixel_width_or_height): Add prototype.
6538
6539 * image.c (Qcenter): Move to xdisp.c.
6540
6541 * xdisp.c (Qcenter): Declare here.
6542 (syms_of_xdisp): Intern and staticpro it.
6543 (handle_single_display_prop): Allow space display property on all
6544 platforms.
6545 (display_mode_line): Set mode_line_p before displaying line.
6546 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
6547 handling. Remove complex cases for fringes and scroll-bars.
6548 Add left, right, and center alignment positions. Add text (area)
6549 width/height. Return width or height for image specs.
6550 (produce_stretch_glyph): Improve handling of :align-to. Is now
6551 relative to left of text area by default, but other base offsets
6552 can be specified -- also for text lines.
6553
6554 * term.c (produce_glyphs): Handle IT_STRETCH.
6555 (produce_stretch_glyph): New function to handle space width and
6556 align-to display properties on non-window systems.
6557
6558 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6559
6560 * fileio.c (Fread_file_name): Set completion-ignore-case for
6561 case-insensitive systems.
6562
6563 2004-03-14 Masatake YAMATO <jet@gyve.org>
6564
6565 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
6566 when keymap and cursor are setup.
6567
6568 2004-03-14 Steven Tamm <steventamm@mac.com>
6569
6570 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
6571
6572 2004-03-14 Kim F. Storm <storm@cua.dk>
6573
6574 * dispextern.h (x_find_image_file): Add prototype.
6575
6576 * image.c (x_find_image_file): Make extern.
6577
6578 * xfns.c (x_find_image_file): Remove prototype.
6579
6580 2004-03-13 Eli Zaretskii <eliz@gnu.org>
6581
6582 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
6583
6584 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
6585
6586 2004-03-12 Richard M. Stallman <rms@gnu.org>
6587
6588 * fns.c (internal_equal): New arg PROPS controls comparing
6589 text properties. All callers changed.
6590 (Fequal_including_properties): New function.
6591 (syms_of_fns): defsubr it.
6592
6593 2004-03-12 Kim F. Storm <storm@cua.dk>
6594
6595 Fix image support on MAC. From YAMAMOTO Mitsuharu.
6596
6597 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
6598 (image_background, image_background_transparent): Fix prototypes.
6599
6600 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
6601
6602 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
6603 (x_query_font, x_find_ccl_program, x_set_window_size)
6604 (x_make_frame_visible, mac_initialize, XCreatePixmap)
6605 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
6606 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
6607
6608 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
6609 (x_query_font, x_find_ccl_program, x_set_window_size)
6610 (x_make_frame_visible, mac_initialize, XCreatePixmap)
6611 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
6612 (mac_draw_line_to_pixmap): Add prototypes.
6613
6614 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6615
6616 * macterm.c (XTread_socket): Fix mouse click on tool bar.
6617
6618 2004-03-11 Kim F. Storm <storm@cua.dk>
6619
6620 * dispextern.h: Move image related prototypes from xfns.c section
6621 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
6622 HAVE_X_WINDOWS.
6623
6624 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
6625 Move gtkutil.o to new GTK_OBJ list.
6626 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
6627 (GTK_OBJ) [USE_GTK]: New declaration.
6628 (obj): Add $(GTK_OBJ) to list.
6629
6630 2004-03-11 Steven Tamm <steventamm@mac.com>
6631
6632 * image.c [MAC_OSX]: Include sys/stat.h.
6633
6634 * macfns.c (syms_of_macfns): Remove definitions of things now
6635 defined in image.c.
6636
6637 2004-03-11 Kim F. Storm <storm@cua.dk>
6638
6639 The following changes consolidates the identical/similar image
6640 support code previously found in xfns.c, w32fns.c, and macfns.c
6641 into a new file image.c.
6642
6643 * makefile.w32-in (OBJ1): Add image.o.
6644 ($(BLD)/image.$(O)): Add dependencies.
6645
6646 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
6647 (image.o): Add dependencies.
6648
6649 * image.c: New file with consolidated image support code.
6650 (COLOR_TABLE_SUPPORT): New define to control whether
6651 color table support is available (X only).
6652 (Bitmap_Record): Common name for x_bitmap_record,
6653 w32_bitmap_record, and mac_bitmap_record.
6654 (XImagePtr): Common name for pointer to XImage or equivalent.
6655 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
6656 to XImagePtr on X+MAC, and to HDC on W32.
6657 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
6658 (NO_PIXMAP): Common name for "None" or equivalent.
6659 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
6660 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
6661 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
6662 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
6663 Define with suitable equivalents on W32 and MAC for code sharing.
6664 (XDrawLine): Define on MAC for code sharing.
6665 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
6666 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
6667 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6668 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6669 (x_reference_bitmap, x_create_bitmap_from_data)
6670 (x_create_bitmap_from_file, x_destroy_bitmap)
6671 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6672 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6673 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6674 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6675 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6676 (define_image_type, lookup_image_type, valid_image_p)
6677 (image_error, enum image_value_type, struct image_keyword)
6678 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6679 (make_image, free_image, prepare_image_for_display, image_ascent)
6680 (four_corners_best, image_background, image_background_transparent)
6681 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6682 (make_image_cache, free_image_cache, clear_image_cache)
6683 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6684 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6685 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6686 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6687 (init_image_func_pointer, image_load_quartz2d)
6688 (struct ct_color, init_color_table, free_color_table)
6689 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6690 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6691 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6692 (x_disable_image, x_build_heuristic_mask)
6693 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6694 (TIFF support, GIF support, Ghostscript support): Consolidate image
6695 code from xfns.c, w32fns.c, and macfns.c.
6696 (syms_of_image): Consolidate image related symbol setup here.
6697 (init_image): Consolidate image related initializations here.
6698
6699 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
6700 and init_image. Remove call to init_xfns.
6701
6702 * macterm.h (struct mac_bitmap_record): Add file member.
6703 Not currently used, but simplifies code sharing.
6704
6705 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6706 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6707 (x_reference_bitmap, x_create_bitmap_from_data)
6708 (x_create_bitmap_from_file, x_destroy_bitmap)
6709 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6710 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6711 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6712 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6713 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6714 (define_image_type, lookup_image_type, valid_image_p)
6715 (image_error, enum image_value_type, struct image_keyword)
6716 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6717 (make_image, free_image, prepare_image_for_display, image_ascent)
6718 (four_corners_best, image_background, image_background_transparent)
6719 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6720 (make_image_cache, free_image_cache, clear_image_cache)
6721 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6722 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6723 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6724 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6725 (init_image_func_pointer, image_load_quartz2d)
6726 (struct ct_color, init_color_table, free_color_table)
6727 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6728 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6729 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6730 (x_disable_image, x_build_heuristic_mask)
6731 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6732 (TIFF support, GIF support, Ghostscript support): Merge with image
6733 code from xfns.c and macfns.c into image.c.
6734 (syms_of_xfns): Move image related symbols to image.c.
6735 (init_external_image_libraries, init_xfns): Remove; initialization
6736 moved to init_image in image.c.
6737
6738 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6739 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6740 (x_reference_bitmap, x_create_bitmap_from_data)
6741 (x_create_bitmap_from_file, x_destroy_bitmap)
6742 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6743 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6744 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6745 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6746 (define_image_type, lookup_image_type, valid_image_p)
6747 (image_error, enum image_value_type, struct image_keyword)
6748 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6749 (make_image, free_image, prepare_image_for_display, image_ascent)
6750 (four_corners_best, image_background, image_background_transparent)
6751 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6752 (make_image_cache, free_image_cache, clear_image_cache)
6753 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6754 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6755 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6756 (struct ct_color, init_color_table, free_color_table)
6757 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6758 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6759 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6760 (x_disable_image, x_build_heuristic_mask)
6761 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6762 (TIFF support, GIF support, Ghostscript support): Merge with image
6763 code from xfns.c and macfns.c into image.c.
6764 (syms_of_xfns): Move image related symbols to image.c.
6765 (init_external_image_libraries, init_xfns): Remove; initialization
6766 moved to init_image in image.c.
6767
6768 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6769 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6770 (x_reference_bitmap, x_create_bitmap_from_data)
6771 (x_create_bitmap_from_file, x_destroy_bitmap)
6772 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6773 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6774 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6775 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6776 (define_image_type, lookup_image_type, valid_image_p)
6777 (image_error, enum image_value_type, struct image_keyword)
6778 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6779 (make_image, free_image, prepare_image_for_display, image_ascent)
6780 (four_corners_best, image_background, image_background_transparent)
6781 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6782 (make_image_cache, free_image_cache, clear_image_cache)
6783 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6784 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6785 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6786 (struct ct_color, init_color_table, free_color_table)
6787 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6788 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6789 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6790 (x_disable_image, x_build_heuristic_mask)
6791 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6792 (TIFF support, GIF support, Ghostscript support): Merge with
6793 w32fns.c and macfns.c image code into image.c.
6794 (syms_of_xfns): Move image related symbols to image.c.
6795 (init_xfns): Remove; initialization moved to init_image in image.c.
6796
6797 * lisp.h (syms_of_image, init_image): Add protoypes.
6798 (init_xfns): Remove prototype.
6799
6800 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6801 (x_reference_bitmap, x_create_bitmap_from_data)
6802 (x_create_bitmap_from_file, x_destroy_bitmap)
6803 (x_create_bitmap_mask): Move prototypes from dispextern.h.
6804 (gamma_correct) [MAC_OS]: Add prototype.
6805
6806 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6807 (x_reference_bitmap, x_create_bitmap_from_data)
6808 (x_create_bitmap_from_file, x_destroy_bitmap)
6809 (x_create_bitmap_mask): Move prototypes to dispextern.h.
6810
6811 2004-03-09 Kenichi Handa <handa@etlken2>
6812
6813 * coding.c (decode_coding_emacs_mule): Handle insufficent source
6814 correctly.
6815
6816 2004-03-04 Richard M. Stallman <rms@gnu.org>
6817
6818 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
6819
6820 * window.c (Fdisplay_buffer): Doc fix.
6821
6822 * buffer.c (Fpop_to_buffer): Doc fix.
6823
6824 2004-03-03 Kim F. Storm <storm@cua.dk>
6825
6826 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
6827
6828 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
6829
6830 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
6831
6832 2004-03-02 Richard M. Stallman <rms@gnu.org>
6833
6834 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
6835
6836 2004-03-02 Kenichi Handa <handa@m17n.org>
6837
6838 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
6839
6840 2004-03-02 Kim F. Storm <storm@cua.dk>
6841
6842 * window.h (struct window): New member overlay_arrow_bitmap.
6843
6844 * window.c (make_window): Initialize overlay_arrow_bitmap.
6845
6846 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
6847 implement and integrate multiple overlay arrows with redisplay.
6848 (syms_of_xdisp): DEFVAR_LISP and initialize it.
6849 (last_arrow_position, last_arrow_string): Replace by properties.
6850 (Qlast_arrow_position, Qlast_arrow_string)
6851 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
6852 (syms_of_xdisp): Intern and staticpro them.
6853 (overlay_arrow_string_or_property, update_overlay_arrows)
6854 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
6855 (overlay_arrow_at_row): New functions for multiple overlay arrows.
6856 (redisplay_internal): Use them instead of directly accessing
6857 Voverlay_arrow_position etc. for multiple overlay arrows.
6858 (mark_window_display_accurate): Use update_overlay_arrows.
6859 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
6860 (try_window_id): Use overlay_arrows_changed_p.
6861 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
6862 (display_line): Use overlay_arrow_at_row to check multiple
6863 overlay arrows, and get relevant overlay-arrow-string and
6864 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
6865 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
6866 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
6867
6868 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
6869 (update_window_fringes): Remove unused code.
6870
6871 2004-03-01 Jason Rumney <jasonr@gnu.org>
6872
6873 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
6874
6875 2004-03-01 Juanma Barranquero <lektu@terra.es>
6876
6877 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
6878
6879 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
6880
6881 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6882
6883 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
6884 how many colors can be displayed.
6885
6886 2004-03-01 Kenichi Handa <handa@m17n.org>
6887
6888 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
6889 correctly.
6890
6891 2004-02-28 Kim F. Storm <storm@cua.dk>
6892
6893 * dispnew.c (update_window): Update header line also if there are
6894 no other changes in window (move code after set_cursor label).
6895
6896 * lisp.h (mark_window_display_accurate): Remove prototype.
6897
6898 * window.c (window_loop, Fforce_window_update): Force mode line
6899 updates by setting prevent_redisplay_optimizations_p and
6900 update_mode_lines.
6901
6902 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6903
6904 * xfns.c (x_window): Fix indentation.
6905
6906 * xterm.c (x_calc_absolute_position): Call x_real_positions
6907 to get WM window sizes and use those to calculate position.
6908 (x_set_offset): Remove code commented out.
6909
6910 2004-02-28 Miles Bader <miles@gnu.org>
6911
6912 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
6913
6914 2004-02-28 Kim F. Storm <storm@cua.dk>
6915
6916 * keyboard.c (kbd_buffer_store_event_hold): New function to store
6917 an event into kbd fifo, but with special handling of quit event;
6918 a quit event is saved for later, and further events are discarded
6919 until the saved quit event has been processed.
6920 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
6921 (gen_help_event): Store help event in kbd fifo.
6922 (NREAD_INPUT_EVENTS): Remove.
6923 (read_avail_input): Adapt to new read_socket_hook interface.
6924 Remove allocation and initialization of local input_event buffer,
6925 as read_socket_hook stores events directly in fifo. Allocate and
6926 initialize local hold_quit event to handle postponed quit event
6927 (and store it if set by kbd_buffer_store_event_hold).
6928
6929 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
6930 (gen_help_event): Fix prototype.
6931
6932 * macterm.c (XTread_socket): Remove bufp_r and
6933 numcharsp args. Add hold_quit arg.
6934 Rework to use just one, local, inev input_event. Store inev
6935 directly in fifo using kbd_buffer_store_event_hold.
6936
6937 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
6938 (read_input_waiting): Adapt to new read_socket_hook interface.
6939 Remove allocation and initialization of local input_event buffer,
6940 as read_socket_hook stores events directly in fifo. Allocate and
6941 initialize local hold_quit event to handle postponed quit event
6942 (and store it if set by kbd_buffer_store_event_hold).
6943
6944 * term.c (read_socket_hook): Fix arg list.
6945
6946 * termhooks.h (read_socket_hook): Fix prototype.
6947
6948 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
6949 numcharsp args. Add hold_quit arg.
6950 Rework to use just one, local, inev input_event. Store inev
6951 directly in fifo using kbd_buffer_store_event_hold.
6952
6953 * w32inevt.h (w32_console_mouse_position): Fix prototype.
6954
6955 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
6956 Add hold_quit arg. Rework to use just one, local, inev
6957 input_event. Store inev directly in fifo using
6958 kbd_buffer_store_event_hold. Update count in one place.
6959 Postpone call to gen_help_event until inev is stored; use new
6960 local do_help for this.
6961 Remove local emacs_event in handing of ButtonPress event; just use
6962 inev instead (so no reason to copy it later).
6963
6964 * xsmfns.c (x_session_check_input): Remove numchars arg.
6965
6966 * xterm.c (x_focus_changed, x_detect_focus_change):
6967 Remove numchars arg. Always store event into bufp arg.
6968 Return nothing. Callers changed accordingly.
6969 (glyph_rect): Simplify.
6970 (STORE_KEYSYM_FOR_DEBUG): New macro.
6971 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
6972 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
6973 (current_hold_quit) [USE_GTK]: Add.
6974 (event_handler_gdk): Adapt to new handle_one_xevent.
6975 (handle_one_xevent): Remove bufp_r and numcharsp args.
6976 Add hold_quit arg. Rework to use just one, local, inev
6977 input_event. Store inev directly in fifo using
6978 kbd_buffer_store_event_hold. Update count in one place.
6979 Postpone call to gen_help_event until inev is stored; use new
6980 local do_help for this.
6981 Simplify handling of keysyms (consolidate common code). Fix bug
6982 where count was updated with nchars instead of nbytes.
6983 Remove local emacs_event in handing of ButtonPress event; just use
6984 inev instead (so no reason to copy it later).
6985 Remove `out' label. Rename label `ret' to `done'; add various
6986 `goto done' to clarify code flow in deeply nested blocks.
6987 (x_dispatch_event): Simplify as handle_one_xevent now calls
6988 kbd_buffer_store_event itself.
6989 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
6990 arg. Call handle_one_xevent with new arglist. Store event from
6991 x_session_check_input in fifo.
6992 [USE_GTK]: Setup current_hold_quit.
6993 Decrement handling_signal before unblocking input.
6994 (x_initialize) [USE_GTK]: Initialize current_count.
6995
6996 * xterm.h (x_session_check_input): Fix prototype.
6997
6998 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6999
7000 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
7001
7002 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
7003 macgui.h).
7004
7005 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
7006
7007 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
7008 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
7009 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
7010 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
7011 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
7012 (Bitmap): Remove typedef.
7013 (Pixmap): Change int to GWorldPtr.
7014
7015 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
7016
7017 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
7018 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
7019 New #define to extract 16-bit depth color components from unsigned
7020 long representation.
7021 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
7022 colors used for masks.
7023 (struct mac_display_info): Add color_p. Remove n_cbits.
7024
7025 * macfns.c: Include sys/types.h and sys/stat.h.
7026 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
7027 Include QuickTime/QuickTime.h.
7028 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7029 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
7030 functions defined in macterm.c.
7031 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
7032 (ZPixmap): New #define for compatibility with xfns.c.
7033 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7034 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7035 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
7036 New functions.
7037 (four_corners_best, x_create_x_image_and_pixmap)
7038 (x_destroy_x_image, unwind_create_frame, x_disable_image)
7039 (x_edge_detection, init_color_table, colors_in_color_table)
7040 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
7041 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
7042 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
7043 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
7044 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
7045 long mixup.
7046 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
7047 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
7048 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
7049 (x_set_cursor_type, Fxw_color_values, valid_image_p)
7050 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
7051 (x_alloc_image_color, clear_image_cache, lookup_image)
7052 (x_find_image_file, xbm_read_bitmap_file_data)
7053 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
7054 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
7055 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
7056 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
7057 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
7058 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
7059 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
7060 #if 0.
7061 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
7062 #if 0. Free white_relief.gc and black_relief.gc.
7063 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
7064 New functions (from xfns.c).
7065 (Fx_create_frame): Record unwind_create_frame.
7066 (Fxw_display_color_p): Use dpyinfo->color_p.
7067 (Fx_display_grayscale_p, Fx_display_planes): Don't use
7068 dpyinfo->n_cbits.
7069 (Fx_display_color_cells): Use dpyinfo->n_planes;
7070 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
7071 (Qheuristic, cross_disabled_images, emboss_matrix)
7072 (laplace_matrix): New variables (from xfns.c).
7073 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
7074 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
7075 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
7076 (image_background_transparent): New function (from xfns.c).
7077 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
7078 (image_load_quicktime): Add declaration.
7079 [MAC_OSX] (image_load_quartz2d): Likewise.
7080 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
7081 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
7082 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
7083 (xbm_load_image_from_file, x_laplace_read_row)
7084 (x_laplace_write_row, pbm_read_file): Remove functions.
7085 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
7086 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
7087 (colors_in_color_table): Sync with xfns.c (although not used).
7088 (lookup_rgb_color): Don't lookup color table. Just do gamma
7089 correction.
7090 (COLOR_INTENSITY): New #define (from xfns.c).
7091 (x_disable_image): New function (from xfns.c).
7092 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
7093 (x_build_heuristic_mask): Sync with xfns.c.
7094 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
7095 (HAVE_PBM): Remove #ifdef.
7096 (pbm_load): Sync with xfns.c. Set img->width and img->height
7097 before IMAGE_BACKGROUND.
7098 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
7099 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
7100 Don't enclose with #if HAVE_PNG.
7101 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
7102 symbol _CGImageCreateWithPNGDataProvider is defined.
7103 Otherwise use image_load_quicktime.
7104 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
7105 [HAVE_PNG] (png_load): Sync with xfns.c.
7106 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
7107 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
7108 HAVE_JPEG.
7109 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
7110 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
7111 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
7112 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
7113 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
7114 (tiff_image_p, tiff_load): Don't enclose declarations with #if
7115 HAVE_TIFF.
7116 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
7117 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
7118 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
7119 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
7120 New functions (from xfns.c).
7121 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
7122 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
7123 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
7124 Don't enclose with #if HAVE_GIF.
7125 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
7126 animated gif. Otherwise use image_load_quicktime.
7127 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
7128 gif_DrawText to avoid conflict with QuickdrawText.h.
7129 [HAVE_GIF] (gif_load): Sync with xfns.c.
7130 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
7131 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
7132 Ghostscript is not supported yet).
7133 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
7134 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
7135 cross_disabled_images (from xfns.c). Remove #if 0 for supported
7136 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
7137 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
7138 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
7139 HAVE_PNG. Call EnterMovies to support animated gifs.
7140 Call init_image_func_pointer to bind a symbol
7141 _CGImageCreateWithPNGDataProvider if it is defined.
7142
7143 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
7144 (x_draw_bar_cursor): Sync declaration with xterm.c.
7145 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
7146 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
7147 graphics).
7148 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
7149 (mac_draw_line_to_pixmap, XCreatePixmap)
7150 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
7151 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
7152 New functions.
7153 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
7154 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
7155 Cast bits to char *.
7156 (reflect_byte): New function (from w32fns.c).
7157 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
7158 due to byte alignment.
7159 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
7160 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
7161 (XSetForeground): Remove static (now used in macfns.c).
7162 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
7163 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
7164 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
7165 (x_draw_glyph_string_box, x_draw_image_foreground)
7166 (x_draw_image_foreground_1, x_draw_image_glyph_string)
7167 (x_draw_stretch_glyph_string, x_draw_glyph_string)
7168 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
7169 Sync with xterm.c.
7170 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
7171 than the xterm.c version when a strictly horizontal or vertical
7172 line is drawn.
7173 (XTset_terminal_window): Add static.
7174 (x_make_frame_visible): Add UNBLOCK_INPUT.
7175 (x_free_frame_resources): New funcion (from xterm.c).
7176 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
7177 occurs in tool bar area.
7178 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
7179 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
7180 Initialize image cache.
7181 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
7182 Enclose unused functions with #if 0.
7183 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
7184 (decode_mac_font_name): New function to apply code conversions
7185 from a mac font name to an XLFD font name according to its script code.
7186 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
7187 font name to a mac font name according to REGISTRY and ENCODING fields.
7188 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
7189 whose name starts with `.'.
7190 (init_font_name_table): Use decode_mac_font_name. Add both
7191 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
7192 of a font is smJapanese.
7193 (mac_do_list_fonts): New function to list fonts that match a given
7194 pattern.
7195 (x_list_fonts, XLoadQueryFont): Use it.
7196 (XLoadQueryFont): Set rbearing field for each variable width
7197 character to avoid needless redraw.
7198 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
7199
7200 2004-02-26 Kim F. Storm <storm@cua.dk>
7201
7202 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
7203 as read_socket_hook handler on X aborts if buffer is too small
7204 and W32 handler doesn't always check buffer limit.
7205
7206 * xdisp.c (handle_single_display_prop): Handle left-fringe and
7207 right-fringe similar to a display margin image. Specifically,
7208 the characters having the fringe prop are no longer shown, and
7209 we use IT_IMAGE/next_element_from_image with image_id = -1 to
7210 do this. Set fringe bitmap face_id in it->face_id.
7211 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
7212 still realize it->face (i.e. the fringe bitmap face).
7213
7214 2004-02-25 Miles Bader <miles@gnu.org>
7215
7216 * xdisp.c (check_it): Check string/string_pos consistency.
7217 (init_iterator): Initialize string-related fields properly.
7218
7219 2004-02-11 Miles Bader <miles@gnu.org>
7220
7221 * xdisp.c (produce_image_glyph): Force negative descents to zero.
7222
7223 2004-02-10 Miles Bader <miles@gnu.org>
7224
7225 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
7226 BLOCK_INPUT can be nested, so it doesn't make much sense.
7227
7228 2004-02-24 Michael Mauger <mmaug@yahoo.com>
7229
7230 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
7231 (xbm_read_bitmap_data): Use unsigned char for image data.
7232
7233 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
7234
7235 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
7236
7237 2004-02-22 Jason Rumney <jasonr@gnu.org>
7238
7239 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
7240 correctly over other bitmaps.
7241
7242 2004-02-21 Eli Zaretskii <eliz@gnu.org>
7243
7244 * emacs.c (USAGE1): Split into two halves.
7245 (USAGE2): Second half of the old USAGE1.
7246 (USAGE3): Rename from USAGE2.
7247 (USAGE4): Rename from USAGE3.
7248
7249 2004-02-21 Juri Linkov <juri@jurta.org>
7250
7251 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
7252 Fix --multibyte. Move --help, --version to USAGE2. Add alias
7253 --file. Fix -f, -l. Sort options. Untabify.
7254 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
7255
7256 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
7257
7258 * category.c (Fdefine_category, Fcategory_docstring)
7259 (Fget_unused_category, Fset_category_table)
7260 (Fcategory_set_mnemonics): Doc fixes.
7261
7262 2004-02-20 Kim F. Storm <storm@cua.dk>
7263
7264 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
7265 The following changes are relative to the 2004-01-21 revision.
7266 (NREAD_INPUT_EVENTS): Define as max number of input events to read
7267 in one call to read_socket_hook. Value is 8.
7268 (read_avail_input): Separate and rework handling of read_socket_hook
7269 and non-read_socket_hook cases. Use smaller input_event buffer
7270 in read_socket_hook case, and repeat if full buffer is read.
7271 Use new local variable 'discard' to skip input after C-g.
7272 In non-read_socket_hook case, just use a single input_event, and
7273 call kbd_buffer_store_event on the fly for each character.
7274
7275 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
7276
7277 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
7278 Remove unused `gu' alternative.
7279
7280 2004-02-19 Andreas Schwab <schwab@suse.de>
7281
7282 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
7283 warning.
7284
7285 2004-02-18 Kim F. Storm <storm@cua.dk>
7286
7287 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
7288 Fix last change.
7289
7290 2004-02-17 Kim F. Storm <storm@cua.dk>
7291
7292 * xdisp.c (fast_find_position): Fix return value of new version;
7293 it was inverted compared to the 21.1 version.
7294 (get_window_cursor_type): Don't look at glyph if NULL.
7295 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
7296
7297 * keyboard.c: Rework previous change; it didn't consider that the
7298 buf array was allocated on the stack.
7299 (prev_read): Remove variable.
7300 (read_avail_input_buf): New static event buffer array.
7301 (in_read_avail_input): New static variable to handle re-entrancy.
7302 (read_avail_input): Change buf to pinter to read_avail_input_buf.
7303 Use in_read_avail_input to handle re-entrance; when re-entered,
7304 fully initialize and use tmp_buf array instead of read_avail_input_buf.
7305 Do not initialize read_avail_input_buf in full here; instead assume it
7306 is always cleared on entry. To ensure that, we clear (just) the
7307 entries that were used before we return.
7308 (init_keyboard): Initialize read_avail_input_buf here.
7309
7310 2004-02-16 Jesper Harder <harder@ifa.au.dk>
7311
7312 * cmds.c (Fend_of_line): Doc fix.
7313
7314 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
7315
7316 * keyboard.c (prev_read): New static variable.
7317 (read_avail_input): Use it to zero out only those slots in buf[]
7318 that were used last time we were called.
7319
7320 2004-02-16 Eli Zaretskii <eliz@gnu.org>
7321
7322 * Makefile.in (obj): Move fringe.o from here...
7323 (XOBJ, MAC_OBJ): ...to here.
7324
7325 2004-02-16 Stephen Eglen <stephen@gnu.org>
7326
7327 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
7328
7329 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
7330
7331 * data.c (Fbyteorder):
7332 * fringe.c (Fdefine_fringe_bitmap):
7333 * xdisp.c (handle_single_display_prop):
7334 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
7335
7336 2004-02-16 Jason Rumney <jasonr@gnu.org>
7337
7338 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
7339
7340 2004-02-15 Steven Tamm <steventamm@mac.com>
7341
7342 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
7343 controlling emulation of a three button mouse with option and
7344 command keys.
7345 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
7346 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
7347
7348 2004-02-15 Kim F. Storm <storm@cua.dk>
7349
7350 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
7351
7352 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
7353 Perform byte-swapping.
7354
7355 2004-02-14 Kim F. Storm <storm@cua.dk>
7356
7357 * dispextern.h (struct draw_fringe_bitmap_params): Change member
7358 bits from char to short to facilitate wider bitmaps.
7359 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
7360 member.
7361
7362 * fringe.c (struct fringe_bitmap): Change member bits from char to
7363 short to facilitate 16 bits wide bitmaps. Modify all standard
7364 bitmaps accordingly.
7365 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
7366 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
7367 (draw_fringe_bitmap): Ditto.
7368 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
7369 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
7370 handle up to 16 bits wide bitmaps.
7371 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
7372 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
7373
7374 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
7375 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
7376 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
7377
7378 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
7379 so it is no longer necessary to expand them here.
7380
7381 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
7382
7383 2004-02-12 Kim F. Storm <storm@cua.dk>
7384
7385 * window.c (Fwindow_fringes): Doc fix.
7386
7387 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7388
7389 * xselect.c (x_get_foreign_selection): Add new optional parameter
7390 time_stamp.
7391 (Fx_get_selection_internal): Ditto, pass time_stamp to
7392 x_get_foreign_selection.
7393
7394 * data.c (Fbyteorder): New function.
7395
7396 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7397
7398 * atimer.c: Move include stdio.h to same place as in other files.
7399
7400 * region-cache.c: Ditto.
7401
7402 * sysdep.c: Ditto.
7403
7404 * xfaces.c: Ditto.
7405
7406 2004-02-09 Sam Steingold <sds@gnu.org>
7407
7408 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
7409
7410 2004-02-09 Kim F. Storm <storm@cua.dk>
7411
7412 * fringe.c: New file. Move original fringe related declarations
7413 and code from dispextern.h and xdisp.c here.
7414 Rework code to support user defined fringe bitmaps, redefining
7415 standard bitmaps, ability to overlay user defined bitmap with
7416 overlay arrow bitmap, and add faces to bitmaps.
7417 (Voverflow_newline_into_fringe): Declare here.
7418 (enum fringe_bitmap_align): New enum.
7419 (..._bits): All bitmaps are now defined without bitswapping; that
7420 is now done in init_fringe_once (if necessary).
7421 (standard_bitmaps): New array with specifications for the
7422 standard fringe bitmaps.
7423 (fringe_faces): New array.
7424 (valid_fringe_bitmap_id_p): New function.
7425 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
7426 (draw_fringe_bitmap): New function which draws fringe bitmap,
7427 possibly overlaying bitmap with cursor in right fringe or the
7428 overlay arrow in the left fringe.
7429 (update_window_fringes): Do not handle overlay arrow here.
7430 Compare and copy fringe bitmap faces.
7431 (init_fringe_bitmap): New function.
7432 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
7433 define and destroy user defined fringe bitmaps.
7434 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
7435 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
7436 (syms_of_fringe): New function. Defsubr new DEFUNs.
7437 DEFVAR_LISP Voverflow_newline_into_fringe.
7438 (init_fringe_once, init_fringe): New functions.
7439 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
7440
7441 * Makefile.in (obj): Add fringe.o.
7442 (fringe.o): New dependencies.
7443
7444 * dispextern.h (FRINGE_ID_BITS): New definition for number of
7445 bits allocated to hold a fringe number. Increase number of bits
7446 from 4 to 8 to allow user defined fringe bitmaps.
7447 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
7448 left_user_fringe_face_id, right_user_fringe_bitmap,
7449 right_user_fringe_face_id.
7450 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
7451 Move to new file fringe.c.
7452 (MAX_FRINGE_BITMAPS): Define here.
7453 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
7454 and overlay_p. Change member which to int.
7455 (struct redisplay_interface): New members define_fringe_bitmap
7456 and destroy_fringe_bitmap.
7457 (valid_fringe_bitmap_id_p): Add prototype.
7458 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
7459
7460 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
7461 arrows.
7462 (update_frame): Do flush_display if force_flush_display_p to
7463 ensure display (specifically fringes) are updated in a timely
7464 manner when resizing the frame by dragging the mouse.
7465 (update_window_line): Update row if overlay arrow changed.
7466 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
7467 or overlay arrow changed.
7468
7469 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
7470 syms_of_fringe, and init_fringe.
7471
7472 * frame.h (struct frame): New member force_flush_display_p.
7473
7474 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
7475 Add prototypes.
7476
7477 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
7478 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
7479 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
7480 Use cursor color for displaying cursor in fringe.
7481 (x_redisplay_interface): Add null handlers for
7482 define_fringe_bitmap and destroy_fringe_bitmap functions.
7483
7484 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
7485 xterm.c to handle overlayed fringe bitmaps and to use cursor color
7486 for displaying cursor in fringe.
7487 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
7488 specific functions to define and destroy fringe bitmaps in fringe_bmp.
7489 (w32_redisplay_interface): Add them to redisplay_interface.
7490 (w32_term_init): Call w32_init_fringe instead of explicitly
7491 defining fringe bitmaps in fringe_bmp array.
7492 (x_delete_display): Call w32_reset_fringes instead of explicitly
7493 destroying fringe bitmaps in fringe_bmp array.
7494
7495 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
7496 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
7497 (continued_bits, continuation_bits, ov_bits, first_line_bits)
7498 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
7499 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
7500 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
7501 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
7502 Move fringe handling vars and code to new file fringe.c.
7503 (handle_display_prop): Handle left-fringe and right-fringe
7504 display properties; store user fringe bitmaps in iterator.
7505 (move_it_in_display_line_to): Handle cursor in fringe at eob.
7506 (clear_garbaged_frames): Set force_flush_display_p if resized.
7507 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
7508 (display_line): Handle cursor in fringe at eob.
7509 (display_line): Set row user fringe bitmaps from iterator.
7510
7511 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
7512 Use cursor color for displaying cursor in fringe.
7513 (x_redisplay_interface): Add null handlers for
7514 define_fringe_bitmap and destroy_fringe_bitmap functions.
7515
7516 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7517
7518 * macfns.c (Fx_change_window_property): Make doc string and
7519 parameters same as for X version.
7520
7521 * w32fns.c (Fx_change_window_property): Ditto.
7522
7523 2004-02-07 Kim F. Storm <storm@cua.dk>
7524
7525 * xdisp.c (hscroll_window_tree): Position cursor near to right
7526 margin in hscrolled window when jumping to end of line (rather
7527 than centering cursor).
7528
7529 * process.c (wait_reading_process_input): Don't do adaptive read
7530 buffering if waiting for a specific process.
7531
7532 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
7533
7534 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
7535 (Fread_minibuffer, Feval_minibuffer)
7536 (Fread_string, Fread_no_blanks_input)
7537 (Fcompleting_read): Doc fixes.
7538 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
7539 completion-regexp-list. Define Qcase_fold_search and staticpro it.
7540 (read_minibuf): Fix initial comment.
7541 (Ftry_completion, Fall_completions, Ftest_completion): Bind
7542 case-fold-search to the value of completion-ignore-case when
7543 checking completion-regexp-list.
7544 (Fdisplay_completion_list): Make it handle arguments that are
7545 symbols. Doc fix.
7546
7547 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7548
7549 * xterm.h: Add declaration of free_frame_menubar.
7550
7551 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
7552 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
7553 (Fx_change_window_property): Add declaration of parameters type and
7554 format. Remove unused variable cons.
7555
7556 * xselect.c: Include stdio,h.
7557
7558 2004-02-05 Kenichi Handa <handa@m17n.org>
7559
7560 * fns.c (Fset_char_table_range): Fix previous change.
7561
7562 * buffer.c (Fset_buffer_multibyte): Fix docstring.
7563
7564 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
7565
7566 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
7567
7568 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
7569
7570 * keymap.c (Vmouse_events): Rename from Vmenu_events.
7571 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
7572
7573 2004-02-04 Kenichi Handa <handa@m17n.org>
7574
7575 * fns.c (Fset_char_table_range): Handle charsets ascii,
7576 eight-bit-control, and eight-bit-graphic correctly.
7577
7578 2004-02-03 Jason Rumney <jasonr@gnu.org>
7579
7580 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
7581
7582 * w32fns.c (x_to_w32_font): Likewise.
7583
7584 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7585
7586 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
7587 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
7588
7589 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
7590 ClientMessages.
7591
7592 * xselect.c: Include termhooks.h and X11/Xproto.h
7593 (x_check_property_data, x_fill_property_data)
7594 (x_property_data_to_lisp, mouse_position_for_drop)
7595 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
7596 (Fx_send_client_event): Move here from xfns.c.
7597 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
7598
7599 * xfns.c (x-send-client-message): Move to xselect.c
7600 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
7601 OUTER_P.
7602 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
7603 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
7604 if vector_ret_p is true.
7605 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
7606
7607 2004-02-02 Eli Zaretskii <eliz@gnu.org>
7608
7609 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
7610 basename of FILE relative to it, not FILE itself.
7611
7612 2004-02-02 Kenichi Handa <handa@m17n.org>
7613
7614 * coding.c (coding_restore_composition): Check invalid
7615 composition data more rigidly.
7616
7617 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
7618
7619 * fileio.c (Fread_file_name_internal): Correctly handle the case
7620 where insert-default-directory is nil.
7621 (Fread_file_name): Always return an empty string if the user exits
7622 with an empty minibuffer. Adapt the docstring accordingly.
7623 (syms_of_fileio): Adapt the docstring of insert-default-directory
7624 to the change in Fread_file_name.
7625
7626 2004-01-29 Eli Zaretskii <eliz@gnu.org>
7627
7628 * alloca.c [!alloca]: Fix the prototype for xfree.
7629
7630 2004-01-29 Kenichi Handa <handa@m17n.org>
7631
7632 * fns.c (string_char_to_byte): Optimize for ASCII only string.
7633 (string_byte_to_char): Likewise.
7634
7635 2004-01-28 Peter Runestig <peter@runestig.com>
7636
7637 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
7638
7639 2004-01-27 Steven Tamm <steventamm@mac.com>
7640
7641 * unexmacosx.c (unexec_copy): Do not copy more than was
7642 requested to prevent overwriting during unexec.
7643
7644 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7645
7646 * process.c (sigchld_handler): Add comment about not calling malloc.
7647
7648 * process.h: Add extern to synch_process_termsig.
7649
7650 2004-01-27 Steven Tamm <steventamm@mac.com>
7651
7652 * macterm.c (make_mac_frame, make_mac_terminal_frame):
7653 Move setting of scroll bars from make_mac_frame to
7654 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
7655
7656 2004-01-26 Richard M. Stallman <rms@gnu.org>
7657
7658 * search.c (Freplace_match): Handle nonexistent
7659 back-references properly.
7660
7661 2004-01-03 Richard M. Stallman <rms@gnu.org>
7662
7663 * window.c (decode_any_window): New function.
7664 (Fwindow_height, Fwindow_width, Fwindow_edges)
7665 (Fwindow_pixel_edges, Fwindow_inside_edges)
7666 (Fwindow_inside_pixel_edges): Use decode_any_window.
7667
7668 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7669
7670 * process.h: synch_process_termsig new variable.
7671
7672 * callproc.c: Define synch_process_termsig.
7673 (Fcall_process): Initiate synch_process_termsig to zero and
7674 check if non-zero and get signal name after subprocess has ended.
7675
7676 * process.c (sigchld_handler): Set synch_process_termsig
7677 if terminated by a signal. synch_process_death setting removed.
7678
7679 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
7680
7681 2004-01-26 Andreas Schwab <schwab@suse.de>
7682
7683 * print.c (print_preprocess): Declare size as EMACS_INT to not
7684 lose bits.
7685 (print_object): Likewise.
7686 * alloc.c (Fpurecopy): Likewise.
7687
7688 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
7689
7690 * window.c (Fwindow_minibuffer_p): Doc fix.
7691
7692 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
7693
7694 * editfns.c (Fformat): Make both passes accept the same set of flags.
7695
7696 2004-01-23 Kenichi Handa <handa@m17n.org>
7697
7698 * fns.c (Fmd5): If OBJECT is a buffer different from the current
7699 one, set buffer to OBJECT temporarily.
7700
7701 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7702
7703 * keyboard.c (kbd_buffer_gcpro): Remove.
7704 (kbd_buffer_store_event, clear_event, Fdiscard_input)
7705 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
7706 Don't initialize and/or maintain the variable any more. It was made
7707 redundant by my commit of 2003-06-15.
7708
7709 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
7710
7711 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7712
7713 * lisp.h: Add undef DECL_ALIGN.
7714
7715 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7716
7717 * process.c (wait_reading_process_input) [SYNC_INPUT]:
7718 Check interrupt_input_pending explicitly.
7719
7720 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
7721
7722 * keyboard.c (handle_async_input): New fun,
7723 extracted from input_available_signal.
7724 (input_available_signal, reinvoke_input_signal): Use it.
7725
7726 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
7727
7728 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
7729
7730 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
7731 manipulation macros for when tags are in the lower bits.
7732 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
7733 (DECL_ALIGN): New macro.
7734 (DEFUN): Use it.
7735
7736 * lisp.h [ENABLE_CHECKING]: Don't force union type.
7737
7738 * s/darwin.h (__attribute__): Remove outdated workaround.
7739
7740 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
7741
7742 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
7743 Don't check range of malloc address.
7744 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
7745
7746 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
7747
7748 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
7749
7750 2004-01-19 Kenichi Handa <handa@m17n.org>
7751
7752 * fontset.c (fontset_font_pattern): Fix previous change.
7753
7754 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
7755
7756 * xdisp.c (Voverflow_newline_into_fringe)
7757 (move_it_in_display_line_to, redisplay_internal)
7758 (update_window_fringes, redisplay_window, display_line, window):
7759 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
7760 that it compiles without a window-system.
7761 * dispnew.c (direct_output_for_insert, update_window): Likewise.
7762
7763 2004-01-16 Kim F. Storm <storm@cua.dk>
7764
7765 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
7766
7767 * buffer.c (init_buffer_once): Set buffer_defaults and
7768 buffer_local_flags for indicate_buffer_boundaries.
7769 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
7770 default- variable for it.
7771
7772 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
7773 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
7774 New members exact_window_width_line_p and cursor_in_fringe_p for
7775 overflowing newlines into right fringe.
7776 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
7777 and indicate_bottom_line_p for buffer boundaries and scrolling.
7778 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
7779 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
7780 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
7781 and HOLLOW_SQUARE_BITMAP.
7782 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
7783 Add prototypes.
7784
7785 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
7786 instead of related indicator fields.
7787 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
7788 (direct_output_for_insert): Handle exact width lines like
7789 contined lines. Call update_window_fringes.
7790 (update_window): Call update_window_fringes.
7791 (scrolling_window): Don't skip desired rows with changed bitmaps.
7792 Check if fringe bitmaps changes when assigning scrolled rows.
7793
7794 * xdisp.c (Voverflow_newline_into_fringe): New variable.
7795 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
7796 (move_it_in_display_line_to): Overflow newline into fringe for
7797 rows that are exactly as wide as the window.
7798 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
7799 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
7800 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
7801 (fringe_bitmaps): Add new bitmaps.
7802 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
7803 Select proper bitmap for cursor in fringe when appropriate.
7804 Handle alignment of bitmap to top or bottom of row.
7805 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
7806 done by update_window_fringes.
7807 (update_window_fringes, draw_window_fringes): New functions.
7808 (redisplay_internal): Call update_window_fringes in case only
7809 cursor row is updated.
7810 (redisplay_window): Call update_window_fringes.
7811 Explicitly call draw_window_fringes if redisplay was done using
7812 the current matrix or the overlay arrow is in the window.
7813 (try_window_reusing_current_matrix): Mark scrolled rows for
7814 fringe update (to update buffer-boundaries / scrolling icons).
7815 (find_last_unchanged_at_beg_row): Handle exact width lines line
7816 continued lines.
7817 (display_line): Overflow newline into fringe for rows that are
7818 exactly as wide as the window. Don't append space for newline
7819 in this case.
7820 (notice_overwritten_cursor): Explicitly clear cursor bitmap
7821 in fringe as if it had been overwritten.
7822 (erase_phys_cursor): Erase cursor bitmap in fringe.
7823 (syms_of_xdisp): Mark show-trailing-whitespace and
7824 void-text-area-pointer as user options.
7825 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
7826
7827 * xterm.c (x_update_window_end): Call draw_window_fringes.
7828 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7829 in row instead of actually drawing fringe bitmaps.
7830 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7831 (x_draw_window_cursor): Draw cursor in fringe.
7832
7833 * w32term.c (x_update_window_end): Call draw_window_fringes.
7834 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7835 in row instead of actually drawing fringe bitmaps.
7836 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7837 (w32_draw_window_cursor): Draw cursor in fringe.
7838
7839 * macterm.c (x_update_window_end): Call draw_window_fringes.
7840 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7841 in row instead of actually drawing fringe bitmaps.
7842 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7843 (mac_draw_window_cursor): Draw cursor in fringe.
7844
7845 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7846
7847 * xterm.c (handle_one_xevent): Don't handle characters that are part
7848 of an old style (XLookupString) compose sequence.
7849
7850 2004-01-15 Kenichi Handa <handa@m17n.org>
7851
7852 * search.c (Freplace_match): Use make_multibyte_string or
7853 make_unibyte_string according to the buffer multibyteness.
7854
7855 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
7856
7857 * alloc.c (struct interval_block, struct string_block)
7858 (struct symbol_block, struct marker_block, live_string_p)
7859 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
7860 Better preserve alignment for objects in blocks.
7861 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
7862
7863 * lread.c (defvar_per_buffer): Remove dead declaration.
7864
7865 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
7866 space size.
7867
7868 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7869
7870 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
7871 if a key press should pop down. Only pop down if a key is pressed
7872 outside the menu/dialog.
7873 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
7874 popup_get_selection.
7875 (create_and_show_dialog): Pass 1 for down_on_keypress to
7876 popup_get_selection.
7877
7878 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7879
7880 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
7881 BLOCK/UNBLOCK_INPUT.
7882
7883 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7884
7885 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
7886 specified.
7887
7888 2004-01-08 Kenichi Handa <handa@m17n.org>
7889
7890 * editfns.c (Fformat): Fix '&' to '&&'.
7891
7892 2004-01-08 Andreas Schwab <schwab@suse.de>
7893
7894 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
7895 size if PSEUDOVECTOR_FLAG is set.
7896
7897 2004-01-07 Kenichi Handa <handa@m17n.org>
7898
7899 * charset.c (Fdeclare_equiv_charset): Fix docstring.
7900
7901 * fontset.c (fontset_ref_via_base): Fix previous change.
7902
7903 2004-01-07 Kim F. Storm <storm@cua.dk>
7904
7905 * process.c (read_process_output): Only activate adaptive
7906 buffering if we read less than 256 bytes at a time.
7907
7908 2004-01-06 Kim F. Storm <storm@cua.dk>
7909
7910 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
7911 object and image object. Return glyph width and height.
7912 (mode_line_string, marginal_area_string): Ditto.
7913
7914 * dispextern.h (buffer_posn_from_coords, mode_line_string)
7915 (marginal_area_string): Fix prototypes.
7916
7917 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
7918 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
7919 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
7920
7921 * keyboard.c (make_lispy_position): Use modified mode_line_string,
7922 buffer_posn_from_coords, and marginal_area_string functions to
7923 include both string object and image object in the lispy position.
7924 Also add actual glyph width and height to position.
7925 (read_key_sequence): Use real buffer position from mouse
7926 event to find keymap property even when click is in marginal area.
7927
7928 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
7929 mode_line_string and marginal_area_string functions to handle
7930 both string object and image object properties.
7931
7932 2004-01-06 Andreas Schwab <schwab@suse.de>
7933
7934 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
7935 character.
7936
7937 2004-01-02 Andreas Schwab <schwab@suse.de>
7938
7939 * macterm.c (emacs_options, x_initialized, same_x_server):
7940 Remove unused (and duplicated) definitions.
7941
7942 2004-01-02 Kim F. Storm <storm@cua.dk>
7943
7944 * process.h (struct Lisp_Process): New members for adaptive read
7945 buffering: adaptive_read_buffering, read_output_delay, and
7946 read_output_skip.
7947
7948 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
7949 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
7950 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
7951 (process_output_delay_count, process_output_skip): New vars.
7952 (Vprocess_adaptive_read_buffering): New variable.
7953 (make_process): Initialize adaptive read buffering members.
7954 (Fstart_process): Set adaptive_read_buffering member.
7955 (deactivate_process): Cleanup adaptive read buffering.
7956 (wait_reading_process_input): Temporarily omit delayed
7957 subprocesses from the set of file descriptors to read from;
7958 adjust the select timeout if we skipped any subprocesses.
7959 (read_process_output): Increase adaptive read buffering delay if
7960 we read less than a full buffer; reduce delay when we read a
7961 full buffer.
7962 (send_process): Simplify using local Lisp_Process var.
7963 Reset adaptive read buffering delay after write.
7964 (init_process): Initialize process_output_delay_count and
7965 process_output_skip.
7966 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
7967
7968 2004-01-01 Jason Rumney <jasonr@gnu.org>
7969
7970 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
7971
7972 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
7973
7974 * print.c (Ferror_message_string): Add hyperlink in the docstring
7975 to the definition of `signal' in the Elisp manual.
7976 * eval.c (Fsignal): Ditto.
7977
7978 2003-12-29 James Clark <jjc@jclark.com>
7979
7980 * fns.c (internal_equal): Return t for two NaN arguments.
7981
7982 2003-12-29 Richard M. Stallman <rms@gnu.org>
7983
7984 * data.c (store_symval_forwarding): Handle setting
7985 default-fill-column, etc., by changing the value in
7986 buffers that use the default.
7987
7988 * minibuf.c (Fset_minibuffer_window): Doc fix.
7989
7990 * fileio.c (choose_write_coding_system): Ignore auto_saving
7991 if using the visited file for auto saves.
7992 (Fwrite_region): Don't update SAVE_MODIFF
7993 if auto-saving in visited file.
7994
7995 2003-12-29 Kenichi Handa <handa@m17n.org>
7996
7997 * dispextern.h (face_font_available_p): Extern it.
7998
7999 * fontset.c (Voverriding_fontspec_alist): New variable.
8000 (lookup_overriding_fontspec): New function.
8001 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
8002 (fontset_font_pattern): Likewise.
8003 (regulalize_fontname): New function.
8004 (Fset_fontset_font): Call regulalize_fontname.
8005 (Fset_overriding_fontspec_internal): New function.
8006 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
8007 Defsubr Sset_overriding_fontspec_internal.
8008
8009 * xfaces.c (face_font_available_p): New function.
8010
8011 2003-12-28 Richard M. Stallman <rms@gnu.org>
8012
8013 * buffer.c (Fother_buffer): Don't crash if BUF is nil
8014 or if its name is nil.
8015
8016 * buffer.c (Fkill_buffer): Don't delete auto-save file
8017 if it's the same as the visited file.
8018
8019 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
8020
8021 * coding.c (Fcheck_coding_system): Doc fix.
8022
8023 2003-12-28 Kim F. Storm <storm@cua.dk>
8024
8025 * Makefile.in (eval.o): Depend on dispextern.h.
8026
8027 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
8028 image glyph using image's ascent.
8029 (mode_line_string): Return image glyph as object clicked on.
8030 Adjust y0 for image glyph using image's ascent.
8031
8032 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
8033 (struct glyph): New members, ascent and descent. Used to save
8034 this glyph's ascent and descent, instead of having.
8035 (struct glyph): Declare member face_id using FACE_ID_BITS.
8036 (find_hot_spot): Add prototype.
8037
8038 * keyboard.c (Qimage): Remove extern (now in lisp.h).
8039 (QCmap): Declare extern.
8040 (make_lispy_position): When position is inside image hot-spot,
8041 use hot-spot element's id as posn element.
8042
8043 * lisp.h (IMAGEP): New macro to test for image object type.
8044 (Qimage): Declare extern.
8045
8046 * macfns.c (Qimage): Remove extern (now in lisp.h).
8047 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8048
8049 * macterm.c (Qface, Qmouse_face): Remove unused externs.
8050
8051 * w32fns.c (Qimage): Remove extern (now in lisp.h).
8052 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8053
8054 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
8055
8056 * w32term.c (Qface, Qmouse_face): Remove unused externs.
8057
8058 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
8059 pointer types.
8060 (Qrelative_width, Qalign_to): Remove unused variables.
8061 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
8062 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
8063 image maps.
8064 (x_y_to_hpos_vpos): Return glyph relative coordinates through
8065 new dx and dy args.
8066 Remove buffer_only_p arg (always 0). Simplify code accordingly.
8067 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
8068 than row's ascent and height, to get sensible height on tall rows.
8069 (build_desired_tool_bar_string): Remove Qimage extern.
8070 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
8071 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
8072 image glyph is alone on the last line.
8073 (append_glyph, append_composite_glyph, produce_image_glyph)
8074 (append_stretch_glyph): Set glyph's ascent and descent.
8075 (on_hot_spot_p): New function to check if position is inside an
8076 rectangular, circular, or polygon-shaped image hot-spot,
8077 (find_hot_spot): New function to search for image hot-spot.
8078 (Flookup_image_map): New defun to search for image hot-spot.
8079 (define_frame_cursor1): New aux function to determine frame pointer.
8080 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8081 Handle `pointer' text property and :pointer image property to
8082 control frame pointer shape. Detect image hot-spots for pointer
8083 and help_echo properties. Use define_frame_cursor1.
8084 (note_mouse_highlight): Use Vvoid_text_area_pointer.
8085 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
8086 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
8087
8088 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
8089
8090 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
8091 (Qimage): Remove extern (now in lisp.h).
8092 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8093
8094 * xmenu.c (show_help_event): Remove unused code.
8095
8096 * xterm.c (Qface, Qmouse_face): Remove unused externs.
8097 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
8098 row's ascent and descent, to get a sensible height on tall rows.
8099
8100 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
8101
8102 * minibuf.c (Fcompleting_read): Undo previous change.
8103
8104 2003-12-25 Lars Hansen <larsh@math.ku.dk>
8105
8106 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
8107 Arguments GCPRO'ed in call to file name handler.
8108
8109 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
8110
8111 * termcap.c (tgetst1): Scan for "%pN"; if all
8112 N are continuous in [1,9], remove all "%pN".
8113
8114 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8115
8116 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
8117
8118 * xfaces.c (lface_fully_specified_p): Take into account that
8119 MAC OS always have unspecified stipple.
8120
8121 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
8122
8123 * tparam.c (tparam1): Add handling for `%pN', which
8124 means use param N for the next substitution.
8125
8126 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
8127
8128 * xfaces.c (Fcolor_gray_p): Fix omission bug:
8129 In case `frame' is nil, consult the selected frame.
8130 (Fcolor_supported_p): Likewise.
8131
8132 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
8133
8134 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
8135 Doc fixes.
8136
8137 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
8138 and an integer. Adapt the introductory comment accordingly.
8139 (Fread_from_minibuffer): Delete code moved into read_minibuf.
8140 Doc fix.
8141 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
8142 read_minibuf.
8143 (Fcompleting_read): Delete code moved into read_minibuf.
8144 (Ftest_completion): Make it handle obarrays and hash tables correctly.
8145
8146 2003-12-03 Kenichi Handa <handa@m17n.org>
8147
8148 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
8149 encoding sequence.
8150
8151 2003-12-01 Kenichi Handa <handa@m17n.org>
8152
8153 * composite.c (syms_of_composite): Don't make the compostion hash
8154 table week.
8155
8156 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
8157
8158 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
8159 * textprop.c (Fget_char_property_and_overlay): New function.
8160 (syms_of_textprop): Defsubr it.
8161
8162 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8163
8164 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
8165 to compile on terminal configuration.
8166
8167 * fileio.c (Fread_file_name): Check use_file_dialog also before
8168 calling Fx_file_dialog.
8169
8170 * fns.c: use_file_dialog: New variable.
8171 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
8172
8173 2003-11-29 Kim F. Storm <storm@cua.dk>
8174
8175 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
8176 (syms_of_msdos): Don't intern and staticpro them.
8177
8178 2003-11-27 Kim F. Storm <storm@cua.dk>
8179
8180 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
8181 coordinates relative to glyph at posn. If glyph is an image,
8182 return that as object at posn. Callers changed.
8183 (mode_line_string, marginal_area_string): Calculate and return
8184 pixel coordinates relative to glyph. Callers changed.
8185
8186 * dispextern.h (buffer_posn_from_coords, mode_line_string)
8187 (marginal_area_string): Fix prototypes.
8188 (window_box_left_offset, window_box_right_offset): Add prototypes.
8189
8190 * frame.h (get_specified_cursor_type, get_window_cursor_type):
8191 Remove prototypes.
8192
8193 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
8194
8195 * keyboard.c (make_lispy_position): Add x and y coordinates
8196 relative to the current glyph as 7th element of position.
8197 If glyph is an image, return it in the object element.
8198 (read_key_sequence): Skip checks for keymap property in cases
8199 where POSN_STRING is not a string (e.g. an image).
8200
8201 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
8202 (Vshow_text_cursor_in_void): New variable.
8203 (glyph_to_pixel_coords): Don't use negative hpos.
8204 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
8205 (append_stretch_glyph): Change ascent arg to be actual value
8206 in pixels rather than ratio to height. Callers changed.
8207 (calc_pixel_width_or_height): New aux function, implementing
8208 pixel based artihmetic for glyph widths and heights.
8209 (produce_stretch_glyph): Use calc_pixel_width_or_height for
8210 :width, :height, :align-to, and :ascent, thus allowing these to
8211 be specified in pixels as well as multiples of characters.
8212 Don't produce stretch glyphs with zero width or height.
8213 (get_specified_cursor_type): Declare static.
8214 (get_window_cursor_type): Declare static. Add glyph arg to be
8215 able to know when cursor is on an image; always substitute
8216 hollow-box cursor for filled-box cursor on images, to avoid
8217 negative images and flicker when blinking the cursor.
8218 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
8219 (note_mode_line_or_margin_highlight): Use non-text cursor rather
8220 than vertical scroll-bar cursor in display margins.
8221 (note_mouse_highlight): Use non-text cursor rather than text
8222 cursor in fringes and over images in the text area.
8223 Use non-text cursor when mouse pointer is outside editable text,
8224 i.e. in the void after end-of-line or end-of-buffer; this was
8225 already done for W32, but is now standard for all systems --
8226 user can toggle show-text-cursor-in-void to get old behaviour.
8227 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
8228 Vdisplay_pixels_per_inch.
8229
8230 2003-11-25 Andreas Schwab <schwab@suse.de>
8231
8232 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
8233 EMACS_INT to not lose bits.
8234 (Ffillarray): Don't set bits beyond the size of a bool vector.
8235
8236 2003-11-25 Kim F. Storm <storm@cua.dk>
8237
8238 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
8239 define this defun on systems that cannot use stderr as lvalue.
8240
8241 2003-11-24 Gerd Moellmann <gerd@gnu.org>
8242
8243 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
8244 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
8245 ld's default is incompatible with unexec.
8246
8247 2003-11-23 Kim F. Storm <storm@cua.dk>
8248
8249 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
8250 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
8251 (Fforce_window_update): New defun.
8252 (syms_of_window): Defsubr it.
8253 (Fset_window_margins, Fset_window_fringes): Doc fix.
8254
8255 * print.c (Fredirect_debugging_output): New defun.
8256 (syms_of_print): Defsubr it.
8257
8258 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
8259
8260 * fns.c (Fset_char_table_parent): Doc fix.
8261
8262 2003-11-22 Kim F. Storm <storm@cua.dk>
8263
8264 * dispnew.c (buffer_posn_from_coords): Return actual row/column
8265 for glyph clicked on, rather than (unused) pixel positions.
8266 (mode_line_string, marginal_area_string): Change X and Y args to
8267 pointers for returning actual row/column for glyph clicked on.
8268 Simplify and optimize loops.
8269
8270 * dispextern.h (mode_line_string, marginal_area_string):
8271 Update prototypes.
8272
8273 * keyboard.c (make_lispy_position): New function for generating
8274 mouse click positions from frame and pixel coordinates.
8275 Enhanced to return buffer position and actual row/column for
8276 events outside the text area using updated mode_line_string and
8277 marginal_area_string functions.
8278 Return left-fringe and right-fringe clicks as such, rather than
8279 clicks in text area.
8280 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
8281 pixel_to_glyph_coords, as we never use the results.
8282 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
8283 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
8284 Eliminate unused code in WHEEL_EVENT handling.
8285 (make_lispy_movement): Use make_lispy_position.
8286
8287 * window.c (coordinates_in_window): Remove redundant tests.
8288 Fix returned X pixel value for left-margin.
8289
8290 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
8291 mode_line_string and marginal_area_string parameters.
8292
8293 2003-11-22 Lars Hansen <larsh@math.ku.dk>
8294
8295 * w32.c (struct the_group, getgrgid): Add.
8296 * mac.c (struct my_group, getgrgid): Add.
8297
8298 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
8299
8300 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
8301
8302 2003-11-21 Lars Hansen <larsh@math.ku.dk>
8303
8304 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
8305 include in call to file name handler. Optionally translate numeric
8306 UID and GID to strings. Update docstring.
8307 (directory_files_internal): Add parameter ID-FORMAT.
8308 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
8309 include in call to file name handler and call to
8310 directory_files_internal. Update Docstring.
8311 (Fdirectory_files): Add dummy parameter in call to
8312 directory_files_internal.
8313 * lisp.h (Qinteger): Add.
8314 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
8315 (Ffile_attributes): Add parameter.
8316 * data.c (Qinteger): Export.
8317
8318 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
8319
8320 * fns.c (Freverse, Fnreverse): Doc fixes.
8321
8322 2003-11-19 Kim F. Storm <storm@cua.dk>
8323
8324 * xdisp.c (init_iterator): Initialize it->start to position
8325 before reseating (in case start position is invisible).
8326 (init_to_row_start): Set it->start to row-start.
8327 (redisplay_window): Accept optional_new_start if start position
8328 is invisible (in which case IT_CHARPOS overshoots PT).
8329 (display_line): Setup row->start from it->start (rather than
8330 it->current which is wrong if first char on line is invisible).
8331 When done, reseat it->start to it->current (= start of next row).
8332 (expose_area): Fix exposure of text area when first char (e.g. TAB)
8333 is only partially visible.
8334
8335 * dispextern.h (struct it): New member start.
8336
8337 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8338
8339 * alloc.c (make_float, Fcons): Clear the markbit at init time.
8340 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
8341 of block_index outside of the macro call.
8342 (Fgarbage_collect): Remove null code.
8343
8344 * m/amdx86-64.h: Don't redefine XPNTR.
8345
8346 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
8347 of VALMASK.
8348
8349 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
8350 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
8351 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
8352
8353 * lisp.h (VALMASK): Only define for non-union type.
8354 (MARKBIT): Remove.
8355 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
8356 (XTYPE): Define unconditionally.
8357 (XSETTYPE): Remove one more remnant.
8358 (EQ): Define differently for the union and non-union cases.
8359 (INTMASK): New bit mask.
8360 (struct Lisp_Marker): Move down to prepare for upcoming patch.
8361 (GC_EQ): Delegate to EQ.
8362
8363 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
8364
8365 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8366
8367 * xterm.c (x_window_to_scroll_bar): Move check of display to
8368 where window_id is compared.
8369
8370 2003-11-17 Kim F. Storm <storm@cua.dk>
8371
8372 * dispextern.h (struct it): New member first_vpos.
8373
8374 * xdisp.c (start_display): Set it->first_vpos.
8375 (try_window_id): Use first_vpos to start display in first _text_
8376 line if no reusable lines at start of window with header line.
8377
8378 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8379
8380 * w32fns.c (XPutPixel):
8381 * w32bdf.c (w32_init_bdf_font):
8382 * sunfns.c (sel_read):
8383 * process.c (Fmake_network_process):
8384 * frame.c (store_frame_param):
8385 * fontset.c (Fset_fontset_font):
8386 * emacs.c (shut_down_emacs):
8387 * ccl.c (ccl_driver): Remove period at end of error message.
8388
8389 * config.in: Regenerate.
8390
8391 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8392 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8393 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
8394 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
8395 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
8396
8397 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
8398
8399 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
8400 (XTmouse_position, handle_one_xevent): Pass Display* to
8401 x_window_to_scroll_bar.
8402 (x_window_to_scroll_bar): Take a Display* argument.
8403 Check that display for frame is equal to Display* argument.
8404 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
8405 x_display_info_for_display instead. Use Display in xev instead
8406 of GDK_DISPLAY.
8407 (x_dispatch_event): Call x_display_info_for_display.
8408 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
8409 (x_connection_closed): Call xg_display_close for GTK.
8410 (x_term_init): Call xg_display_open for additional displays.
8411 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
8412 for GTK.
8413
8414 * xmenu.c (single_menu_item, mouse_position_for_popup)
8415 (x_activate_menubar): Formatting adjustments.
8416
8417 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
8418 adjustments.
8419
8420 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
8421 (xg_display_close, xg_create_default_cursor)
8422 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
8423 handling.
8424 (xg_left_ptr_cursor): Remove.
8425 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
8426 cursor here.
8427 (xg_win_to_widget): Take Display* argument, call
8428 gdk_xid_table_lookup_for_display.
8429 (xg_create_frame_widgets, xg_get_file_name, create_menus)
8430 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
8431 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
8432 in FRAME_X_DISPLAY_INFO.
8433 (xg_get_scroll_id_for_window): Take Display* argument.
8434 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
8435 (xg_initialize): Remove xg_left_ptr_cursor.
8436
8437 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
8438 Display* argument.
8439 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
8440
8441 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8442
8443 * xterm.c (x_detect_focus_change): Do not change focus frame for
8444 Enter/LeaveNotify if the current focus frame has explicit focus.
8445
8446 2003-11-14 Kim F. Storm <storm@cua.dk>
8447
8448 * dispnew.c (update_text_area): Fix redisplay error when hscroll
8449 is active and first glyph is only partially visible.
8450
8451 2003-11-13 Kenichi Handa <handa@m17n.org>
8452
8453 * xdisp.c (select_frame_for_redisplay): New function.
8454 (redisplay_internal): Record also selected_frame for
8455 unwind_redisplay. Call select_frame_for_redisplay before
8456 redrawing each frame.
8457 (unwind_redisplay): Argument changed to a cons.
8458
8459 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
8460
8461 * fns.c (Fstring_to_multibyte): Doc fix.
8462
8463 2003-11-11 Kenichi Handa <handa@m17n.org>
8464
8465 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8466
8467 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8468
8469 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
8470 program specified positions.
8471
8472 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8473
8474 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
8475
8476 2003-11-08 Kenichi Handa <handa@m17n.org>
8477
8478 * Makefile.in (lisp): Add kannada.el.
8479 (shortlisp): Likewise.
8480
8481 2003-11-07 Kenichi Handa <handa@m17n.org>
8482
8483 * coding.c (coding_allocate_composition_data):
8484 Reset coding->composing to COMPOSITION_NO.
8485 (coding_restore_composition): Detect invalid composition data.
8486 Give Fstring and Fvector a Lispy integer, not C int.
8487
8488 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
8489
8490 * floatfns.c (Flogb): Don't use VALMASK.
8491
8492 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
8493 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
8494
8495 * lisp.h (XINT): Move the cast to clarify what is going on.
8496 (GCTYPEMASK, XSETTYPE): Remove.
8497 (XGCTYPE): Make it an alias of XTYPE.
8498
8499 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8500
8501 * xterm.c (x_term_init): Fix formatting.
8502
8503 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8504
8505 * gtkutil.h (xg_have_tear_offs): Declare.
8506 (xg_keep_popup, xg_did_tearoff): Remove.
8507
8508 * gtkutil.c: Remove variable xg_did_tearoff.
8509 (xg_have_tear_offs): New function.
8510 (tearoff_remove): Just decrease xg_detached_menus.
8511 (tearoff_activate): Increase xg_detached_menus and call
8512 tearoff_remove when tearoff is removed.
8513 (xg_keep_popup): Remove function.
8514 (create_menus): Give add_tearoff_p as argument to recursive
8515 call to create_menus.
8516 (xg_create_widget): Use variables instead of multiple
8517 strcmp. Tell create_menus to create tear off only for
8518 menu bar menus.
8519 (xg_update_menubar): Change title for a detached menu also.
8520 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
8521 of deep_p.
8522 (xg_initialize): Initialize xg_detached_menus, remove
8523 initialization of xg_did_tearoff.
8524
8525 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
8526 xg_have_tear_offs returns non-zero.
8527 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
8528 call to xg_keep_popup.
8529
8530 2003-11-01 Andrew Choi <akochoi@shaw.ca>
8531
8532 * macterm.c (XTread_socket): Handle menubar selection and grow
8533 window only for mouseDown events.
8534
8535 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8536
8537 * xterm.c (x_term_init): For GTK part, increase x_initialized
8538 to check for more than one display. Use error instead of return 0.
8539
8540 2003-10-31 Andrew Choi <akochoi@shaw.ca>
8541
8542 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
8543 (copy_dysymtab): Call it.
8544
8545 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
8546
8547 * eval.c (Fdefvaralias): Doc fix.
8548
8549 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
8550
8551 * data.c (Fsetplist): Doc fix.
8552
8553 2003-10-14 Lute Kamstra <lute@gnu.org>
8554
8555 * window.c (Fset_window_fringes): Clarify docstring.
8556
8557 2003-10-14 Kim F. Storm <storm@cua.dk>
8558
8559 * window.c (Fset_window_margins): Simplify arg checking.
8560
8561 2003-10-13 Richard M. Stallman <rms@gnu.org>
8562
8563 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
8564 (print_partial_compiled_pattern): Replace assert with a printout.
8565 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
8566
8567 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
8568
8569 * window.c (Fset_window_margins): Allow only integers as args.
8570 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
8571 Doc fixes.
8572
8573 2003-10-13 Lute Kamstra <lute@gnu.org>
8574
8575 * window.c (Fset_window_fringes): Elaborate docstring.
8576
8577 2003-10-12 Andrew Choi <akochoi@shaw.ca>
8578
8579 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
8580
8581 * s/darwin.h (GC_MARK_STACK): Define.
8582
8583 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8584
8585 * window.c (shrink_windows): New function.
8586 (size_window): Call shrink_windows to calculate window sizes when
8587 shrinking frame with more than one window.
8588
8589 2003-10-12 Kim F. Storm <storm@cua.dk>
8590
8591 * xdisp.c (compute_fringe_widths): Doc fix.
8592
8593 2003-10-08 Kenichi Handa <handa@m17n.org>
8594
8595 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
8596
8597 2003-10-07 Kenichi Handa <handa@m17n.org>
8598
8599 * coding.c (Qcoding_system_define_form): New variable.
8600 (syms_of_coding): Intern and staticpro it.
8601 (Fcheck_coding_system): Try to autoload the definition of
8602 CODING-SYSTEM.
8603
8604 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
8605
8606 * fns.c (Frequire): Doc fix.
8607
8608 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8609
8610 * xfns.c (Fx_send_client_event): New function as a base for
8611 manipulating extended window manager hints.
8612 (Fx_send_client_event): Remove unused variable s.
8613
8614 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
8615 that function is removed.
8616
8617 * xterm.c (x_set_offset): Use move_offset_left/top instead of
8618 x/y_pixels_outer_diff.
8619 (x_check_expected_move): Calculate move_offset_left/top.
8620
8621 * xterm.h (struct x_output): New members: move_offset_top/left.
8622
8623 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
8624 call x_set_offset directly.
8625
8626 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
8627
8628 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
8629
8630 * xterm.c (x_delete_display): Free font names and font_encoder
8631 in dpyinfo->font_table.
8632
8633 * xfns.c (Fx_close_connection): Only call XFreeFont here.
8634 Move xfree of font names to x_delete_display.
8635
8636 * xterm.h (struct x_display_info): New member, wm_type.
8637 (struct x_output): New members, expected_top/left and
8638 check_expected_move.
8639
8640 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
8641 is received.
8642 (handle_one_xevent): Rename x_check_expected_move from
8643 x_check_fullscreen_move.
8644 (x_set_offset): Only add WM decoration sizes to modified_top/left
8645 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
8646 (x_check_expected_move): Rename from x_check_fullscreen_move.
8647 Removed fullscreen specific code. Use check_expected_move,
8648 expected_left/top instead. Also, set wm_type.
8649 (x_term_init): Initialize wm_type to unknown.
8650
8651 * frame.c (x_fullscreen_move): Remove addition of WM decoration
8652 sizes to move_x/y.
8653
8654 2003-10-03 Kenichi Handa <handa@m17n.org>
8655
8656 * macterm.c (x_load_font): Clear all members of FONTP before start
8657 filling them.
8658
8659 2003-10-02 Kenichi Handa <handa@m17n.org>
8660
8661 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
8662 before calling find_ccl_program_func. Call find_ccl_program_func
8663 only when fontp->font_encoder is not NULL.
8664
8665 * xterm.c (x_load_font): Clear all members of FONTP before start
8666 filling them.
8667
8668 2003-10-03 John Paul Wallington <jpw@gnu.org>
8669
8670 * keymap.c (map_keymap): Don't abort when binding is a vector.
8671
8672 2003-10-02 Jason Rumney <jasonr@gnu.org>
8673
8674 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
8675 Sync dependencies with Makefile.in.
8676 (alloca.o): Remove.
8677
8678 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
8679 filling them.
8680
8681 * w32bdf.c (w32_load_bdf_font): Likewise.
8682
8683 2003-09-30 Richard M. Stallman <rms@gnu.org>
8684
8685 * term.c (set_tty_color_mode): Calculate current_mode_spec
8686 regardless of value of VAL.
8687
8688 * intervals.c (graft_intervals_into_buffer):
8689 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
8690 Handle over_used when splitting UNDER.
8691
8692 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8693
8694 * regex.c (regex_compile): Free the stack when returning from function.
8695
8696 2003-09-28 Kenichi Handa <handa@m17n.org>
8697
8698 * fontset.c (Finternal_char_font): Change return value to
8699 cons (FONT-NAME . GLYPH-CODE).
8700
8701 2003-09-28 Eli Zaretskii <eliz@gnu.org>
8702
8703 * term.c (tty_setup_colors): Treat any negative argument as -1.
8704
8705 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
8706
8707 * process.c (send_process): Delete unused temp_buf.
8708
8709 2003-09-26 Dave Love <fx@gnu.org>
8710
8711 * xterm.c (x_bitmap_mask): Declare.
8712
8713 2003-09-25 Dave Love <fx@gnu.org>
8714
8715 * Makefile.in (fns.o): Depend on md5.h.
8716
8717 2003-09-25 Kim F. Storm <storm@cua.dk>
8718
8719 * window.c (set_window_buffer): Fix redisplay problems when
8720 switching between buffers with different display margin widths.
8721
8722 2003-09-23 Kim F. Storm <storm@cua.dk>
8723
8724 * process.c (set_socket_option): Fix :bindtodevice option.
8725 (Fset_network_process_option): Update process contact list when
8726 setting option succeeds.
8727 (Fmake_network_process): Doc fix.
8728
8729 2003-09-23 Dave Love <fx@gnu.org>
8730
8731 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
8732
8733 2003-09-22 Eli Zaretskii <eliz@gnu.org>
8734
8735 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
8736 color mode is an integer number (it could be -1).
8737
8738 2003-09-22 Richard M. Stallman <rms@gnu.org>
8739
8740 * intervals.c (graft_intervals_into_buffer): Correct the main loop
8741 in the case where OVER is longer than UNDER.
8742
8743 2003-09-22 Masatake YAMATO <jet@gyve.org>
8744
8745 * window.c (Fset_window_scroll_bars): Validate the value of
8746 `vertical_type'.
8747
8748 2003-09-21 Kim F. Storm <storm@cua.dk>
8749
8750 * frame.c (Vdefault_frame_scroll_bars): New variable.
8751 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
8752 (syms_of_frame): DEFVAR_LISP it, and initialize according to
8753 window-system default scroll bar position.
8754
8755 * window.c (Fwindow_scroll_bars): Doc fix.
8756
8757 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8758
8759 * xterm.c (x_set_offset): Take window manager decorations into account.
8760
8761 2003-09-19 Richard M. Stallman <rms@gnu.org>
8762
8763 * atimer.h: Don't include lisp.h.
8764 (P_): Define it here (as well as elsewhere).
8765
8766 * print.c (Fprin1_to_string): Move the PRINTPREPARE
8767 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
8768
8769 * data.c (Fvariable_binding_locus): New function.
8770 (syms_of_data): defsubr it.
8771 (Flocal_variable_p): Delete duplicate call to indirect_variable.
8772
8773 2003-09-18 Dave Love <fx@gnu.org>
8774
8775 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
8776
8777 * process.c (Fnetwork_interface_info): Fix type error.
8778 (Fnetwork_interface_list): Doc fix.
8779 (read_process_output, read_process_output): Delete unused var.
8780
8781 2003-09-17 Kim F. Storm <storm@cua.dk>
8782
8783 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
8784 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
8785 (Fnetwork_interface_info): Check that ifreq struct has required
8786 fields before accessing them; this requires that those fields are
8787 defined as macros, which may be too restrictive on some platforms,
8788 but it is better than failing on other platforms.
8789 (syms_of_process): Only defsubr above fns when included.
8790
8791 2003-09-17 Dave Love <fx@gnu.org>
8792
8793 * unexalpha.c: Don't include varargs.h.
8794
8795 2003-09-17 Kim F. Storm <storm@cua.dk>
8796
8797 * process.c (Fset_process_sentinel): Add sentinel to childp plist
8798 for network process.
8799 (socket_options): Add `:' prefix to option names. Add optbit field.
8800 (set_socket_option): Remove no_error arg and special handling of s < 0.
8801 Return 1<<optbit for known option, 0 for unknown.
8802 Do not interpret 0 as false for boolean option (only nil).
8803 Pass failed option and value to report_file_error.
8804 (Fset_network_process_options): Replace by Fset_network_process_option.
8805 (Fset_network_process_option): New function to set just one option.
8806 (Fmake_network_process): Allow :coding arg to be a cons.
8807 Allow :server arg to be an integer specifying backlog size.
8808 Remove :options arg, and allow options to be specified directly
8809 as :KEY, VALUE pairs. Parse these options before binding socket.
8810 As before, :reuseaddr t is default for a server process, but this
8811 can now be disabled by specifying :reuseaddr nil.
8812 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
8813 (init_process): Availability of network options is now checked with
8814 simpler syntax (featurep 'make-network-process :OPTION); use loop to
8815 setup features.
8816 (syms_of_process): Fix defsubr's for the replaced functions.
8817
8818 2003-09-16 Dave Love <fx@gnu.org>
8819
8820 * Makefile.in: Depend on coding.h.
8821
8822 2003-09-14 Kim F. Storm <storm@cua.dk>
8823
8824 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
8825 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
8826 (syms_of_process): Defsubr them.
8827
8828 * config.in: Regenerate.
8829
8830 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8831
8832 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
8833 * m/news-r6.h (XUNMARK): Remove.
8834 * m/mips.h (XUNMARK): Remove.
8835 * m/mips-siemens.h (XUNMARK): Remove.
8836 * m/iris4d.h (XUNMARK): Remove.
8837 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
8838
8839 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8840
8841 * lisp.h (VALBITS): Don't remove 1 for the markbit.
8842 (union Lisp_Object): Use unsigned int for types. Remove markbit.
8843 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
8844 (XTYPE): Use unsigned right-shift.
8845 (XMARKBIT, XMARK, XUNMARK): Remove.
8846
8847 * alloc.c (init_intervals, init_symbol, init_marker):
8848 Don't preallocate anything.
8849 (Fgarbage_collect, mark_object): Ignore the markbit.
8850
8851 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
8852
8853 2003-09-08 Lute Kamstra <lute@gnu.org>
8854
8855 * xdisp.c (pint2hrstr): New function.
8856 (decode_mode_spec): Add `%i' and `%I' specs.
8857 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
8858 for `mode-line-format'.
8859
8860 2003-09-07 Andreas Schwab <schwab@suse.de>
8861
8862 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
8863 avoid warning.
8864
8865 2003-09-07 Eli Zaretskii <eliz@gnu.org>
8866
8867 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
8868
8869 2003-09-03 Kim F. Storm <storm@cua.dk>
8870
8871 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
8872 change (superseded by 2002-08-30 change); the default blink-off
8873 cursor is now again "no cursor".
8874
8875 2003-09-01 Jason Rumney <jasonr@gnu.org>
8876
8877 * makefile.w32-in (alloca.o): Remove.
8878 (coding.o): Depend on intervals.h
8879 (emacs.o, bytecode.o): Depend on window.h
8880
8881 2003-09-01 Dave Love <fx@gnu.org>
8882
8883 * Makefile.in (alloca.o): Remove commands.
8884 (coding.o): Depend on intervals.h composite.h window.h.
8885 (emacs.o): Depend on window.h keyboard.h keymap.h.
8886 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
8887 (bytecode.o): Depend on window.h.
8888
8889 2003-08-31 Jason Rumney <jasonr@gnu.org>
8890
8891 * w32term.c (w32_per_char_metric): Allow cached metrics to be
8892 returned even when font_type is unknown.
8893
8894 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
8895
8896 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8897
8898 * xterm.c (x_term_init): Initialize new fields in x_display_info.
8899
8900 * xterm.h (struct x_display_info): Add red/green/blue_bits and
8901 *_offset.
8902
8903 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
8904 calculate pixel value.
8905
8906 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
8907
8908 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
8909 Don't tell redisplay display is accurate when it's actually been
8910 paused for pending input.
8911
8912 2003-08-29 Richard M. Stallman <rms@gnu.org>
8913
8914 * dispnew.c (adjust_glyph_matrix): Call window_box
8915 whenever W is nonzero.
8916
8917 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8918 (Fkill_local_variable, Fmake_variable_frame_local)
8919 (Flocal_variable_p, Flocal_variable_if_set_p):
8920 Use indirect_variable to trace thru variable aliases.
8921
8922 * config.in: Updated.
8923
8924 * callint.c (Fcall_interactively): Save and restore
8925 Vthis_command, Vthis_original_command, real_this_command,
8926 and current_kboard->Vlast_command.
8927
8928 * abbrev.c (Fexpand_abbrev): Insert before deleting.
8929
8930 2003-08-29 Gerd Moellmann <gerd@gnu.org>
8931
8932 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
8933
8934 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
8935
8936 * coding.c (decode_coding_iso2022): Initialize local variable c2.
8937 (decode_coding_sjis_big5): Likewise.
8938
8939 2003-08-27 Jason Rumney <jasonr@gnu.org>
8940
8941 * w32.c (sys_pipe): Protect against file descriptor overflow.
8942
8943 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
8944
8945 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
8946
8947 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
8948
8949 * xfns.c (Vgtk_version_string): New variable.
8950 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
8951
8952 2003-08-24 Eli Zaretskii <eliz@gnu.org>
8953
8954 * term.c (term_init): Remove `const' from buffer_size's declaration.
8955
8956 * Makefile.in (msdos.o): Depend on intervals.h.
8957
8958 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
8959
8960 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8961
8962 * xterm.h (struct x_display_info): New fields: client_leader_window
8963 and Xatom_wm_client_leader.
8964
8965 * xterm.c (x_initialize): Move call to x_session_initialize to ...
8966 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
8967
8968 * xsmfns.c (create_client_leader_window): New function.
8969 (x_session_initialize): Call create_client_leader_window, take
8970 dpyinfo as argument.
8971
8972 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
8973
8974 * Makefile.in (xsmfns.o): Add more depenedencies.
8975
8976 2003-08-21 Dave Love <fx@gnu.org>
8977
8978 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
8979
8980 2003-08-21 Kenichi Handa <handa@m17n.org>
8981
8982 * term.c (term_init): Fix previous change; don't rely on the
8983 length of `buffer' if TERMINFO is defined.
8984
8985 2003-08-20 Dave Love <fx@gnu.org>
8986
8987 * atimer.h: Include lisp.h.
8988
8989 * lisp.h (EMACS_LISP_H): New.
8990 (popup_activated_flag): Don't declare.
8991
8992 * alloca.c: Some merging with gnulib. Change logic and doc
8993 concerning (x)malloc/(x)free -- no longer Emacs-specific.
8994 [DO_BLOCK_INPUT]: Don't include lisp.h.
8995 (xmalloc, xfree): Declare.
8996 (malloc): Don't declare.
8997
8998 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
8999 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
9000 atimer.h, blockinput.h.
9001
9002 * alloc.c (lisp_align_malloc): Change type of `aligned'.
9003
9004 * alloca.s: Remove.
9005
9006 2003-08-19 Gerd Moellmann <gerd@gnu.org>
9007
9008 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
9009 use -lncurses.
9010
9011 * term.c (term_init): Use a buffer of size 4096 for tgetent since
9012 FreeBSD returns something longer than 2044. Abort if the end of
9013 the buffer is overwritten.
9014
9015 2003-08-19 Miles Bader <miles@gnu.org>
9016
9017 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
9018
9019 2003-08-19 Gerd Moellmann <gerd@gnu.org>
9020
9021 * alloc.c (lisp_align_malloc): Check for memory full when
9022 allocating ablocks, which also avoids freeing a pointer into an
9023 ablocks structure.
9024
9025 * puresize.h (BASE_PURESIZE): Increase to 1100000.
9026
9027 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
9028
9029 2003-08-16 Richard M. Stallman <rms@gnu.org>
9030
9031 * editfns.c (Fencode_time): Doc fix.
9032
9033 2003-08-16 David Ponce <david@dponce.com>
9034
9035 * fileio.c (Fwrite_region): Fix conditional expression to issue
9036 the right message.
9037
9038 2003-08-16 Juri Linkov <juri@jurta.org>
9039
9040 * syntax.c (Fforward_word): Argument changed to optional.
9041 Set default value to 1.
9042
9043 2003-08-15 Kenichi Handa <handa@m17n.org>
9044
9045 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
9046 what autoscaled.
9047 (best_matching_font): Once we find a better scalable font, set
9048 non_scalable_has_exact_height_p to 1.
9049 (try_font_list): Call try_alternative_families to try any family
9050 with the given registry.
9051
9052 2003-08-09 Andreas Schwab <schwab@suse.de>
9053
9054 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
9055
9056 * print.c (print_string): Fix printing of multibyte string with
9057 nontrivial printcharfun.
9058
9059 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9060
9061 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
9062
9063 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
9064
9065 2003-07-31 Kenichi Handa <handa@m17n.org>
9066
9067 * process.c (read_process_output): Return the actually read bytes
9068 instead of the result of decoding.
9069
9070 2003-07-31 Kenichi Handa <handa@m17n.org>
9071
9072 * xterm.h (struct x_bitmap_record): New member have_mask.
9073
9074 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
9075 to 0.
9076 (x_create_bitmap_from_file): Likewise.
9077 (x_destroy_bitmap): Check have_mask member before freeing a mask.
9078 (x_destroy_all_bitmaps): Likewise.
9079 (x_create_bitmap_mask): Set have_mask member to 1.
9080
9081 2003-07-30 Richard M. Stallman <rms@gnu.org>
9082
9083 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
9084
9085 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9086
9087 * gtkutil.c (xg_mark_data): Update calls to mark_object.
9088
9089 2003-07-29 Richard M. Stallman <rms@gnu.org>
9090
9091 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
9092 Conditionalize XIM code on HAVE_XIM.
9093
9094 * fns.c (Fclear_string): New function.
9095 (syms_of_fns): defsubr it.
9096
9097 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9098
9099 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
9100
9101 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
9102
9103 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
9104
9105 * buffer.c (delete_all_overlays): New function.
9106 * buffer.h (delete_all_overlays): Declare.
9107 * coding.c (run_pre_post_conversion_on_str):
9108 * print.c (temp_output_buffer_setup):
9109 * fileio.c (Finsert_file_contents):
9110 * minibuf.c (get_minibuffer): Use it.
9111
9112 2003-07-22 Andrew Choi <akochoi@shaw.ca>
9113
9114 * unexmacosx.c (unexec_regions_sort_compare):
9115 (unexec_regions_merge): New functions. Sort and merge unexec
9116 regions before dumping them.
9117
9118 2003-07-22 Dave Love <fx@gnu.org>
9119
9120 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
9121
9122 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
9123
9124 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
9125 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
9126 MARKBIT as the gcmarkbit for strings.
9127
9128 2003-07-21 Richard M. Stallman <rms@gnu.org>
9129
9130 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
9131
9132 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
9133 (syms_of_fns): Corresponding change.
9134
9135 * alloc.c (syms_of_alloc): Doc fixes.
9136
9137 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
9138
9139 * s/netbsd.h: Use -Wl syntax.
9140
9141 2003-07-17 Richard M. Stallman <rms@gnu.org>
9142
9143 * xterm.c (xim_initialize): Redo 6/24 change.
9144
9145 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
9146
9147 * buffer.c (copy_overlays): Use EMACS_INT for positions.
9148 (Fswitch_to_buffer): Don't signal an error when switching to the same
9149 buffer in a dedicated window.
9150
9151 * alloc.c: Use bitmaps for cons, as was done for floats.
9152 (init_float, init_cons): Let the normal code allocate the first block.
9153 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
9154 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
9155 New macros.
9156 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
9157 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
9158 (live_cons_p): Check the pointer is not past the `conses' array.
9159 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
9160 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
9161 (survives_gc_p): Use CONS_MARKED_P and simplify.
9162 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
9163
9164 2003-07-13 Paul Eggert <eggert@twinsun.com>
9165
9166 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
9167 puts it into BSS instead, at least on Solaris 8 and 9.
9168 This is a valid optimization, and it may occur on other platforms,
9169 so Emacs should not assume that initializing a static variable to
9170 zero puts it into data.
9171 * alloc.c (pure, staticvec):
9172 Initialize these arrays to nonzero, so that they're not
9173 put into BSS by that optimization.
9174
9175 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
9176
9177 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
9178 (lisp_align_malloc): Use posix_memalign is available.
9179 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
9180 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
9181 for consistency. Update users.
9182
9183 2003-07-13 Richard M. Stallman <rms@gnu.org>
9184
9185 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
9186
9187 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
9188
9189 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
9190 and use the Gtk+ function gtk_window_icon_from_file if available.
9191
9192 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
9193 handle mask of bitmaps.
9194 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
9195 mask property.
9196 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
9197
9198 * xterm.h (xg_set_icon): New function.
9199
9200 2003-07-12 Paul Eggert <eggert@twinsun.com>
9201
9202 * unexelf.c (unexec): Consider a section to precede the .bss
9203 section if its addresses overlap that of .bss.
9204
9205 2003-07-12 Richard M. Stallman <rms@gnu.org>
9206
9207 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
9208
9209 * config.in (HAVE_CRTIN): Add #undef.
9210 (INLINE): Really inline only if OPTIMIZE is defined.
9211
9212 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
9213 END_FILES_1.
9214 (START_FILES_1, END_FILES_1): New macros (conditional).
9215 (LD_SWITCH_SYSTEM_TEMACS): Define.
9216
9217 * s/openbsd.h: Don't include bsd4-3.h.
9218 (TERMINFO): Define.
9219 (LIBS_TERMCAP): Define.
9220 (LD_SWITCH_SYSTEM): Define (two definitions).
9221
9222 * xfns.c: Include libpng/png.h instead of png.h.
9223
9224 2003-07-11 Andreas Schwab <schwab@suse.de>
9225
9226 * buffer.c (modify_overlay): Update prototype.
9227 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
9228 Likewise.
9229
9230 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9231
9232 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
9233 (struct interval): Move to intervals.h.
9234 (struct Lisp_Marker): Use EMACS_INT for position info.
9235 (forward_point): Remove prototype of defunct function.
9236 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
9237 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
9238 (syms_of_textprop, set_text_properties): Remove prototypes that are
9239 already in intervals.h.
9240
9241 * intervals.h (struct interval): Move from lisp.h.
9242 Use EMACS_INT for position and size info.
9243
9244 * coding.c: Include intervals.h for Fset_text_properties.
9245
9246 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
9247 position and length information.
9248
9249 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9250
9251 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
9252 position and length information.
9253
9254 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
9255
9256 Change overlays_after and overlays_before so the overlays themselves
9257 are linked into lists, rather than using cons cells. After all each
9258 Lisp_Misc already occupies 5 words, so we can add a `next' field to
9259 Lisp_Overlay for free and save up one cons cell per overlay (not
9260 to mention one indirection when traversing the list of overlay).
9261
9262 * lisp.h (struct Lisp_Overlay): New field `next'.
9263
9264 * buffer.h (struct buffer): Change overlays_before and overlays_after
9265 from Lisp lists of overlays to pointers to overlays.
9266
9267 * buffer.c (overlay_strings, recenter_overlay_lists):
9268 Fix typo in eassert in last commit.
9269 (unchain_overlay): New function.
9270 (add_overlay_mod_hooklist): Use AREF.
9271 (copy_overlays, reset_buffer, overlays_at, overlays_in)
9272 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
9273 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
9274 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
9275 (report_overlay_modification, evaporate_overlays, init_buffer_once):
9276 Adjust to new type of overlays_(before|after).
9277
9278 * alloc.c (mark_object): Mark the new `next' field of overlays.
9279 (mark_buffer): Manually mark the overlays_(after|before) fields.
9280
9281 * coding.c (run_pre_post_conversion_on_str):
9282 * editfns.c (overlays_around):
9283 * xdisp.c (load_overlay_strings):
9284 * fileio.c (Finsert_file_contents):
9285 * indent.c (current_column):
9286 * insdel.c (signal_before_change, signal_after_change):
9287 * intervals.c (set_point_both):
9288 * print.c (temp_output_buffer_setup): Use new type for
9289 overlays_(before|after).
9290
9291 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
9292
9293 * buffer.c (report_overlay_modification): Don't run hooks while
9294 traversing the list of overlays.
9295
9296 * buffer.h (struct buffer): Use an int for overlay_center.
9297 (overlays_at, evaporate_overlays, recenter_overlay_lists)
9298 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
9299
9300 * buffer.c (reset_buffer, recenter_overlay_lists)
9301 (adjust_overlays_for_insert, adjust_overlays_for_delete)
9302 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
9303 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
9304 (overlays_at, evaporate_overlays, recenter_overlay_lists)
9305 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
9306
9307 * xdisp.c (fast_find_position): Remove unused var.
9308
9309 * cmds.c (Qexpand_abbrev): New sym.
9310 (syms_of_cmds): Initialize it.
9311 (internal_self_insert): Use it to call expand-abbrev.
9312
9313 2003-07-09 Kim F. Storm <storm@cua.dk>
9314
9315 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
9316 was configured with --without-xim.
9317 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
9318
9319 2003-07-07 Richard M. Stallman <rms@gnu.org>
9320
9321 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
9322
9323 * alloc.c (Fgarbage_collect): Doc fix.
9324
9325 2003-07-07 Nozomu Ando <nand@mac.com>
9326
9327 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
9328
9329 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
9330
9331 * minibuf.c (read_minibuf): UNGCPRO before returning.
9332 (Ftry_completion, Fall_completions): Doc fix.
9333
9334 * alloc.c (live_float_p): Check that p is not past the `floats' array,
9335 now that `floats' is not the last element of the struct any more.
9336
9337 2003-07-06 Jason Rumney <jasonr@gnu.org>
9338
9339 * w32term.h (ClipboardSequence_Proc): New type.
9340
9341 * w32fns.c (clipboard_sequence_fn): New variable.
9342 (globals_of_w32fns): Initialize it.
9343
9344 * w32select.c (last_clipboard_sequence_number): New variable.
9345 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
9346 number if possible.
9347
9348 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
9349
9350 * m/amdx86-64.h (MARKBIT):
9351 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
9352 MARKBIT and ARRAY_MARK_FLAG any more.
9353
9354 * m/hp800.h (XSETMARKBIT):
9355 * m/sr2k.h (XSETMARKBIT):
9356 * lisp.h (XSETMARKBIT): Remove unused macro.
9357
9358 * lisp.h (mark_object): Change prototype.
9359
9360 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
9361 (last_marked): Change accordingly.
9362 (mark_interval, mark_maybe_object, mark_maybe_pointer)
9363 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
9364 (mark_buffer): Update calls to mark_object.
9365
9366 * bytecode.c (mark_byte_stack):
9367 * fns.c (sweep_weak_table):
9368 * keyboard.c (mark_kboards): Update calls to mark_object.
9369
9370 2003-07-06 Jason Rumney <jasonr@gnu.org>
9371
9372 * alloc.c (struct ablock): Only include padding when there is some.
9373
9374 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
9375
9376 * alloc.c (ALIGN): Add casts to simplify usage.
9377 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
9378 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
9379 (struct ablock, struct ablocks): New types.
9380 (free_ablock): New global var.
9381 (lisp_align_malloc, lisp_align_free): New functions.
9382 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
9383 (struct float_block): Reorder and add gcmarkbits.
9384 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
9385 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
9386 (init_float, make_float): Use lisp_align_malloc.
9387 (free_float, live_float_p): Don't use `type' any more.
9388 (make_float): Use FLOAT_UNMARK to access to mark bit.
9389 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
9390 Use FLOAT_MARKED_P to access the mark bit.
9391 (pure_alloc): Simplify use of ALIGN.
9392 (mark_object): Use FLOAT_MARK to access the mark bit.
9393 (gc_sweep): Use new macros to access the float's mark bit.
9394 (init_alloc_once): Init free_ablock.
9395
9396 * lisp.h (struct Lisp_Float): Remove unused field `type'.
9397
9398 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
9399
9400 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
9401 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
9402 (allocate_buffer): Move.
9403 (string_bytes): Don't mask markbit of `size_byte'.
9404 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
9405 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
9406 Use the `size' field of buffers (rather than the `name' field) for
9407 the mark bit, as is done for all other vectorlike objects.
9408 Use the new macros to access the mark bit of vectorlike objects.
9409
9410 2003-06-26 Richard M. Stallman <rms@gnu.org>
9411
9412 * puresize.h (BASE_PURESIZE): Increment base size.
9413
9414 * xdisp.c (fast_find_position): Enable Gerd's new definition.
9415
9416 * xterm.c (xim_initialize): Undo previous change.
9417
9418 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
9419
9420 * alloc.c (survives_gc_p): Simplify.
9421
9422 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
9423
9424 * window.c (Fset_window_dedicated_p): Simplify.
9425 (display_buffer_1): Don't raise the win from which minibuf was entered.
9426 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
9427 (Fminibuffer_selected_window): Simplify.
9428
9429 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
9430
9431 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
9432 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
9433
9434 * insdel.c (check_markers, adjust_markers_for_delete)
9435 (adjust_markers_for_insert, adjust_markers_for_replace)
9436 (prepare_to_modify_buffer, RESTORE_VALUE):
9437 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
9438 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
9439 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
9440 * alloc.c (Fmake_marker, free_marker, gc_sweep):
9441 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
9442 * editfns.c (save_excursion_restore, transpose_markers):
9443 * window.c (delete_window):
9444 * xdisp.c (message_dolog): Update for new types.
9445
9446 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9447
9448 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
9449 (realize_default_face): Use default_face_done_p for the force_p
9450 argument to set_lface_from_font_name. Set default_face_done_p to one.
9451
9452 * frame.c (make_frame): Initialize default_face_done_p.
9453
9454 * frame.h (struct frame): Add default_face_done_p.
9455
9456 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
9457 will be defined.
9458
9459 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
9460
9461 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
9462 Initialize the new field `gcmarkbit'.
9463 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
9464 (mark_interval_tree): Don't mark the tree separately from the nodes.
9465 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
9466 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
9467 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
9468
9469 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
9470 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
9471 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
9472 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
9473 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
9474
9475 2003-06-24 Dave Love <fx@gnu.org>
9476
9477 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
9478
9479 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
9480 from gnulib.
9481
9482 2003-06-21 Richard M. Stallman <rms@gnu.org>
9483
9484 * fileio.c (Fwrite_region): Alternate messages
9485 for append and partial write.
9486
9487 * keyboard.c (read_key_sequence): When converting upcase fn key to
9488 downcase, update fkey and keytran so `backspace' gets translated.
9489
9490 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
9491
9492 * process.c (wait_reading_process_input): Don't signal SIGIO
9493 in batch mode.
9494
9495 2003-06-17 Kenichi Handa <handa@m17n.org>
9496
9497 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
9498 composite.h.
9499
9500 * xselect.c: Don't include charset.h, coding.h, composite.h.
9501 (Qforeign_selection): New variable.
9502 (syms_of_xselect): Intern and static it.
9503 (selection_data_to_lisp_data): Return a unibyte string made from
9504 data with `foreign-selection' text property.
9505
9506 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
9507
9508 * termhooks.h (EVENT_INIT): New macro.
9509
9510 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
9511
9512 * alloc.c (mark_kboards): Move to keyboard.c.
9513
9514 * keyboard.c (record_asynch_buffer_change, read_avail_input):
9515 * xterm.c (x_dispatch_event):
9516 * xmenu.c (find_and_call_menu_selection):
9517 * xdisp.c (handle_tool_bar_click):
9518 * w32menu.c (menubar_selection_callback):
9519 * sysdep.c (kbd_input_ast, read_input_waiting):
9520 * msdos.c (dos_rawgetc):
9521 * macterm.c (mac_check_for_quit_char):
9522 * macmenu.c (menubar_selection_callback):
9523 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
9524 data to kbd_buffer_store_event.
9525
9526 2003-06-15 Kim F. Storm <storm@cua.dk>
9527
9528 * xdisp.c (x_fix_overlapping_area): Always use area relative X
9529 to fix redisplay problem with tall characters (such as \e,AC\e(B).
9530
9531 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9532
9533 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
9534
9535 2003-06-12 Kenichi Handa <handa@m17n.org>
9536
9537 * fileio.c (Fwrite_region): Save and restore restriction.
9538
9539 2003-06-12 Dave Love <fx@gnu.org>
9540
9541 * alloca.c (alloca): Declare arg as size_t.
9542
9543 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
9544 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
9545
9546 2003-06-11 Dave Love <fx@gnu.org>
9547
9548 * search.c (shrink_regexp_cache): Use xrealloc.
9549 (syms_of_search): Use xmalloc.
9550
9551 2003-06-10 Kim F. Storm <storm@cua.dk>
9552
9553 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
9554 Adjust phys_cursor.x to be relative to window box, rather than
9555 text area before checking -- to ensure cursor is redrawn when
9556 exposing window.
9557 Note: This also fixes a similar (older) bug if display margins
9558 are present.
9559
9560 2003-06-06 Kenichi Handa <handa@m17n.org>
9561
9562 * coding.c (encoding_buffer_size): If coding->type is
9563 coding_type_ccl, double magnification on CRLF encoding.
9564
9565 2003-06-06 Jason Rumney <jasonr@gnu.org>
9566
9567 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
9568 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
9569
9570 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
9571 Mac too.
9572
9573 2003-06-05 Dave Love <fx@gnu.org>
9574
9575 * strftime.c: Merge changes from gnulib.
9576
9577 * mktime.c (__mktime_internal): Merge changes from gnulib
9578 involving year 69 and dst2.
9579
9580 Changes to merge with gnulib version and be consistent with the
9581 autoconf test:
9582
9583 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
9584 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
9585 [HAVE_LOCALE_H]: Include locale.h.
9586 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
9587
9588 2003-06-05 Kim F. Storm <storm@cua.dk>
9589
9590 * window.c (coordinates_in_window): Convert X and Y to window
9591 relative coordinates inside mode-line and header-line parts.
9592 Convert X and Y to margin area relative coordinates inside left
9593 and right display margin parts.
9594
9595 2003-06-05 Jason Rumney <jasonr@gnu.org>
9596
9597 * w32fns.c (add_system_logical_colors_to_map): New function.
9598 (Fx_open_connection): Use it.
9599
9600 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
9601
9602 * process.c (allocate_pty): Revert part of the previous patch.
9603 (Faccept_process_output): Simplify.
9604
9605 2003-06-04 Jason Rumney <jasonr@gnu.org>
9606
9607 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
9608
9609 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
9610 (lispy_mouse_wheel_names): Remove.
9611 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
9612 Always define drag_and_drop_syms.
9613
9614 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
9615 WHEEL_EVENT events.
9616
9617 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
9618
9619 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
9620
9621 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
9622
9623 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9624
9625 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
9626 menu item label.
9627
9628 2003-06-03 Richard M. Stallman <rms@gnu.org>
9629
9630 * window.c (Fwindow_edges): Doc fix.
9631 (Fwindow_pixel_edges, Fwindow_inside_edges)
9632 (Fwindow_inside_pixel_edges): New functions.
9633 (syms_of_window): defsubr them.
9634
9635 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
9636 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
9637
9638 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
9639
9640 * dispnew.c (Fsit_for): Don't lie about the number of args.
9641
9642 2003-06-02 Dave Love <fx@gnu.org>
9643
9644 * callproc.c: Use HAVE_FCNTL_H, not USG5.
9645 (syms_of_callproc) <process-environment>: Doc fix.
9646
9647 * doc.c: Use HAVE_FCNTL_H, not USG5.
9648
9649 * xfaces.c (font_rescale_ratio): Fix for K&R.
9650
9651 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
9652
9653 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
9654
9655 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
9656
9657 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
9658 (xg_create_frame_widgets): Use ENCODE_UTF_8.
9659
9660 * xterm.c (Qutf_8): Move to coding.c
9661
9662 * xmenu.c (ENCODE_MENU_STRING): New.
9663 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
9664 Use it.
9665
9666 * coding.h (ENCODE_UTF_8): New.
9667 (Qutf_8): Declare.
9668
9669 * coding.c (Qutf_8): New.
9670 (syms_of_coding): Intern it.
9671
9672 * fns.c: Doc fixes.
9673
9674 2003-06-02 Kenichi Handa <handa@m17n.org>
9675
9676 * buffer.c (Fset_buffer_multibyte): Fix previous change.
9677
9678 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
9679
9680 * lread.c (openp): Make sure STR is a string.
9681
9682 2003-06-01 David Ponce <david@dponce.com>
9683
9684 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9685 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
9686
9687 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
9688 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
9689 (discard_mouse_events): Discard WHEEL_EVENT events too.
9690 (lispy_wheel_names, wheel_syms): New.
9691 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
9692 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
9693 (make_lispy_event): Add WHEEL_EVENT handler.
9694
9695 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
9696 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9697 WHEEL_EVENT events.
9698
9699 2003-05-31 John Paul Wallington <jpw@gnu.org>
9700
9701 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
9702 timer are in lisp/emacs-lisp.
9703
9704 2003-05-31 Kenichi Handa <handa@m17n.org>
9705
9706 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
9707 region when a buffer is changed to unibyte.
9708
9709 * charset.h (VALID_LEADING_CODE_P): New macro.
9710 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
9711
9712 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
9713 is nonzero, accept multibyte form of eight-bit-control chars.
9714 (decode_composition_emacs_mule): Likewise.
9715 (decode_coding_emacs_mule): Likewise.
9716 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
9717 multibyte form of eight-bit-control chars.
9718
9719 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
9720 (Finsert_file_contents): If coding-system-for-read is bound to
9721 Qauto_save_coding, use the coding system emacs-mule with special
9722 setting for recovering a file.
9723 (choose_write_coding_system): On auto saving, use the coding
9724 system emacs-mule with special setting for auto saving.
9725 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
9726
9727 2003-05-30 Kenichi Handa <handa@m17n.org>
9728
9729 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
9730 properly before calling ccl_driver.
9731
9732 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
9733
9734 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
9735 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
9736 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
9737
9738 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
9739
9740 * xfaces.c (realize_default_face): Do not abort if lface is
9741 non-existent - reverts change from 2003-05-19.
9742
9743 2003-05-29 Kenichi Handa <handa@m17n.org>
9744
9745 * coding.c (decode_coding_iso2022): Pay attention to the byte
9746 sequence of CTEXT extended segment, and retain those bytes as is.
9747
9748 2003-05-28 Kenichi Handa <handa@m17n.org>
9749
9750 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
9751 of CODING_REPLACEMENT_CHARACTER.
9752 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
9753 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
9754 check this flag on encoding.
9755 (encode_coding_sjis_big5):
9756 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
9757 (Fset_terminal_coding_system_internal):
9758 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
9759 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
9760
9761 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
9762 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
9763 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
9764
9765 2003-05-28 Richard M. Stallman <rms@gnu.org>
9766
9767 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
9768
9769 * eval.c (unbind_to): Move init of this_binding to separate statement.
9770
9771 2003-05-28 Kim F. Storm <storm@cua.dk>
9772
9773 * xdisp.c (expose_window): Fix error in calculation of
9774 window relative coordinates of area to redisplay.
9775
9776 2003-05-27 Jason Rumney <jasonr@gnu.org>
9777
9778 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
9779
9780 2003-05-27 David Ponce <david@dponce.com>
9781
9782 Handle W32 mouse wheel events as mouse click events, like in X.
9783
9784 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
9785 MOUSE_WHEEL_EVENT anymore.
9786
9787 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
9788 Scrolling down/up the mouse wheel is respectively mapped to mouse
9789 button 4 and 5.
9790 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9791 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
9792 WM_MOUSEWHEEL events.
9793
9794 2003-05-27 Andreas Schwab <schwab@suse.de>
9795
9796 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
9797
9798 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
9799 partially visible line.
9800
9801 * alloc.c (Fgarbage_collect): Fix last change.
9802
9803 2003-05-26 John Paul Wallington <jpw@gnu.org>
9804
9805 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
9806
9807 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
9808
9809 * window.c (Fset_window_buffer): Add type of `keep_margins'.
9810 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
9811
9812 * window.h (window_box_text_cols): Declare.
9813
9814 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
9815 (x_draw_vertical_border): Remove unused var `f'.
9816
9817 * xfaces.c (build_scalable_font_name): Remove `unused var
9818 pixel_size' warning.
9819
9820 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
9821
9822 * unexelf.c (unexec): Remove `unused var n' warning.
9823
9824 * strftime.c (my_strftime_localtime_r): Remove `defined but
9825 unused' warning.
9826
9827 * process.c (allocate_pty): Remove `unused var stb' and
9828 `cp might be used uninitialized' warnings.
9829
9830 * dispnew.c (mode_line_string): Remove unused var `f'.
9831
9832 * coding.c (find_safe_codings): Remove unused var `i'.
9833
9834 * bytecode.c (Fbyte_code): Remove `unused val' warning.
9835
9836 * buffer.c (Fkill_buffer): Remove unused var `list'.
9837
9838 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
9839
9840 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9841
9842 * frame.c (make_frame): Condition want_fullscreen with
9843 HAVE_WINDOW_SYSTEM.
9844
9845 2003-05-25 Juanma Barranquero <lektu@terra.es>
9846
9847 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
9848 (Fwindow_scroll_bars): Fix typo in docstring.
9849
9850 2003-05-24 Kim F. Storm <storm@cua.dk>
9851
9852 The following changes serve several purposes:
9853
9854 1) Swap the position of fringes and display margins in windows, i.e.
9855 the fringes are now displayed between the margins and the text area
9856 (by default).
9857
9858 2) Allow fringe and scroll bar parameters to be set per-buffer and
9859 per-window (like display margins). Such settings are now stored
9860 in window configurations, preserved when frames are resized, and
9861 copied when windows are split vertically or horizontally.
9862 Several bugs related to display margins have been fixed.
9863
9864 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9865
9866 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
9867 rather than FRAME_WIDTH (FRAME_FONT (f)).
9868
9869 5) Introduce a consistent naming of variables, members and macros
9870 depending on whether their value is measured in pixels or in
9871 canonical columns/lines. Pixel dimensions are named *_width and
9872 *_height, while canonical columns/lines are named *_cols and
9873 *_lines. Pixel positions are named *_x and *_y, while column/line
9874 positions are named *_col and *_line.
9875
9876 6) Consolidate more of the X, W32, and MAC gui code by moving
9877 common data into struct frame, and generalize it for the non-gui
9878 case by using suitable defaults.
9879
9880 7) Cleanup and consolidate the macros controlling frame and window
9881 layout into frame.h and window.h, and generalize the use of the
9882 various window_box_* functions (enhanced to handle the new fringe
9883 position and the per-window fringe and scroll bar settings).
9884
9885 * frame.h (struct frame): Rename members height to text_lines,
9886 width to text_cols, window_height to total_lines, window_width to
9887 total_cols, new_height to new_text_lines, new_width to
9888 new_text_cols. All uses changed.
9889 (struct frame): New members which consolidate common members of
9890 x_output, w32_output, and mac_output structures: left_pos,
9891 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
9892 win_gravity, size_hint_flags, border_width, internal_border_width,
9893 line_height, fringe_cols, left_fringe_width, right_fringe_width,
9894 want_fullscreen. All uses changed.
9895 (struct frame): New member column_width contaning the canonical
9896 column width, analogue to line_height. All uses changed.
9897 (struct frame): Rename members scroll_bar_pixel_width to
9898 config_scroll_bar_width, and scroll_bar_cols to
9899 config_scroll_bar_cols. All uses changed.
9900 (struct frame): New member scroll_bar_actual_width which
9901 consolidates and renames the vertical_scroll_bar_extra member of
9902 x_output, w32_output, and mac_output structures. All uses changed.
9903 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
9904 from x/w32/macterm.h files. All uses changed. Also change code
9905 which referred to f->output_data...->pixel_height.
9906 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
9907 from x/w32/macterm.h files. All uses changed. Also change code
9908 which referred to f->output_data...->pixel_width.
9909 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
9910 Also change code which referred to f->height.
9911 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
9912 Also change code which referred to f->width.
9913 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
9914 to update new_text_lines and new_text_cols members directly.
9915 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
9916 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
9917 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
9918 FRAME_SCROLL_BAR_COLS. All uses changed.
9919 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
9920 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
9921 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
9922 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
9923 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
9924 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
9925 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
9926 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
9927 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
9928 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
9929 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
9930 Unconditionally return line_height member (it now has proper value
9931 also for non-window frames).
9932 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
9933 return new column_width member (rather than the default font width).
9934 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
9935 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
9936 from x/w32/macterm.h files. Unconditionally return corresponding
9937 member of frame structure (they now have proper values also for
9938 non-window frames).
9939 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
9940 Calculate return value from left and right widths.
9941 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
9942 internal_border_width member (has proper value for non-window frame).
9943 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
9944 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
9945 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
9946 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
9947 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
9948 consolidated from xterm.h, macterm.h, and w32term.h.
9949 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
9950 consolidated from xterm.h, macterm.h, and w32term.h.
9951 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
9952 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
9953 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
9954 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
9955 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
9956 consolidated from x/mac/w32term.h.
9957 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
9958 consolidated from x/mac/w32term.h.
9959 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
9960 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
9961 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
9962 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
9963
9964 * window.h (struct window): Rename members left to left_col,
9965 top to top_line, height to total_lines, width to total_cols,
9966 left_margin_width to left_margin_cols, right_margin_width to
9967 right_margin_cols, orig_height to orig_total_lines, orig_top to
9968 orig_top_line. All uses changed.
9969 (struct window): New members left_fringe_width, right_fringe_width,
9970 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
9971 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
9972 New macros primarily used to simplify other macros.
9973 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
9974 referred to XINT (w->width).
9975 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
9976 referred to XINT (w->height).
9977 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
9978 referred to XINT (w->width) * canon_x_unit.
9979 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
9980 referred to XINT (w->height) * canon_y_unit.
9981 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
9982 referred to XINT (w->left).
9983 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
9984 all uses and code that referred to XINT (w->left) + XINT (w->width).
9985 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
9986 referred to XINT (w->top).
9987 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
9988 referred to XINT (w->top) + XINT (w->height).
9989 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
9990 referred to XINT (w->left) * canon_x_unit.
9991 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
9992 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
9993 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
9994 referred to XINT (w->top) * canon_y_unit.
9995 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
9996 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
9997 (WINDOW_LEFTMOST_P): New macro.
9998 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
9999 All uses changed.
10000 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
10001 All uses changed.
10002 (WINDOW_BOX_LEFT_EDGE_X): Rename from
10003 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
10004 Do not exclude left fringe width.
10005 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
10006 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
10007 Do not exclude fringe widths.
10008 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
10009 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
10010 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
10011 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
10012 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
10013 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
10014 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
10015 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
10016 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
10017 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
10018 New macros. Change code which referenced corresponding
10019 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
10020 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
10021 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
10022 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
10023 allow per-window scroll-bar settings.
10024 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
10025 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
10026 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
10027 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
10028 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
10029 FRAME_SCROLL_BAR_WIDTH.
10030 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
10031 (WINDOW_SCROLL_BAR_AREA_X): New macros.
10032 (WINDOW_HEADER_LINE_HEIGHT): Rename from
10033 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
10034 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
10035 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
10036 (WINDOW_BOX_TEXT_HEIGHT): Rename from
10037 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
10038 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10039 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
10040 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
10041 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
10042 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
10043 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
10044 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
10045 (window_from_coordinates): Update prototype.
10046 (Fset_window_buffer): Update EXFUN.
10047 (set_window_buffer): Update prototype.
10048
10049 * dispextern.h (struct glyph_matrix): Rename members window_left_x
10050 to window_left_col, window_top_y to window_top_line. All uses
10051 changed.
10052 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
10053 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
10054 internal_border_width is now set to 0 for non-window frames.
10055 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
10056 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
10057 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
10058 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
10059 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
10060 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10061 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
10062 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
10063 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
10064 Move to window.h and renamed [see window.h changes].
10065 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
10066 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
10067 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
10068 Use WINDOW_TOTAL_LINES.
10069 (frame_update_line_height): Remove prototype.
10070
10071 * buffer.h (struct buffer): Rename members measured in columns:
10072 left_margin_width to left_margin_cols, right_margin_width to
10073 right_margin_cols. All uses changed.
10074 New members left_fringe_width, right_fringe_width,
10075 fringes_outside_margins for per-buffer fringe settings.
10076 New members scroll_bar_width and vertical_scroll_bar_type for
10077 per-buffer scroll bar settings.
10078
10079 * buffer.c (init_buffer_once): Set buffer_defaults and
10080 buffer_local_flags for new buffer-local variables
10081 left_fringe_width, right_fringe_width, fringes_outside_margins,
10082 scroll_bar_width, and vertical_scroll_bar_type.
10083 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
10084 default-* variables for them.
10085
10086 * dispnew.c: Make (many) trivial substitutions for renamed and
10087 new macros in dispextern.h, frame.h and window.h.
10088 (mode_line_string): No need to adjust width for mode lines, as it
10089 is already adjusted by the caller.
10090 (marginal_area_string): Handle fringes inside/outside margins.
10091
10092 * frame.c: Make (many) trivial substitutions for renamed and
10093 new macros in dispextern.h, frame.h and window.h.
10094 (make_frame): Initialize left_fringe_width, right_fringe_width,
10095 fringe_cols, scroll_bar_actual_width, border_width,
10096 internal_border_width, column_width, line_height, x_pixels_diff,
10097 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
10098 members with values suitable for a non-window frames.
10099
10100 * gtkutil.c: Make (many) trivial substitutions for renamed and
10101 new macros in dispextern.h, frame.h and window.h.
10102
10103 * indent.c: Make (few) trivial substitutions for renamed and
10104 new macros in dispextern.h, frame.h and window.h.
10105
10106 * keyboard.c: Make (many) trivial substitutions for renamed and
10107 new macros in dispextern.h, frame.h and window.h.
10108 (make_lispy_event): Use window positions returned from
10109 window_from_coordinates when constructing the lisp event for
10110 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
10111 (incorrect) values locally.
10112 (make_lispy_movement): Use window positions returned from
10113 window_from_coordinates when constructing the lisp event, rather
10114 than calculating (incorrect) values locally.
10115
10116 * scroll.c: Make (some) trivial substitutions for renamed and
10117 new macros in dispextern.h, frame.h and window.h.
10118
10119 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
10120 scroll-bars.
10121
10122 * sysdep.c: Make (few) trivial substitutions for renamed and
10123 new macros in dispextern.h, frame.h and window.h.
10124
10125 * term.c: Make (some) trivial substitutions for renamed and
10126 new macros in dispextern.h, frame.h and window.h.
10127
10128 * widget.c: Make (few) trivial substitutions for renamed and
10129 new macros in dispextern.h, frame.h and window.h.
10130
10131 * window.c: Make (many) trivial substitutions for renamed and
10132 new macros in dispextern.h, frame.h and window.h.
10133 (make_window): Initialize new members
10134 left_margin_cols, right_margin_cols, left_fringe_width,
10135 right_fringe_width, fringes_outside_margins, scroll_bar_width,
10136 and vertical_scroll_bar_type.
10137 (coordinates_in_window): Adapt to new fringe/margin positions
10138 and per-window fringes and scroll-bars.
10139 Fix bug related to incorrectly adjusting coordinates by
10140 frame's internal_border_width (the effect normally negible since
10141 the internal_border_width is typically 0 or 1 pixel, but very
10142 noticeable for an internal_border_width of e.g. 25 pixels).
10143 Upon successful return (other than ON_NOTHING), the coordinates
10144 are now always properly converted to window relative for the
10145 given display element.
10146 (window_from_coordinates): Add new parameters wx and wy to
10147 return the window relative x and y position in the returned
10148 window and part. A null arg means, don't return the position.
10149 All callers changed.
10150 (adjust_window_margins): New function which may reduce the width
10151 of the display margins if a window's text area is too small after
10152 resizing or splitting windows.
10153 (size_window): Fix bug that did not account for display margin
10154 widths when checking the minimum width of a window; use
10155 adjust_window_margins.
10156 (set_window_buffer): Call Fset_window_fringes and
10157 Fset_window_scroll_bars to setup per-window elements.
10158 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
10159 existing display margin, fringe widths, and scroll bar settings
10160 (e.g. after splitting a window or resizing the frame).
10161 All callers changed.
10162 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
10163 (Fsplit_window): Duplicate original window's display margin,
10164 fringe, and scroll-bar settings; then call Fset_window_buffer with
10165 KEEP_MARGINS non-nil. This fixes a bug which caused a split
10166 window to only preserve the display margins in one of the windows.
10167 When splitting horizontally, call adjust_window_margins on both
10168 windows to ensure that the text area of the new windows is non too
10169 narrow. This fixes a bug which could cause Emacs to trap if the
10170 width of the split window was less than the width of the display
10171 margins.
10172 (window_box_text_cols): Rename from window_internal_width.
10173 All uses changed. Adapt to per-window fringes and scroll bars.
10174 Fix bug that caused vertical separator to be subtracted also on
10175 window frames. Fix another bug that did not reduce the returned
10176 value by the columns used for display margins.
10177 (window_scroll_line_based): Fix bug related to scrolling too much
10178 when display margins are present (implicitly fixed by the fix to
10179 window_box_text_cols).
10180 (scroll_left, scroll_right): Fix bug related to scrolling too far
10181 by default when display margins are present (implicitly fixed by
10182 the fix to window_box_text_cols).
10183 (struct saved_window): Rename members left to left_col, top to
10184 top_line, width to total_cols, height to total_lines, orig_top to
10185 orig_top_line, orig_height to orig_total_lines. All uses changed.
10186 New members left_margin_cols, right_margin_cols,
10187 left_fringe_width, right_fringe_width, fringes_outside_margins,
10188 scroll_bar_width, and vertical_scroll_bar_type for saving
10189 per-window display elements.
10190 (Fset_window_configuration): Restore display margins, fringes,
10191 and scroll bar settings. This fixes a bug which caused display
10192 margins to be discarded when saving and restoring a window
10193 configuration.
10194 (save_window_save): Save display margins, fringes, and scroll bar
10195 settings. This fixes a bug which caused display margins to be
10196 discarded when saving and restoring a window configuration.
10197 (Fset_window_margins): Do nothing if display margins are not
10198 really changed. Otherwise, call adjust_window_margins to ensure
10199 the text area doesn't get too narrow. This fixes a bug which
10200 could cause Emacs to trap if setting display margins wider than
10201 the width of the window.
10202 (Fset_window_fringes): New defun to allow user to specifically set
10203 this window's fringe widths and position vs. display margins.
10204 (Fwindow_fringes): New defun to return window's actual fringe settings.
10205 (Fset_window_scroll_bars): New defun to allow user to specifically
10206 set this window's scroll bar width and position.
10207 (Fwindow_scroll_bars): New defun to return window's actual scroll
10208 bar settings.
10209 (compare_window_configurations): Also compare display margins,
10210 fringes, and scroll bar settings.
10211 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
10212
10213 * xdisp.c: Make (many) trivial substitutions for renamed and
10214 new macros in dispextern.h, frame.h and window.h.
10215 (window_box_width): Adapt to per-window fringes and scroll bars,
10216 and new fringe vs. display margin position. Note that returned
10217 value is no longer guaranteed to be a whole multiple of the frame
10218 column width, since per-window fringes may now be any width.
10219 (window_box_left_offset): New function like window_box_left, but
10220 value is relative to left border of window (rather than frame).
10221 (window_box_right_offset): New function like window_box_right,
10222 but value is relative to left border of window.
10223 (window_box_left): Adapt to per-window fringes and scroll bars,
10224 and new fringe vs. display margin position. Simplify by using
10225 WINDOW_LEFT_EDGE_X and window_box_left_offset.
10226 (window_box): Allow null args for unnecessary return values;
10227 change/simplify relevant callers.
10228 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
10229 and new fringe vs. display margin position.
10230 Use window_box_left_offset and window_box_right_offset
10231 (get_glyph_string_clip_rect): Adapt to per-window fringes and
10232 scroll bars, and new fringe vs. display margin position.
10233 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
10234 (draw_fringe_bitmap): Rework to handle per-window fringes and new
10235 fringe vs. display margin position.
10236 (hscroll_window_tree): Use window_box_width instead of window_box.
10237 (redisplay_window): Adapt to per-window scroll bars.
10238 (draw_glyphs): Rework to handle per-window fringes and scroll
10239 bars, and new fringe vs. display margin position.
10240 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
10241 (x_clear_end_of_line): Adapt to per-window fringes and scroll
10242 bars, and new fringe vs. display margin position. Fix bug which
10243 increased total width of full_width rows by width of scroll bars
10244 although window's total width already includes that.
10245 (x_fix_overlapping_area): Simplify using window_box_left_offset.
10246 (expose_area): Simplify using window_box_left_offset.
10247 (x_draw_vertical_border): Handle per-window scroll bar settings,
10248 mixing windows with left, right and no scroll bars.
10249
10250 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
10251 where it's used in x_list_fonts (for clarity).
10252 (frame_update_line_height): Remove unused function; functionality
10253 is now done directly when setting the default font in x_set_font.
10254
10255 * xfns.c: Make (many) trivial substitutions for renamed and
10256 new macros in dispextern.h, frame.h and window.h.
10257
10258 * xmenu.c: Make (some) trivial substitutions for renamed and
10259 new macros in dispextern.h, frame.h and window.h.
10260
10261 * xterm.h (struct x_output): Move members left_pos, top_pos,
10262 border_width, pixel_height, pixel_width, line_height,
10263 internal_border_width, vertical_scroll_bar_extra,
10264 left_fringe_width, right_fringe_width, fringe_cols,
10265 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10266 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
10267 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10268 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10269 (PIXEL_WIDTH, PIXEL_HEIGHT)
10270 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
10271 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
10272 frame.h and renamed [see frame.h changes].
10273 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10274 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
10275 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
10276 and renamed [see frame.h changes].
10277
10278 * xterm.c: Make (several) trivial substitutions for renamed and
10279 new macros in dispextern.h, frame.h and window.h.
10280 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
10281 (scroll_run): Adapt to new fringe position.
10282 (glyph_rect): Use window coordinates returned from
10283 window_from_coordinates rather than frame_to_window_pixel_xy.
10284 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10285 scroll-bars.
10286 (handle_one_xevent): Simplify a USE_GTK conditional.
10287 (x_clip_to_row): Remove superfluous whole_line_p arg and code
10288 (fringes are now inside margins, i.e. always in the clipping area).
10289 All callers changed.
10290 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10291 directly, then call compute_fringe_widths. Don't call
10292 frame_update_line_height.
10293
10294 * w32term.h (struct w32_output): Move members left_pos, top_pos,
10295 border_width, pixel_height, pixel_width, line_height,
10296 internal_border_width, vertical_scroll_bar_extra,
10297 left_fringe_width, right_fringe_width, fringe_cols,
10298 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10299 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
10300 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10301 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10302 (PIXEL_WIDTH, PIXEL_HEIGHT)
10303 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
10304 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
10305 frame.h and renamed [see frame.h changes].
10306 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10307 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
10308 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
10309 and renamed [see frame.h changes].
10310
10311 * w32term.c: Make (several) trivial substitutions for renamed and
10312 new macros in dispextern.h, frame.h and window.h.
10313 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
10314 (glyph_rect): Use window coordinates returned from
10315 window_from_coordinates rather than frame_to_window_pixel_xy.
10316 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10317 scroll-bars.
10318 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
10319 (fringes are now inside margins, i.e. always in the clipping area).
10320 All callers changed.
10321 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10322 directly, then call compute_fringe_widths. Don't call
10323 frame_update_line_height.
10324
10325 * w32console.c: Make (few) trivial substitutions for renamed and
10326 new macros in dispextern.h, frame.h and window.h.
10327
10328 * w32fns.c: Make (many) trivial substitutions for renamed and
10329 new macros in dispextern.h, frame.h and window.h.
10330
10331 * w32menu.c: Make (few) trivial substitutions for renamed and
10332 new macros in dispextern.h, frame.h and window.h.
10333
10334 * macterm.h (struct mac_output): Move members left_pos, top_pos,
10335 border_width, pixel_height, pixel_width, line_height,
10336 internal_border_width, vertical_scroll_bar_extra,
10337 left_fringe_width, right_fringe_width, fringe_cols,
10338 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
10339 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
10340 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
10341 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
10342 (PIXEL_WIDTH, PIXEL_HEIGHT)
10343 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
10344 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
10345 frame.h and renamed [see frame.h changes].
10346 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
10347 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
10348 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
10349 and renamed [see frame.h changes].
10350
10351 * macterm.c: Make (several) trivial substitutions for renamed and
10352 new macros in dispextern.h, frame.h and window.h.
10353 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
10354 (glyph_rect): Use window coordinates returned from
10355 window_from_coordinates rather than frame_to_window_pixel_xy.
10356 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
10357 scroll-bars.
10358 (x_clip_to_row): Remove superfluous whole_line_p arg and code
10359 (fringes are now inside margins, i.e. always in the clipping area).
10360 All callers changed.
10361 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
10362 directly, then call compute_fringe_widths. Don't call
10363 frame_update_line_height.
10364
10365 * macfns.c: Make (several) trivial substitutions for renamed and
10366 new macros in dispextern.h, frame.h and window.h.
10367 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
10368
10369 * macmenu.c: Make (few) trivial substitutions for renamed and
10370 new macros in dispextern.h, frame.h and window.h.
10371
10372 * msdos.h (struct x_output): Remove members left_pos, top_pos,
10373 and line_height, and use corresponding new members in struct
10374 frame. All uses changed.
10375 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
10376 superseeded by corresponding macros in frame.h.
10377
10378 * msdos.c: Make (several) trivial substitutions for renamed and
10379 new macros in dispextern.h, frame.h and window.h.
10380 (IT_note_mouse_highlight): Use updated window coordinates returned
10381 by window_from_coordinates, rather than adjusting them locally.
10382 (internal_terminal_init): No need to initialize line_height here;
10383 it now defaults to 1.
10384
10385 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
10386
10387 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
10388 dropping `down' events.
10389
10390 2003-05-24 Andreas Schwab <schwab@suse.de>
10391
10392 * coding.c (find_safe_codings): Fix last change.
10393
10394 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
10395
10396 * xfns.c (x_window): Fix typo from 2003-05-21 change.
10397
10398 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
10399
10400 * xdisp.c (display_mode_element): Increase max depth.
10401 Simplify the error handling code. Use a different error string
10402 for the case where we hit the depth limit.
10403
10404 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
10405
10406 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
10407
10408 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
10409
10410 * intervals.c (get_local_map): Don't get char-property of previous
10411 point any more: get_pos_property already does it and better.
10412
10413 2003-05-21 Dave Love <fx@gnu.org>
10414
10415 [Merged from unicode branch.]
10416
10417 * xfns.c (x_window, x_window): Use use_xim.
10418
10419 * xterm.c (use_xim): Initialize.
10420 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
10421 (x_term_init): Maybe set use_xim.
10422
10423 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
10424
10425 2003-05-21 Jason Rumney <jasonr@gnu.org>
10426
10427 * unexw32.c (_start): Remove _fmode initialization.
10428
10429 * emacs.c (main) [WINDOWSNT]: Move it here.
10430
10431 2003-05-20 Dave Love <fx@gnu.org>
10432
10433 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
10434
10435 2003-05-19 Richard M. Stallman <rms@gnu.org>
10436
10437 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
10438 as value for QCfont attribute.
10439 (realize_default_face): lface should already exist; crash if not.
10440 Specify 0 for FORCE_P when calling set_lface_from_font_name.
10441
10442 * frame.c (Fignore_event): Doc fix.
10443
10444 2003-05-19 Kenichi Handa <handa@m17n.org>
10445
10446 * coding.c (decode_coding_string): Handle post-read-conversion
10447 even if the coding doesn't require decoding.
10448
10449 2003-05-18 Richard M. Stallman <rms@gnu.org>
10450
10451 * callproc.c (Fcall_process_region): Doc fix.
10452
10453 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
10454
10455 * lread.c (Fload): Print a message if package is obsolete.
10456
10457 * window.c (Fselect_window): Add optional `norecord' arg.
10458 (select_window_1): Fold into Fselect_window.
10459 (select_window_norecord): New function.
10460 (temp_output_buffer_show): Use it. Preserve current buffer.
10461
10462 * window.h (Fselect_window): Update declaration.
10463
10464 * window.c (delete_window, Fother_window, Fset_window_configuration):
10465 * minibuf.c (read_minibuf):
10466 * macterm.c (x_new_focus_frame):
10467 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
10468 * callint.c (Fcall_interactively):
10469 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
10470
10471 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
10472
10473 2003-05-17 David Kastrup <dak@gnu.org>
10474
10475 * process.c (read_process_output): Back out change from 2003-03-09.
10476
10477 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
10478
10479 * editfns.c (get_pos_property): Don't assume that `object' = nil.
10480
10481 * textprop.c (text_property_stickiness): New arg `buffer'.
10482
10483 * intervals.h (text_property_stickiness): New arg `buffer'.
10484 (get_pos_property): Declare.
10485
10486 * intervals.c (get_local_map): Use get_pos_property, to obey
10487 stickiness and empty overlays.
10488 (create_root_interval, graft_intervals_into_buffer): Use BEG.
10489 (merge_properties, intervals_equal, merge_properties_sticky):
10490 Use XCAR, XCDR.
10491 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
10492
10493 2003-05-17 Richard M. Stallman <rms@gnu.org>
10494
10495 * minibuf.c (read_minibuf): If buffer is empty, record the default
10496 in the history.
10497 (Fminibuffer_complete_word): When deleting the overlap, take account
10498 of its real position.
10499
10500 * fns.c (map_char_table): Fix previous change.
10501
10502 * syntax.c (find_defun_start):
10503 When open_paren_in_column_0_is_defun_start,
10504 return beginning of buffer.
10505
10506 * lisp.h (map_char_table): Declare added arg.
10507
10508 * fns.c (map_char_table): New arg TABLE gets the master table.
10509 All calls changed.
10510 Process default and inheritance, resorting to Faref if necessary.
10511
10512 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
10513 (Faccessible_keymaps): Pass new arg to map_char_table.
10514
10515 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
10516
10517 * casetab.c (set_case_table): Pass new arg to map_char_table.
10518
10519 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
10520
10521 * lisp.h (specbinding_func): New typedef.
10522 (struct specbinding): Use specbinding_func, to put the `volatile'
10523 in the right place.
10524
10525 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
10526 to avoid GCC warning.
10527
10528 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
10529
10530 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
10531
10532 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
10533
10534 * keyboard.c (apply_modifiers): Don't fill the other cache.
10535
10536 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
10537
10538 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
10539
10540 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
10541 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
10542 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
10543 (Fset_window_configuration, Fcurrent_window_configuration)
10544 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
10545 (Fpos_visible_in_window_p, mark_window_cursors_off)
10546 (window_internal_height, window_internal_width, Frecenter)
10547 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
10548 (replace_buffer_in_all_windows, init_window_once, init_window)
10549 (syms_of_window, keys_of_window): Move from lisp.h.
10550 * lisp.h: Move window.c declarations to window.h.
10551
10552 * bytecode.c: Include window.h.
10553 * emacs.c: Include window.h.
10554
10555 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
10556 (keyremap): Add `parent' field.
10557 (keyremap_step): Use it. Remove `parent' argument.
10558 (read_key_sequence): Setup and use the new `parent' field.
10559
10560 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
10561
10562 * keyboard.c (adjust_point_for_property): Ensure termination.
10563
10564 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
10565
10566 * keyboard.c (follow_key): Remove dead variable `did_meta'.
10567 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
10568 duplicated handling of function-key-map and key-translation-map
10569 in read_key_sequence.
10570 (read_key_sequence): Use them.
10571
10572 * keyboard.c (adjust_point_for_property): Try harder to move point
10573 to the non-sticky end of an invisible property.
10574
10575 * xdisp.c (single_display_prop_intangible_p): Make `space' display
10576 property intangible as well.
10577
10578 2003-05-10 Andreas Schwab <schwab@suse.de>
10579
10580 * xmenu.c (single_menu_item): Change last parameter to void* to
10581 avoid warning.
10582
10583 2003-05-09 Richard M. Stallman <rms@gnu.org>
10584
10585 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
10586 Bind Qinhibit_modification_hooks to t so there will be no GC.
10587 Rename local `tem' to `save_deactivate_mark'.
10588
10589 * eval.c (specpdl_ptr): Declare volatile.
10590 (unbind_to): Copy the whole binding and decrement specpdl_ptr
10591 before doing the work of unbinding it.
10592
10593 * lisp.h (struct specbinding): Declare elements volatile.
10594 (specpdl_ptr): Declare volatile.
10595
10596 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
10597
10598 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
10599 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
10600
10601 2003-05-08 Dave Love <fx@gnu.org>
10602
10603 * coding.c (Vlast_coding_system_used): Doc fix.
10604
10605 2003-05-07 Jason Rumney <jasonr@gnu.org>
10606
10607 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
10608 when system does not support them.
10609
10610 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
10611
10612 * fileio.c (Qwrite_region_annotate_functions): New var.
10613 (build_annotations): Use it to process the global part of the hook.
10614 (syms_of_fileio): Init and staticpro it.
10615
10616 * keyboard.c (safe_run_hooks_error): Display a message instead of
10617 silently ignoring the error.
10618
10619 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
10620
10621 * keyboard.c (input_available_signal): Mark static.
10622 (menu_bar_items): Use map_keymap.
10623 (menu_bar_one_keymap): Remove.
10624 (menu_bar_item): Adjust arglist (for use in map_keymap).
10625 Properly hide a second binding when not both are keymaps.
10626
10627 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
10628 (single_keymap_panes): Use it and map_keymap.
10629 (single_menu_item): Use skp as well.
10630
10631 * keymap.h (map_keymap_function_t): New type.
10632 (map_keymap): Declare.
10633
10634 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
10635 (map_keymap_call, Fmap_keymap): New functions.
10636 (syms_of_keymap): Defsubr map-keymap.
10637
10638 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10639
10640 * gtkutil.c (create_dialog, make_widget_for_menu_item)
10641 (make_menu_item, create_menus, xg_update_menu_item): Don't call
10642 ..._with_mnemonic functions for menu items.
10643
10644 2003-05-01 Kenichi Handa <handa@m17n.org>
10645
10646 * coding.c (coding_system_accept_latin_extra_p): Delete this
10647 function.
10648 (find_safe_codings): Pay attention to
10649 the property tranlsation-table-for-encode of each codings.
10650 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
10651
10652 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
10653
10654 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
10655
10656 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
10657
10658 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
10659
10660 * lisp.h (CHECK): Wrap args in parenthesis.
10661 (specbind): Fix doc: symbol = Qnil is not supported any more.
10662
10663 * bytecode.c (Fbyte_code) <unwind-protect>:
10664 Use Fprogn rather than 0 and Qnil.
10665
10666 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
10667 `double', and `triple' modifiers as well.
10668
10669 2003-04-30 Richard M. Stallman <rms@gnu.org>
10670
10671 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
10672
10673 * alloc.c (abort_on_gc): New variable.
10674 (Fgarbage_collect): Abort if abort_on_gc is set.
10675
10676 * lisp.h (abort_on_gc): Add decl.
10677
10678 * eval.c (Fsignal): Clear abort_on_gc.
10679
10680 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
10681 Reinit FORMAT_START and END before second scan.
10682
10683 * xdisp.c (move_it_vertically_backward): Do the final big else
10684 even if nlines is 0.
10685
10686 * xdisp.c (redisplay_internal): Finish the per-frame loop
10687 even if redisplay is suspended by input.
10688
10689 2003-04-24 Andrew Choi <akochoi@shaw.ca>
10690
10691 * macterm.c (x_list_fonts): Return all fonts that match if
10692 maxnames = -1.
10693
10694 2003-04-25 Kenichi Handa <handa@m17n.org>
10695
10696 * syntax.c (skip_chars): Fix previous change.
10697
10698 2003-04-24 Kenichi Handa <handa@m17n.org>
10699
10700 * syntax.c (skip_chars): Make the code faster by using the common
10701 technique of *p, *stop, and *endp.
10702
10703 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10704
10705 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
10706 tool_bar_items so GTK tool bar expose callback does not access items
10707 being updated.
10708
10709 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
10710
10711 * eval.c (Fapply): Undo last change and add a comment about why.
10712
10713 2003-04-18 Miles Bader <miles@gnu.org>
10714
10715 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
10716 pickier PARSE_MULTIBYTE_SEQ.
10717
10718 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
10719
10720 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
10721 Use XCDR, XCAR, CONSP.
10722 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
10723 (Fapply): Remove unnecessary GCPRO.
10724
10725 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
10726
10727 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
10728
10729 * buffer.h: Don't hardcode BEG==1.
10730
10731 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
10732
10733 2003-04-16 Richard M. Stallman <rms@gnu.org>
10734
10735 * xdisp.c (try_window, try_window_reusing_current_matrix):
10736 When at end of window, set window_end_pos to Z-ZV.
10737
10738 * buffer.c (Foverlay_recenter): Doc fix.
10739
10740 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
10741
10742 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
10743
10744 2003-04-14 Andrew Choi <akochoi@shaw.ca>
10745
10746 * macterm.c (mac_check_for_quit_char): Don't check more often than
10747 once a second.
10748
10749 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
10750
10751 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
10752 specially, so that they can't hide an implicit switch-frame event.
10753 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
10754 (head_table): Use switch-frame as event_kind for select-window.
10755 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
10756
10757 * editfns.c (Fformat): Lisp_Object/int mixup.
10758 (format2): Remove unused var numargs.
10759
10760 2003-04-11 Kenichi Handa <handa@m17n.org>
10761
10762 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
10763 (Qafter_insert_file_set_coding): New variable.
10764 (syms_of_fileio): Initialize and staticpro it. Delete declaration
10765 for after-insert-file-adjust-coding-function.
10766 (Finsert_file_contents): Call Qafter_insert_file_set_coding
10767 instead of Vafter_insert_file_adjust_coding_function.
10768
10769 2003-04-11 Kenichi Handa <handa@m17n.org>
10770
10771 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
10772
10773 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
10774 string. Callers changed.
10775
10776 2003-04-10 Kenichi Handa <handa@m17n.org>
10777
10778 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
10779 (syms_of_fileio): Declare it as a lisp variable.
10780 (Finsert_file_contents):
10781 Call Vafter_insert_file_adjust_coding_function before calling
10782 decode-format.
10783
10784 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10785
10786 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
10787 get GtkAdjustment as widget now is a GtkRange.
10788
10789 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
10790 GtkRange to avoid memory leak.
10791
10792 2003-04-09 Kenichi Handa <handa@m17n.org>
10793
10794 * xfaces.c (Vface_font_rescale_alist): New variable.
10795 (struct font_name): New member rescale_ratio.
10796 (font_rescale_ratio): New function.
10797 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
10798 (better_font_p): On comparing point sized, pay attention to
10799 recale_ratio member of fonts.
10800 (build_scalable_font_name): Reflect font->rescale_ratio in the
10801 font name.
10802 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
10803
10804 * lread.c (read1): Before calling index, check if the 2nd
10805 arguemnt is in ASCII range.
10806
10807 2003-04-08 Richard M. Stallman <rms@gnu.org>
10808
10809 * fileio.c (Ffile_symlink_p): Doc fix.
10810
10811 * editfns.c (Fformat): Translate positions of text properties
10812 in the format string to apply them to the result.
10813
10814 * fileio.c (Finsert_file_contents): Doc fix.
10815 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
10816
10817 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
10818
10819 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
10820
10821 2003-04-08 Steven Tamm <steventamm@mac.com>
10822
10823 * mac.c (init_mac_osx_environment): Switch libexec and bin so
10824 that self-contained application finds libexec files.
10825
10826 2003-04-08 Kenichi Handa <handa@m17n.org>
10827
10828 * coding.c (code_convert_region_unwind):
10829 Set Vlast_coding_system_used to the argument.
10830 (code_convert_region): If post-read-conversion function changed
10831 the value of last-coding-sytem, keep the new value in
10832 coding->symbol so that it won't be overridden.
10833 (run_pre_post_conversion_on_str): Likewise.
10834 (coding_system_accept_latin_extra_p): New function.
10835 (find_safe_codings): Pay attention to characters registered in
10836 latin-extra-code-table.
10837
10838 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
10839
10840 * Makefile.in (md5.o): Add missing dependency info.
10841
10842 2003-04-06 Richard M. Stallman <rms@gnu.org>
10843
10844 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
10845
10846 * marker.c (verify_bytepos): New function.
10847
10848 * intervals.c (set_intervals_multibyte_1): When becoming
10849 multibyte, adjust right and left child sizes to a whole set of
10850 characters. If an interval gets zero total-length, delete it.
10851 If an interval consists of just its children, delete one of them.
10852
10853 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
10854 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
10855
10856 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
10857 All calls deleted.
10858 (lisp_malloc): Do the work here directly.
10859
10860 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
10861
10862 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
10863 char tables.
10864
10865 2003-04-04 Kenichi Handa <handa@m17n.org>
10866
10867 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
10868 destructively change "%S" to "%s".
10869
10870 2003-04-03 Miles Bader <miles@gnu.org>
10871
10872 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
10873 always set.
10874
10875 2003-04-01 Dave Love <fx@gnu.org>
10876
10877 * xfns.c (xpm_lookup_color): Grok "opaque".
10878
10879 2003-03-31 Andrew Choi <akochoi@shaw.ca>
10880
10881 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
10882 parent window ID.
10883
10884 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
10885
10886 * macterm.h (struct mac_output): Define x_pixels_diff and
10887 y_pixels_diff.
10888
10889 2003-03-31 Juanma Barranquero <lektu@terra.es>
10890
10891 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
10892 blockinput.h and files included from it.
10893
10894 2003-03-31 Kim F. Storm <storm@cua.dk>
10895
10896 The following changes consolidates the common code related to
10897 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
10898 files into frame.c.
10899
10900 * frame.c: Include blockinput.h.
10901 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
10902 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
10903 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
10904 related vars here.
10905 (struct frame_parm_table, frame_parms): New table for describing
10906 frame parameters and their associated Q-variable.
10907 The order of the parameters corresponds to the sequence of the
10908 frame_parm_handlers table in redisplay_interface.
10909 (x_fullscreen_move, x_set_frame_parameters)
10910 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
10911 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
10912 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10913 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
10914 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
10915 Generic functions for processing of frame parameters.
10916 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
10917 (display_x_get_resource, x_get_resource_string): Functions for
10918 generic access to X resources.
10919 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
10920 (x_default_parameter, Fx_parse_geometry): Functions for generic
10921 access to frame parameters.
10922 (x_figure_window_size): Generic calculation of frame size.
10923 Fixed to add space needed for tool bar. Also setup size_hint_flags.
10924 (syms_of_frame): Intern and staticpro frame parameter variables.
10925 Defvar_lisp Vx_resource_class and Vx_resource_name here.
10926 Defsubr Sx_get_resource and Sx_parse_geometry.
10927
10928 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
10929 parameter related vars defined in frame.c.
10930 (EMACS_CLASS): Define here.
10931 (enum FULLSCREEN_*): Define here.
10932 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
10933 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
10934 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
10935 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
10936 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
10937 (x_set_visibility, x_set_autoraise, x_set_autolower)
10938 (x_set_unsplittable, x_set_vertical_scroll_bars)
10939 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
10940 (x_figure_window_size): Add prototypes.
10941
10942 * dispextern.h (frame_parm_handler): New typedef.
10943 (struct redisplay_interface): New member frame_parm_handlers.
10944 (enum resource_types): Move declaration here.
10945 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
10946 (x_default_parameter): Add prototypes.
10947
10948 * window.c: Remove extern decl for frame parameter vars.
10949 (change_window_heights): New generic function;
10950 replaces x_change_window_heights. All users changed.
10951
10952 * window.h (change_window_heights): Add prototype.
10953
10954 * xfaces.c: Remove extern decl for frame parameter vars.
10955
10956 * xterm.h (EMACS_CLASS): Remove. Use generic define.
10957 (struct w32_display_info): Fix type of xrdb member.
10958 (enum FULLSCREEN_*): Remove.
10959 Remove prototypes for generic functions (in frame.h).
10960
10961 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10962 parameters now defined in frame.h and frame.c.
10963 (Vx_resource_name): Remove. Use generic var.
10964 (enum x_frame_parms): Remove (bogus, unused enum).
10965 (check_x_display_info): Make non-static (for frame.c).
10966 (struct x_frame_parm_table, x_frame_parms): Remove.
10967 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
10968 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
10969 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10970 (x_change_window_heights, x_set_autoraise, x_set_autolower)
10971 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
10972 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
10973 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
10974 Remove. Use generic functions instead.
10975 (enum resource_types): Remove.
10976 (x_set_scroll_bar_default_width): New global function (for frame.c).
10977 (Fx_create_frame): Depend on x_figure_window_size to add space for
10978 toolbar and setup size_hint_flags.
10979 (x_frame_parm_handlers): New table for redisplay_interface.
10980 (syms_of_xfns): Don't intern/staticpro removed vars.
10981
10982 * xterm.c: Remove unnecessary extern declarations.
10983 (x_fullscreen_adjust): Remove. Use generic instead.
10984 (x_redisplay_interface): Add x_frame_parm_handlers member.
10985
10986 * w32gui.h (XrmDatabase): New (dummy) typedef.
10987
10988 * w32term.h (EMACS_CLASS): Remove. Use generic define.
10989 (struct w32_display_info): Fix type of xrdb member.
10990 (enum FULLSCREEN_*): Remove.
10991 (x_fullscreen_adjust): Remove prototype.
10992
10993 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10994 parameters now defined in frame.h and frame.c.
10995 (Vx_resource_name): Remove. Use generic var.
10996 (enum x_frame_parms): Remove (bogus, unused enum).
10997 (check_x_display_info): Make non-static (for frame.c).
10998 (struct x_frame_parm_table, x_frame_parms): Remove.
10999 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11000 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11001 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11002 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11003 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11004 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11005 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11006 Remove. Use generic functions instead.
11007 (enum resource_types): Remove.
11008 (x_set_scroll_bar_default_width): New global function (for frame.c).
11009 (Fx_create_frame): Depend on x_figure_window_size to add space for
11010 toolbar and setup size_hint_flags.
11011 (w32_frame_parm_handlers): New table for redisplay_interface.
11012 (syms_of_w32fns): Don't intern/staticpro removed vars.
11013
11014 * w32term.c: Remove unnecessary extern declarations.
11015 (x_fullscreen_adjust): Remove. Use generic instead.
11016 (x_redisplay_interface): Add w32_frame_parm_handlers member.
11017
11018 * w32reg.c (x_get_string_resource): Use XrmDatabase.
11019
11020 * macgui.h (XrmDatabase): New (dummy) typedef.
11021
11022 * macterm.h (EMACS_CLASS): Remove.
11023 (struct mac_display_info): Add xrdb member.
11024 (struct mac_output): Add want_fullscreen member.
11025
11026 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11027 parameters now defined in frame.h and frame.c.
11028 (Vx_resource_name): Remove. Use generic var.
11029 (check_x_display_info): Make non-static (for frame.c).
11030 (struct x_frame_parm_table, x_frame_parms): Remove.
11031 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11032 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11033 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11034 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11035 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11036 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11037 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11038 Remove. Use generic functions instead.
11039 (enum resource_types): Remove.
11040 (x_set_scroll_bar_default_width): New global function (for frame.c).
11041 (mac_frame_parm_handlers): New table for redisplay_interface.
11042 (syms_of_macfns): Don't intern/staticpro removed vars.
11043
11044 * macterm.c: Remove unnecessary extern declarations.
11045 (x_redisplay_interface): Add mac_frame_parm_handlers member.
11046
11047 * Makefile.in (frame.o): Add dependency on blockinput.h and files
11048 included from it (atimer.h and systime.h).
11049
11050 2003-03-30 Andreas Schwab <schwab@suse.de>
11051
11052 * xdisp.c (x_insert_glyphs): Fix swapped width and height
11053 parameters for shift_glyphs_for_insert.
11054
11055 * macterm.c (x_redisplay_interface): Add missing entry for
11056 draw_vertical_window_border.
11057
11058 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11059
11060 * fileio.c (Fexpand_file_name): In the no-handler case, after
11061 expanding, look again for a handler and invoke it. This is needed
11062 for filenames like "/foo/../user@host:/bar/../baz" -- the first
11063 expansion produces "/user@host:/bar/../baz" which needs to be
11064 expanded again for the finame result "/user@host:/baz".
11065
11066 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11067
11068 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
11069 of area to be redrawn for better performance.
11070
11071 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
11072
11073 * xterm.c (take_vertical_position_into_account): Remove.
11074 (xt_action_hook): Call set_vertical_scroll_bar if needed.
11075 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
11076 (xm_scroll_callback, x_create_toolkit_scroll_bar)
11077 (x_set_toolkit_scroll_bar_thumb): Simplify.
11078 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
11079 (XTread_socket): Remove unused var.
11080 (x_make_frame_invisible): Replace goto with else.
11081
11082 * xdisp.c (set_vertical_scroll_bar): New fun.
11083 (redisplay_window): Use it.
11084
11085 2003-03-26 Richard M. Stallman <rms@gnu.org>
11086
11087 * xdisp.c (update_tool_bar): Recompute tool bar if
11088 update_mode_lines is set. Set w->update_mode_line
11089 only if the tool bar contents actually change.
11090 (update_menu_bar): Undo previous change.
11091
11092 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11093
11094 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
11095 (xg_frame_set_char_size): Calculate scroll bar width before frame
11096 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
11097 (xg_separator_p): Check for all documented separator types.
11098 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
11099 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
11100
11101 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
11102 so tool bar gets updated.
11103
11104 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
11105
11106 * data.c (store_symval_forwarding): Re-instate part of the code
11107 that was deleted with too much enthusiasm.
11108
11109 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
11110
11111 * data.c (store_symval_forwarding): Delete special read-only
11112 hack for type == -1, since we now use ->constant instead.
11113 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
11114
11115 * buffer.c (overlays_in): Declare static.
11116 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
11117 `constant' field rather than the variable's `type' field.
11118
11119 2003-03-24 Andrew Choi <akochoi@shaw.ca>
11120
11121 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
11122
11123 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
11124
11125 * fns.c [MAC_OSX]: Do not redefine vector.
11126
11127 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
11128
11129 * macgui.h: Remove definition of No_Cursor.
11130
11131 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
11132
11133 * xdisp.c: Define No_Cursor.
11134 (x_write_glyphs, notice_overwritten_cursor)
11135 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
11136 (note_mouse_highlight): Remove Mac-specific code.
11137 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
11138
11139 2003-03-24 John Paul Wallington <jpw@gnu.org>
11140
11141 * xdisp.c (redisplay_window): If mini window's buffer is not
11142 empty, then redisplay it like other windows.
11143
11144 2003-03-23 Kim F. Storm <storm@cua.dk>
11145
11146 * w32term.c (w32_draw_window_cursor): Fix last change.
11147
11148 2003-03-23 Kenichi Handa <handa@m17n.org>
11149
11150 * alloc.c (make_string_from_bytes, make_specified_string):
11151 Add `const' for the arg CONTENTS.
11152
11153 * lisp.h (make_string_from_bytes, make_specified_string):
11154 Prototypes adjusted.
11155
11156 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11157
11158 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
11159
11160 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
11161 (XG_SB_RANGE): New define.
11162
11163 * gtkutil.c (xg_fixed_handle_expose): New function.
11164 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
11165 expose events.
11166 (xg_update_scrollbar_pos): Take two more arguments, left and width
11167 of scroll bar including borders.
11168 Clear left and right part outside scroll bar separately as some
11169 themes have bars that are not an even number of pixels.
11170 Don't set reallocate_redraws, don't call
11171 gdk_window_process_all_updates.
11172 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
11173 so no need to change it. Calculate size and value with XG_SB_RANGE.
11174
11175 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
11176 Pass left and width of scroll bar including borders to
11177 xg_update_scrollbar_pos.
11178
11179 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
11180
11181 * Makefile.in: Make sure space precedes end-of-line backslashes.
11182
11183 2003-03-22 Kim F. Storm <storm@cua.dk>
11184
11185 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
11186 Add generic versions here. Remove system specific versions
11187 defined elsewhere.
11188
11189 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
11190 Add prototypes.
11191
11192 * xterm.h (STORE_NATIVE_RECT): New macro.
11193
11194 2003-03-21 Kim F. Storm <storm@cua.dk>
11195
11196 * xdisp.c (get_glyph_string_clip_rect):
11197 Use FRAME_INTERNAL_BORDER_WIDTH.
11198
11199 * dispextern.h (struct redisplay_interface): Add active_p
11200 argument to draw_window_cursor member. All uses changed.
11201
11202 2003-03-21 Kim F. Storm <storm@cua.dk>
11203
11204 The following changes consolidate code related to writing and
11205 inserting glyphs, exposing frame, the tool bar, the mouse face,
11206 the output cursor, and help echo from xterm.c, w32term.c and
11207 macterm.c into xdisp.c. It also generalizes the use of the
11208 window_part enum instead of using numeric values throughout.
11209
11210 * xdisp.c: Consolidate gui-independent code here.
11211 Include keymap.h.
11212 (Qhelp_echo): Import.
11213 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
11214 (help_echo_string, help_echo_window, help_echo_object)
11215 (previous_help_echo_string, help_echo_pos): Declare here.
11216 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
11217 (estimate_mode_line_height): Define here. Handle windowing
11218 systems directly (without using estimate_mode_line_height_hook).
11219 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
11220 (update_window_cursor, update_cursor_in_window_tree)
11221 (fast_find_position, fast_find_string_pos)
11222 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
11223 (expose_area, expose_line, expose_overlaps, expose_window)
11224 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
11225 declared static as they are only used locally in xdisp.c.
11226 (draw_glyphs): Rename from x_draw_glyphs and make static.
11227 (tool_bar_item_info, notice_overwritten_cursor): Make static.
11228 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
11229 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
11230 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
11231 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
11232 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
11233 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
11234 (note_mouse_highlight, x_clear_window_mouse_face)
11235 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
11236 (x_intersect_rectangles): New generic functions for use by xdisp.c
11237 and GUI front-ends.
11238 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
11239 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
11240
11241 * dispextern.h (Display_Info): Generic typedef for *_display_info.
11242 (NativeRectangle): Generic typedef for rectangle type.
11243 (enum window_part): Move here from window.c.
11244 (struct redisplay_interface): New members flush_display_optional,
11245 define_frame_cursor, clear_frame_area, draw_window_cursor,
11246 draw_vertical_window_border, shift_glyphs_for_insert.
11247 Rename member clear_mouse_face to clear_window_mouse_face.
11248 (estimate_mode_line_height_hook): Remove hook.
11249 (auto_raise_tool_bar_buttons_p): Don't declare extern.
11250 (tool_bar_item_info): Remove prototype.
11251 (help_echo_string, help_echo_window, help_echo_object)
11252 (previous_help_echo_string, help_echo_pos)
11253 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
11254 (x_stretch_cursor_p, output_cursor): Declare extern.
11255 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
11256 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
11257 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
11258 (display_and_set_cursor, set_output_cursor, x_cursor_to)
11259 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
11260 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
11261 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
11262 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
11263 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
11264 Add prototypes.
11265 (mode_line_string, marginal_area_string): Fix prototypes.
11266
11267 * window.c (enum window_part): Move to dispextern.h.
11268 (coordinates_in_window): Use enum window_part member names
11269 instead of numbers to describe return value.
11270 (struct check_window_data): Change part member to window_part.
11271 (check_window_containing): Return window_part unaltered.
11272 (window_from_coordinates): Change part arg from int to enum
11273 window_part. Allow part arg to be null. All users changed.
11274
11275 * window.h (window_from_coordinates): Fix prototype.
11276
11277 * term.c (estimate_mode_line_height): Move to xdisp.c.
11278
11279 * keyboard.c (make_lispy_event): Use enum window_part.
11280
11281 * dispnew.c (mode_line_string, marginal_area_string): Use enum
11282 window_part instead of int in arg list. Users changed.
11283
11284 * xterm.h (No_Cursor): Declare as None for X.
11285 (struct mac_output): Replace member cross_cursor by hand_cursor.
11286
11287 * xterm.c: Remove consolidated defines and code.
11288 (BETWEEN): Remove unused macro.
11289 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
11290 (x_define_frame_cursor, x_clear_frame_area)
11291 (x_draw_window_cursor): New X-specific functions for RIF.
11292 (x_redisplay_interface): Add new members.
11293
11294 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
11295
11296 * w32term.h (struct w32_output): Remove cross_cursor member.
11297
11298 * w32term.c: Remove consolidated defines and code.
11299 (BETWEEN): Remove unused macro.
11300 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
11301 (w32_define_frame_cursor, w32_clear_frame_area)
11302 (w32_draw_window_cursor): New W32-specific functions for RIF.
11303 (w32_redisplay_interface): Add new members.
11304
11305 * w32gui.h (No_Cursor): Define as 0 for W32.
11306 (XRectangle): Add X compatible rectangle type.
11307 (NativeRectangle): Declare as RECT for W32.
11308 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
11309
11310 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
11311
11312 * w32console.c: Remove consolidated defines and code.
11313
11314 * msdos.h (Display_Info): Add generic typedef.
11315
11316 * msdos.c: Remove consolidated defines and code.
11317 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
11318
11319 * macterm.h (struct mac_output): Replace member cross_cursor by
11320 hand_cursor.
11321 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
11322
11323 * macterm.c: Remove consolidated defines and code.
11324 (BETWEEN): Remove unused macro.
11325 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
11326 (mac_define_frame_cursor, mac_clear_frame_area)
11327 (mac_draw_window_cursor): New Mac-specific functions for RIF.
11328 (x_redisplay_interface): Add new members.
11329
11330 * macgui.h (No_Cursor): Define as 0 for Mac.
11331 (XRectangle): Add X compatible rectangle type.
11332 (NativeRectangle): Declare as Rect for Mac.
11333 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
11334
11335 * macfns.c (x_set_mouse_color): Setup hand_cursor.
11336 (x_set_cursor_color): Use x_display_and_set_cursor.
11337
11338 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
11339 included from it. Add dependency on keymap.h.
11340
11341 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
11342
11343 2003-03-21 Kenichi Handa <handa@m17n.org>
11344
11345 * fileio.c (Fexpand_file_name): Fix previous change.
11346
11347 2003-03-19 Kenichi Handa <handa@m17n.org>
11348
11349 * fileio.c (Ffile_name_directory): Reconstruct file name by
11350 make_specified_string.
11351 (Ffile_name_nondirectory, Ffile_name_as_directory)
11352 (Fdirectory_file_name, Fexpand_file_name)
11353 (Fsubstitute_in_file_name): Likewise.
11354 (Fread_file_name): Compare decoded homedir with DIR and
11355 DEFAULT_FILENAME.
11356
11357 * alloc.c (make_specified_string): If NCHARS is negative, count
11358 the number of characters.
11359
11360 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11361
11362 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
11363 all widgets.
11364
11365 * gtkutil.h: Removed xg_ignore_next_thumb.
11366
11367 2003-03-18 Kenichi Handa <handa@m17n.org>
11368
11369 * coding.c (Vchar_coding_system_table): Remove this variable.
11370 (Vcoding_system_safe_chars): New variable.
11371 (intersection): Remove this function.
11372 (find_safe_codings): Don't use Vchar_coding_system_table, but try
11373 all codings in SAFE_CODINGS.
11374 (Ffind_coding_systems_region_internal): Adjust for the change of
11375 find_safe_codings. Get generic coding systems from
11376 Vcoding_system_safe_chars.
11377 (Fdefine_coding_system_internal): New function.
11378 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
11379 Initialize and staticpro Vcoding_system_safe_chars.
11380
11381 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11382
11383 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
11384 equal old values before updating.
11385
11386 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
11387
11388 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
11389
11390 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11391
11392 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
11393 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
11394 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
11395 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
11396 (xg_create_scroll_bar): Pass bar to button event callback.
11397 (xg_find_top_left_in_fixed): New function.
11398 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
11399 whole scroll bar area. Get old position with
11400 xg_find_top_left_in_fixed, calculate and only clear needed areas.
11401 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
11402 dragging is in progress. Calculate whole as for Motif.
11403 Remove code that saved last values. Call gtk_range functions to
11404 set scroll bar sizes.
11405
11406 * gtkutil.h: Removed xg_ignore_next_thumb.
11407
11408 2003-03-17 Juanma Barranquero <lektu@terra.es>
11409
11410 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
11411 and files included from it.
11412
11413 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
11414
11415 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
11416 multiple occurrences of the same keymap under different prefixes.
11417 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
11418
11419 2003-03-16 Jason Rumney <jasonr@gnu.org>
11420
11421 * w32gui.h: Use HDC for Display.
11422
11423 * w32term.c (w32_encode_char): Prevent double-byte chars from
11424 crashing Emacs.
11425
11426 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
11427 as binary.
11428
11429 2003-03-16 Juanma Barranquero <lektu@terra.es>
11430
11431 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
11432
11433 2003-03-16 Kim F. Storm <storm@cua.dk>
11434
11435 The following changes consolidate some of the gui-independent
11436 parts of the processing and drawing of "glyph strings" from
11437 xterm.c, w32term.c, and macterm.c into xdisp.c.
11438
11439 * dispextern.h (struct glyph): Reduce face_id member from 22 to
11440 21 bits (this reduces number of faces from 4M to 2M).
11441 Replace W32 specific w32_font_type member (2 bits) by generic
11442 font_type member (3 bits) for portability.
11443 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
11444 (enum draw_glyphs_face): Define here.
11445 (struct glyph_string): Define here. Merge W32 and X versions.
11446 (struct redisplay_interface): New members per_char_metric,
11447 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
11448 (VCENTER_BASELINE_OFFSET): Define here.
11449 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
11450 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
11451
11452 * xdisp.c: Consolidate gui-independent "glyph string" code here.
11453 (dump_glyph_string): Moved here.
11454 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
11455 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
11456 (fill_composite_glyph_string, fill_glyph_string)
11457 (fill_image_glyph_string, fill_stretch_glyph_string)
11458 (left_overwritten, left_overwriting, right_overwritten)
11459 (right_overwriting, get_char_face_and_encoding)
11460 (set_glyph_string_background_width, compute_overhangs_and_x)
11461 (append_glyph, append_composite_glyph, produce_image_glyph)
11462 (take_vertical_position_into_account, append_stretch_glyph)
11463 (produce_stretch_glyph): New generic functions (based on X version).
11464 Call platform specific functions through rif.
11465 (INIT_GLYPH_STRING): New macro, hides W32 details.
11466 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
11467 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
11468 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
11469 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
11470 (notice_overwritten_cursor):
11471 Generic functions exported to platform modules. Users changed.
11472
11473 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
11474 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
11475 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
11476 New macros for consolidated code.
11477
11478 * xterm.c: Remove consolidated defines and code.
11479 (x_per_char_metric, x_encode_char)
11480 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
11481 (x_redisplay_interface): Add new members.
11482
11483 * w32gui.h (Display): Add dummy typedef for consolidation.
11484 (XChar2b): Define alias for wchar_t for consolidation.
11485 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
11486
11487 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
11488 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
11489 New macros for consolidation.
11490
11491 * w32term.c: Remove consolidated defines and code.
11492 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
11493 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
11494 (w32_per_char_metric): Change font_type arg to int for RIF.
11495 (w32_encode_char): Return int according to RIF requirements.
11496 (w32_compute_glyph_string_overhangs): Adapt to RIF.
11497 (w32_get_glyph_overhangs): New function for RIF. Uses generic
11498 x_get_glyph_overhangs.
11499 (w32_redisplay_interface): Add new members.
11500
11501 * macgui.h (XChar2b): Move typedef here for consolidation.
11502 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
11503
11504 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
11505 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
11506 consolidation.
11507
11508 * macterm.c: Remove consolidated defines and code.
11509 (mac_per_char_metric): New function for RIF.
11510 (mac_encode_char): Adapt to new RIF requirements.
11511 (mac_compute_glyph_string_overhangs): Adapt for RIF.
11512 (x_redisplay_interface): Add new members.
11513
11514 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
11515
11516 * keymap.c (Vmenu_events): New var.
11517 (syms_of_keymap): Initialize it.
11518 (where_is_internal): Check more carefully what is a menu event.
11519
11520 2003-03-14 Richard M. Stallman <rms@gnu.org>
11521
11522 * lread.c (read1): After #!, exit loop on eof.
11523
11524 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11525
11526 * gtkutil.h: Add declaration for xg_frame_cleared.
11527
11528 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
11529
11530 * gtkutil.c (struct xg_last_sb_pos): New structure.
11531 (handle_fixed_child): New function.
11532 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
11533 and force a redraw on them.
11534 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
11535 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
11536 so we can avoid unneeded redraws.
11537 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
11538 and force a redraw on the scroll bar.
11539 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
11540 if xg_last_sb_pos shows the positions are up to date.
11541 (xg_frame_cleared): New function.
11542
11543 2003-03-13 Kenichi Handa <handa@m17n.org>
11544
11545 * coding.c (Fdetect_coding_region): Fix docstring.
11546 (Fdetect_coding_string): Fix docstring.
11547
11548 2003-03-13 Andreas Schwab <schwab@suse.de>
11549
11550 * gtkutil.c: Add prototype for create_menus.
11551
11552 * data.c (long_to_cons): Fix type of top.
11553
11554 * xselect.c (selection_data_to_lisp_data): Use int instead of
11555 long for an integer of size 4.
11556
11557 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
11558 (xg_tool_bar_help_callback): Likewise.
11559
11560 2003-03-12 Andreas Schwab <schwab@suse.de>
11561
11562 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
11563
11564 2003-03-12 Kim F. Storm <storm@cua.dk>
11565
11566 The following changes consolidate the fringe handling from
11567 xterm.c, w32term.c, and macterm.c into xdisp.c.
11568
11569 * xdisp.c: Consolidate fringe handling code here.
11570 (left_bits, right_bits, continued_bits, continuation_bits)
11571 (ov_bits, zv_bits): Define fringe bitmaps.
11572 (fringe_bitmaps): New array holding fringe bitmaps.
11573 (draw_fringe_bitmap): Draw a specific bitmap; call display
11574 specific drawing routine via rif->draw_fringe_bitmap.
11575 (draw_row_fringe_bitmaps): Generic replacement for
11576 x_draw_row_fringe_bitmaps; all callers changed.
11577 (compute_fringe_widths): Generic replacement for
11578 x_compute_fringe_widths; all callers changed.
11579
11580 * dispextern.h (enum fringe_bitmap_type): Define here.
11581 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
11582 (fringe_bitmaps): Declare extern.
11583 (struct redisplay_interface): New member draw_fringe_bitmap.
11584 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
11585
11586 * xterm.c: Remove generic fringe code.
11587 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
11588 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
11589
11590 * w32term.c: Remove generic fringe code.
11591 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
11592 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
11593
11594 * macterm.c: Remove generic fringe code.
11595 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
11596 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
11597
11598 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
11599
11600 * print.c (Fprin1_to_string): Return unibyte string if possible.
11601
11602 2003-03-09 David Kastrup <dak@gnu.org>
11603
11604 * process.c (read_process_output): We have allocated enough space
11605 for readmax and carryover, so actually use the alloted space.
11606
11607 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11608
11609 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
11610 toolkit scrollbar click.
11611
11612 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
11613 for USE_GTK.
11614 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
11615 also.
11616 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
11617 scrollbar and control is pressed, call x_scroll_bar_handle_click.
11618
11619 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
11620
11621 * gtkutil.c (xg_get_scroll_id_for_window): New function.
11622 (xg_tool_bar_item_expose_callback): New function.
11623 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
11624 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
11625 on the tool bar widget.
11626 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
11627 to expose on the tool bar item widgets.
11628
11629 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11630
11631 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
11632 struct image* when deciding to update (struct image* may have been
11633 deleted from the image cache).
11634
11635 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
11636 the event isn't for a frame (i.e. for dialogs).
11637
11638 2003-03-07 Kenichi Handa <handa@m17n.org>
11639
11640 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
11641 composition components reaches the limit, terminate composing.
11642 (COMPOSITION_OK): New macro.
11643 (detect_coding_iso2022): Use it if an escape sequence for
11644 composition is found.
11645 (coding_restore_composition): Adjust the number of composition
11646 components if it is not sane.
11647
11648 2003-03-06 Juanma Barranquero <lektu@terra.es>
11649
11650 * w32term.h (struct w32_display_info): Add xrdb member to support
11651 passing resources via -xrm on Windows.
11652
11653 * w32term.c (w32_make_rdb): New function.
11654 (w32_term_init): Use it to initialize xrdb member of w32_display_info
11655 struct. Delete leftover code.
11656
11657 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
11658 for resources passed on the command line.
11659
11660 * w32reg.c (w32_get_rdb_resource): New function.
11661 (x_get_string_resource): Use it, so resources passed with -xrm
11662 supercede the ones in the registry.
11663
11664 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11665
11666 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
11667 instead of x_top_window_to_frame.
11668
11669 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11670
11671 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
11672 when restarting Emacs.
11673
11674 2003-03-03 Richard M. Stallman <rms@gnu.org>
11675
11676 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
11677 to run kill-buffer-query-functions.
11678 (Qkill_buffer_query_functions): New var.
11679 (syms_of_buffer): Init and staticpro it.
11680
11681 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11682
11683 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
11684
11685 2003-02-25 Kim F. Storm <storm@cua.dk>
11686
11687 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
11688 If centering point failed to make whole line visible and vscroll
11689 is non-zero, disable vscroll and try centering point again.
11690
11691 * lread.c (read1): Accept `single space' syntax like (? x).
11692
11693 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11694
11695 * keyboard.c (cancel_hourglass_unwind): Surround with
11696 #ifdef HAVE_X_WINDOWS
11697
11698 2003-02-25 Kenichi Handa <handa@m17n.org>
11699
11700 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
11701 process only when "subprocesses" is defined.
11702
11703 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
11704
11705 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
11706
11707 2003-02-24 Juanma Barranquero <lektu@terra.es>
11708
11709 * callint.c (fix_command): Declare as static void and move before
11710 Fcall_interactively.
11711
11712 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
11713 (syms_of_xdisp): Don't initialize Qwhen.
11714
11715 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11716
11717 * keyboard.c (cancel_hourglass_unwind): New function.
11718 (command_loop_1): Cancel hourglass with unwind-protect.
11719
11720 2003-02-23 Richard M. Stallman <rms@gnu.org>
11721
11722 * callint.c (fix_command): New subroutine, from Fcall_interactively.
11723 Detect (when ... (region-beginning)) etc.
11724 (Fcall_interactively): Call fix_command.
11725 (Qif, Qwhen): New variables.
11726 (syms_of_callint): Init and staticpro them.
11727
11728 * regex.c (print_partial_compiled_pattern): Output to stderr.
11729
11730 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11731
11732 * dired.c (directory_files_internal): Don't expand directory.
11733 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
11734 instead. From Lars Hansen <larsh@math.ku.dk>.
11735
11736 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
11737
11738 * fns.c (string_to_multibyte): Remove unused var i.
11739 (Flanginfo): Fix int/Lisp_Object mixup.
11740 (void_call2): New fun.
11741 (Fmap_char_table): Use it in place of call2.
11742
11743 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
11744
11745 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
11746
11747 * keymap.c (copy_keymap_1): Make it static.
11748
11749 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
11750
11751 2003-02-22 David Ponce <david@dponce.com>
11752
11753 * lread.c (Fload): Don't check STRING_MULTIBYTE.
11754
11755 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11756
11757 * process.h: Removed subtty field from struct Lisp_Process.
11758
11759 * process.c (create_process): Remove setting of subtty.
11760 (emacs_get_tty_pgrp): New function.
11761 (Fprocess_running_child_p, process_send_signal):
11762 Call emacs_get_tty_pgrp instead of ioctl.
11763 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
11764
11765 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11766
11767 * keymap.c (Fdefine_key): Doc fix.
11768
11769 2003-02-21 Juanma Barranquero <lektu@terra.es>
11770
11771 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
11772
11773 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
11774 POLLING_PROBLEM_IN_SELECT.
11775
11776 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
11777 Delete #undef of POLLING_PROBLEM_IN_SELECT.
11778
11779 * s/hpux10-20.h: New file.
11780
11781 * process.c (wait_reading_process_input):
11782 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
11783
11784 2003-02-20 Kenichi Handa <handa@m17n.org>
11785
11786 * fontset.c (check_fontset_name): If NAME is nil, return the
11787 default fontset.
11788 (override_font_info): New function.
11789 (Fset_fontset_font): Document that NAME nil means the default fontset.
11790 (Ffontset_info): If FONTSET is not the default fontset, merge
11791 FONTSET onto the copy of the default fontset, and work on that
11792 copy. Document that NAME nil means the default fontset.
11793 (Ffontset_font): Document that NAME nil means the default fontset.
11794
11795 * process.c (setup_process_coding_systems): If the process's
11796 in/out descriptor is -1, do nothing.
11797
11798 2003-02-19 Andreas Schwab <schwab@suse.de>
11799
11800 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
11801 Add prototypes.
11802
11803 2003-02-19 Kenichi Handa <handa@m17n.org>
11804
11805 * xfaces.c (try_alternative_families): Try all scalable fonts if
11806 Vscalable_fonts_allowed is not Qt.
11807
11808 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11809
11810 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
11811
11812 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11813
11814 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
11815 names.
11816
11817 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
11818 (sorted_font_list): Move allocation of struct font_name to
11819 x_face_list_fonts.
11820 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
11821 (Fx_list_fonts): Set maxnames to -1 to get all font names.
11822
11823 2003-02-18 Kim F. Storm <storm@cua.dk>
11824
11825 * lread.c (read1): Fix last change.
11826 "`" is not always special. Allow "?" after a character constant.
11827
11828 2003-02-18 Andrew Choi <akochoi@shaw.ca>
11829
11830 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
11831
11832 2003-02-18 Andreas Schwab <schwab@suse.de>
11833
11834 * window.c (window_scroll_pixel_based): Move outside a
11835 multi-glyph character before setting new window start.
11836
11837 * xdisp.c (in_display_vector_p): New function.
11838 * dispextern.h (in_display_vector_p): Declare.
11839
11840 2003-02-18 Kim F. Storm <storm@cua.dk>
11841
11842 * lread.c (read1): Fix and relax read syntax.
11843 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
11844 Only recognize "," after dotted-pair dot if inside backquote.
11845 Never include "`" or "," (inside backquote) in a symbol.
11846 Allow dotted-pair dot after a character constant.
11847 Allow "`" and "," (inside backquote) after a character constant.
11848
11849 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11850
11851 * gtkutil.c (xg_tool_bar_expose_callback): New function.
11852 (xg_create_tool_bar): Force style of tool bar to be horizontal with
11853 icons. Set name of tool bar to emacs-toolbar.
11854 (update_frame_tool_bar): Connect expose event to
11855 xg_tool_bar_expose_callback.
11856
11857 2003-02-17 Richard M. Stallman <rms@gnu.org>
11858
11859 * keyboard.c (this_command_key_count_reset): New variable.
11860 Initiatize to 0 where this_command_key_count is set.
11861 (read_char): Save and restore this_command_key_count_reset
11862 around input method code.
11863 (read_char): If this_command_key_count_reset, echo reread commands.
11864 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
11865
11866 2003-02-17 Kenichi Handa <handa@m17n.org>
11867
11868 * fns.c (string_to_multibyte): Always return a multibyte string.
11869
11870 2003-02-16 Jason Rumney <jasonr@gnu.org>
11871
11872 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
11873 Negative max_fonts parameter means list all.
11874
11875 2003-02-14 Dave Love <fx@gnu.org>
11876
11877 * fns.c (Flanginfo): Doc fix.
11878
11879 2003-02-13 Kim F. Storm <storm@cua.dk>
11880
11881 * lread.c (read_escape): Interpret \s as a SPACE character, except
11882 for \s-X in a character constant which still is the super modifier.
11883 (read1): Signal an `invalid read syntax' error if a character
11884 constant is immediately followed by a digit or symbol character.
11885
11886 * search.c (Fmatch_data): Doc fix. Explicitly state that
11887 match-data is undefined if last search failed.
11888
11889 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
11890 All uses changed.
11891
11892 2003-02-12 Juanma Barranquero <lektu@terra.es>
11893
11894 * eval.c (Fdefmacro): Fix typo.
11895
11896 2003-02-12 Kim F. Storm <storm@cua.dk>
11897
11898 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
11899 macro is a string, convert meta modifiers in string when copying
11900 the string into a vector.
11901
11902 2003-02-11 Kim F. Storm <storm@cua.dk>
11903
11904 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
11905
11906 2003-02-11 Kenichi Handa <handa@m17n.org>
11907
11908 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
11909
11910 2003-02-10 Kim F. Storm <storm@cua.dk>
11911
11912 * process.c: Doc fixes.
11913 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
11914
11915 2003-02-10 Kenichi Handa <handa@m17n.org>
11916
11917 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
11918
11919 * process.c (QCfilter_multibyte): New variable.
11920 (setup_process_coding_systems): New function.
11921 (Fset_process_buffer, Fset_process_filter):
11922 Call setup_process_coding_systems.
11923 (Fstart_process): Initialize the member `filter_multibyte' of
11924 struct Lisp_Process.
11925 (create_process): Call setup_process_coding_systems.
11926 (Fmake_network_process): New keyward `:filter-multibyte'.
11927 Initialize the member `filter_multibyte' of struct Lisp_Process.
11928 Call setup_process_coding_systems.
11929 (server_accept_connection): Call setup_process_coding_systems.
11930 (read_process_output): If the process has a filter, decide the
11931 multibyteness of a string to given to the filter by
11932 `filter_multibyte' member of the process. If the process doesn't
11933 have a filter and the result of conversion is unibyte, use
11934 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
11935 multibyte form.
11936 (Fset_process_coding_system): Call setup_process_coding_systems.
11937 (Fset_process_filter_multibyte): New function.
11938 (Fprocess_filter_multibyte_p): New function.
11939 (syms_of_process): Intern and staticpro QCfilter_multibyte.
11940 Defsubr Sset_process_filter_multibyte and
11941 Sprocess_filter_multibyte_p.
11942
11943 * process.h (struct Lisp_Process): New member filter_multibyte.
11944
11945 * lisp.h (setup_process_coding_systems): Add prototype.
11946
11947 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
11948 process, update coding systems for the process.
11949
11950 2003-02-09 Kenichi Handa <handa@m17n.org>
11951
11952 * fns.c (string_to_multibyte): New function.
11953 (Fstring_to_multibyte): New function.
11954 (syms_of_fns): Defsubr it.
11955
11956 2003-02-08 Andreas Schwab <schwab@suse.de>
11957
11958 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
11959 instead of the substitution.
11960
11961 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11962
11963 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
11964
11965 * xmenu.c (menu_position_func): Adjust menu popup position so that
11966 the menu is fully visible.
11967
11968 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11969
11970 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
11971 (x_make_frame_invisible, x_wm_set_icon_position):
11972 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
11973
11974 * xfns.c (x_set_name, x_set_title): Ditto.
11975
11976 2003-02-04 Richard M. Stallman <rms@gnu.org>
11977
11978 * keyboard.c (echo_now): Update before_command_echo_length.
11979 (Freset_this_command_lengths): Reset this_command_key_count etc.
11980 immediately rather than arranging to do it later.
11981 (before_command_key_count_1, before_command_echo_length_1)
11982 (before_command_restore_flag): Vars deleted.
11983 (add_command_key): Don't handle before_command_restore_flag.
11984 (read_char, record_menu_key): Don't update before_command_key_count or
11985 before_command_echo_length.
11986 (read_char): Don't handle before_command_restore_flag.
11987
11988 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
11989 in direct-output clauses if it wouldn't be called in the ordinary case.
11990
11991 2003-02-04 Kim F. Storm <storm@cua.dk>
11992
11993 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
11994
11995 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11996
11997 * gtkutil.c (remove_from_container): Copying list is not needed.
11998 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
11999 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
12000 on list returned from gtk_container_get_children to avoid memory leak.
12001
12002 2003-02-01 Jason Rumney <jasonr@gnu.org>
12003
12004 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
12005 local malloc.
12006 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
12007 definitions in xpm.h.
12008 (init_xpm_functions): New function.
12009 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
12010 (init_external_image_libraries): Try to load libXpm.dll.
12011
12012 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
12013 timestamp.
12014
12015 2003-01-31 Dave Love <fx@gnu.org>
12016
12017 * syntax.c (Fskip_chars_forward)
12018 (open-paren-in-column-0-is-defun-start): Doc fix.
12019
12020 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
12021
12022 * fileio.c: Support // at start of name for Cygwin (just added proper
12023 preprocessor tests).
12024
12025 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
12026
12027 * Makefile.in: Use @EXEEXT@ for Cygwin.
12028
12029 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
12030
12031 * s/cygwin.h: Added for Cygwin port.
12032
12033 2003-01-31 Juanma Barranquero <lektu@terra.es>
12034
12035 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
12036 when including gif_lib.h.
12037 (init_gif_functions, init_tiff_functions): New functions.
12038 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
12039 Windows. Disable color table lookups. Call library functions
12040 through pointers determined at runtime.
12041 (init_external_image_libraries): Try to load libungif.dll and
12042 libtiff.dll.
12043
12044 2003-01-31 Kenichi Handa <handa@m17n.org>
12045
12046 * xdisp.c (SKIP_GLYPHS): New macro.
12047 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
12048
12049 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12050
12051 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
12052
12053 2003-01-30 Dave Love <fx@gnu.org>
12054
12055 * alloc.c (Vgc_elapsed, gcs_done): New variables.
12056 (Fgarbage_collect): Use them.
12057 (init_alloc, syms_of_alloc): Set them up.
12058
12059 2003-01-30 Juanma Barranquero <lektu@terra.es>
12060
12061 * w32fns.c (init_external_image_libraries): Add missing operator.
12062
12063 2003-01-29 Jason Rumney <jasonr@gnu.org>
12064
12065 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
12066 an alternative name for jpeg.dll.
12067
12068 2003-01-29 Kenichi Handa <handa@m17n.org>
12069
12070 * xdisp.c (set_cursor_from_row): Pay attention to string display
12071 properties.
12072
12073 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
12074
12075 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
12076 <escape>.
12077 (keycode_to_xkeysym_table): Reformat and add more comments.
12078 (XTread_socket): Drop special case for backspace.
12079
12080 2003-01-28 Andrew Choi <akochoi@shaw.ca>
12081
12082 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
12083 values in old-style RGB specs.
12084
12085 2003-01-27 Juanma Barranquero <lektu@terra.es>
12086
12087 * w32fns.c (init_external_image_libraries): Try alternate names for the
12088 jpeg dll.
12089
12090 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12091
12092 * gtkutil.c (create_dialog, xg_separator_p)
12093 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
12094 before calling strcmp or strlen.
12095
12096 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12097
12098 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
12099 and handle image load failure.
12100
12101 2003-01-26 Jason Rumney <jasonr@gnu.org>
12102
12103 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
12104 New functions.
12105 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
12106 Disable color table lookups. Call jpeg library functions
12107 through pointers determined at runtime.
12108 (init_external_image_libraries): Try to load jpeg.dll.
12109
12110 2003-01-25 Richard M. Stallman <rms@gnu.org>
12111
12112 * lisp.h: Declare format2 instead of format1.
12113
12114 * fileio.c (barf_or_query_if_file_exists):
12115 Call format2 instead of format1.
12116
12117 * editfns.c (format2): New function, replaces format1
12118 but takes exactly two Lisp Objects as format args.
12119
12120 * buffer.c (Fkill_buffer): Call format2 instead of format1.
12121
12122 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12123
12124 * xterm.h: Change to return value of x_dispatch_event to int.
12125
12126 * xterm.c (x_filter_event): New function.
12127 (event_handler_gdk, XTread_socket): Call x_filter_event.
12128 (x_dispatch_event): Change to return value of finish.
12129 (event_handler_gdk): Use return value from x_dispatch_event.
12130
12131 * xfns.c (x_window): Call create_frame_xic for GTK version to
12132 initialize input methods.
12133
12134 * gtkutil.h: Add (void) prototypes.
12135
12136 * gtkutil.c (create_menus): Remove code that puts the help menu to
12137 the right.
12138
12139 2003-01-25 Jason Rumney <jasonr@gnu.org>
12140
12141 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
12142 [HAVE_PNG]: Sync with xfns.c version.
12143 (png_load): Adjust colors for Windows. Use Windows
12144 bitmaps. Disable color table lookups.
12145 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
12146 (init_png_functions): New function.
12147 (png_read_from_memory, png_load): Call png library functions
12148 through pointers determined at runtime.
12149 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
12150 (init_external_image_libraries): New function.
12151 (init_xfns): Call it.
12152
12153 2003-01-24 Andreas Schwab <schwab@suse.de>
12154
12155 * minibuf.c (Fminibuffer_message): Verify type of parameter.
12156
12157 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12158
12159 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
12160 of static initializer.
12161
12162 2003-01-24 Dave Love <fx@gnu.org>
12163
12164 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
12165 architectures.
12166
12167 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
12168 Use __alignof__.
12169
12170 2003-01-24 Kenichi Handa <handa@m17n.org>
12171
12172 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
12173 It it is nonzero, don't pretend that an invisible area doesn't exist.
12174 (command_loop_1): Call adjust_point_for_property with proper
12175 second arg.
12176
12177 2003-01-22 Jason Rumney <jasonr@gnu.org>
12178
12179 Sync changes with xterm.c and xfns.c.
12180
12181 * w32term.c (x_draw_glyph_string_foreground)
12182 (x_draw_composite_glyph_string_foreground): Implement overstriking.
12183
12184 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
12185 phys_cursor's hpos is overwritten. This is still not completely
12186 correct, as it doesn't really make sense to use hpos at all to
12187 get the cursor glyph (as that is relative to the width of the
12188 characters on the line, which may have changed during the update).
12189
12190 * w32term.c (notice_overwritten_cursor): Handle the special case
12191 of the cursor being in the first blank non-text line at the
12192 end of a window.
12193
12194 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
12195 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
12196 Compute from the x position returned by x_draw_glyphs.
12197
12198 (x_display_and_set_cursor): Don't set phys_cursor_width here,
12199 except for NO_CURSOR and system caret, to make phys_cursor_width
12200 contain what its name suggests.
12201 (notice_overwritten_cursor): Consider the cursor image erased if
12202 the output area intersects the cursor image in y-direction.
12203
12204 * w32term.c (note_mode_line_or_margin_highlight): Rename from
12205 note_mode_line_highlight and extend.
12206
12207 * w32term.c (last_window): New variable.
12208 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
12209 (note_mouse_movement): Remove reimplemented code in #if 0.
12210
12211 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
12212 not update_mode_lines, and always set it to 1.
12213
12214 2003-01-21 Jason Rumney <jasonr@gnu.org>
12215
12216 * w32fns.c (IDC_HAND): Define it if system headers don't.
12217
12218 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12219
12220 * w32term.h (struct w32_output): New member hand_cursor.
12221 (WM_EMACS_SETCURSOR): New message definition.
12222
12223 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
12224 function w32_define_cursor.
12225 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
12226 position, change member name output_data.x to output_data.w32 and
12227 add function w32_define_cursor.
12228 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
12229 and change member name output_data.x to output_data.w32.
12230 (w32_initialize_display_info):
12231 Setup dpyinfo->vertical_scroll_bar_cursor.
12232
12233 * w32fns.c (Vx_hand_shape): New variable.
12234 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
12235 WM_EMACS_SETCURSOR.
12236 (x-create-frame): Setup Cursor types.
12237
12238 2003-01-21 David Ponce <david@dponce.com>
12239
12240 * w32term.c (w32_encode_char): For DIM=1 charset, set
12241 ccl->reg[2] to -1 before calling ccl_driver.
12242 (Sync. with xterm.c x_encode_char change by Kenichi Handa
12243 <handa@m17n.org> on 2002-09-30.)
12244 (w32_draw_relief_rect): Declare all args.
12245 (w32_define_cursor): New.
12246
12247 * w32fns.c (w32_load_cursor): New function.
12248 (w32_init_class): Use it.
12249 (x_put_x_image): Declare all args.
12250
12251 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
12252
12253 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
12254
12255 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12256
12257 * gtkutil.c: Must include stdio.h before termhooks.h
12258
12259 2003-01-21 Dave Love <fx@gnu.org>
12260
12261 * alloc.c (Fgc_status): Print zombie list.
12262 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
12263 Fix assignment of zombies.
12264 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
12265 Don't take car of non-cons.
12266
12267 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12268
12269 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12270
12271 2003-01-20 David Ponce <david@dponce.com>
12272
12273 * w32menu.c (digest_single_submenu): Declare all args.
12274
12275 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
12276 changes in xmenu.c:
12277
12278 (parse_single_submenu): Use individual keymap's prompt
12279 string as pane name, if there is one.
12280 (set_frame_menubar): Save menu_items_n_panes from each call to
12281 parse_single_submenu and use it when calling digest_single_submenu.
12282
12283 2003-01-20 Steven Tamm <steventamm@mac.com>
12284
12285 * macterm.c (XTread_socket): Check for valid, visible window
12286 before sending a scroll-wheel event.
12287
12288 2003-01-20 Richard M. Stallman <rms@gnu.org>
12289
12290 * xdisp.c (redisplay_window): If mini window's buffer is not
12291 a minibuffer, then redisplay it like other windows.
12292
12293 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12294
12295 * gtkutil.c (xg_create_frame_widgets): Check if there is an
12296 external tool bar before setting tool bar height.
12297
12298 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12299
12300 * xterm.c (handle_one_xevent): Surround popup_activated
12301 with #ifdef:s for non-toolkit version.
12302
12303 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
12304 (gtkutil.o): New file.
12305 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
12306 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
12307
12308 * gtkutil.c: New file for GTK version.
12309
12310 * gtkutil.h: New file for GTK version.
12311
12312 * xterm.h: Add xt_or_gtk_widget.
12313 Include gtk files for USE_GTK.
12314 (struct x_output): Add toolbar_height.
12315 (struct x_output): Add GTK widgets and Gdk size_hints.
12316 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
12317 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
12318 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
12319
12320 * xterm.c: Include gtkutil.h for USE_GTK.
12321 (free_frame_menubar): Declare extern void for USE_GTK.
12322 (note_mouse_highlight): Check popup_activated for USE_GTK.
12323 (xt_action_hook): Don't compile if USE_GTK.
12324 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
12325 (xg_scroll_callback): New function.
12326 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
12327 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
12328 for USE_GTK.
12329 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
12330 xg_show_scroll_bar for USE_GTK.
12331 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
12332 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
12333 (event_handler_gdk): New function for USE_GTK.
12334 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
12335 (handle_one_xevent): Make sure widget is mapped before
12336 calling x_real_positions for USE_GTK.
12337 (XTread_socket): Add GTK event loop for USE_GTK.
12338 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
12339 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
12340 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
12341 (x_iconify_frame): Add code for USE_GTK.
12342 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
12343 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
12344 is in gtkutil.c.
12345 (x_term_init): Add initialization for GTK.
12346 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
12347
12348 * xmenu.c: Include gtkutil.h for USE_GTK.
12349 (Fx_popup_menu): Use current position if x and y is NIL.
12350 (single_menu_item, single_menu_item, Fx_popup_dialog):
12351 Check for USE_GTK.
12352 (popup_widget_loop): New function for USE_GTK.
12353 (x_activate_menubar): Add code for USE_GTK.
12354 (popup_activate_callback, popup_deactivate_callback)
12355 (menu_highlight_callback, menubar_selection_callback):
12356 Add USE_GTK versions.
12357 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
12358 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
12359 (free_frame_menubar): Only compile if not USE_GTK. GTK version
12360 is in gtkutil.c.
12361 (popup_selection_callback): New version for USE_GTK.
12362 (create_and_show_popup_menu): New fuction, one USE_GTK version and
12363 one USE_X_TOOLKIT version.
12364 (xmenu_show): Call create_and_show_popup_menu.
12365 (dialog_selection_callback): New version for USE_GTK.
12366 (create_and_show_dialog): New fuction, one USE_GTK version and
12367 one USE_X_TOOLKIT version.
12368 (xdialog_show): Call create_and_show_dialog.
12369
12370 * xfns.c: Include gtkutil for USE_GTK.
12371 (x_window_to_frame, x_any_window_to_frame)
12372 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12373 (x_top_window_to_frame): Add code for USE_GTK.
12374 (x_set_background_color): Call xg_set_background_color for GTK.
12375 (x_set_menu_bar_lines): Check for USE_GTK.
12376 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
12377 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
12378 (x_window): Call xg_create_frame_widgets for USE_GTK.
12379 (Fx_create_frame): Check for USE_GTK
12380 (Fx_file_dialog): New implementation for USE_GTK.
12381
12382 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
12383 (update_menu_bar): Add check for USE_GTK.
12384 (update_tool_bar): Add check for USE_GTK and external tool bar.
12385 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
12386 (redisplay_internal): Add check for USE_GTK and popup_activated.
12387 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
12388 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
12389 (display_menu_bar): Add check for USE_GTK
12390
12391 * lisp.h (Vx_resource_name): Declare extern.
12392
12393 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
12394 for USE_GTK.
12395 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
12396
12397 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
12398 (FRAME_EXTERNAL_TOOL_BAR): New macro.
12399 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
12400
12401 * fileio.c (Fread_file_name): Add check for USE_GTK.
12402
12403 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
12404 Add check for USE_GTK.
12405
12406 * config.in: Added HAVE_GTK
12407
12408 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
12409
12410 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
12411
12412 * charset.h (Funibyte_char_to_multibyte): Export.
12413
12414 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12415
12416 * xmenu.c (mouse_position_for_popup): New function.
12417 (Fx_popup_menu): Call mouse_position_for_popup for X and
12418 mouse_position_hook for others.
12419
12420 2003-01-17 Kim F. Storm <storm@cua.dk>
12421
12422 * editfns.c (Finsert): Mention `string-make-multibyte' and
12423 `string-as-multibyte' in doc string.
12424
12425 2003-01-17 Kenichi Handa <handa@m17n.org>
12426
12427 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
12428
12429 * editfns.c (Fformat): Convert an unibyte char argument that is
12430 formatted by "%c" to multibyte if the total result must be a
12431 multibyte string.
12432
12433 2003-01-16 Kim F. Storm <storm@cua.dk>
12434
12435 * process.c (set-process-filter): Document unibyte/multibyte-ness
12436 of string argument.
12437
12438 2003-01-16 Kenichi Handa <handa@m17n.org>
12439
12440 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
12441
12442 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
12443 (re_search_2): Likewise.
12444
12445 2003-01-15 Kenichi Handa <handa@m17n.org>
12446
12447 * xdisp.c (message_dolog): Fix bug of the case that *Message*
12448 buffer is unibyte.
12449
12450 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
12451
12452 * fns.c (Fsubstring): Clarify doc string.
12453
12454 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
12455 (Fprevious_char_property_change)
12456 (Fnext_single_char_property_change)
12457 (Fprevious_single_char_property_change, Fnext_property_change)
12458 (Fnext_single_property_change, Fprevious_property_change)
12459 (Fprevious_single_property_change, Fadd_text_properties)
12460 (Fput_text_property, Fset_text_properties)
12461 (Fremove_text_properties, Fremove_list_of_text_properties)
12462 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
12463
12464 2003-01-14 Kim F. Storm <storm@cua.dk>
12465
12466 * process.h (struct Lisp_Process): New member plist replaces old
12467 member private_vars. All uses changed.
12468
12469 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
12470 (QCplist): Rename from QCvars. Change all uses.
12471 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
12472 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
12473 (syms_of_process): Intern, staticpro, defsubr these.
12474 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
12475
12476 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
12477
12478 * m/delta.h: Remove (obsolete).
12479
12480 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
12481
12482 * fileio.c (Fdelete_directory, Fdelete_file): Document the
12483 behaviour in front of symlinks.
12484 (Fdelete_file): Raise an error on directories.
12485
12486 2003-01-13 Dave Love <fx@gnu.org>
12487
12488 * fns.c (Freverse): Use QUIT.
12489
12490 2003-01-13 Richard M. Stallman <rms@gnu.org>
12491
12492 * minibuf.c (minibuffer_completion_contents):
12493 Error if point is inside prompt.
12494
12495 * keyboard.c (command_loop_1): Don't redisplay directly
12496 if there's a post-command-hook.
12497
12498 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
12499 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
12500
12501 2003-01-12 Kim F. Storm <storm@cua.dk>
12502
12503 * process.h (struct Lisp_Process): New member private_vars.
12504
12505 * process.c (QCvars): New variable.
12506 (syms_of_process): Intern and staticpro it.
12507 (Fset_process_contact): Removed function.
12508 (Fprocess_variable, Fset_process_variable): New functions.
12509 (syms_of_process): Defsubr them.
12510 (Fstart_process): Initialize private_vars plist to nil.
12511 (Fmake_network_process): New arg :vars to setup the private
12512 variables for new network process.
12513 (server_accept_connection): Copy server's private variables to
12514 client process.
12515
12516 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
12517 crashes). Code rewritten and simplified. Now directly aligns the
12518 pointer and recalculates pure_bytes_used, rather than aligning the
12519 size and adjusting the pointer.
12520
12521 2003-01-11 Kim F. Storm <storm@cua.dk>
12522
12523 * process.c (Fset_process_contact): New function.
12524 (syms_of_process): defsubr it.
12525 (make-network-process): Update doc.
12526
12527 2003-01-10 Andreas Schwab <schwab@suse.de>
12528
12529 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
12530 Reported by Berthold Gunreben <b.gunreben@web.de>.
12531
12532 2003-01-10 Dave Love <fx@gnu.org>
12533
12534 * composite.c (syms_of_composite): Make composition_hash_table weak.
12535
12536 2003-01-09 Kim F. Storm <storm@cua.dk>
12537
12538 * process.c (Fmake_network_process): Convert new port number
12539 to host byte order for `:service t' case. From Mario Lang.
12540
12541 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12542
12543 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
12544 instead of XtAppProcessEvent.
12545
12546 * xterm.c (handle_one_xevent): New function.
12547 (x_dispatch_event): New function.
12548 (XTread_socket): Call handle_one_xevent.
12549
12550 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
12551
12552 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
12553 call XQueryPointer to get coordinates.
12554 (popup_get_selection): Do not set popup_activated_flag to zero,
12555 let popup_deactivate_callback do that. Needed for Motif.
12556 Call x_dispatch_event instead of XtDispatchEvent.
12557 (xmenu_show): Calculate root coordinate from frame top/left position.
12558
12559 2003-01-08 Kim F. Storm <storm@cua.dk>
12560
12561 * process.c (server_accept_connection): Fix recording of new
12562 connection's local address in :local property of contact info.
12563 (Fmake_network_process): Record local network address for new
12564 client processes in :local property of contact info.
12565 (format-network-address): Add arg OMIT-PORT. Change callers.
12566
12567 2003-01-07 Dave Love <fx@gnu.org>
12568
12569 * Makefile.in (fns.o): Depend on coding.h.
12570
12571 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
12572
12573 * minibuf.c (Fread_variable): Doc fix.
12574
12575 * eval.c (Fuser_variable_p): Doc change. For custom variables,
12576 use the same test as for custom-variable-p.
12577
12578 2003-01-05 Richard M. Stallman <rms@gnu.org>
12579
12580 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
12581 Count LAST_LINE_MISFIT in scroll margin for end of window.
12582 Move label too_near_end before setting SCROLL_MARGIN_POS.
12583 Set LAST_LINE_MISFIT before jumping there.
12584
12585 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
12586 scroll_conservatively case. If scrolling that much doesn't change
12587 STARTP, move it down one line.
12588
12589 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
12590 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
12591
12592 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
12593 selected frame.
12594
12595 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
12596 (syms_of_keymap): Staticpro them.
12597 (Fapropos_internal): Initialize them and clear them out.
12598 Don't GCPRO them.
12599
12600 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
12601 Doc fixes.
12602
12603 * lisp.h: New misc type Lisp_Save_Value.
12604 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
12605 (XSAVE_VALUE): New macro.
12606 (struct Lisp_Save_Value): New data type.
12607 (union Lisp_Misc): Add u_save_value alternative.
12608 (make_save_value): Declare.
12609
12610 * alloc.c (make_save_value): New function.
12611
12612 * xterm.c (x_catch_errors): Save dpy using make_save_value.
12613 (x_catch_errors_unwind): Call XSync.
12614
12615 2003-01-01 Richard M. Stallman <rms@gnu.org>
12616
12617 * window.c (window_scroll_pixel_based): Partially undo last change.
12618
12619 * keyboard.c (command_loop_1): Call adjust_point_for_property
12620 in direct action cases for Qforward_char and Qbackward_char.
12621 Set already_adjusted so it won't be done twice.
12622
12623 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
12624
12625 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
12626 type definition of size_t.
12627
12628 2003-01-02 Steven Tamm <steventamm@mac.com>
12629
12630 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
12631 distinguish Carbon GUI builds from X11 builds on darwin.
12632
12633 2002-12-30 Steven Tamm <steventamm@mac.com>
12634
12635 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
12636 to default to t.
12637
12638 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
12639
12640 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
12641
12642 2002-12-28 Steven Tamm <steventamm@mac.com>
12643
12644 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
12645 allow building in a different directory than source. Uses some
12646 GNU Make extensions, but there is no other make on Mac OS X.
12647
12648 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
12649
12650 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
12651 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
12652 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
12653 (Fstring_to_number): Mention the returned value in the doc strings.
12654
12655 2002-12-23 Richard M. Stallman <rms@gnu.org>
12656
12657 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
12658 <scroll-down-aggressively>: Doc fix.
12659
12660 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
12661 string as pane name, if there is one.
12662 (set_frame_menubar): Save menu_items_n_panes from each call to
12663 parse_single_submenu and use it when calling digest_single_submenu.
12664
12665 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
12666 Don't try to make last line fully visible if it is past end of window.
12667
12668 2002-12-22 Steven Tamm <steventamm@mac.com>
12669
12670 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
12671 (mac_menu_show): Add support for hierarchical popup menus.
12672 (add_menu_item): Remove indentation support.
12673 (fill_submenu, fill_menu): Create hierarchical menus
12674 instead of using indentation.
12675
12676 2002-12-22 Richard M. Stallman <rms@gnu.org>
12677
12678 * xdisp.c (try_cursor_movement): Don't call try_window here.
12679 (redisplay_window): Never redisplay minibuffer when inactive.
12680
12681 * window.c (select_window_1): Undo 9/21 change.
12682
12683 2002-12-22 Steven Tamm <steventamm@mac.com>
12684
12685 * macterm.c (XTread_socket): Call KeyTranslate for control and
12686 meta to deal correctly shifted non-alpha characters, like C-S-5
12687 being treated like C-%. Do not look for shift key to deal
12688 with masking off control-key with mac-reverse-ctrl-meta.
12689
12690 2002-12-21 Richard M. Stallman <rms@gnu.org>
12691
12692 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
12693 If it is non-nil, run timers. Use an unwind-protect to requeue
12694 the events that were read ahead.
12695 (popup_get_selection_unwind): New subroutine.
12696 (popup_get_selection_queue): File-scope variable now holds that queue.
12697 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
12698 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
12699 Use an unwind-protect to pop down the dialog box.
12700 (xdialog_show_unwind): New subroutine implements that.
12701
12702 * xdisp.c (row_containing_pos): Change exit test using last_y.
12703 (try_window_id): Abort if row_containing_pos returns null.
12704
12705 * lread.c (load_error_handler): New function.
12706 (Fload): Handle errors in Fsubstitute_in_file_name.
12707 Don't expect Fsignal to return.
12708
12709 * eval.c: Errors and throws work right with interrupt blocking.
12710 (struct catchtag): New elt interrupt_input_blocked.
12711 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
12712 (internal_catch, Fcondition_case, internal_condition_case)
12713 (internal_condition_case_1, internal_condition_case_2): Save it.
12714 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
12715
12716 * editfns.c (Fformat): Add parens.
12717
12718 * dired.c (file_name_completion): Fix that change.
12719 Delete special quit-handling code; just use QUIT.
12720
12721 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
12722
12723 * dired.c (file_name_completion): Close directory on error
12724 just as in directory_files_internal.
12725
12726 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
12727
12728 * window.c (Fset_window_configuration): Set old_point to correct
12729 value when new_current_buffer == current_buffer.
12730
12731 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
12732
12733 Revisited my earlier fix for the following entry in etc/PROBLEMS:
12734 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
12735 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
12736
12737 These changes were in part based upon suggestions made by Peter
12738 'Luna' Runestig [peter@runestig.com].
12739
12740 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
12741 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
12742 (g_b_init_get_sid_identifier_authority ): Add several static
12743 global variables.
12744
12745 * w32.c (globals_of_w32): New function. Used to initialize those
12746 global variables that must always be initialized on startup even
12747 when the global variable initialized is non zero. Its primary
12748 purpose at this time is to set the global variables
12749 g_b_init_is_windows_9x, g_b_init_open_process_token,
12750 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
12751 g_b_init_get_sid_identifier_authority to 0 on startup.
12752 Called from main.
12753
12754 * w32.c (is_windows_9x): Perform initialization only if
12755 g_b_init_is_windows_9x is equal to 0. On initialization set
12756 g_b_init_is_windows_9x equal to 1.
12757
12758 * w32.c (open_process_token): Perform initialization only if
12759 g_b_init_open_process_token is equal to 0. On initialization set
12760 g_b_init_open_process_token equal to 1.
12761
12762 * w32.c (get_token_information): Perform initialization only if
12763 g_b_init_get_token_information is equal to 0. On initialization
12764 set g_b_init_get_token_information equal to 1.
12765
12766 * w32.c (lookup_account_sid): Perform initialization only if
12767 g_b_init_lookup_account_sid is equal to 0. On initialization
12768 set g_b_init_lookup_account_sid equal to 1.
12769
12770 * w32.c (get_sid_identifier_authority): Perform initialization
12771 only if g_b_init_get_sid_identifier_authority is equal to 0.
12772 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
12773
12774 * w32fns.c (globals_of_w32fns): New function. Used to initialize
12775 those global variables that must always be initialized on startup
12776 even when the global variable initialized is non zero.
12777 Its primary purpose at this time is to initialize the global variable
12778 track_mouse_event_fn.
12779
12780 * w32fns.c (w32_wnd_proc): Remove initialization of
12781 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
12782
12783 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
12784
12785 * w32menu.c (globals_of_w32menu): New function. Used to
12786 initialize those global variables that must always be initialized
12787 on startup even when the global variable initialized is non zero.
12788 Its primary purpose at this time is to initialize the global
12789 variables get_menu_item_info and set_menu_item_info.
12790
12791 * w32menu.c (initialize_frame_menubar): Remove initialization of
12792 get_menu_item_info and set_menu_item_info.
12793
12794 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
12795
12796 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
12797 Declare them.
12798
12799 * emacs.c (main): Call globals_of_w32 prior to calling
12800 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
12801 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
12802 is defined.
12803
12804 * w32term.c (x_update_window_begin): Fix Windows API error
12805 detected by BoundsChecker. Test to determine if
12806 w32_system_caret_hwnd is NULL prior to attempting to use
12807 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
12808
12809 * w32term.c (x_update_window_end): 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_SHOW_CARET message to it.
12813
12814 2002-12-17 Kenichi Handa <handa@m17n.org>
12815
12816 * coding.c (coding_system_require_warning): New variable.
12817 (syms_of_coding): DEFVAR it.
12818
12819 * coding.h (coding_system_require_warning): Extern it.
12820
12821 * fileio.c (choose_write_coding_system): Even if
12822 Vcoding_system_for_write is non-nil, if
12823 coding_system_require_warning is nonzero, call
12824 Vselect_safe_coding_system_function.
12825
12826 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
12827
12828 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
12829 (lisp): Add font-core.
12830
12831 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
12832
12833 * textprop.c (text_read_only): New arg `propval'.
12834 (get_char_property_and_overlay): Remove unused var `next_overlay'.
12835 (verify_interval_modification): Use text_read_only's new arg.
12836
12837 2002-12-13 Kenichi Handa <handa@m17n.org>
12838
12839 * coding.c (Funencodable_char_position): Set pend correctly.
12840
12841 2002-12-12 Jason Rumney <jasonr@gnu.org>
12842
12843 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
12844 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
12845 Be more careful about when help_events are generated.
12846
12847 2002-12-12 Steven Tamm <steventamm@mac.com>
12848
12849 * macterm.c (mac_check_for_quit_char): Correctly set the
12850 modifiers of the event to 0.
12851 * mac.c (sys_select): Duplicate rfds before calling select to
12852 ensure that rfds survive the while loop.
12853
12854 2002-12-11 Kim F. Storm <storm@cua.dk>
12855
12856 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
12857 row_containing_pos returned NULL.
12858
12859 2002-12-10 Steven Tamm <steventamm@mac.com>
12860
12861 * mac.c (sys_read): Fix sys_read to not call select if IO is
12862 non-blocking.
12863 (sys_select): Fix sys_select to not use a timeout larger than
12864 the one given.
12865
12866 2002-12-10 Juanma Barranquero <lektu@terra.es>
12867
12868 * editfns.c (Fformat): Use alloca, not _alloca.
12869
12870 2002-12-09 Richard M. Stallman <rms@gnu.org>
12871
12872 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
12873 as the last thing.
12874
12875 2002-12-09 Dave Love <fx@gnu.org>
12876
12877 * s/sol2-8.h: Removed. (Not necessary.)
12878
12879 2002-12-09 Matthew Swift <swift@alum.mit.edu>
12880
12881 * editfns.c (Fformat): Handle precision in string conversion
12882 specifiers like libc functions do (ie, print at most that many
12883 characters).
12884
12885 2002-12-08 Richard M. Stallman <rms@gnu.org>
12886
12887 * xdisp.c (row_containing_pos): Check more carefully
12888 whether charpos is really in the row before returning it.
12889
12890 2002-12-07 Steven Tamm <steventamm@mac.com>
12891
12892 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
12893
12894 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
12895 each stack frame. This may change as it could be time consuming.
12896
12897 * macterm.c (mac_check_for_quit_char, quit_char_comp)
12898 (init_quit_char_handler, mac_determine_quit_char_modifiers)
12899 (mac_initialize): Add code to check for pressing of quit_char
12900 in the OS event queue.
12901
12902 * mac.c (sys_select): Call mac_check_for_quit_char every second
12903 while blocking on select.
12904
12905 * mac.c (sys_read): Use sys_select to test for input first
12906 before calling read, to allow C-g to break.
12907
12908 2002-12-07 Richard M. Stallman <rms@gnu.org>
12909
12910 * minibuf.c (Fcompleting_read): Doc fix.
12911
12912 * lread.c (syms_of_lread) <load-history>: Doc fix.
12913
12914 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
12915
12916 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
12917 autoload.
12918
12919 * data.c (Fdefalias): Record in load-history redefining an autoload.
12920
12921 * alloca.c: Undo ifdef change accidentally made on 12-04.
12922
12923 2002-12-06 Francesco Potorti` <pot@gnu.org>
12924
12925 * xfns.c (png_load): Avoid double gamma correction for PNG images.
12926
12927 2002-12-04 Richard M. Stallman <rms@gnu.org>
12928
12929 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
12930
12931 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
12932
12933 * alloca.c: Don't use #error.
12934
12935 2002-12-03 Dave Love <fx@gnu.org>
12936
12937 * buffer.c (Qucs_set_table_for_input): New.
12938 (Fget_buffer_create): Use it.
12939 (Qset_buffer_major_mode_hook): Deleted.
12940 (Fset_buffer_major_mode): Revert previous change.
12941 (init_buffer_once): Intern ucs-set-table-for-input.
12942 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
12943 Add &Qucs_set_table_for_input.
12944
12945 2002-12-03 Andreas Schwab <schwab@suse.de>
12946
12947 * callint.c (Fcall_interactively): Use next_event only if less
12948 than key_count.
12949
12950 2002-12-02 Andrew Choi <akochoi@shaw.ca>
12951
12952 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
12953 names to 255 characters.
12954
12955 * macterm.c (XTread_socket): If all frames have been collapsed,
12956 expand the first one before handling drag-and-drop events.
12957
12958 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
12959 which is detected by autoconf.
12960
12961 2002-12-01 Steven Tamm <steventamm@mac.com>
12962
12963 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
12964 offset in two hints table to allow prebinding to be redone and
12965 allow the executable to be stripped.
12966
12967 2002-11-29 Dave Love <fx@gnu.org>
12968
12969 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
12970 already provided.
12971
12972 2002-11-29 Richard M. Stallman <rms@gnu.org>
12973
12974 * xdisp.c (start_display): Check more intelligently for
12975 whether the line is continued.
12976 (move_it_vertically_backward): Clear it->continuation_lines_width.
12977
12978 2002-11-28 Dave Love <fx@gnu.org>
12979
12980 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
12981 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
12982
12983 2002-11-27 Steven Tamm <steventamm@mac.com>
12984
12985 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
12986 more descriptive error output from lread.c:Fload upon most require
12987 cycles during boostrapping.
12988
12989 2002-11-27 Jason Rumney <jasonr@gnu.org>
12990
12991 * fileio.c (Finsert_file_contents): Give a more appropriate error
12992 for files bigger than 2Gb when off_t is 32 bit.
12993
12994 * dired.c (Ffile_attributes): Don't return negative file sizes for
12995 files bigger than 2Gb when off_t is 32 bit.
12996
12997 2002-11-27 Dave Love <fx@gnu.org>
12998
12999 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13000
13001 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
13002 Test GETPGRP_VOID instead.
13003 [BSD_TERMIOS]: Remove definitions (never used).
13004
13005 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
13006 Don't define.
13007 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13008
13009 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
13010
13011 2002-11-25 Jason Rumney <jasonr@gnu.org>
13012
13013 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
13014 supported.
13015
13016 2002-11-25 Dave Love <fx@gnu.org>
13017
13018 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
13019
13020 * Makefile.in (TEMACS_LDFLAGS): Update last change.
13021
13022 2002-11-25 Andreas Schwab <schwab@suse.de>
13023
13024 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
13025
13026 2002-11-24 Steven Tamm <steventamm@mac.com>
13027
13028 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
13029 determine the size of pointers alloced in unexed space instead
13030 of using possibly invalid emacs_zone pointers. This fixes the
13031 binary incompatibility problems caused by updates to libSystem.B.
13032
13033 2002-11-24 Richard M. Stallman <rms@gnu.org>
13034
13035 * search.c (Fstring_match): Doc fix.
13036
13037 * callint.c (Fcall_interactively): If a command fails because
13038 `*' detects a read-only buffer, but RECORD_FLAG is set,
13039 record it anyway if the args don't actually do tty input.
13040
13041 2002-11-22 Dave Love <fx@gnu.org>
13042
13043 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
13044
13045 * keyboard.c (interrupt_signal): Provide forward declaration.
13046 (kbd_buffer_store_event): Don't declare interrupt_signal.
13047
13048 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
13049
13050 2002-11-21 Richard M. Stallman <rms@gnu.org>
13051
13052 * eval.c (interactive_p): Skip any number of bytecode
13053 and special form frames, in any order.
13054
13055 2002-11-20 Jason Rumney <jasonr@gnu.org>
13056
13057 * w32fns.c (convert_mono_to_color_image): New function.
13058 (xbm_load, xbm_load_image): Use it when foreground or background
13059 is explicitly set.
13060
13061 2002-11-19 Dave Love <fx@gnu.org>
13062
13063 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
13064
13065 2002-11-18 Jason Rumney <jasonr@gnu.org>
13066
13067 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
13068 (XPutPixel): Swap blue and red.
13069 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
13070 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13071 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
13072 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
13073
13074 2002-11-18 Dave Love <fx@gnu.org>
13075
13076 * m/orion105.h (HAVE_ALLOCA): Don't define.
13077
13078 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
13079
13080 * m/intel386.h: Don't include alloca.h or define alloca.
13081
13082 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
13083 malloc, realloc, calloc.
13084
13085 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
13086 (bcmp): Don't define.
13087
13088 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
13089
13090 * m/amdahl.h: Don't define LIB_STANDARD.
13091
13092 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
13093
13094 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
13095
13096 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
13097 Don't include alloca.h.
13098
13099 * s/aix3-2.h (HAVE_FSYNC): Don't define.
13100
13101 * regex.c (_GNU_SOURCE): Don't define.
13102
13103 * process.c (_GNU_SOURCE): Don't define.
13104
13105 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
13106
13107 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
13108
13109 * s/sol2-8.h: Include sol2-6.h.
13110
13111 2002-11-18 Miles Bader <miles@gnu.org>
13112
13113 * dispextern.h (struct face): Add `overstrike' field.
13114 * xterm.c (x_draw_glyph_string_foreground)
13115 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13116 * xfaces.c (load_face_font): Set `face->overstrike' based on
13117 result from choose_face_font.
13118 (best_matching_font, choose_face_font): Add `needs_overstrike'
13119 argument, and use it to return whether overstriking is desirable
13120 for this face/font combo.
13121 (set_font_frame_param: Pass new argument to choose_face_font.
13122
13123 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
13124
13125 This change is my fix for the following entry in etc/PROBLEMS:
13126 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
13127 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
13128
13129 * w32.c: Added wrapper functions around the win32 API functions
13130 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
13131 GetSidIdentifierAuthority. These wrapper functions serve two
13132 purposes:
13133 1. They ensure that the wrapped function can never be called
13134 when Emacs is running on an operating system on which they are
13135 not supported (Microsoft Windows 95 / 98 / ME).
13136 2. They call the wrapped functions via function pointers rather
13137 than calling them directly. This avoids taking advantage of the
13138 undocumented fact that although these functions are not supported
13139 in the 9x branch of Microsoft Windows, the functions do exist in
13140 the version of advapi32.dll that is found in the 9x branch of
13141 Microsoft Windows.
13142
13143 * w32.c (init_user_info): Replace the calls to the win32 API
13144 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
13145 and GetSidIdentifierAuthority with calls to the newly added
13146 wrapper functions.
13147
13148 * w32.h: Added extern declarations for the following functions:
13149 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
13150 syms_of_w32menu, and void syms_of_fontset.
13151
13152 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
13153 function pointer track_mouse_event_fn in the handler for the
13154 WM_SETFOCUS message.
13155
13156 * w32menu.c (initialize_frame_menubar): Add code to
13157 reinitialize the function pointers set_menu_item_info and
13158 get_menu_item_info.
13159
13160 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
13161
13162 * sound.c: Added a partial implementation of play-sound-internal
13163 for Microsoft Windows. Added various #ifdef / #else / #endif
13164 code blocks to separate the code that will compile under
13165 Microsoft Windows from the code that is specific to GNU/Linux.
13166 Moved several blocks of code around to make this separation of code
13167 into Windows compatible and GNU/Linux compatible code blocks easier.
13168
13169 * makefile.w32-in: Include sound.c and link with WinMM.lib.
13170
13171 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
13172 added support for play-sound-internal under Windows would be
13173 included in the build of Emacs.
13174
13175 2002-11-16 Jason Rumney <jasonr@gnu.org>
13176
13177 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
13178
13179 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
13180
13181 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
13182
13183 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
13184 (adjust_point_for_property): Move out of display and invisible even if
13185 we were already inside before (in case a property was added while
13186 we weren't looking). Be more careful when handling invisible props.
13187 Skip invisible text as if it really wasn't there at all.
13188
13189 2002-11-15 Jason Rumney <jasonr@gnu.org>
13190
13191 * w32term.c (x_draw_image_foreground)
13192 (w32_draw_image_foreground_1): Use standard copy and invert
13193 operations to draw images.
13194
13195 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
13196 depth of 1.
13197 (xbm_read_bitmap_data): Invert bits as xbm is read in.
13198 (XPutPixel): Don't invert bits here.
13199
13200 2002-11-15 Jason Rumney <jasonr@gnu.org>
13201
13202 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
13203 (w32_draw_image_foreground_1): Handle image masks.
13204 (x_draw_image_glyph_string): Don't BitBlt transparently.
13205
13206 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
13207 (x_from_xcolors): Adjust RGB values for W32.
13208 (image_background, image_background_transparent)
13209 (postprocess_image, x_to_xcolors, x_disable_image)
13210 (x_build_heuristic_mask): Adapt for W32 and enable.
13211 (x_create_x_image_and_pixmap): Mark images with palettes as such.
13212 (xbm_load): Remove unused variable.
13213
13214 2002-11-14 Richard M. Stallman <rms@gnu.org>
13215
13216 * buffer.c (syms_of_buffer): Doc fix.
13217
13218 2002-11-14 Dave Love <fx@gnu.org>
13219
13220 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
13221
13222 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
13223 * xmenu.c (unuse_menu_items, digest_single_submenu):
13224 * xfns.c (x_put_x_image):
13225 * xdisp.c (message2_nolog, set_message):
13226 * undo.c (record_point):
13227 * terminfo.c (tparam):
13228 * syntax.c (scan_sexps_forward):
13229 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13230 * composite.c (update_compositions):
13231 * cm.c (calccost, cmgoto):
13232 * charset.c (c_string_width): Declare all args (per C99).
13233
13234 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
13235
13236 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
13237 Don't declare.
13238
13239 * emacs.c (main) [!VMS]: Avoid third arg.
13240
13241 * fns.c (Fcopy_sequence): Doc fix.
13242 (Fmap_char_table): Cast `call2'.
13243
13244 2002-11-14 Francesco Potorti` <pot@gnu.org>
13245
13246 * s/sol2-8.h: New file.
13247
13248 2002-11-14 Kim F. Storm <storm@cua.dk>
13249
13250 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
13251 dependency on `risky-local-variable' and the :propertize form.
13252
13253 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
13254
13255 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
13256
13257 * syntax.c (scan_sexps_forward): Undo last patch.
13258 Use a more obvious fix: check eob before updating the syntax table.
13259
13260 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
13261
13262 * syntax.c (scan_sexps_forward): Update syntax table before reading
13263 a char rather than after so we don't update the table past eob.
13264
13265 2002-11-09 Dave Love <fx@gnu.org>
13266
13267 * buffer.c (Fset_buffer_major_mode): Fix last change.
13268
13269 * regex.c (regexec): Fix pmatch declaration.
13270
13271 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
13272
13273 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
13274 to self-inserting characters.
13275 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
13276
13277 * coding.c (Vtranslation_table_for_input): New.
13278 (syms_of_coding): DEFVAR it.
13279
13280 2002-11-08 Juanma Barranquero <lektu@terra.es>
13281
13282 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
13283 window.
13284
13285 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13286
13287 * process.c (Fformat_network_address): Remove unused locals p,
13288 cp, and i.
13289
13290 2002-11-06 Dave Love <fx@gnu.org>
13291
13292 * buffer.c (Qset_buffer_major_mode_hook): New.
13293 (Fset_buffer_major_mode): Use it.
13294
13295 2002-11-06 Richard M. Stallman <rms@gnu.org>
13296
13297 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
13298 and stop_polling.
13299
13300 * process.c (wait_reading_process_input):
13301 Test POLLING_PROBLEM_IN_SELECT, not hpux.
13302 Avoid initialization for auto Lisp_Object var.
13303
13304 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
13305
13306 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
13307
13308 2002-11-05 Richard M. Stallman <rms@gnu.org>
13309
13310 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
13311
13312 * callint.c (Fcall_interactively): New local filter_specs.
13313 (Fcall_interactively): Check for progn as well as let.
13314 Add a gcpro.
13315 (Qprogn): New variable.
13316 (syms_of_callint): Staticpro and init Qprogn.
13317
13318 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
13319
13320 * lread.c (Feval_buffer): Doc fix.
13321
13322 2002-11-04 Dave Love <fx@gnu.org>
13323
13324 * keyboard.c (read_char): Always translate iff
13325 Vkeyboard_translate_table is a char table and c is valid.
13326
13327 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13328 and fix C types.
13329
13330 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
13331
13332 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
13333
13334 * editfns.c (get_pos_property): Don't hardcode Qfield.
13335
13336 * keyboard.c (adjust_point_for_property): Handle `display' prop on
13337 overlays. Also handle `invisible' prop.
13338
13339 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
13340
13341 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
13342 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
13343
13344 2002-11-01 Andreas Schwab <schwab@suse.de>
13345
13346 * editfns.c (Fmessage): Revert last change to properly handle %%.
13347
13348 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
13349
13350 * xmenu.c (unuse_menu_items): New fun.
13351 (menu_items_inuse): New var.
13352 (syms_of_xmenu): Initialize it.
13353 (init_menu_items): Use it to detect re-entrance.
13354 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
13355 (Fx_popup_menu): Remove spurious XSETFRAME.
13356
13357 * editfns.c (find_field): Make an exception for nil fields.
13358
13359 2002-11-01 Dave Love <fx@gnu.org>
13360
13361 * m/gec63.h: Deleted.
13362
13363 2002-10-31 Dave Love <fx@gnu.org>
13364
13365 * xterm.c (XTread_socket): Fix last change.
13366 (xaw_scroll_callback): Cast call_data to long to avoid warning.
13367
13368 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
13369
13370 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
13371
13372 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
13373
13374 * editfns.c (overlays_around, get_pos_property): New funs.
13375 (find_field): Use them.
13376 Also be careful not to modify POS before its last use.
13377 (Fmessage): Don't Fformat if there's nothing to format.
13378
13379 2002-10-30 Dave Love <fx@gnu.org>
13380
13381 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
13382 [HAVE_PTY_H]; Include pty.h.
13383
13384 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
13385
13386 * xterm.c (Qeql): Declare.
13387 (Vx_keysym_table): New.
13388 (syms_of_xterm): Initialize it.
13389 (XTread_socket): Use it. Deal with ASCII keysyms.
13390 (XSetIMValues) [HAVE_X11R6]: Prototype.
13391
13392 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
13393 (lispy_kana_keys): Comment out.
13394 (make_lispy_event) [XK_kana_A]: Comment out.
13395 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
13396 Fix sprintf call.
13397
13398 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
13399 regexp.h change).
13400 (TERMINFO, LIBS_TERMCAP): Define.
13401
13402 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
13403 (bcmp): Define conditional on HAVE_BCMP.
13404 (NO_SIOCTL_H): Don't define.
13405 (TIOCSIGSEND): Don't make conditional on IRIX6.
13406
13407 * s/sol2-5.h: Don't include strings.h.
13408 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
13409
13410 * s/irix6-0.h (IRIX6): Don't define.
13411 (bcopy, bcmp, bzero): Don't undef.
13412
13413 * s/irix6-5.h: Don't include strings.h.
13414 (IRIX6): Don't define.
13415 (bcopy, bcmp, bzero): Don't undef.
13416
13417 * syntax.c (Fforward_comment): Doc fix.
13418
13419 2002-10-29 Kim F. Storm <storm@cua.dk>
13420
13421 * process.c (Fsignal_process): Allow PROCESS to be specified by
13422 name in addition to pid (as integer or string).
13423
13424 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
13425
13426 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
13427 environments.
13428
13429 2002-10-27 Kim F. Storm <storm@cua.dk>
13430
13431 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
13432
13433 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
13434
13435 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
13436
13437 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
13438
13439 2002-10-26 Richard M. Stallman <rms@gnu.org>
13440
13441 * editfns.c (Fformat): Detect invalid format letters for floats.
13442
13443 2002-10-25 Kenichi Handa <handa@m17n.org>
13444
13445 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
13446 (x_set_title): Likewise.
13447
13448 2002-10-25 Juanma Barranquero <lektu@terra.es>
13449
13450 * macgui.h:
13451 * w32gui.h: Remove definition of XColor.
13452
13453 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
13454
13455 2002-10-24 Kim F. Storm <storm@cua.dk>
13456
13457 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
13458 Callers changed (supply dummy arg).
13459
13460 * lisp.h (get_window_cursor_type): Update prototype.
13461
13462 * w32term.c (x_display_and_set_cursor): Get active_cursor from
13463 get_window_cursor_type to track system caret.
13464
13465 2002-10-24 Kim F. Storm <storm@cua.dk>
13466
13467 * process.c (Fformat_network_address): New function.
13468 (syms_of_process): Defsubr it.
13469 (list_processes_1): Use it to format :local/:remote address if
13470 service/host is not set; before Emacs would crash in that case.
13471 (Fmake_network_process): Don't use Ffind_operation_coding_system
13472 to setup coding system if host or service is not set.
13473
13474 2002-10-23 Juanma Barranquero <lektu@terra.es>
13475
13476 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
13477
13478 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
13479 COLORREF.
13480
13481 * macgui.h:
13482 * w32gui.h: Add definition of XColor.
13483
13484 * macfns.c:
13485 * w32fns.c:
13486 * xfaces.c: Remove definition of XColor.
13487
13488 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
13489
13490 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
13491
13492 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
13493 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
13494 window if it is dedicated.
13495 (Fshrink_window): Add preserve_before as was done for enlarge_window.
13496 (Vspecial_display_function): Update docstring.
13497
13498 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
13499 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
13500 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
13501
13502 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
13503
13504 * casefiddle.c (casify_region): Don't treat a prefix char as part
13505 of a word when at the beginning.
13506
13507 2002-10-17 Juanma Barranquero <lektu@terra.es>
13508
13509 * lread.c (syms_of_lread): Fix typos.
13510
13511 2002-10-17 Dave Love <fx@gnu.org>
13512
13513 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
13514
13515 2002-10-16 Richard M. Stallman <rms@gnu.org>
13516
13517 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
13518
13519 2002-10-14 Juanma Barranquero <lektu@terra.es>
13520
13521 * w16select.c (syms_of_win16select): Fix docstring for
13522 `selection-coding-system'.
13523
13524 * w32select.c (syms_of_w32select): Likewise.
13525
13526 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
13527
13528 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
13529 a backslash-quoted char.
13530 (scan_lists, scan_sexps_forward): Pacify the compiler.
13531
13532 2002-10-13 Richard M. Stallman <rms@gnu.org>
13533
13534 * window.c (window_scroll): Set immediate_quit.
13535
13536 * print.c (print): When backquote form is the car of a list,
13537 output in old style. Use old_backquote_output to output all
13538 comma forms inside it in old style too.
13539
13540 * buffer.h (struct buffer): Move `undo_list' down below `name'.
13541
13542 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
13543
13544 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
13545 batch mode).
13546
13547 * lread.c (Fload): Doc fix (load-suffixes).
13548
13549 2002-10-10 Steven Tamm <steventamm@mac.com>
13550
13551 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
13552 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
13553 Also switch the default to Qnil from Qt.
13554
13555 2002-10-08 Kenichi Handa <handa@m17n.org>
13556
13557 * coding.c (code_convert_region): When we need more GAP for
13558 conversion, pay attention to the case that coding->produced is not
13559 greater than coding->consumed.
13560
13561 2002-10-07 Richard M. Stallman <rms@gnu.org>
13562
13563 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
13564
13565 2002-10-06 Andrew Choi <akochoi@shaw.ca>
13566
13567 * macmenu.c (mac_menu_show): Add j to count menu items; match
13568 menu_item_selection to it to find selected item.
13569
13570 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13571
13572 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
13573 cases. The correct fix is to pass ReparentNotify to Xt.
13574 The shell widget interprets ConfigureNotify differently depending
13575 on if it has been reparented or not.
13576
13577 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
13578
13579 * editfns.c (Fformat_time_string): Doc fix.
13580
13581 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
13582
13583 * fns.c (Flength): Doc fix.
13584
13585 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
13586
13587 * keyboard.c (keyremap): New struct.
13588 (read_key_sequence): Use it: globally replace keytran_foo with
13589 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
13590 keytran_next and fkey_next to just `next'.
13591
13592 2002-10-04 Steven Tamm <steventamm@mac.com>
13593
13594 * macterm.c (keycode_to_xkeysym_table): Change return to be
13595 treated like an X keysym.
13596
13597 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13598
13599 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
13600 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
13601 This is to also handle x/y changes that occur because of a resize.
13602
13603 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
13604
13605 * frame.c (Vdelete_frame_functions): New variable.
13606 (syms_of_frame): Initialize and defvar it.
13607 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
13608 it when frame's `tooltip' parameter is non-nil.
13609
13610 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
13611
13612 * w32fns.c (x_create_tip_frame): Likewise.
13613
13614 * macfns.c (x_create_tip_frame): Likewise.
13615
13616 2002-09-30 Kenichi Handa <handa@m17n.org>
13617
13618 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
13619 -1 before calling ccl_driver.
13620
13621 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
13622 Only when it is non-nil, handle composition sequence.
13623 (setup_coding_system) <0>: Don't force composition handling.
13624
13625 * Makefile.in (lisp, shortlisp): Add utf-16.elc
13626
13627 2002-09-29 Richard M. Stallman <rms@gnu.org>
13628
13629 * search.c (Freplace_match): Adjust match data for the substitution
13630 just made in the buffer.
13631
13632 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
13633 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
13634
13635 2002-09-27 Richard M. Stallman <rms@gnu.org>
13636
13637 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
13638 (read_char): Use them. Do all exits thru the end of the function.
13639
13640 2002-09-27 Kenichi Handa <handa@etl.go.jp>
13641
13642 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
13643 is nil.
13644
13645 2002-09-26 Richard M. Stallman <rms@gnu.org>
13646
13647 * regex.h (__restrict_arr): Don't define if already defined.
13648
13649 * coding.c (run_pre_post_conversion_on_str):
13650 Save and restore Vdeactivate_mark.
13651
13652 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
13653
13654 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
13655
13656 2002-09-26 Kenichi Handa <handa@etl.go.jp>
13657
13658 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
13659 nonzero, try face's family at first. Otherwise try FAMILY at first.
13660 (choose_face_font): If C is a single byte char or latin-1, call
13661 try_font_list with PREFER_FACE_FAMILY 1.
13662
13663 2002-09-21 Richard M. Stallman <rms@gnu.org>
13664
13665 * window.c (select_window_1): Don't select frame.
13666 Set frame's selected window only when frame itself is selected.
13667 (Fselect_window): Doc fix.
13668
13669 2002-09-18 Kim F. Storm <storm@cua.dk>
13670
13671 * process.c (make-network-process): Doc fix (there is no
13672 network-server-log-function hook).
13673
13674 2002-09-18 Richard M. Stallman <rms@gnu.org>
13675
13676 * print.c (print): Clear out the unused parts of Vprint_number_table.
13677 (syms_of_print): Doc fix for `print-number-table'.
13678
13679 * unexelf.c (unexec): Undo previous change.
13680
13681 2002-09-17 Andreas Schwab <schwab@suse.de>
13682
13683 * m/alpha.h [LINUX]: Don't define DATA_START.
13684
13685 2002-09-16 Dave Love <fx@gnu.org>
13686
13687 * unexelf.c (unexec): Deal with .got, reinstating change from
13688 25-08-1999.
13689
13690 2002-09-13 Richard M. Stallman <rms@gnu.org>
13691
13692 * s/sol2-6.h (UNEXEC): Comment out definition.
13693
13694 * unexsol.c (unexec): Don't downcase first letter of error msg.
13695
13696 * xfaces.c (Fcolor_supported_p): Just one arg is required.
13697
13698 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
13699
13700 * unexsol.c: Include buffer.h, charset.h, coding.h.
13701
13702 2002-09-11 Richard M. Stallman <rms@gnu.org>
13703
13704 * unexsol.c: Don't use report_file_error; do it by hand
13705 using dlerror.
13706
13707 * process.c (wait_reading_process_input, both versions):
13708 Before calling turn_on_atimers, call stop_polling.
13709
13710 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
13711
13712 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
13713 we go to too_near_end, call clear_glyph_matrix.
13714 (redisplay_window): After make_cursor_line_fully_visible,
13715 call clear_glyph_matrix and bypass `goto done'.
13716
13717 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
13718 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
13719
13720 2002-09-10 Richard M. Stallman <rms@gnu.org>
13721
13722 * fileio.c (Fdo_auto_save): Catch error making directory.
13723 Only call push_message if we need to.
13724 At the same time, make an unwind-protect to pop it.
13725 Rename local message_p to old_message_p.
13726 (do_auto_save_make_dir, do_auto_save_eh): New functions.
13727 (do_auto_save_unwind): Don't call pop_message.
13728
13729 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
13730
13731 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
13732
13733 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
13734
13735 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
13736
13737 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
13738
13739 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
13740 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
13741 (re_match_2_internal): Be more careful with infinite loops.
13742
13743 2002-09-10 Kim F. Storm <storm@cua.dk>
13744
13745 * macros.c (end_kbd_macro): New function.
13746 (Fend_kbd_macro): Use it.
13747
13748 * macros.h (end_kbd_macro): Declare extern.
13749
13750 * keyboard.c (Fdiscard_input): If defining keyboard macro,
13751 end and save it instead of discarding it.
13752
13753 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
13754
13755 * s/sol2-6.h: Fix typo. Add comment.
13756
13757 2002-09-09 Richard M. Stallman <rms@gnu.org>
13758
13759 * regex.c (regnum_t): Use signed int, not unsigned int.
13760
13761 * s/sol2-6.h: New file.
13762
13763 * s/sol2-5.h (UNEXEC): Definition deleted.
13764
13765 2002-09-08 Kim F. Storm <storm@cua.dk>
13766
13767 * macros.c (executing_macro_index): Change type to EMACS_INT.
13768 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
13769
13770 * macros.h (executing_macro_index): Change type to EMACS_INT.
13771
13772 2002-09-06 Richard M. Stallman <rms@gnu.org>
13773
13774 * casetab.c (set_case_table): Make canon table point to eqv table.
13775
13776 2002-09-06 Juanma Barranquero <lektu@terra.es>
13777
13778 * coding.c (syms_of_coding): Fix spacing.
13779
13780 * composite.c (Fcompose_region_internal)
13781 (Fcompose_string_internal): Likewise.
13782
13783 * data.c (Flsh): Likewise.
13784
13785 * fontset.c (Fset_fontset_font): Likewise.
13786
13787 * macfns.c (Fx_server_max_request_size): Likewise.
13788
13789 * w16select.c (syms_of_win16select): Likewise.
13790
13791 * w32select.c (syms_of_w32select): Likewise.
13792
13793 * xselect.c (syms_of_xselect): Likewise.
13794
13795 2002-09-05 Richard M. Stallman <rms@gnu.org>
13796
13797 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
13798 call EXTEND_RANGE_TABLE and return a proper value.
13799 (set_image_of_range): Don't call set_image_of_range_1
13800 if no TRANSLATE or if range includes all of Latin-1.
13801 Only call it for the Latin-1 part of the range.
13802 For other cases, make two separate ranges,
13803 one for the original specified characters and one for
13804 their case-conversions.
13805
13806 2002-09-04 Richard M. Stallman <rms@gnu.org>
13807
13808 * s/sol2-5.h (UNEXEC): Use unexsol.o.
13809
13810 * window.c (displayed_window_lines): Correct for one-off bug
13811 in HEIGHT on non-window displays.
13812
13813 * regex.c (set_image_of_range_1): New function.
13814 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
13815 Return a value to indicate running out of memory.
13816 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
13817 (extend_range_table_work_area): New subroutine.
13818 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
13819 Different calling conventions, and used from set_image_of_range{,_1}.
13820 (IMMEDIATE_QUIT_CHECK): Definitions moved.
13821
13822 2002-09-04 Juanma Barranquero <lektu@terra.es>
13823
13824 * makefile.w32-in: All dependencies updated.
13825
13826 2002-09-01 Richard M. Stallman <rms@gnu.org>
13827
13828 * unexsol.c: New file.
13829
13830 * xfns.c (Qbox): Declare external, don't define.
13831
13832 * xdisp.c (redisplay_window) <force-start case>:
13833 If point is on semi-visible last line, reposition
13834 it at previous line.
13835
13836 * alloc.c (display_malloc_warning): Use display-warning.
13837 (malloc_warning_1): Function deleted.
13838
13839 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
13840
13841 * lread.c (read1): Handle #! by skipping the line.
13842
13843 2002-08-31 Richard M. Stallman <rms@gnu.org>
13844
13845 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
13846 Don't include LDFLAGS.
13847 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
13848
13849 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
13850
13851 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
13852 member of x_display_info unless we compile for some window system.
13853
13854 2002-08-31 Kim F. Storm <storm@cua.dk>
13855
13856 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
13857 (get_window_cursor_type): Don't use them.
13858 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
13859
13860 2002-08-30 Kenichi Handa <handa@etl.go.jp>
13861
13862 * xdisp.c (get_next_display_element): Fix previous change.
13863
13864 2002-08-30 Andrew Choi <akochoi@shaw.ca>
13865
13866 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
13867 (expose_window): Use it to fix the display of overlapping
13868 rows (merge code from xterm.c).
13869
13870 * macfns.c (Qbox): Add extern declaration.
13871
13872 2002-08-30 Juanma Barranquero <lektu@terra.es>
13873
13874 * w32fns.c (Qbox): Make extern.
13875 (syms_of_w32fns): Remove initialization of Qbox.
13876
13877 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
13878
13879 * xfns.c (Fx_open_connection): Fix error message.
13880
13881 2002-08-30 Kim F. Storm <storm@cua.dk>
13882
13883 The following changes consolidates the handling of the cursor
13884 type in xdisp.c, moving duplicate code and functionality from
13885 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
13886
13887 * frame.h (enum text_cursor_kinds): Consolidated here.
13888 Added DEFAULT_CURSOR value.
13889 (struct frame) <desired_cursor, cursor_width>
13890 <blink_off_cursor, blink_off_cursor_width>: New fields.
13891 Consolidated from output_x, output_w32 and output_mac structs.
13892 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13893 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
13894
13895 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
13896 Variables consolidated here.
13897 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
13898 (Vcursor_in_non_selected_windows): Renamed from
13899 cursor_in_non_selected_windows and changed to Lisp_Object.
13900 (syms_of_xdisp): Define and staticpro new and moved variables.
13901 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
13902 consolidated here. Recognize Qhollow setting.
13903 (set_frame_cursor_types): New function to set frame cursor types
13904 based on the frame parameters.
13905 (get_window_cursor_type): New function to calculate new cursor
13906 type and width for the specified window. Based on duplicated
13907 code consolidated here.
13908 Enhancements: cursor-in-non-selected-windows may be a cursor type,
13909 check buffer-local alternate-cursor-type and blink-cursor-alist
13910 before using built-in blink off methods.
13911
13912 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
13913
13914 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
13915 (get_specified_cursor_type, get_window_cursor_type)
13916 (set_frame_cursor_types): Added prototypes.
13917
13918 * macfns.c (x_specified_cursor_type): Removed.
13919 (x_set_cursor_type): Use set_frame_cursor_types.
13920 (Qbar, Qbox): Removed.
13921 (syms_of_macfns): Don't intern or staticpro them.
13922
13923 * macterm.c (x_specified_cursor_type): Remove prototype.
13924 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13925 (x_display_and_set_cursor): Use get_window_cursor_type.
13926 Remove unused local variables cursor_non_selected, active_cursor.
13927 Redraw cursor if hbar cursor width changes.
13928 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
13929
13930 * macterm.h (enum text_cursor_kinds): Removed.
13931 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
13932 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13933 (FRAME_DESIRED_CURSOR): Macro removed.
13934
13935 * w32fns.c (Vblink_cursor_alist): Removed.
13936 (Qbar, Qhbar, Qbox, Qhollow): Removed.
13937 (syms_of_w32fns): Don't intern, staticpro, or define them.
13938 (x_specified_cursor_type): Removed.
13939 (x_set_cursor_type): Use set_frame_cursor_types.
13940
13941 * w32term.c (x_specified_cursor_type): Remove prototype.
13942 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13943 (x_display_and_set_cursor): Use get_window_cursor_type.
13944 Remove unused local variables cursor_off_state.
13945 Redraw cursor if hbar cursor width changes.
13946 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
13947
13948 * w32term.h (enum text_cursor_kinds): Removed.
13949 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
13950 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13951 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13952 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
13953 (struct w32_display_info) <x_highlight_frame>: Renamed member from
13954 w32_highlight_frame.
13955
13956 * xfns.c (Vblink_cursor_alist): Removed.
13957 (Qbar, Qhbar, Qbox, Qhollow): Removed.
13958 (syms_of_xfns): Don't intern, staticpro, or define them.
13959 (x_specified_cursor_type): Removed.
13960 (x_set_cursor_type): Use set_frame_cursor_types.
13961
13962 * xterm.c (x_specified_cursor_type): Remove prototype.
13963 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13964 (x_display_and_set_cursor): Use get_window_cursor_type.
13965 Remove unused local variables cursor_off_state.
13966 Redraw cursor if hbar cursor width changes.
13967
13968 * xterm.h (enum text_cursor_kinds): Removed.
13969 (struct output_x) <current_cursor, desired_cursor, cursor_width>
13970 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13971 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13972 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
13973 (x_specified_cursor_type): Remove prototype.
13974
13975 2002-08-28 Richard M. Stallman <rms@gnu.org>
13976
13977 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
13978 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
13979 (Vblink_cursor_alist): New variable.
13980 (syms_of_w32fns): Initialize and defvar it.
13981 (x_specified_cursor_type): Recognize Qbox for filled box.
13982 Exceptions are hollow boxes.
13983 (Qbox, Qhollow): New variables.
13984 (syms_of_w32fns): Initialize and staticpro them.
13985
13986 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
13987 New macros.
13988 (struct w32_output): New fields blink_off_cursor,
13989 blink_off_cursor_width.
13990 (FRAME_CURSOR_WIDTH): New macro.
13991
13992 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
13993 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
13994
13995 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
13996 for bar cursor.
13997
13998 * w32term.c (expose_overlaps): New function.
13999 (expose_window): Use it to fix the display of overlapping rows.
14000
14001 2002-08-28 Simon Josefsson <jas@extundo.com>
14002
14003 * xfns.c (Fx_open_connection): Improve help when X connection
14004 fails, xhost is insecure and xauth is better.
14005
14006 2002-08-28 Juanma Barranquero <lektu@terra.es>
14007
14008 * makefile.w32-in: Add missing dependencies on w32term.h and
14009 composite.h.
14010
14011 * emacs.c (USAGE1): Add missing newline.
14012
14013 2002-08-27 Andrew Choi <akochoi@shaw.ca>
14014
14015 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
14016
14017 2002-08-27 Richard M. Stallman <rms@gnu.org>
14018
14019 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
14020 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
14021 (Vblink_cursor_alist): New variable.
14022 (syms_of_xfns): Initialize and defvar it.
14023 (x_specified_cursor_type): Recognize Qbox for filled box.
14024 Exceptions are hollow boxes.
14025 (Qbox, Qhollow): New variables.
14026 (syms_of_xfns): Initialize and staticpro them.
14027
14028 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
14029 New macros.
14030 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
14031
14032 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
14033 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
14034
14035 * emacs.c (main): Handle --script.
14036 (USAGE1): Mention --script.
14037 (standard_args): Define sort order for --script.
14038
14039 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
14040
14041 * xdisp.c (redisplay_updating_p): Variable removed.
14042 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
14043 New variables.
14044 (init_iterator): Don't free realized faces if
14045 inhibit_free_realized_faces is set.
14046 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
14047 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
14048 initialize Qinhibit_free_realized_faces.
14049
14050 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
14051 when iterator is adding glyphs to a glyph matrix.
14052
14053 2002-08-27 Kenichi Handa <handa@etl.go.jp>
14054
14055 * xdisp.c (get_next_display_element): In unibyte case, don't use
14056 octal form for such eight-bit characters that can be converted to
14057 multibyte char.
14058
14059 2002-08-26 Kim F. Storm <storm@cua.dk>
14060
14061 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
14062 foreground and background colors. From Joe Buehler.
14063
14064 2002-08-26 Miles Bader <miles@gnu.org>
14065
14066 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
14067
14068 2002-08-25 Andrew Choi <akochoi@shaw.ca>
14069
14070 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
14071 defined instead of MAC_OSX.
14072
14073 * s/darwin.h (select): Define select to sys_select only if
14074 HAVE_CARBON is defined.
14075 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
14076 (DONT_REOPEN_PTY): #def it.
14077
14078 * macterm.c (XTread_socket): Remove code to call
14079 SendEventToEventTarget for keys with command modifiers when
14080 mac_command_key_is_meta is nil.
14081
14082 2002-08-24 Andreas Schwab <schwab@suse.de>
14083
14084 * eval.c (Fdefvar): Fix last change.
14085
14086 2002-08-23 Richard M. Stallman <rms@gnu.org>
14087
14088 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
14089 Record variables in load history as (defvar . VAR).
14090 (Fdefvar): Don't record in load history if no initial value.
14091 (Qdefvar): New variable.
14092 (syms_of_eval): Init and staticpro it.
14093
14094 * lread.c (syms_of_lread): Doc fix.
14095 (build_load_history): Use Fmember to see if a definition
14096 is already in the Vload_history element.
14097
14098 * process.c (Fstart_process): Remove /: from program name.
14099
14100 * emacs.c (decode_env_path): Don't add /: if file name handler
14101 has a `safe-magic' property.
14102
14103 * callproc.c (Fcall_process): Remove /: from program name.
14104
14105 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
14106
14107 * regex.c (PATFETCH): Remove the translating fetch.
14108 (PATFETCH_RAW): Rename to PATFETCH.
14109 (set_image_of_range): New fun.
14110 (SET_RANGE_TABLE_WORK_AREA): Use it.
14111 (regex_compile): Don't translate the pattern chars so eagerly.
14112 Only do it when inserting an `exactn' bytecode or when handling
14113 a char-range.
14114 (mutually_exclusive_p): Avoid empty statement.
14115
14116 2002-08-22 Kim F. Storm <storm@cua.dk>
14117
14118 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
14119 end up on a partially visible line; this reverts a specific part
14120 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
14121 display error which has been reported several times now.
14122 However it introduces the problem that changes was supposed to fix.
14123 See my comments in the source if you want to debug this further.
14124
14125 2002-08-20 Kenichi Handa <handa@etl.go.jp>
14126
14127 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14128
14129 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
14130
14131 * msdos.c (croak): Add `void' to definition.
14132
14133 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
14134 Don't define them, they are defined in msdos.c.
14135
14136 * mem-limits.h [MSDOS]: Declare etext.
14137
14138 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
14139 `const' since CORRECT_DIR_SEPS modifies its target.
14140
14141 2002-08-19 Kim F. Storm <storm@cua.dk>
14142
14143 * keyboard.c (Fclear_this_command_keys): Add optional arg
14144 KEEP-RECORD to avoid clearing lossage when we just want to clear
14145 the current key sequence (kmacro needs this).
14146
14147 2002-08-19 Kenichi Handa <handa@localhost>
14148
14149 * composite.c (run_composition_function): Call FUNC if it is fboundp.
14150
14151 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
14152 cons, return Qnil.
14153
14154 2002-08-17 Richard M. Stallman <rms@gnu.org>
14155
14156 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
14157
14158 * sysdep.c [!VMS]: Include sys/files.h.
14159
14160 * editfns.c (save_restriction_restore): Defend from unchained marker.
14161
14162 * buffer.c (overlays_at): Handle extending vec uniformly.
14163 (overlays_in): Handle extending vec from length 0 as in overlays_at.
14164
14165 2002-08-15 Andrew Choi <akochoi@shaw.ca>
14166
14167 * mac.c (init_mac_osx_environment): New function.
14168
14169 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
14170
14171 2002-08-14 Kim F. Storm <storm@cua.dk>
14172
14173 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
14174 executing macro before appending to it (when used from Lisp).
14175 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
14176 which is called prior to each iteration of macro (for kmacro.el).
14177 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
14178
14179 * lisp.h (Fexecute_kbd_macro): Update prototype.
14180
14181 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
14182
14183 2002-08-14 Kenichi Handa <handa@etl.go.jp>
14184
14185 * xselect.c (QUTF8_STRING): New variable.
14186 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
14187 (x_atom_to_symbol): Likewise.
14188 (x_get_local_selection): New argument local_request. If it is
14189 nonzero, call handler_fn with the second arg nil.
14190 (x_handle_selection_request): Call x_get_local_selection with
14191 local_request 0.
14192 (lisp_data_to_selection_data): Don't encode the string here.
14193 (Fx_get_selection_internal): Call x_get_local_selection with
14194 local_request 1.
14195 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
14196
14197 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
14198
14199 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
14200
14201 2002-08-13 Richard M. Stallman <rms@gnu.org>
14202
14203 * minibuf.c (Fminibufferp): New function.
14204 (syms_of_minibuf): Defsubr it.
14205 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
14206
14207 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
14208
14209 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
14210
14211 2002-08-12 Richard M. Stallman <rms@gnu.org>
14212
14213 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
14214 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
14215 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
14216 already.
14217
14218 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
14219
14220 2002-08-11 Andrew Choi <akochoi@shaw.ca>
14221
14222 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
14223 (Vmac_pass_command_to_system): New variable.
14224 (Vmac_pass_control_to_system): New variable.
14225 (do_mouse_moved): Check wp with is_emacs_window.
14226 (XTread_socket): Check window_ptr with is_emacs_window.
14227 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
14228 events back to Mac Toolbox for processing, depending on values of
14229 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
14230 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
14231 Vmac_pass_control_to_system.
14232
14233 2002-08-10 Kenichi Handa <handa@etl.go.jp>
14234
14235 * coding.c (unencodable_char_position): New function.
14236 (Funencodable_char_position): New function.
14237 (syms_of_coding): Defsubr Funencodable_char_position.
14238
14239 2002-08-10 Andrew Choi <akochoi@shaw.ca>
14240
14241 * mac.c (sys_select) [MAC_OSX]: New function.
14242
14243 * macterm.c (MakeMeTheFrontProcess): New function.
14244 (mac_initialize): Call MakeMeTheFrontProcess.
14245
14246 * s/darwin.h: Define select to sys_select.
14247
14248 2002-08-09 Richard M. Stallman <rms@gnu.org>
14249
14250 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
14251
14252 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
14253
14254 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
14255 end of the buffer.
14256
14257 2002-08-08 Ken Raeburn <raeburn@mit.edu>
14258
14259 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
14260
14261 * puresize.h (BASE_PURESIZE): Increase to 910000.
14262
14263 2002-08-08 Kenichi Handa <handa@etl.go.jp>
14264
14265 * coding.c (Ffind_operation_coding_system): For write-region, if
14266 VISIT is a filename, make it the target.
14267
14268 2002-08-07 Richard M. Stallman <rms@gnu.org>
14269
14270 * alloc.c (mark_object): Detect long lists for debugging.
14271 (mark_object_loop_halt): New variable.
14272
14273 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
14274
14275 * data.c (Fmake_variable_frame_local): Doc fix.
14276
14277 2002-08-01 David Ponce <david@dponce.com>
14278
14279 * w32menu.c (local_heap, local_alloc, local_free): New macros.
14280 (malloc_widget_value, free_widget_value)
14281 (w32_free_submenu_strings): Use them.
14282
14283 (push_submenu_start, push_submenu_end, push_left_right_boundary)
14284 (push_menu_pane, push_menu_item, single_keymap_panes)
14285 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
14286 (single_submenu, set_frame_menubar)
14287 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
14288
14289 (Fx_popup_menu): Don't show pop up menu until preceding one is
14290 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
14291
14292 * w32menu.c: Changes adapted from xmenu.c
14293 (set_frame_menubar): First parse all submenus,
14294 then make widget_value trees from them.
14295 Don't allocate any widget_value objects
14296 until we are done with the parsing.
14297 (parse_single_submenu): New function.
14298 (digest_single_submenu): New function.
14299 (single_submenu): Function deleted, replaced by those two.
14300
14301 2002-08-04 Andrew Choi <akochoi@shaw.ca>
14302
14303 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
14304 returns a valid window pointer before proceeding for keyDown and
14305 autoKey events.
14306
14307 2002-08-03 Andrew Choi <akochoi@shaw.ca>
14308
14309 * macterm.c (USE_CARBON_EVENTS): New macro.
14310 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
14311 (x_iconify_frame): Call CollapseWindow.
14312 (Vmac_reverse_ctrl_meta): New variable.
14313 (Vmac_wheel_button_is_mouse_2): New variable.
14314 (init_mac_drag_n_drop): New function.
14315 (mac_do_receive_drag): New function.
14316 (mac_handle_service_event): New function.
14317 (init_service_handler): New function.
14318 (mac_to_emacs_modifiers): New function.
14319 (mac_event_to_emacs_modifiers): New function.
14320 (mac_get_mouse_btn): New function.
14321 (mac_convert_event_ref): New function.
14322 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
14323 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
14324 mac_get_mouse_btn.
14325 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
14326
14327 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
14328 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
14329 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
14330 TOOL_BAR_EVENT for MAC_OS as well.
14331 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
14332 as for WINDOWS_NT.
14333 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
14334
14335 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
14336
14337 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
14338
14339 * xdisp.c (forward_to_next_line_start): Fix a condition that
14340 lead to a newline being skipped.
14341
14342 2002-08-02 Andrew Choi <akochoi@shaw.ca>
14343
14344 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
14345
14346 2002-08-01 Richard M. Stallman <rms@gnu.org>
14347
14348 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
14349
14350 2002-07-31 Andrew Choi <akochoi@shaw.ca>
14351
14352 * macfns.c: #undef init_process before #define-ing it.
14353
14354 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
14355 HAVE_CARBON is defined.
14356
14357 2002-07-31 Richard M. Stallman <rms@gnu.org>
14358
14359 * xmenu.c (set_frame_menubar): First parse all submenus,
14360 then make widget_value trees from them.
14361 Don't allocate any widget_value objects
14362 until we are done with the parsing.
14363 (parse_single_submenu): New function.
14364 (digest_single_submenu): New function.
14365 (single_submenu): Function deleted, replaced by those two.
14366
14367 2002-07-30 Juanma Barranquero <lektu@terra.es>
14368
14369 * w32proc.c (syms_of_ntproc): Fix docstring of
14370 `w32-get-true-file-attributes'.
14371
14372 2002-07-28 Richard M. Stallman <rms@gnu.org>
14373
14374 * s/hpux8.h (HPUX8): Define this before including hpux.h.
14375 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
14376
14377 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
14378
14379 * keyboard.c (make_lispy_event):
14380 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
14381 Explicitly clear up_modifier in event->modifiers.
14382
14383 2002-07-27 Richard M. Stallman <rms@gnu.org>
14384
14385 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
14386
14387 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
14388 for bar cursor.
14389
14390 2002-07-26 Kenichi Handa <handa@etl.go.jp>
14391
14392 * coding.c (detect_coding_iso2022): While checking a byte sequence
14393 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
14394 it in the normal loop.
14395
14396 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
14397
14398 * xterm.c (expose_overlaps): New function.
14399 (expose_window): Use it to fix the display of overlapping rows.
14400
14401 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
14402
14403 2002-07-23 Ken Raeburn <raeburn@gnu.org>
14404
14405 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
14406 since it only depends on XUINT.
14407
14408 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
14409 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
14410 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
14411 Macros deleted.
14412
14413 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
14414 its value over other approaches.
14415 * sysdep.c (start_of_data): Don't define the function if a macro
14416 form has been defined.
14417
14418 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
14419
14420 * xdisp.c (redisplay_updating_p): New variable.
14421 (init_iterator): Don't free realized faces when
14422 redisplay_updating_p is set.
14423 (redisplay_internal): Set redisplay_updating_p while updating
14424 the display.
14425
14426 2002-07-23 Richard M. Stallman <rms@gnu.org>
14427
14428 * editfns.c (Fmessage): Treat "" like nil.
14429
14430 2002-07-23 Kenichi Handa <handa@etl.go.jp>
14431
14432 * xdisp.c (face_before_or_after_it_pos):
14433 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14434
14435 2002-07-22 Juanma Barranquero <lektu@terra.es>
14436
14437 * callproc.c (init_callproc) [DOS_NT]:
14438 Initialize Vshared_game_score_directory to nil.
14439 (syms_of_callproc) [DOS_NT]: Likewise.
14440
14441 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
14442
14443 * xdisp.c (display_line): Replace an abort with xassert.
14444
14445 2002-07-21 Richard M. Stallman <rms@gnu.org>
14446
14447 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
14448 and END_UNCHANGED when setting buffer_unchanged_p.
14449 Use current_matrix_up_to_date_p to decide whether to use
14450 try_cursor_movement.
14451
14452 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
14453
14454 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
14455
14456 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
14457 Set to nil if dir does not exist.
14458 (syms_of_callproc): Init unconditionally and simply.
14459
14460 * buffer.c (Fbuffer_list): Doc fix.
14461
14462 2002-07-21 Ken Raeburn <raeburn@gnu.org>
14463
14464 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
14465
14466 * buffer.c (mmap_realloc): When shrinking, make sure number of
14467 pages to unmap is rounded towards zero.
14468
14469 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
14470 (XSETINT): Deleted.
14471
14472 * m/att3b.h (XINT): Don't define.
14473 (VALBITS, VALMASK, XTYPE): Deleted.
14474 (DATA_SEG_BITS): Define.
14475 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
14476 ARRAY_MARK_FLAG): Deleted.
14477 (DATA_SEG_BITS): Define.
14478 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
14479 (DATA_SEG_BITS): Define.
14480
14481 2002-07-20 Richard M. Stallman <rms@gnu.org>
14482
14483 * print.c (print_error_message): New args CONTEXT and CALLER.
14484 Calls changed.
14485
14486 * lisp.h (print_error_message): Declare new args.
14487
14488 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
14489 and CONTEXT to print_error_message, don't print them here.
14490 For a Quit, don't use Vsignaling_function.
14491 Call message_log_maybe_newline.
14492
14493 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
14494
14495 2002-07-20 Kim F. Storm <storm@cua.dk>
14496
14497 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
14498
14499 2002-07-19 Ken Raeburn <raeburn@gnu.org>
14500
14501 * bytecode.c (struct byte_stack): Pointers into byte string now
14502 point to const.
14503 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
14504 const.
14505 * charset.h (BCOPY_SHORT): Source pointer now points to const.
14506 * coding.c (encode_eol, detect_coding, detect_eol):
14507 (decode_coding, encode_coding, detect_coding_system):
14508 Source strings now treated as const.
14509 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
14510 modify Lisp string contents.
14511 * coding.h (decode_coding, encode_coding, detect_coding,
14512 detect_eol): Declarations updated.
14513 * composite.c (compose_chars_in_text): Treat Lisp string contents
14514 as const.
14515 * dispnew.c (safe_bcopy): Source pointer now points to const.
14516 * lisp.h (STRING_COPYIN): New macro.
14517 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
14518 (internal_with_output_to_temp_buffer): Declarations updated.
14519 * print.c (temp_output_buffer_setup):
14520 (internal_with_output_to_temp_buffer): Buffer name argument is now
14521 pointer to const.
14522 * sound.c (struct sound_device): Function pointer field "write"
14523 buffer argument now points to const.
14524 (vox_write): Buffer argument points to const.
14525 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
14526 contents as const.
14527 * sysdep.c (emacs_write): Buffer pointer now const.
14528 * term.c (encode_terminal_code): Buffer pointer now const.
14529 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
14530 (x_face_list_fonts, x_update_menu_appearance):
14531 (hash_string_case_insensitive): Treat Lisp string contents as const.
14532
14533 2002-07-19 Juanma Barranquero <lektu@terra.es>
14534
14535 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
14536
14537 * fileio.c (syms_of_fileio): Likewise.
14538 (Ffile_name_as_directory): Fix argument name in docstring.
14539 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
14540
14541 2002-07-18 Richard M. Stallman <rms@gnu.org>
14542
14543 * data.c (Fdefalias): Doc fix.
14544
14545 2002-07-17 Dave Love <fx@gnu.org>
14546
14547 * intervals.h (text_property_stickiness): Use P_.
14548
14549 * ccl.c: Remove `emacs' conditionals.
14550 (ccl_backtrace_table): Fix size spec.
14551 (ccl_driver): Fix type errors.
14552
14553 2002-07-16 Ken Raeburn <raeburn@gnu.org>
14554
14555 * alloc.c (xstrdup, make_string, make_unibyte_string)
14556 (make_multibyte_string, build_string): String pointer args now
14557 point to const.
14558 * charset.c (find_charset_in_text, c_string_width):
14559 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
14560 * fileio.c (report_file_error):
14561 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
14562 (count_combining_before, count_combining_after, insert_1_both):
14563 (insert, insert_and_inherit, insert_string):
14564 (insert_before_markers, insert_before_markers_and_inherit):
14565 * lread.c (intern, oblookup, hash_string):
14566 * minibuf.c (temp_echo_area_glyphs):
14567 * search.c (fast_c_string_match_ignore_case):
14568 * sysdep.c (emacs_open, set_file_times):
14569 * xfaces.c (xstricmp):
14570 * xdisp.c (store_frame_title, string_char_and_length):
14571 (message_dolog, message2, message2_nolog, set_message): Likewise.
14572 (set_message_1): Cast message string argument to const pointer.
14573 * editfns.c (general_insert_function): Insertion function now
14574 takes pointer to const for input data.
14575 * charset.h (find_charset_in_text, c_string_width):
14576 (parse_str_as_multibyte): Declarations updated.
14577 * dispextern.h (xstricmp): Declaration updated.
14578 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
14579 (count_size_as_multibyte, count_combining_before):
14580 (count_combining_after, insert_1, insert_1_both, message_dolog):
14581 (insert, insert_and_inherit, insert_before_markers)
14582 (insert_before_markers_and_inherit, set_message, message2):
14583 (message2_dolog, build_string, make_string, make_unibyte_string):
14584 (make_multibyte_string, intern, oblookup, report_file_error):
14585 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
14586 (emacs_open, xstrdup): Declarations updated.
14587 * systime.h (set_file_times): Declaration updated.
14588
14589 * charset.c (find_charset_in_text, lisp_string_width): Use const
14590 for pointer to lisp string data.
14591 * charset.h (FETCH_STRING_CHAR_ADVANCE):
14592 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
14593 * coding.c (Ffind_coding_systems_region_interval):
14594 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
14595 (Fmake_directory_internal, Fdelete_directory):
14596 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
14597 * fontset.c (font_family_registry, fs_query_fontset):
14598 (list_fontsets):
14599 * frame.c (Fframe_parameter):
14600 * keyboard.c (cmd_error_internal):
14601 * keymap.c (Fdescribe_buffer_bindings):
14602 * lread.c (complete_filename_p, openp):
14603 * minibuf.c (Fminibuffer_complete_word):
14604 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
14605 (face_before_or_after_it_pos, next_element_from_string):
14606 (get_overlay_arrow_glyph_row, display_mode_element):
14607 (decode_mode_spec_coding):
14608 * xterm.c (same_x_server): Likewise.
14609
14610 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
14611 settings of non-existent fields.
14612
14613 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
14614 copy a lisp value.
14615
14616 * lread.c (Fintern_soft): Use string macros instead of
14617 Lisp_String fields.
14618 * keyboard.c (echo_char, parse_modifiers_uncached):
14619 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
14620 * textprop.c (validate_interval_range, interval_of): Likewise.
14621
14622 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
14623
14624 * charset.h (FETCH_STRING_CHAR_ADVANCE)
14625 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
14626 XSTRING()->size_byte.
14627
14628 * lisp.h (SDATA, SREF): Produce rvalue.
14629 (SSET): New macro.
14630 * alloc.c (make_event_array): Use SSET for storing into a string.
14631 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
14632 a string.
14633 * casefiddle.c (casify_object): Use SSET.
14634 * charset.h (FETCH_STRING_CHAR_ADVANCE)
14635 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
14636 address of string contents.
14637 * data.c (Faref): Use SDATA.
14638 (Faset): Use SDATA, SSET.
14639 * dired.c (directory_files_internal): Use SSET.
14640 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
14641 (Fread_file_name): Use SREF, SSET.
14642 * fns.c (concat): Use SSET.
14643 (concat, Fdelete): Use SDATA.
14644 * insdel.c (insert_from_string_1): Use SDATA.
14645 * keyboard.c (Fevent_convert_list): Use SREF.
14646 * lread.c (Fload): Use SDATA, SSET.
14647 * macfns.c (validate_x_resource_name): Use SSET.
14648 * process.c (status_message): Use SSET.
14649 * search.c (wordify): Use SDATA.
14650 (Freplace_match): Use SREF.
14651 * w32fns.c (validate_x_resource_name): Use SSET.
14652 * xfns.c (validate_x_resource_name): Use SSET.
14653 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
14654
14655 2002-07-16 Richard M. Stallman <rms@gnu.org>
14656
14657 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
14658
14659 * xdisp.c (reconsider_clip_changes):
14660 Don't test prevent_redisplay_optimizations_p.
14661 (redisplay_internal): Test prevent_redisplay_optimizations_p
14662 along with clip_changed in some cases.
14663 (try_window_id): Likewise.
14664 (redisplay_window): New local var buffer_unchanged_p.
14665
14666 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
14667
14668 * process.c (create_process): Test USG_SUBTTY_WORKS.
14669 (process_send_signal): Clean up handling of GID.
14670 Detect errors in ioctls meant to set GID.
14671
14672 * window.c (temp_output_buffer_show):
14673 Don't set prevent_redisplay_optimizations_p.
14674
14675 2002-07-15 Juanma Barranquero <lektu@terra.es>
14676
14677 * eval.c (Fdefvaralias): Add docstring argument.
14678
14679 2002-07-15 Ken Raeburn <raeburn@gnu.org>
14680
14681 * lisp.h (STRING_INTERVALS): Produce rvalue.
14682 (STRING_SET_INTERVALS): New macro.
14683 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
14684 * fns.c (Fstring_as_multibyte): Likewise.
14685 * intervals.c (balance_possible_root_interval, delete_interval)
14686 (create_root_interval, copy_intervals_to_string): Likewise.
14687 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
14688 instead of 0.
14689
14690 2002-07-14 Ken Raeburn <raeburn@gnu.org>
14691
14692 * lisp.h (STRING_SET_CHARS): New macro.
14693 (SCHARS, SBYTES): Produce rvalues.
14694 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
14695 * fns.c (concat): Likewise.
14696 * lread.c (read_vector): Likewise.
14697
14698 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
14699 (STRING_SET_UNIBYTE): New macro.
14700 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
14701 length of -1) changed to use STRING_SET_UNIBYTE.
14702 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14703 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
14704 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
14705 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
14706 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
14707 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
14708 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
14709 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
14710 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
14711 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
14712 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
14713 STRING_BYTES or indirection changed to SCHARS, SBYTES,
14714 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
14715 unchanged for now.
14716
14717 2002-07-13 Kim F. Storm <storm@cua.dk>
14718
14719 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
14720
14721 2002-07-12 Richard M. Stallman <rms@gnu.org>
14722
14723 * fileio.c (Fwrite_region): Doc fix.
14724
14725 * print.c (print_error_message): Don't handle Vsignaling_function here.
14726
14727 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
14728 (command_loop_1): Avoid certain actions after memory-full error.
14729
14730 * eval.c (Fsignal): Don't call cancel_hourglass.
14731 For a memory-full error, don't call Vsignal_hook_function
14732 and don't set Vsignaling_function.
14733
14734 * process.c (process_send_signal): Add abort call.
14735
14736 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
14737
14738 * keymap.c (Fkey_binding): Fix typo.
14739
14740 2002-07-11 Richard M. Stallman <rms@gnu.org>
14741
14742 * alloc.c (Vmemory_full): New variable.
14743 (Vmemory_signal_data): Rename from memory_signal_data.
14744 Uses changed.
14745 (syms_of_alloc): Defvar them.
14746 (memory_full, buffer_memory_full): Set Vmemory_full.
14747
14748 * lisp.h (Vmemory_full): Add declaration.
14749 (current_column, indented_beyond_p): Change declaration.
14750
14751 * indent.c (last_known_column): Declare as double, not float.
14752 (current_column, current_column_1, string_display_width)
14753 (position_indentation): Return `double'.
14754 (indented_beyond_p): Arg `column' is `double'. Callers changed.
14755
14756 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
14757 (back_to_previous_visible_line_start)
14758 (reseat_at_next_visible_line_start, next_element_from_buffer):
14759 Use `double', not `float', when calling indented_beyond_p.
14760
14761 * s/hpux11.h (BROKEN_SA_RESTART): Define.
14762
14763 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
14764
14765 2002-07-11 Juanma Barranquero <lektu@terra.es>
14766
14767 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
14768 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
14769 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
14770 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
14771 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
14772 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
14773
14774 2002-07-10 Juanma Barranquero <lektu@terra.es>
14775
14776 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
14777 All callers changed.
14778
14779 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
14780
14781 * data.c (Fdefalias): Add an optional `docstring' argument.
14782 (set_internal, Fsetq_default): Use XCAR/XCDR.
14783
14784 * composite.c (HASH_VALUE, HASH_KEY):
14785 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
14786
14787 2002-07-09 Kenichi Handa <handa@etl.go.jp>
14788
14789 * callproc.c (Fcall_process): Fix previous change.
14790
14791 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
14792
14793 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
14794 Add support for hash-tables.
14795 (Ftry_completion): Return t even if the string appears multiple times.
14796
14797 * fns.c (Fnconc): Use XCDR.
14798 (Fprovide): Use CONSP and XCDR.
14799 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14800 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
14801 (Fmake_hash_table): Accept `:size nil'.
14802 (Fmakehash): Delete: moved to subr.el.
14803 (syms_of_fns): Don't defsubr makehash.
14804
14805 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14806 (HASH_TABLE_SIZE): Move from fns.c.
14807
14808 2002-07-07 Richard M. Stallman <rms@gnu.org>
14809
14810 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
14811 Instead just return 0 when there is something to be done.
14812 (try_scrolling): If make_cursor_line_fully_visible returns 0,
14813 retry scrolling as if cursor were off the bottom.
14814 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
14815 return CURSOR_MOVEMENT_MUST_SCROLL.
14816 (redisplay_window): If make_cursor_line_fully_visible returns 0,
14817 go to try_to_scroll.
14818
14819 * buffer.c (Fbuffer_local_value): Store current value into its binding
14820 so we get the up-to-date value for the binding that is loaded.
14821
14822 * eval.c (Fdefmacro): Doc fix.
14823
14824 2002-07-05 Dave Love <fx@gnu.org>
14825
14826 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
14827 correctly.
14828
14829 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
14830 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
14831 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
14832 CCL_LookupCharConstTbl.
14833 (syms_of_ccl): Defvar translation-hash-table-vector.
14834
14835 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14836
14837 * xdisp.c: Remove unused variable `face'.
14838
14839 2002-07-04 Juanma Barranquero <lektu@terra.es>
14840
14841 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
14842 obsolescence information.
14843
14844 2002-07-03 Andrew Choi <akochoi@shaw.ca>
14845
14846 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
14847 pattern. Search cache first.
14848 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
14849 for Japanese font.
14850 (XLoadQueryFont): Use it.
14851
14852 2002-07-02 Richard M. Stallman <rms@gnu.org>
14853
14854 * keymap.c (Fdefine_key): Doc fix.
14855
14856 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
14857
14858 2002-07-02 Juanma Barranquero <lektu@terra.es>
14859
14860 * keymap.c (syms_of_keymap): Fix typo.
14861
14862 2002-07-01 Andrew Choi <akochoi@shaw.ca>
14863
14864 * s/darwin.h: Define POSIX_SIGNALS.
14865
14866 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
14867 and FSRefMakePath to convert FSSpec returned with Apple Event to
14868 Posix pathname.
14869 (mac_initialize) [TARGET_API_MAC_CARBON]:
14870 Call init_required_apple_events and disable the `Quit' menu item
14871 provided automatically by the Carbon Toolbox.
14872
14873 2002-07-01 Dave Love <fx@gnu.org>
14874
14875 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14876 for K&R.
14877
14878 * xterm.c: Fix prototype for K&R.
14879
14880 * term.c (costs_set): Declare static, non-initialized for pcc.
14881
14882 2002-07-01 Richard M. Stallman <rms@gnu.org>
14883
14884 * keyboard.c (timer_last_idleness_start_time): New variable.
14885 (timer_start_idle): Set that.
14886 (read_key_sequence): Use that to reset timer_idleness_start_time
14887 to previous value.
14888
14889 * window.c (Frecenter): With arg, set optional_new_start.
14890
14891 * xdisp.c (redisplay_internal): Make optional_new_start really work.
14892
14893 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
14894 buffer for completion.
14895
14896 2002-06-29 Ken Raeburn <raeburn@gnu.org>
14897
14898 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
14899
14900 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14901
14902 * keyboard.c (readable_filtered_events): New function that filters
14903 FOCUS_IN_EVENT depending on parameter.
14904 (readable_events): Calls readable_filtered_events, not filtering
14905 FOCUS_IN_EVENT.
14906 (get_filtered_input_pending): New function, filtering parameter passed
14907 to readable_filtered_events.
14908 (get_input_pending): Calls get_filtered_input_pending, not filtering
14909 FOCUS_IN_EVENT.
14910 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
14911 FOCUS_IN_EVENT.
14912
14913 * xterm.h (struct x_output): Add focus_state.
14914
14915 * xterm.c (x_focus_changed): New function.
14916 (x_detect_focus_change): New function.
14917 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
14918 EnterNotify and LeaveNotify to track X focus changes.
14919
14920 2002-06-28 Andreas Schwab <schwab@suse.de>
14921
14922 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
14923
14924 2002-06-27 Kim F. Storm <storm@cua.dk>
14925
14926 * xdisp.c (mode_line_string_list, mode_line_string_face)
14927 (mode_line_string_face_prop): New variables.
14928 (store_mode_line_string): New function.
14929 (display_mode_element): Use store_mode_line_string to
14930 add mode-line string elements to mode_line_string_list
14931 when mode_line_string_list is non-nil.
14932 (Fformat_mode_line): Now returns propertized string by
14933 default. New arg NO-PROPS to ignore properties.
14934 (decode_mode_spec): Only add two dashes for %- in propertized
14935 mode-line string.
14936 (syms_of_xdisp): Init and staticpro mode_line_string_list.
14937
14938 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
14939
14940 * minibuf.c (minibuffer_completion_contents): Add return type.
14941
14942 2002-06-27 Juanma Barranquero <lektu@terra.es>
14943
14944 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
14945
14946 2002-06-26 Juanma Barranquero <lektu@terra.es>
14947
14948 * fileio.c (read_file_name_cleanup): Add missing return.
14949
14950 2002-06-26 Richard M. Stallman <rms@gnu.org>
14951
14952 * window.c (Frecenter): Don't set force_start flag.
14953
14954 * minibuf.c (do_completion, Fminibuffer_complete_word)
14955 (Fminibuffer_completion_help): Complete just the text before point.
14956 (minibuffer_completion_contents): New function.
14957
14958 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
14959
14960 * frame.c (frames_bury_buffer): Function deleted.
14961
14962 2002-06-25 Miles Bader <miles@gnu.org>
14963
14964 * callint.c (Fcall_interactively): When checking to see if doprnt hit
14965 the end of callint_message, allow for a terminating '\0'.
14966
14967 2002-06-24 Juanma Barranquero <lektu@terra.es>
14968
14969 * w32select.c: Include composite.h.
14970
14971 * w16select.c: Likewise.
14972
14973 2002-06-24 Kenichi Handa <handa@etl.go.jp>
14974
14975 * callproc.c (Fcall_process): If code detection is necessary,
14976 call detect_coding directly here.
14977
14978 * coding.c (detect_eol): Preserve coding->cmp_data.
14979
14980 * w16select.c (Fw16_get_clipboard_data):
14981 * w32fns.c (w32_to_x_font):
14982 * w32select.c (Fw32_get_clipboard_data):
14983 * xselect.c (selection_data_to_lisp_data):
14984 * xterm.c (XTread_socket): Disable composition handling.
14985
14986 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
14987
14988 * print.c (temp_output_buffer_setup): Kill all local variables.
14989
14990 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
14991
14992 * lread.c (Fread): Remove redundant and imprecise declaration.
14993
14994 * xfns.c (check_x_display_info): Use check_x_frame.
14995
14996 * .gdbinit (xprintsym): Use the new `xname' field.
14997 (xsymbol): Use it.
14998
14999 2002-06-22 Jason Rumney <jasonr@gnu.org>
15000
15001 * w32fns.c (file_dialog_callback): New function.
15002 (Fx_file_dialog): Allow selecting directories as well as files.
15003
15004 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15005
15006 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
15007 OpenBSD. Add support for mipseb-*-netbsd* machines.
15008
15009 2002-06-17 Andrew Choi <akochoi@shaw.ca>
15010
15011 * macterm.c (mac_scroll_area): Set foreground and backcolor to
15012 black and white before scrolling. Restore frame background and
15013 foreground color after scrolling.
15014 (do_window_update): Call XClearWindow before calling expose_frame.
15015 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
15016 FRAME_FOREGROUND_PIXEL of frame.
15017
15018 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15019 test Mac command key as <ALT> key.
15020
15021 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
15022
15023 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
15024
15025 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
15026 Lookup keys in function-key-map immediately so that key-translation-map
15027 can be applied earlier.
15028 Remove function_key_possible and key_translation_possible, replaced
15029 by checking `keytran_start < t'.
15030
15031 * .gdbinit (xsymbol): Use the new `xname' field.
15032
15033 2002-06-17 Andrew Choi <akochoi@shaw.ca>
15034
15035 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15036 test Mac command key as <ALT> key.
15037
15038 * mac.c (do_applescript): Call initialize_applescript if necessary
15039 when first called. Dispose of result_desc only when there is no error.
15040 (Fdo_applescript): Use %d format specifier instead of %ld.
15041
15042 2002-06-16 Andrew Choi <akochoi@shaw.ca>
15043
15044 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
15045 of FrontWindow for cases keyDown and autoKey.
15046
15047 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
15048 Vdefault_fontset to Monaco with mac-roman coding.
15049
15050 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
15051 init_process before and after inclusion of Carbon/Carbon.h, resp.
15052
15053 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
15054 cursor_gc.
15055 (add_font_name_table_entry): New function.
15056 (init_font_name_table): Use add_font_name_table_entry; add italic,
15057 bold, and bold-italic entries for truetype fonts.
15058
15059 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
15060 for Mac too.
15061 (try_font_list) [MAC_OS]: If no font matches given registry, try
15062 fonts with any registry matching face_family.
15063 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
15064
15065 * s/darwin.h: If autoconf detects the Ncurses library, define
15066 LIBS_TERMCAP to -lncurses to use it.
15067
15068 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
15069
15070 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
15071
15072 2002-06-15 Richard M. Stallman <rms@gnu.org>
15073
15074 * window.c (Fset_window_configuration): Explicitly preserve
15075 the point value that new_current_buffer had at the start.
15076
15077 2002-06-14 Juanma Barranquero <lektu@terra.es>
15078
15079 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
15080 Fix typos.
15081
15082 2002-06-14 Kim F. Storm <storm@cua.dk>
15083
15084 * insdel.c (insert_1_both, insert_from_string_1)
15085 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
15086 insert happened in the end_unchanged region. Otherwise, the
15087 redisplay may be confused and duplicate the last line in the
15088 buffer [seen after save-buffer when require-final-newline==t].
15089
15090 2002-06-13 Jason Rumney <jasonr@gnu.org>
15091
15092 * w32.c (init_environment): Remove EMACSLOCKDIR.
15093 (stat): Swap _S_IFDIR and _S_IFREG.
15094
15095 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15096
15097 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
15098 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
15099 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
15100 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
15101 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
15102 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
15103 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
15104 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
15105 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
15106 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
15107 SELECTION_REQUEST_EVENT, selection_clear_event to
15108 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
15109 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
15110 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
15111 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
15112 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
15113 no_event to NO_EVENT.
15114
15115 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15116
15117 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
15118
15119 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
15120
15121 * intervals.c (textget): Don't forget to `return'.
15122 (lookup_char_property): Use XCAR/XCDR.
15123
15124 2002-06-12 Juanma Barranquero <lektu@terra.es>
15125
15126 * xdisp.c (Fformat_mode_line): Fix typo.
15127
15128 2002-06-12 Kim F. Storm <storm@cua.dk>
15129
15130 * xdisp.c (Fformat_mode_line): New function.
15131 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
15132 (store_frame_title_char, store_frame_title): Use unconditionally.
15133 (init_xdisp): Defsubr Fformat_mode_line.
15134 Initialize frame_title_buf etc. unconditionally.
15135
15136 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
15137
15138 * keyboard.c (read_key_sequence):
15139 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
15140 things through those maps after downcasing events.
15141 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
15142 applies after function-key-map.
15143 Make sure that keytran can be done in the middle in the sequence.
15144 Be careful not to throw away events past the one we downcase.
15145
15146 * lread.c (read_integer): Remove unused var `tem'.
15147 (read1): Fix int/Lisp_Object mixup.
15148
15149 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
15150
15151 2002-06-11 Richard M. Stallman <rms@gnu.org>
15152
15153 * keyboard.c (readable_events): Ignore any number of
15154 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
15155
15156 2002-06-09 Miles Bader <miles@gnu.org>
15157
15158 * xfaces.c (Ftty_supports_face_attributes_p): New function.
15159 (parse_rgb_list, tty_lookup_color): New functions.
15160 (tty_defined_color): Use `tty_lookup_color' to do all the work.
15161 (color_distance, Fcolor_distance): New functions.
15162 (TTY_SAME_COLOR_THRESHOLD): New macro.
15163 (Qtty_color_standard_values): New variable.
15164 (syms_of_xfaces): Initialize new vars & functions.
15165
15166 2002-06-08 Colin Walters <walters@verbum.org>
15167
15168 * textprop.c (Vchar_property_alias_alist): New variable.
15169 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
15170
15171 * intervals.c (lookup_char_property): New function for looking up
15172 overlay and text properties, created from textget.
15173 (textget): Use it.
15174
15175 * intervals.h (lookup_char_property): Declare.
15176 (Vchar_property_alias_alist): Declare.
15177
15178 * buffer.c (Foverlay_get): Use lookup_char_property.
15179
15180 2002-06-07 Sam Steingold <sds@gnu.org>
15181
15182 * xselect.c (lisp_data_to_selection_data): Fix last change:
15183 *data_ret is not a Lisp string, while unibyte_string is.
15184
15185 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
15186
15187 * xselect.c (lisp_data_to_selection_data): Fix last change:
15188 set size_ret.
15189
15190 2002-06-07 Andreas Schwab <schwab@suse.de>
15191
15192 * m/amdx86-64.h: New file.
15193
15194 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
15195
15196 * fns.c (Fstring_make_unibyte): Doc fix.
15197
15198 * xselect.c (lisp_data_to_selection_data): If the requested type
15199 is STRING, call string_make_unibyte to encode the selected text
15200 as a string.
15201
15202 * window.c (Fset_window_hscroll): Doc fix.
15203
15204 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15205
15206 * fileio.c (choose_write_coding_system):
15207 Call select-safe-coding-system properly.
15208
15209 2002-06-03 Richard M. Stallman <rms@gnu.org>
15210
15211 * xdisp.c (message_with_string): Error if STRING is not a string.
15212
15213 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
15214
15215 * fileio.c (choose_write_coding_system): Pass FILE arg to
15216 Vselect_safe_coding_system_function.
15217
15218 2002-06-03 Ken Raeburn <raeburn@gnu.org>
15219
15220 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
15221
15222 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
15223
15224 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
15225 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
15226 * keymap.c (describe_command): Likewise.
15227 * minibuf.c (read_minibuf): Likewise.
15228
15229 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
15230 Cast `current_column' return value to int.
15231 (back_to_previous_visible_line_start)
15232 (reseat_at_next_visible_line_start, next_element_from_buffer):
15233 Cast `indented_beyond_p' 3rd arg to float.
15234
15235 * indent.c (last_known_column): Now a float.
15236 (current_column_1, position_indentation, current_column)
15237 (string_display_width): Return float.
15238 (Fcurrent_column): Cast `current_column' return value to int.
15239 (Fcurrent_indentation): Cast `position_indentation' retval to int.
15240 (indented_beyond_p): Third arg now a float.
15241 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
15242
15243 * lisp.h (current_column): Now returns float.
15244 (indented_beyond_p): 3rd arg now a float.
15245
15246 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
15247
15248 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
15249 is Qcompound_text_with_extensions.
15250
15251 * xselect.c (lisp_data_to_selection_data): Always set selection
15252 type as string if x_encode_text returns streingp non-NULL.
15253
15254 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
15255
15256 2002-05-30 Richard M. Stallman <rms@gnu.org>
15257
15258 * window.c (Fset_window_configuration): Correct the handling
15259 of point in current buffer, to work with multiple windows.
15260
15261 2002-05-29 Colin Walters <walters@verbum.org>
15262
15263 * lread.c (Fread_from_string): Don't depend on order of evaluation
15264 for C function parameters.
15265
15266 2002-05-28 Richard M. Stallman <rms@gnu.org>
15267
15268 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
15269 way for blinked-off state and for a nonselected window.
15270
15271 * window.c (window_scroll_pixel_based): Don't call Fbolp;
15272 instead, see if the new start pos is at beginning of line.
15273
15274 * fileio.c (Fwrite_region): If START is a string, don't
15275 make any annotations.
15276
15277 * eval.c (syms_of_eval): Doc fix.
15278
15279 2002-05-28 Colin Walters <walters@debian.org>
15280
15281 * emacs.c (USAGE1): Add --no-splash.
15282 (standard_args): Ditto.
15283
15284 2002-05-28 Colin Walters <walters@gnu.org>
15285
15286 * lread.c (readchar_count): New variable.
15287 (readchar): Increment it.
15288 (unreadchar): Decrement it.
15289 (read_multibyte): Decrement it.
15290 (Vread_with_symbol_positions): New variable.
15291 (Vread_symbol_positions_list): New variable.
15292 (read_internal_start): New function, created from Fread and
15293 Fread_from_string. Handle Vread_symbol_positions_list and
15294 Vread_with_symbol_positions.
15295 (readevalloop, Fread, Fread_from_string): Use it.
15296 (read1): Use readchar_count to add symbol positions to
15297 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
15298 (syms_of_lread): DEFVAR_LISP and initialize them.
15299
15300 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
15301 (substitute_object_recurse, substitute_object_in_subtree)
15302 (substitute_in_interval): Prototype.
15303 (read_multibyte): Return c if it's less than zero.
15304
15305 2002-05-28 Kim F. Storm <storm@cua.dk>
15306
15307 * fileio.c (Fread_file_name_internal): Added brute-force
15308 speed up for using predicate file-directory-p.
15309
15310 2002-05-28 Kim F. Storm <storm@cua.dk>
15311
15312 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
15313 New variables.
15314 (syms_of_fileio): DEFVAR_LISP them.
15315 (read_file_name_cleanup): New unwind function.
15316 (Fread_file_name_internal): Only return completions satifying
15317 Vread_file_name_predicate. Temporarily unwind protect and rebind
15318 default-directory while checking completions against the predicate.
15319 (Fread_file_name): Added PREDICATE argument. Specbind it to
15320 Vread_file_name_predicate during completion.
15321 Call Vread_file_name_function to read the file name if non-nil.
15322
15323 * lisp.h (Fread_file_name): Now has 6 args.
15324
15325 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
15326 predicate for Fread_file_name when reading directory name.
15327 Supply Qnil for predicate in other calls to Fread_file_name.
15328
15329 2002-05-26 Miles Bader <miles@gnu.org>
15330
15331 * term.c (tty_capable_p): New function.
15332 * dispextern.h (tty_capable_p): New function declaration.
15333 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
15334 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
15335
15336 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
15337
15338 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
15339 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
15340 (Vwrite_region_annotate_functions): Docstring fix.
15341
15342 2002-05-23 Kim F. Storm <storm@cua.dk>
15343
15344 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
15345 phys_cursor's hpos is overwritten. This is still not completely
15346 correct, as it doesn't really make sense to use hpos at all to
15347 get the cursor glyph (as that is relative to the width of the
15348 characters on the line, which may have changed during the update).
15349
15350 2002-05-22 Jason Rumney <jasonr@gnu.org>
15351
15352 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
15353 Lisp_Object.
15354 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
15355 Use modified enumfont_t struct.
15356
15357 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15358
15359 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
15360 Handle the `hbar' cursor type.
15361 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15362
15363 * w32fns.c (Qhbar): New variable.
15364 (x_specified_cursor_type): Use it.
15365
15366 2002-05-21 Ken Raeburn <raeburn@gnu.org>
15367
15368 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
15369 now, when the address is needed.
15370
15371 2002-05-21 Colin Walters <walters@gnu.org>
15372
15373 * Makefile.in (shortlisp): Add font-core.el.
15374
15375 2002-05-20 Richard M. Stallman <rms@gnu.org>
15376
15377 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
15378
15379 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
15380 equivalent key bindings here.
15381
15382 2002-05-20 Ken Raeburn <raeburn@gnu.org>
15383
15384 Change symbol structure to contain a lisp object for the symbol
15385 name:
15386 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
15387 object field named "xname".
15388 (SYMBOL_NAME): New macro.
15389 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
15390 name field.
15391 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
15392 (mark_object, gc_sweep): Use symbol xname field and XSTRING
15393 instead of name field.
15394 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
15395 SYMBOL_NAME instead of XSYMBOL and name field.
15396 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
15397 instead of XSYMBOL and name field.
15398 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
15399 and SYMBOL_NAME instead of XSYMBOL and name field.
15400 * coding.c (Fread_coding_system, code_convert_region1)
15401 (code_convert_string1, code_convert_string_norecord)
15402 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
15403 XSYMBOL and name field.
15404 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
15405 (Fmake_variable_buffer_local, Fmake_local_variable)
15406 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
15407 of XSYMBOL and name field.
15408 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
15409 XSYMBOL and name field.
15410 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
15411 instead of XSYMBOL and name field.
15412 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
15413 XSYMBOL and name field.
15414 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
15415 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15416 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
15417 instead of XSYMBOL and name field.
15418 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
15419 (parse_modifiers, apply_modifiers, Fevent_convert_list)
15420 (parse_solitary_modifier, Fexecute_extended_command):
15421 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15422 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
15423 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
15424 of XSYMBOL and name field.
15425 (describe_command, describe_translation): Use SYMBOL_NAME and
15426 assignment instead of XSYMBOL and name field and XSETSTRING.
15427 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
15428 instead of XSYMBOL and name field.
15429 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
15430 name field and XSETSTRING.
15431 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
15432 of XSYMBOL and name field.
15433 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
15434 assignment instead of XSYMBOL and name field and XSETSTRING.
15435 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
15436 XSTRING instead of XSYMBOL and name field.
15437 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
15438 and XSTRING instead of XSYMBOL and name field.
15439 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
15440 and XSTRING instead of XSYMBOL and name field.
15441 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
15442 XSTRING instead of XSYMBOL and name field.
15443 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
15444 of XSYMBOL and name field.
15445 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
15446 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
15447
15448 2002-05-19 Ken Raeburn <raeburn@gnu.org>
15449
15450 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
15451 and XCDR real rvalues in most configurations.
15452
15453 * buffer.c (fix_overlays_in_range, fix_overlays_before):
15454 Don't take the address of the cdr part of a cons cell; instead, track
15455 the parent cell and call XSETCDR, or set the variable for the head
15456 of the list if we haven't started down the list yet.
15457
15458 2002-05-19 Richard M. Stallman <rms@gnu.org>
15459
15460 * doc.c (reread_doc_file): Don't ask for confirmation.
15461
15462 2002-05-18 Jason Rumney <jasonr@gnu.org>
15463
15464 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
15465 (xbm_load_image): Use it.
15466 (xbm_load): Ditto.
15467 (xbm_read_bitmap_data): Reverted to xfns.c version.
15468 From David Ponce <david@dponce.com>.
15469
15470 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
15471
15472 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
15473 2.02 and later.
15474
15475 2002-05-16 Juanma Barranquero <lektu@terra.es>
15476
15477 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
15478
15479 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
15480
15481 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
15482 meaningful test.
15483 (read_char_minibuf_menu_prompt): Fix typo.
15484
15485 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
15486
15487 * eval.c (Fcommandp): Doc fix.
15488
15489 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
15490
15491 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
15492 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
15493 (Fset_keymap_parent): Gcpro a bit more.
15494 (access_keymap): Gcpro around meta_map call and around the main loop.
15495 (get_keyelt): Gcpro when following indirect references.
15496 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
15497 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
15498 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
15499 Remove useless ad-hoc remap code.
15500
15501 2002-05-13 Richard M. Stallman <rms@gnu.org>
15502
15503 * search.c (search_buffer): Give up boyer moore search if inverse
15504 translation change charset_base.
15505
15506 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
15507
15508 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
15509 characters is carried over from the previous block of text, adjust
15510 coding->produced to account for the extra character.
15511
15512 2002-05-11 Andreas Schwab <schwab@suse.de>
15513
15514 * coding.c (intersection): Keep the elements of the returned list
15515 in the same order as in the first list.
15516
15517 2002-05-11 Kim F. Storm <storm@cua.dk>
15518
15519 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
15520 only update cmm_size if realloc actually succeeds.
15521 Testing with initial size of 2 elements revealed that using
15522 realloc on GNU/Linux would cause a random trap in xmalloc
15523 later on, so I rewrote the code to use malloc/bcopy/free instead
15524 of realloc.
15525
15526 2002-05-10 Jason Rumney <jasonr@gnu.org>
15527
15528 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
15529
15530 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
15531
15532 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
15533 parens, to ensure correct evaluation order.
15534
15535 2002-05-10 Kim F. Storm <storm@cua.dk>
15536
15537 * keymap.c (Vemulation_mode_map_alists): New variable.
15538 (syms_of_keymap): DEFVAR_LISP it.
15539 (current_minor_maps): Process keymap alists in that list before
15540 minor-mode-overriding-map-alist and minor-mode-map-alist.
15541
15542 2002-05-09 Richard M. Stallman <rms@gnu.org>
15543
15544 * search.c (Freplace_match): Doc fix.
15545
15546 2002-05-09 Kim F. Storm <storm@cua.dk>
15547
15548 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
15549 Enlarge cursor rectangle drawn around image with non-zero relief.
15550
15551 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
15552 Enlarge cursor rectangle drawn around image with non-zero relief.
15553
15554 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
15555 Enlarge cursor rectangle drawn around image with non-zero relief.
15556
15557 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
15558
15559 * xselect.c (lisp_data_to_selection_data): Don't set selection
15560 type if comes from the Lisp object's car. If the selection
15561 contains a pure ASCII text, always return QSTRING as its type.
15562
15563 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15564
15565 * mac.c (mac-cut-function): Doc fix.
15566
15567 2002-05-05 Richard M. Stallman <rms@gnu.org>
15568
15569 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
15570
15571 2002-05-04 Jason Rumney <jasonr@gnu.org>
15572
15573 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
15574 for event-click-count.
15575
15576 * process.c (init_process): Only add server subfeature if we can
15577 use non-blocking I/O.
15578
15579 2002-05-04 Andrew Choi <akochoi@shaw.ca>
15580
15581 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
15582 repeatedly.
15583
15584 2002-05-03 Jason Rumney <jasonr@gnu.org>
15585
15586 * process.c (Fmake_network_process): Only support server sockets
15587 when we can make them non-blocking.
15588
15589 * s/ms-w32.h (HAVE_SELECT): Define.
15590
15591 * w32.h (FILE_NDELAY): New flag.
15592
15593 * w32.c (sys_getpeername, fcntl): New functions.
15594 (_sys_read_ahead): Temporarily block on non-blocking sockets.
15595
15596 * w32proc.c: include sys/file.h.
15597
15598 2002-05-03 Colin Walters <walters@verbum.org>
15599
15600 * callproc.c (Vgame_score_directory): Renamed to
15601 Vshared_game_score_directory.
15602
15603 2002-04-30 Richard M. Stallman <rms@gnu.org>
15604
15605 * s/gnu.h [emacs]: Include stdio.h.
15606 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
15607
15608 * eval.c (do_autoload): Error if called while preparing to dump.
15609
15610 * fns.c (Frequire): Error if need to load while preparing to dump.
15611
15612 2002-04-28 Colin Walters <walters@verbum.org>
15613
15614 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
15615 Default to "~/.emacs.d/games".
15616
15617 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
15618
15619 * lread.c (openp): Change arg exec_only to predicate.
15620 (build_load_history): Use XCAR/XCDR.
15621 (Flocate_file_internal): New fun.
15622 (syms_of_lread): Defsubr it.
15623 (Fload): Update call to openp.
15624
15625 * lisp.h (openp): Update prototype.
15626
15627 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
15628 * w32proc.c (sys_spawnve):
15629 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
15630 * w32.c (check_windows_init_file):
15631 * sound.c (Fplay_sound_internal):
15632 * process.c (Fstart_process):
15633 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
15634 * mac.c (run_mac_command):
15635 * emacs.c (init_cmdargs):
15636 * callproc.c (Fcall_process): Update call to openp.
15637
15638 * textprop.c (remove_properties): Don't use XCAR without CONSP.
15639
15640 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
15641
15642 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15643
15644 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
15645 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
15646
15647 2002-04-28 Richard M. Stallman <rms@gnu.org>
15648
15649 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
15650
15651 * eval.c (Fcommandp): New arg for_call_interactively.
15652 * lisp.h (Fcommandp): Declare new arg.
15653
15654 2002-04-28 Jason Rumney <jasonr@gnu.org>
15655
15656 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
15657
15658 * w32.c (stat, fstat): Use file index information to generate
15659 inodes for directories where available.
15660
15661 2002-04-26 Andrew Choi <akochoi@shaw.ca>
15662
15663 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
15664 [HAVE_CARBON]: Include Mac object files.
15665
15666 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
15667 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
15668 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
15669 MAC_OSX, and MAC_OS instead of macintosh.
15670
15671 * editfns.c [MAC_OS8]: Include stdio.h.
15672
15673 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
15674
15675 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
15676 Apple Monaco.
15677
15678 * process.c (QCfamily, QCfilte): Declare extern.
15679 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
15680 calling select.
15681
15682 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
15683
15684 * tparam.c [MAC_OSX]: Don't define BC and UP.
15685
15686 * config.in [HAVE_CARBON]: Add.
15687
15688 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
15689 Move here from mac/src and mac/inc.
15690
15691 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
15692
15693 2002-04-26 Gerd Moellmann <gerd@gnu.org>
15694
15695 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
15696 Compute phys_cursor_width from the x position returned
15697 by x_draw_glyhs, which is cheaper.
15698 (x_display_and_set_cursor): Compute the buffer-local value
15699 of `cursor-in-non-selected-windows' only when needed.
15700
15701 2002-04-25 Gerd Moellmann <gerd@gnu.org>
15702
15703 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
15704 cursor on a stretch glyph has a width that depends on
15705 x_stretch_cursor_p.
15706
15707 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15708
15709 * abbrev.c (abbrev-start-location): Doc fix.
15710
15711 * indent.c (Fvertical_motion): Fix last change.
15712
15713 2002-04-25 Gerd Moellmann <gerd@gnu.org>
15714
15715 * indent.c (Fvertical_motion): Move to the start of the line
15716 containing PT before moving up or down.
15717
15718 2002-04-24 Gerd Moellmann <gerd@gnu.org>
15719
15720 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
15721 case of writing a whole row, more or less analogous to the case of
15722 writing only parts of a row.
15723
15724 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
15725 0 for NO_CURSOR.
15726
15727 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
15728
15729 2002-04-23 Colin Walters <walters@verbum.org>
15730
15731 * buffer.c (syms_of_buffer): Doc fix.
15732
15733 2002-04-23 Gerd Moellmann <gerd@gnu.org>
15734
15735 * xterm.c (notice_overwritten_cursor): Handle the special case
15736 of the cursor being in the first blank non-text line at the
15737 end of a window.
15738
15739 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
15740 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
15741 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
15742 bar cursors only, to make phys_cursor_width contain what its name
15743 suggests.
15744 (notice_overwritten_cursor): Consider the cursor image erased if
15745 the output area intersects the cursor image in y-direction.
15746
15747 2002-04-23 Simon Marshall <simon@gnu.org>
15748
15749 * xfns.c (x_set_mouse_color): Change default for cross_cursor
15750 to XC_hand2.
15751
15752 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15753
15754 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
15755
15756 2002-04-22 Kim F. Storm <storm@cua.dk>
15757
15758 * textprop.c (remove_properties): Fixed trap for malformed plist.
15759
15760 2002-04-22 Richard M. Stallman <rms@gnu.org>
15761
15762 * cmds.c (Fend_of_line): Handle intangible text in mid line.
15763
15764 * window.c (make_window): Initialize height_fixed_p,
15765 last_cursor_off_p, and p->cursor_off_p slots.
15766
15767 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15768
15769 * fns.c (use-dialog-box): Doc fix.
15770
15771 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15772
15773 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
15774 variables `row', `i' and `area'.
15775 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
15776 toolkit library.
15777
15778 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
15779
15780 * xfaces.c (clear_font_table): Don't free the default font of
15781 a frame even if it's on another display.
15782 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
15783 that could be Qt.
15784
15785 2002-04-19 Juanma Barranquero <lektu@terra.es>
15786
15787 * indent.c (Fmove_to_column): Remove unused local variable
15788 `next_boundary_byte'.
15789 (current_column_1): Likewise.
15790
15791 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
15792
15793 * msdos.c (Qhbar): New variable.
15794 (syms_of_msdos): Intern and staticpro it.
15795 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
15796 cursor type.
15797
15798 2002-04-19 Dave Lambert <dlambert@acm.org>
15799
15800 Theses change implement an underscore-like (`hbar') cursor.
15801
15802 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15803
15804 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
15805 Handle the `hbar' cursor type.
15806 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15807
15808 * xfns.c (Qhbar): New variable.
15809 (syms_of_xfns): Intern and staticpro it.
15810 (x_specified_cursor_type): Handle `hbar' cursor.
15811
15812 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
15813 not defined.
15814
15815 2002-04-18 Richard M. Stallman <rms@gnu.org>
15816
15817 * textprop.c (remove_properties): New arg LIST allows scanning
15818 either a list or a plist.
15819 (interval_has_some_properties_list): New function, like
15820 interval_has_some_properties using list instead of plist.
15821 All callers changed.
15822 (Fremove_list_of_text_properties): New function.
15823 (syms_of_textprop): Defsubr it.
15824
15825 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15826
15827 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
15828
15829 2002-04-17 Juanma Barranquero <lektu@terra.es>
15830
15831 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
15832
15833 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15834
15835 * window.c (coordinates_in_window): Don't report on margin area
15836 if its width is zero.
15837
15838 2002-04-16 Jason Rumney <jasonr@gnu.org>
15839
15840 * w32fns.c (Fx_file_dialog): Decode file name before using.
15841
15842 * w32term.c (construct_drag_n_drop): Likewise.
15843
15844 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
15845
15846 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
15847 store load-history in pure space.
15848
15849 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
15850
15851 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
15852
15853 * xterm.c (Qlatin_1, Qutf_8): New vars.
15854 (syms_of_xterm): Initialize them.
15855 (XTread_socket): Eliminate incorrect optimization that tried to avoid
15856 decoding the output of X*LookupString.
15857 Always use latin-1 to decode the output of XLookupString.
15858 Try Xutf8LookupString if XmbLookupString failed.
15859
15860 * region-cache.c (new_region_cache): Use BEG.
15861
15862 2002-04-16 Gerd Moellmann <gerd@gnu.org>
15863
15864 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
15865 configuration files.
15866 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
15867 returns 0.
15868
15869 2002-04-15 Andreas Schwab <schwab@suse.de>
15870
15871 * config.in: Regenerated using autoheader.
15872
15873 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
15874 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
15875 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
15876 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
15877 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
15878 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
15879 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
15880 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
15881 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
15882 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
15883 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
15884 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
15885 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
15886 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
15887 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
15888 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
15889 STACK_DIRECTION, now set by autoconf.
15890
15891 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15892
15893 * dispnew.c (marginal_area_string): Sort arguments.
15894
15895 * dispextern.h (marginal_area_string): Add prototype.
15896
15897 2002-04-13 Richard M. Stallman <rms@gnu.org>
15898
15899 * fileio.c (Finsert_file_contents):
15900 Don't call temp_output_buffer_setup--do just part, by hand.
15901
15902 * coding.c (run_pre_post_conversion_on_str):
15903 Don't call temp_output_buffer_setup--do just part, by hand.
15904
15905 * keyboard.c (command_loop_1): Don't call start_hourglass
15906 or cancel_hourglass when executing a macro.
15907
15908 * marker.c (count_markers): New function.
15909
15910 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
15911 grow without limit. Move recently used elements to the front.
15912
15913 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
15914
15915 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
15916
15917 2002-04-12 Gerd Moellmann <gerd@gnu.org>
15918
15919 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
15920 rows marginal areas.
15921 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
15922 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15923
15924 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
15925
15926 2002-04-12 Dave Love <fx@gnu.org>
15927
15928 * dispnew.c (marginal_area_string): New.
15929
15930 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
15931 (Qleft_margin, Qright_margin): Declare.
15932 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
15933
15934 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
15935 note_mode_line_highlight and extended.
15936
15937 * keyboard.c (Qleft_margin, Qright_margin): Declare.
15938 (make_lispy_event): Deal with mouse events in margins.
15939
15940 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
15941
15942 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
15943
15944 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
15945 than deactivating the mark if tmm is set to `lambda'.
15946 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
15947 Use a single event for HELP_EVENT.
15948 (Fexecute_extended_command): Save last_point_position.
15949
15950 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15951
15952 * lisp.h (Fpropertize): Add prototype.
15953
15954 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
15955
15956 2002-04-10 Colin Walters <walters@verbum.org>
15957
15958 * config.in: Add HAVE_SHARED_GAME_DIR.
15959
15960 * callproc.c (Vgame_score_directory): New variable.
15961 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
15962
15963 2002-04-10 Richard M. Stallman <rms@gnu.org>
15964
15965 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
15966
15967 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
15968
15969 * minibuf.c (read_minibuf): Use empty_string.
15970 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
15971 Short-circuit the search as soon as it "failed".
15972 (Fall_completions): Allow lambda forms and lists of strings for alist.
15973 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
15974 when require_match is nil.
15975 (Ftest_completion): Rename from `test_completion' and export to elisp.
15976 Call the predicate also when alist is a list.
15977 Obey Vcompletion_regexp_list.
15978 (do_completion, Fminibuffer_complete_and_exit): Use it.
15979 (Fassoc_string): Rename from `assoc_for_completion'.
15980 Allow list of strings as well and export to elisp.
15981
15982 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
15983
15984 * puresize.h (BASE_PURESIZE): Increase to 900KB.
15985
15986 2002-04-08 Juanma Barranquero <lektu@terra.es>
15987
15988 * w32.c (sys_accept): Don't hide variable `s'.
15989
15990 2002-04-05 Gerd Moellmann <gerd@gnu.org>
15991
15992 * callint.c (Fcall_interactively): Use INTEGERP instead of
15993 NUMBERP for checking Vhistory_length.
15994
15995 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15996
15997 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
15998 Doc fix to reflect it.
15999
16000 2002-04-04 Richard M. Stallman <rms@gnu.org>
16001
16002 * xdisp.c (display_mode_element): New arg RISKY.
16003 Disregard text props found or specified within a variable
16004 that isn't marked risky-local-variable.
16005 (Qrisky_local_variable): New variable.
16006 (syms_of_xdisp): Init and staticpro it.
16007
16008 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
16009
16010 * undo.c (record_point): New fun.
16011 (record_delete, record_insert): Use it.
16012
16013 2002-04-03 Juanma Barranquero <lektu@terra.es>
16014
16015 * doc.c (Fdocumentation): Add missing parentheses.
16016 (Fdocumentation_property): Likewise.
16017
16018 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
16019
16020 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
16021 data is 0, just return nil.
16022
16023 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
16024
16025 * msdos.c (syms_of_msdos): Fix last change with
16026 mouse_autoselect_window.
16027
16028 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16029
16030 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
16031 mouse_autoselect_window.
16032
16033 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
16034
16035 * keyboard.c (make_lispy_event): Handle unknown keysyms together
16036 with system-specific keysyms. Use it also for unknown function keys.
16037
16038 * doc.c (reread_doc_file): Return whether reload was attempted.
16039 (Fdocumentation, Fdocumentation_property): Don't try to reload
16040 if the doc is 0 and only ask once.
16041
16042 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
16043
16044 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
16045
16046 * keyboard.c (read_char): If the event was Qselect_window,
16047 restore timer_idleness_start_time to its previous value.
16048
16049 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
16050
16051 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
16052
16053 * region-cache.c (new_region_cache): Use BEG.
16054
16055 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
16056 Use BEG and BEG_BYTE.
16057
16058 * doc.c (get_doc_string): Return nil if the location is wrong.
16059 (reread_doc_file): New fun.
16060 (Fdocumentation, Fdocumentation_property):
16061 Call it if get_doc_string fails.
16062 (Fsnarf_documentation): Make it work for a dumped Emacs.
16063
16064 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
16065 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
16066
16067 * charset.c (Fstring): Allow 0 arguments.
16068
16069 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
16070
16071 * process.c (DATAGRAM_CONN_P, list_processes_1)
16072 (Fprocess_datagram_address, Fset_process_datagram_address)
16073 (Fset_network_process_options, server_accept_connection):
16074 Fix some int/Lisp_Object confusions (thank you union types).
16075
16076 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16077
16078 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
16079
16080 * w32term.c: Likewise.
16081 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
16082
16083 * keyboard.c (Qselect_window): New symbol.
16084 (head_table): Use it.
16085 (keys_of_keyboard): Bound select-window event to handle-select-window.
16086 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
16087
16088 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
16089 (last_window): New variable.
16090 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
16091 (note_mouse_movement): Remove reimplemented code in #if 0.
16092 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
16093 Emacs windows.
16094
16095 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
16096
16097 2002-03-31 Gerd Moellmann <gerd@gnu.org>
16098
16099 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
16100 Callers changed.
16101
16102 2002-03-30 Richard M. Stallman <rms@gnu.org>
16103
16104 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
16105 loop whenever it stops making progress.
16106
16107 * widget.c (set_frame_size): Don't call change_frame_size.
16108
16109 2002-03-30 Gerd Moellmann <gerd@gnu.org>
16110
16111 * dispnew.c (direct_output_for_insert):
16112 Call mark_window_display_accurate.
16113
16114 2002-03-29 Jason Rumney <jasonr@gnu.org>
16115
16116 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
16117
16118 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
16119
16120 * Makefile.in (lread.o): Depend on coding.h.
16121
16122 * lread.c (openp, Fload): Encode the file name before passing it
16123 to `stat', `access', and `emacs_open'.
16124 (openp): GCPRO the encoded file name. Don't recompute Lisp
16125 strings unnecessarily.
16126
16127 2002-03-29 Kim F. Storm <storm@cua.dk>
16128
16129 * fns.c (Flax_plist_put): Doc fix.
16130
16131 2002-03-28 Miles Bader <miles@gnu.org>
16132
16133 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
16134
16135 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16136
16137 * process.c (set-network-process-options): Add usage.
16138 (make-network-process): Doc fix.
16139
16140 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
16141
16142 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
16143
16144 2002-03-26 Richard M. Stallman <rms@gnu.org>
16145
16146 * fns.c (Fsubstring_no_properties): New function.
16147 (Flax_plist_get, Flax_plist_put): New functions.
16148 (syms_of_fns): defsubr them.
16149
16150 * xdisp.c (update_menu_bar): Test only update_mode_lines;
16151 don't test or alter w->update_mode_line.
16152
16153 * window.c (Fdisplay_buffer): Doc fix.
16154
16155 2002-03-24 Richard M. Stallman <rms@gnu.org>
16156
16157 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
16158
16159 2002-03-24 Gerd Moellmann <gerd@gnu.org>
16160
16161 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
16162 (Fdefmacro): Handle `(declare ...)'.
16163 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
16164 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
16165
16166 2002-03-24 Jason Rumney <jasonr@gnu.org>
16167
16168 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
16169 (xbm_file_p): Add prototypes.
16170 (xbm_format, xbm_image_p): Sync with xfns.c.
16171 (reflect_byte): New function.
16172 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
16173 (xbm_load_image): Create bitmaps with a depth of 1.
16174 (init_xfns): Enable XBM images.
16175
16176 2002-03-23 Jason Rumney <jasonr@gnu.org>
16177
16178 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
16179 correctly. Do not pass up_modifier to keyboard buffer.
16180
16181 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
16182
16183 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
16184
16185 * Makefile.in (bootstrapclean): New target.
16186 (bootstrap-temacs, bootstrap-doc): Remove.
16187 (bootstrap-emacs): Use a bog-standard `temacs'.
16188 Don't bother to build a DOC file.
16189
16190 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
16191
16192 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
16193 in temacs even if !CANNOT_DUMP.
16194 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
16195
16196 * alloc.c (check_pure_size): Only output a warning.
16197
16198 2002-03-22 Jason Rumney <jasonr@gnu.org>
16199
16200 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
16201 supported.
16202
16203 * w32term.c (zv_bits): Declare as short, for word alignment.
16204 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
16205 (syms_of_w32term): Define x-use-underline-position-properties.
16206
16207 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
16208 (clear_image_cache): Block input, fix logic, clear matrices in
16209 all frames that share this cache.
16210
16211 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
16212
16213 * emacs.c (main): Update the Copyright year in the blurb printed
16214 by "emacs --version".
16215
16216 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
16217
16218 * xterm.c (XTread_socket): If XK_ISO_Lock and
16219 XK_ISO_Last_Group_Lock are defined, handle keysyms between
16220 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
16221
16222 2002-03-21 Kim F. Storm <storm@cua.dk>
16223
16224 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
16225 menu-bar bindings in keymap and local-map properties _are_ used.
16226 But try keymap property first in accordance with 2002-01-03 patch.
16227 Added comment describing why this is not always reliable.
16228 (tool_bar_items): Ditto for tool-bar.
16229
16230 2002-03-21 Jason Rumney <jasonr@gnu.org>
16231
16232 * w32fns.c (x_clear_image_1): Disable color table code.
16233
16234 2002-03-21 Kim F. Storm <storm@cua.dk>
16235
16236 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
16237 removed the wrong version of the DEFUN macro; fixed it.
16238
16239 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
16240 Fmember rather than Fmemq).
16241 (Fprovide): Check that subfeatures is a list.
16242
16243 * process.c (QCfeature, QCdatagram): Removed variables.
16244 (QCtype, Qdatagram): New variables.
16245 (network_process_featurep): Removed function.
16246 (Fmake_network_process): Removed :feature check.
16247 Use :type 'datagram instead of :datagram t to create a datagram
16248 socket. This allows us to add other connection types (e.g. raw
16249 sockets) later in a consistent manner.
16250 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
16251 supported subfeatures for feature make-network-process.
16252 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
16253 Intern and staticpro QCtype and Qdatagram.
16254 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
16255
16256 * xfns.c: (QCtype): Remove duplicate declaration and
16257 initialization (is now declared in process.c).
16258
16259 * w32fns.c: (QCtype): Remove duplicate declaration and
16260 initialization (is now declared in process.c).
16261
16262 2002-03-21 Richard M. Stallman <rms@gnu.org>
16263
16264 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
16265 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
16266 when jumping to `fail' to avoid undoing reg changes in the
16267 last iteration of the loop.
16268 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
16269
16270 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
16271 Depend on process.h.
16272
16273 2002-03-20 Jason Rumney <jasonr@gnu.org>
16274
16275 Most of the following changes are still conditional on HAVE_IMAGES
16276 which is not set by default on Windows.
16277
16278 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
16279
16280 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
16281 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
16282 (four_corners_best, x_clear_image_1, x_clear_image)
16283 (x_alloc_image_color, postprocess_image)
16284 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
16285 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
16286 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
16287
16288 * w32gui.h (struct XImage): Define.
16289
16290 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
16291 extract mouse co-ordinates.
16292
16293 2002-03-20 Jason Rumney <jasonr@gnu.org>
16294
16295 * w32.c (init_winsock): Dynamically load new server and UDP
16296 socket functions.
16297 (socket_to_fd): New function.
16298 (sys_socket): Use it.
16299 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
16300 (sys_recvfrom, sys_sendto): New wrapper functions.
16301
16302 * process.c (QCfamily, QCfilter): Remove duplicate declaration
16303 and initialization.
16304
16305 * makefile.w32-in (LIBS): Remove $(WSOCK32).
16306
16307 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
16308
16309 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
16310 Don't use "sun" as a variable, it's a predefined constant on Sun
16311 machines.
16312
16313 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16314
16315 * bytecode.c (Fbyte_code): Revert last change.
16316
16317 2002-03-19 Kim F. Storm <storm@cua.dk>
16318
16319 * makefile.w32-in (LIBS): Add $(WSOCK32).
16320 From David Ponce <dponce@voila.fr>.
16321
16322 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16323
16324 * process.c (wait_reading_process_input): Move variables `pname'
16325 and `pnamelen' down where they are used.
16326
16327 * bytecode.c (Fbyte_code): Discard unused computed value to
16328 prevent gcc warning.
16329
16330 * lisp.h (Fplist_member): Add prototype.
16331
16332 2002-03-18 Kim F. Storm <storm@cua.dk>
16333
16334 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
16335 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
16336
16337 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
16338 Remove explicit GNU_LINUX settings for datagram support.
16339
16340 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16341
16342 * process.c (Fmake_network_process): Remove unused variable `sa'.
16343 Doc fix. Add usage:.
16344 (set_socket_options): Remove unused variables `optnum' and `opttype'.
16345
16346 2002-03-17 Richard M. Stallman <rms@gnu.org>
16347
16348 * xdisp.c (cursor_type_changed): New variable.
16349 (redisplay_internal): Redisplay all windows if cursor_type_changed.
16350 Clear it when clearing windows_or_buffers_changed.
16351 (try_cursor_movement, redisplay_window, try_window_id)
16352 (try_window_reusing_current_matrix): Test cursor_type_changed
16353 along with windows_or_buffers_changed.
16354
16355 * window.h (cursor_type_changed): New variable.
16356
16357 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
16358 not update_mode_lines, and always set it to 1.
16359
16360 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
16361 if no frames needed redrawing.
16362
16363 2002-03-17 Kim F. Storm <storm@cua.dk>
16364
16365 The following changes add support for network server processes,
16366 datagram connections, and local (unix) sockets.
16367
16368 * process.h (struct Lisp_Process): New member log.
16369 Doc fix: Member command used to indicate stopped network process.
16370 Doc fix: Member childp contains plist for network process.
16371 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
16372
16373 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
16374 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
16375 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
16376 New variables.
16377 (NETCONN1_P): New macro.
16378 (DATAGRAM_SOCKETS): New conditional symbol.
16379 (datagram_address): New array.
16380 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
16381 (status_message): Use concat3.
16382 (Fprocess_status): Add `listen' status to doc string. Return `stop'
16383 for a stopped network process.
16384 (Fset_process_buffer): Update contact plist for network process.
16385 (Fset_process_filter): Ditto. Don't enable input for stopped
16386 network processes. Server must listen, even if filter is t.
16387 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
16388 New functions.
16389 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
16390 (Fprocess_contact): Added KEY argument. Handle datagrams.
16391 (list_processes_1): Optionally show only processes with the query
16392 on exit flag set. Dynamically adjust column widths. Omit tty
16393 column if not needed. Report stopped network processes.
16394 Identify server and datagram network processes.
16395 (Flist_processes): New optional arg `query-only'.
16396 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
16397 (conv_lisp_to_sockaddr, set_socket_options)
16398 (network_process_featurep, unwind_request_sigio): New helper functions.
16399 (Fprocess_datagram_address, Fset_process_datagram_address):
16400 (Fset_network_process_options): New lisp functions.
16401 (Fopen_network_stream): Removed. Now defined in simple.el.
16402 (Fmake_network_process): New lisp function. Code is based on previous
16403 Fopen_network_stream, but heavily reworked with new property list based
16404 argument list, support for datagrams, server processes, and local
16405 sockets in addition to old client-only functionality.
16406 (server_accept_connection): New function.
16407 (wait_reading_process_input): Use it to handle incoming connects.
16408 Do not enable input on a new connection if process is stopped.
16409 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
16410 (send_process): Handle datagram sockets.
16411 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
16412 network process is indicated by setting command field to t .
16413 (Fprocess_send_eof): No-op if datagram connection.
16414 (Fstatus_notify): Don't read input for a stream server socket or a
16415 stopped network process.
16416 (init_process): Initialize datagram_address array.
16417 (syms_of_process): Intern and staticpro new variables, defsubr new
16418 functions.
16419
16420 2002-03-16 Jason Rumney <jasonr@gnu.org>
16421
16422 * w32fns.c (w32_to_all_x_charsets): Return correct type in
16423 startup case.
16424
16425 2002-03-16 Richard M. Stallman <rms@gnu.org>
16426
16427 * xdisp.c (redisplay_internal, redisplay_windows):
16428 Use list_of_error to call internal_condition_case_1.
16429 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
16430 so as to catch all errors with no possibility of debugger redisplay.
16431 (list_of_error): New variable.
16432 (syms_of_xdisp): Init and staticpro it.
16433
16434 * print.c (print_object): Delete `\ ' from printed rep of frame.
16435
16436 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
16437
16438 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
16439 until its implementation is fixed.
16440
16441 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16442
16443 * xfns.c (png_load): Remove unused variable `gamma_str'.
16444
16445 2002-03-14 Richard M. Stallman <rms@gnu.org>
16446
16447 * xfns.c (x_real_positions): Handle failure in XQueryTree.
16448
16449 2002-03-14 Miles Bader <miles@gnu.org>
16450
16451 * intervals.c (adjust_for_invis_intang): New function.
16452 (set_point_both): Use `adjust_for_invis_intang' to do most of the
16453 work for dealing with invisible+intangible regions. Do so before
16454 and after both forward and backward movements, to handle both
16455 front-sticky and rear-sticky cases.
16456 * textprop.c (text_property_stickiness): Function moved here from
16457 `editfns.c'.
16458 * intervals.h (text_property_stickiness): New declaration.
16459 * editfns.c (char_property_eq): Function removed.
16460 (text_property_stickiness): Function moved to `textprop.c'.
16461
16462 2002-03-13 Jason Rumney <jasonr@gnu.org>
16463
16464 * config.in: Add STRFTIME_NO_POSIX2.
16465
16466 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
16467 and %OX when underlying strftime does not.
16468
16469 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
16470
16471 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
16472 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
16473 line) to avoid annoying flicker.
16474 (xm_scroll_callback): Get rid of the now unnecessary kludge.
16475 (XTread_socket): Mark it static.
16476
16477 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
16478
16479 2002-03-13 Kim F. Storm <storm@cua.dk>
16480
16481 * puresize.h (BASE_PURESIZE): Increase to 775000.
16482
16483 2002-03-12 Juanma Barranquero <lektu@terra.es>
16484
16485 * editfns.c (syms_of_editfns): Fix typo.
16486
16487 2002-03-12 Gerd Moellmann <gerd@gnu.org>
16488
16489 * xsmfns.c: Include stdio.h because termhooks.h needs it.
16490 Include termopt.h for interrupt_input.
16491
16492 2002-03-11 Andreas Schwab <schwab@suse.de>
16493
16494 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
16495
16496 2002-03-11 Gerd Moellmann <gerd@gnu.org>
16497
16498 * xterm.c (note_mouse_movement): Put code for
16499 x_autoselect_window_p in #if 0.
16500
16501 * lread.c (Fload): Don't assume that message_with_string uses the
16502 string it is given like a C string.
16503
16504 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16505
16506 * xterm.h (x_session_check_input, x_session_initialize): Declare.
16507
16508 * xterm.c (XTread_socket): Add call to x_session_check_input and
16509 x_session_have_connection.
16510 (x_initialize): Add call to x_session_initialize.
16511
16512 * termhooks.h (enum event_kind): Add save_session_event.
16513
16514 * keyboard.c: Add Emacs event save_session_event.
16515
16516 * emacs.c (main): Add call to syms_of_xsmfns.
16517
16518 * lisp.h (syms_of_xsmfns): Declare extern.
16519
16520 * config.in: Add HAVE_X_SM.
16521
16522 * Makefile.in (LIBXT): Add -lSM -lICE
16523 if HAVE_X_SM and not USE_X_TOOLKIT.
16524 (XOBJ): New file xsmfns.c added.
16525
16526 * xsmfns.c: New file for X session management.
16527
16528 2002-03-09 Jason Rumney <jasonr@gnu.org>
16529
16530 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
16531 read-only when setting modified time.
16532
16533 2002-03-08 Gerd Moellmann <gerd@gnu.org>
16534
16535 * xdisp.c (move_it_vertically_backward): At the end of the function,
16536 when moving forward by lines, treat terminal frames specially.
16537
16538 * keyboard.c (echo_char): Make sure to add a separator between
16539 keys even if echo_dash hasn't been called.
16540
16541 * xdisp.c: Use new string macros.
16542 (update_echo_area): Pass number of bytes to message3 instead of
16543 number of chars.
16544 (set_message_1): Don't access a string's size_byte directly.
16545 (decode_mode_spec_coding): Use number of bytes of eoltype string
16546 instead number of chars.
16547
16548 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
16549
16550 2002-03-08 Juanma Barranquero <lektu@terra.es>
16551
16552 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
16553 24-bit.
16554
16555 2002-03-06 Jason Rumney <jasonr@gnu.org>
16556
16557 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
16558
16559 2002-03-06 Gerd Moellmann <gerd@gnu.org>
16560
16561 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
16562 (cancel_echoing, echo_length, echo_truncate): Changed to
16563 work with new kboard definition.
16564 (echo_now): Use message3_nolog instead of message2_nolog.
16565
16566 * alloc.c (mark_kboards): Mark echo_string.
16567
16568 * keyboard.h (ECHOBUFSIZE): Removed.
16569 (struct kboard): Member echoptr removed, member echobuf renamed
16570 to echo_string.
16571
16572 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
16573 message3 instead of message2 to display the message using STRING's
16574 text properties.
16575
16576 2002-03-05 Andreas Schwab <schwab@suse.de>
16577
16578 * xdisp.c (hscroll_margin): Change to EMACS_INT.
16579
16580 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
16581
16582 * frame.c (default-frame-alist): Explain that setting it doesn't
16583 affect existing frames.
16584
16585 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
16586
16587 * indent.c (skip_invisible): Fix my brain fart.
16588
16589 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
16590
16591 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
16592
16593 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
16594 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
16595 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
16596 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
16597 and variables to use EMACS_INT instead of just int.
16598
16599 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
16600
16601 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
16602
16603 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
16604 environment, pass it down with corrected value.
16605
16606 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16607
16608 * lread.c (read_filtered_event): Do not call start_hourglass
16609 before returning.
16610
16611 2002-03-04 Juanma Barranquero <lektu@terra.es>
16612
16613 * w32term.c (x_display_and_set_cursor): Fix typo.
16614
16615 2002-03-03 Richard M. Stallman <rms@gnu.org>
16616
16617 * fileio.c (Fmake_temp_name): Doc fix.
16618
16619 2002-03-03 Gary Wong <gtw@gnu.org>
16620
16621 * termcap.c [!emacs]: Replace ospeed for building standalone
16622 libtermcap, for binary compatibility.
16623
16624 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
16625
16626 2002-03-03 Richard M. Stallman <rms@gnu.org>
16627
16628 * xrdb.c (file_p): Rename arg `path' to `filename'.
16629
16630 * abbrev.c (Fexpand_abbrev): Increment plist as use count
16631 only if it is an integer.
16632
16633 * xfns.c (png_load): Set screen_gamma based on f->gamma.
16634 If png_get_sRGB gives an answer, call png_set_gamma
16635 using the default image gamma value.
16636
16637 * lread.c (read1): When reading from a file, default string to
16638 multibyte only if it has some multibyte characters.
16639
16640 * print.c (print_object): Output multibyte chars 128...255
16641 using \x even if ! print_escape_multibyte.
16642
16643 * xdisp.c (display_mode_element): Move the places where
16644 bytepos, charpos, this, and lisp_string are set.
16645 Use lisp_string to set bytepos.
16646
16647 * xdisp.c (redisplay_internal):
16648 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
16649
16650 * xdisp.c (display_mode_element): Merge properties specified with
16651 :propertize onto those that come with the string.
16652
16653 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
16654
16655 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
16656 automatic-hscrolling. Users changed.
16657 <hscroll-margin>: Renamed from automatic-hscroll-margin.
16658 Users changed.
16659 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
16660
16661 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
16662
16663 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
16664
16665 2002-03-02 Kim F. Storm <storm@cua.dk>
16666
16667 * window.c (Fminibuffer_selected_window): New function.
16668 (syms_of_window): Defsubr it.
16669
16670 2002-03-01 Kim F. Storm <storm@cua.dk>
16671
16672 * window.h (struct window): New member phys_cursor_width.
16673
16674 * window.c (make_window, replace_window): Init phys_cursor_width.
16675
16676 * xterm.c (x_display_and_set_cursor): Blink box cursor using
16677 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
16678
16679 * w32term.c (x_display_and_set_cursor): Blink box cursor using
16680 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
16681
16682 * lisp.h (GCPRO6): New macro.
16683
16684 * process.c (Fopen_network_stream): Use GCPRO6.
16685
16686 2002-03-01 Kim F. Storm <storm@cua.dk>
16687
16688 * process.c (Qconnect, Qfailed): New variables.
16689 (syms_of_process): Intern and staticpro them.
16690 (Fprocess_status): Document connect and failed return values.
16691 [NON_BLOCKING_CONNECT]: New conditional.
16692 (connect_wait_mask, num_pending_connects): New variables.
16693 (status_message): Convert Qfailed status.
16694 (Fopen_network_stream): Added support for non-blocking connect.
16695 New optional args: filter, sentinel, non_blocking. Doc updated.
16696 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
16697 (deactivate_process): Handle pending non-blocking connect.
16698 (wait_reading_process_input): Poll for status of non-blocking
16699 connects. Exec sentinel directly when connect succeeds.
16700 (status_notify): Don't read process output if not yet connected.
16701
16702 2002-02-28 Kim F. Storm <storm@cua.dk>
16703
16704 * window.c: (minibuf_selected_window): Renamed from
16705 Vminibuf_selected_window. Users changed.
16706 (syms_of_window): Staticpro it.
16707
16708 2002-02-26 Kim F. Storm <storm@cua.dk>
16709
16710 The following changes add a new Vminibuf_selected_window variable
16711 which is similar to Vminibuf_scroll_window, but which is only set
16712 on entry to the minibuffer (from a non-minibuffer window):
16713
16714 * window.c: (Vminibuf_selected_window): New variable.
16715 (struct save_window_data): New member minibuf_selected_window.
16716 (Fset_window_configuration): Restore Vminibuf_selected_window.
16717 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
16718 Set minibuf_scroll_window member to nil if minibuf_level is 0.
16719 (compare_window_configurations): Compare minibuf_selected_window.
16720
16721 * window.h: (Vminibuf_selected_window): Declare extern.
16722
16723 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
16724 entry to minibuffer or on entry from a non-minibuffer window.
16725
16726 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
16727 Vminibuf_selected_window instead of Vminibuf_scroll_window.
16728
16729 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
16730 instead of Vminibuf_scroll_window when deciding in which window
16731 the region should be highlighted. Consequently, the region remains
16732 highlighteded even when a completion buffer is also displayed.
16733
16734 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
16735
16736 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
16737
16738 * xselect.c (Qcompound_text_with_extensions): Renamed from
16739 Qcompound_text_no_extensions.
16740 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
16741
16742 2002-02-26 Juanma Barranquero <lektu@terra.es>
16743
16744 * w32proc.c (syms_of_ntproc): Doc fix.
16745
16746 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16747
16748 * intervals.h: Include "dispextern.h" unconditionally.
16749
16750 2002-02-24 Jason Rumney <jasonr@gnu.org>
16751
16752 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
16753 and disp-table.elc.
16754 (lisp): Add emacs-lisp/backquote.elc.
16755
16756 2002-02-24 Kim F. Storm <storm@cua.dk>
16757
16758 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
16759 The validation of the event type was too strict as it didn't
16760 allow string events; buffer names are used in bindings for
16761 menu-bar-select-buffer (see `menu-bar-update-buffers').
16762
16763 2002-02-23 Kim F. Storm <storm@cua.dk>
16764
16765 The following changes rework my patch of 2002-02-06 which
16766 added command remapping by entering the commands directly into
16767 the keymaps. Now, command remapping uses an explicit `remap'
16768 prefix in the keymaps, i.e. [remap COMMAND].
16769
16770 * keymap.c (Qremap, remap_command_vector): New variables.
16771 (is_command_symbol): Remove function.
16772 (Fdefine_key): No longer accept a symbol for KEY.
16773 Added validation of [remap COMMAND] argument for KEY.
16774 The DEF is no longer required to be a symbol when remapping a command.
16775 (Fremap_command): New function to remap command through keymaps.
16776 (Flookup_key): Perform command remapping initiated by
16777 Fremap_command directly for speed.
16778 (Fkey_binding): Use Fremap_command for command remapping.
16779 (where_is_internal): Handle new command remapping representation.
16780 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
16781 staticpro them. Defsubr Fremap_command.
16782
16783 * keymap.h (Fremap_command): Declare extern.
16784 (is_command_symbol): Remove extern.
16785
16786 * keyboard.c (command_loop_1): Use Fremap_command for command
16787 remapping; now try command remapping for all symbols.
16788
16789 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16790
16791 * coding.h (run_pre_post_conversion_on_str): Add prototype.
16792
16793 2002-02-23 Jason Rumney <jasonr@gnu.org>
16794
16795 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
16796 on the string before encoding it.
16797 (Fw32_get_clipboard_data): Run post-read-conversion on the string
16798 after decoding it.
16799
16800 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
16801
16802 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16803
16804 * w32term.c (enter_timestamp): Remove unused static variable to
16805 prevent warning.
16806
16807 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
16808
16809 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16810
16811 * w16select.c (Fw16_get_clipboard_data): Fix last change.
16812
16813 * xselect.c (selection_data_to_lisp_data): Fix last change.
16814
16815 2002-02-22 Jason Rumney <jasonr@gnu.org>
16816
16817 * w32term.h (struct w32_output): New member menu_command_in_progress.
16818
16819 * w32menu.c (menubar_selection_callback): Free the menu and
16820 clear the menu_command_in_progress flag.
16821
16822 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
16823 (menu_free_timer): New variable.
16824 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
16825 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
16826 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
16827 menu command is in progress.
16828 <WM_COMMAND>: Set the menu_command_in_progress flag.
16829 Kill any menu_free_timer that is running.
16830
16831 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
16832 Call ExtTextOutA rather than ExtTextOut.
16833
16834 2002-02-22 Eli Zaretskii <eliz@gnu.org>
16835
16836 * puresize.h (BASE_PURESIZE): Increase to 755000.
16837
16838 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16839
16840 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
16841 on the string before encoding it.
16842 (Fw16_get_clipboard_data): Run post-read-conversion on the string
16843 after decoding it.
16844
16845 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16846
16847 Support for ICCCM Extended Segments in X selections:
16848
16849 * xselect.c <Qcompound_text_no_extensions>: New variable.
16850 (syms_of_xselect): Intern and staticpro it.
16851 (selection_data_to_lisp_data): Run post-read-conversion on decoded
16852 selection text.
16853 (lisp_data_to_selection_data): If next-selection-coding-system is
16854 compound-text-no-extensions, set the type of selection to be
16855 compound-text.
16856
16857 * xterm.h (x_encode_text): Update prototype.
16858
16859 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
16860 callers changed. If SELECTIONP is non-zero, run the
16861 pre-write-conversion function before encoding the selection text.
16862
16863 2002-02-21 Kim F. Storm <storm@cua.dk>
16864
16865 * frame.c (syms_of_frame): Change mouse-highlight default to t.
16866
16867 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
16868 Correct composing of language-change event.
16869
16870 2002-02-20 Kim F. Storm <storm@cua.dk>
16871
16872 * keyboard.c (menu_bar_items): Don't include keymap or local-map
16873 bindings at PT when building menu (the menu is not updated often
16874 enough for this to work reliable).
16875 (tool_bar_items): Likewise.
16876 (current_active_maps): Removed unused (and buggy) function.
16877
16878 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16879
16880 * xfns.c (gif_load): Use correct width and height for GIF images.
16881
16882 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
16883
16884 * floatfns.c (Fatan): Accept an optional second arg and call
16885 atan2 if passed 2 args.
16886
16887 2002-02-18 Jason Rumney <jasonr@gnu.org>
16888
16889 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
16890
16891 2002-02-17 Jason Rumney <jasonr@gnu.org>
16892
16893 * w32term.c (x_autoselect_window_p): New variable.
16894 (syms_of_w32term): DEFVAR_BOOL and initialize it.
16895 (note_mouse_movement): Use it.
16896
16897 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
16898
16899 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
16900
16901 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16902 New variables.
16903 (syms_of_w32fns): Intern and staticpro them.
16904 (x_frame_parms) <"fullscreen">: New parameter.
16905 (x_fullscreen_move, x_set_fullscreen): New functions.
16906 (x_set_frame_parameters): Support Qfullscreen.
16907 (x_real_positions): Save x/y_pixels_diff frame params.
16908 (x_figure_window_size): Support full-screen frames.
16909 (Fx_create_frame): Default the fullscreen parameter.
16910
16911 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
16912 (x_fullscreen_adjust): New functions.
16913 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
16914 fullscreen. Call x_check_fullscreen_move, and set the
16915 want_fullscreen member of output_data.w32
16916 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
16917
16918 * w32term.h: New enum for FULLSCREEN_* constants.
16919 (struct w32_output): New members want_fullscreen, x_pixels_diff,
16920 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
16921 (x-fullscreen-adjust): New prototype.
16922
16923 2002-02-17 Kim F. Storm <storm@cua.dk>
16924
16925 * frame.c (Vmouse_highlight): New variable.
16926 (syms_of_frame): DEFVAR_LISP it.
16927
16928 * frame.h (Vmouse_highlight): Declare extern.
16929
16930 * xterm.h (struct x_display_info): Add mouse_face_hidden.
16931
16932 * xterm.c (disable_mouse_highlight): Removed variable.
16933 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
16934 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16935 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
16936 and on after keyboard input.
16937 (x_term_init): Initialize mouse_face_hidden.
16938
16939 * msdos.h (struct display_info): Add mouse_face_hidden.
16940
16941 * msdos.c (disable_mouse_highlight): Removed variable.
16942 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16943 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
16944 (internal_terminal_init): Initialize mouse_face_hidden.
16945 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
16946 and on after keyboard input.
16947
16948 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
16949
16950 * w32term.c (disable_mouse_highlight): Removed variable.
16951 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
16952 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16953 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
16954 and on after keyboard input.
16955 (w32_initialize_display_info): Initialize mouse_face_hidden.
16956
16957 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
16958
16959 * msdos.c (last_mouse_window): New variable.
16960 (dos_rawgetc): Fix last change--if the mouse is in the same window
16961 as recorded in last_mouse_window, don't select this window.
16962
16963 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
16964
16965 * msdos.c (x_autoselect_window_p): New variable.
16966 (syms_of_msdos): Defvar it.
16967 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
16968 which the last mouse movement occured, unless it is already selected.
16969
16970 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
16971 New variables.
16972 (syms_of_xdisp): DEVFAR them.
16973 (hscroll_window_tree): Use automatic_hscroll_margin and
16974 Vautomatic_hscroll_step to compute the amount of window scrolling.
16975
16976 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16977
16978 * xterm.c (x-autoselect-window): New variable.
16979 (note_mouse_movement): Use it.
16980
16981 * keyboard.c: Do not include "systime.h" twice.
16982
16983 2002-02-15 Andreas Schwab <schwab@suse.de>
16984
16985 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
16986
16987 * alloc.c (NSTATICS): Increase to 1280.
16988
16989 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
16990
16991 * alloc.c (NSTATICS): Bump to 1026.
16992
16993 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
16994 (Vx_super_keysym): New variables.
16995 (syms_of_xterm): DEFVAR_LISP them.
16996 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
16997 variables to determine which keys to use for the various modifiers.
16998
16999 2002-02-13 Kim F. Storm <storm@cua.dk>
17000
17001 * window.c: (Vmode_line_in_non_selected_windows): Removed.
17002 (mode_line_in_non_selected_windows): New variable.
17003 (syms_of_window): DEFVAR_BOOL it.
17004
17005 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
17006 Use mode_line_in_non_selected_windows.
17007 (mode_line_in_non_selected_windows): Declare extern.
17008 (Vmode_line_in_non_selected_windows): Removed extern.
17009
17010 2002-02-13 Richard M. Stallman <rms@gnu.org>
17011
17012 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
17013 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
17014 (Fclear_this_command_keys): Doc fixes.
17015
17016 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
17017 (update_face_from_frame_parameter): Increment face_change_count
17018 and windows_or_buffers_changed to force redisplay using changed faces.
17019
17020 * xdisp.c (QCpropertize): New variable.
17021 (mode_line_proptrans_alist): New variable.
17022 (display_mode_element): New arg PROPS; all calls changed.
17023 Implement this, for strings.
17024 Handle literal output of strings by sharing the
17025 main-line code for strings, using local var `literal'.
17026 Handle :propertize feature.
17027 (syms_of_xdisp): Initialze and staticpro QCpropertize and
17028 mode_line_proptrans_alist.
17029
17030 2002-02-11 Kim F. Storm <storm@cua.dk>
17031
17032 * window.c: (Vmode_line_in_non_selected_windows): New variable.
17033 (syms_of_window): DEFVAR_LISP it.
17034
17035 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
17036 (CURRENT_MODE_LINE_FACE_ID): Use it.
17037 (Vmode_line_in_non_selected_windows): Declare extern.
17038
17039 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
17040 to get mode line face.
17041
17042 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
17043
17044 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
17045 variables; cus-start.el doesn't need them anymore.
17046
17047 2002-02-09 Kim F. Storm <storm@cua.dk>
17048
17049 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
17050 reduction. This fixes a display problem where stray newlines were
17051 inserted in the window (corrected by C-l). Clarified code (IMHO).
17052
17053 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
17054
17055 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
17056
17057 * xdisp.c (display_mode_lines): Fix last change.
17058
17059 2002-02-09 Jason Rumney <jasonr@gnu.org>
17060
17061 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
17062 match each other.
17063 (w32_load_system_font): Prevent Cleartype fonts from loading.
17064 (Fx_show_tip): Ensure tip frames are above other topmost windows.
17065
17066 2002-02-09 Kim F. Storm <storm@cua.dk>
17067
17068 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
17069 (CURRENT_MODE_LINE_HEIGHT): Use it.
17070 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
17071
17072 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
17073 (pos_visible_p, handle_face_prop): Likewise.
17074 (display_mode_lines): Likewise, but for the real selected window.
17075 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
17076
17077 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
17078 in non-selected windows.
17079 (realize_basic_faces): Realize it.
17080 (syms_of_term): Intern and staticpro it.
17081
17082 2002-02-08 Kim F. Storm <storm@cua.dk>
17083
17084 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
17085 Changed mail addresses to emacs-devel@gnu.org.
17086
17087 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
17088
17089 * fileio.c (Fsubstitute_in_file_name): If the file name includes
17090 ~user, and there's no such user, don't discard everything before ~user.
17091
17092 * floatfns.c (Fround): Doc fix.
17093
17094 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17095
17096 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
17097
17098 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
17099
17100 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
17101
17102 2002-02-07 Kim F. Storm <storm@cua.dk>
17103
17104 * keymap.c (where_is_internal): Only check whether definition is
17105 remapped if it fulfills is_command_symbol.
17106
17107 2002-02-07 Andreas Schwab <schwab@suse.de>
17108
17109 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
17110
17111 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
17112
17113 2002-02-06 Kim F. Storm <storm@cua.dk>
17114
17115 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
17116 defining command remapping. Doc updated.
17117 (Flookup_key): Remap command through keymap if KEY is a symbol.
17118 (is_command_symbol): New function.
17119 (Fkey_binding): Use it. New optional argument NO-REMAP.
17120 Doc updated. Callers changed. Perform command remapping via
17121 recursive call unless that arg is non-nil.
17122 (where_is_internal): New argument no_remap. Callers changed.
17123 Call recursively to find original key bindings for a remapped
17124 comand unless that arg is non-nil.
17125 (Fwhere_is_internal): New optional argument NO-REMAP.
17126 Doc updated. Callers changed. Pass arg to where_is_internal.
17127
17128 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
17129 (is_command_symbol): Add prototype.
17130
17131 * keyboard.c (Vthis_original_command): New variable.
17132 (syms_of_keyboard): DEFVAR_LISP it.
17133 (command_loop_1): Set it, and perform command remapping.
17134
17135 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17136
17137 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
17138
17139 2002-02-06 Jason Rumney <jasonr@gnu.org>
17140
17141 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
17142
17143 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
17144
17145 * charset.c (get_charset_id): Use if-else instead of ?:.
17146
17147 2002-02-06 Richard M. Stallman <rms@gnu.org>
17148
17149 * filelock.c (S_ISLNK): Define if not defined.
17150
17151 2002-02-03 Richard M. Stallman <rms@gnu.org>
17152
17153 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
17154
17155 * lread.c (read1): Redesign strategy for force_multibyte and
17156 force_singlebyte. Now is_multibyte records whether read_buffer
17157 is multibyte. Encountering any multibyte character makes it so.
17158
17159 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
17160
17161 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
17162 with the same sequence, map that sequence to f10 rather than f0.
17163
17164 2002-02-03 Andreas Schwab <schwab@suse.de>
17165
17166 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
17167 latter never being defined on GNU/Linux.
17168
17169 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
17170
17171 * xfaces.c (realize_default_face): Don't set the weight and slant of
17172 the default face to Qnormal, unless these attributes are unspecified.
17173
17174 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17175
17176 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
17177 Call cancel_hourglass unconditionally.
17178
17179 * eval.c (Fsignal): Remove duplicated declaration of
17180 the variable `display_hourglass_p'.
17181
17182 2002-01-31 Richard M. Stallman <rms@gnu.org>
17183
17184 * editfns.c (region_limit): Nicer error message.
17185
17186 * coding.c (decode_composition_emacs_mule):
17187 Give up if NCOMPONENT gets too large to index `component'.
17188
17189 * callint.c (check_mark): New arg to specify clearer error message.
17190 Callers changed.
17191
17192 2002-01-27 Richard M. Stallman <rms@gnu.org>
17193
17194 * minibuf.c (Fcompleting_read): Doc fix.
17195
17196 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17197
17198 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
17199 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
17200 Fix doc-strings.
17201
17202 2002-01-26 Richard M. Stallman <rms@gnu.org>
17203
17204 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
17205
17206 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
17207 and scroll_up_aggressively.
17208
17209 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17210
17211 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
17212
17213 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
17214
17215 * textprop.c (Fnext_property_change, Fnext_single_property_change)
17216 (Fprevious_property_change, Fprevious_single_property_change):
17217 Stay within the narrowed-buffer boundaries.
17218
17219 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
17220
17221 * term.c (Ftty_display_color_cells): New function.
17222 (syms_of_term): Defsubr it.
17223 (Ftty_display_color_cells, Ftty_display_color_p): Change the
17224 argument name to DISPLAY. Doc fix.
17225
17226 * dispextern.h: Add prototype for set_tty_color_mode and
17227 tty_setup_colors.
17228
17229 2002-01-24 Jason Rumney <jasonr@gnu.org>
17230
17231 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
17232 If region left to draw is not what was expected, mark the frame as
17233 garbaged.
17234
17235 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
17236 Combine the regions returned by BeginPaint and GetUpdateRect.
17237
17238 2002-01-23 Jason Rumney <jasonr@gnu.org>
17239
17240 * w32term.c (x_update_window_begin): Only hide caret if
17241 w32_use_visible_system_caret is set.
17242 (x_update_window_end): Only show caret if
17243 w32_use_visible_system_caret is set.
17244 (syms_of_w32term): Handle SystemParametersInfo call failing.
17245
17246 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
17247
17248 2002-01-22 Richard M. Stallman <rms@gnu.org>
17249
17250 * unexelf.c (unexec): Define n so as to cause compilation error
17251 for the code where people have often written n instead of nn.
17252
17253 * .gdbinit (hookpost-run): Defined.
17254
17255 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17256
17257 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
17258
17259 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17260
17261 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
17262 if fullscreen is being set.
17263
17264 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17265
17266 * minibuf.c (Fminibuffer_contents)
17267 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
17268 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
17269
17270 2002-01-21 Richard M. Stallman <rms@gnu.org>
17271
17272 * window.c (check_frame_size): Fix minimum height calculation.
17273
17274 2002-01-20 Ken Raeburn <raeburn@gnu.org>
17275
17276 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
17277 height before comparison.
17278 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
17279
17280 2002-01-20 Jason Rumney <jasonr@gnu.org>
17281
17282 * w32term.c (w32_system_caret_width): Remove.
17283 (w32_use_visible_system_caret): New user flag.
17284 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
17285 Windows reports a screen reader running.
17286 (x_update_window_begin): Hide the system caret.
17287 (x_update_window_end): Show the system caret.
17288 (x_display_and_set_cursor): Don't draw a cursor when
17289 w32_use_visible_system_caret is set. Do not adjust width.
17290
17291 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
17292 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
17293 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
17294 the user requests it. Use system default width when creating.
17295 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
17296
17297 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
17298 New window messages.
17299
17300 2002-01-20 Richard M. Stallman <rms@gnu.org>
17301
17302 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
17303
17304 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17305
17306 * doprnt.c (doprnt1): Fix typos in error call.
17307
17308 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
17309
17310 * unexelf.c (unexec) [__sgi]: Support the .got sections.
17311
17312 2002-01-20 Jason Rumney <jasonr@gnu.org>
17313
17314 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
17315 that Windows returns. If a double check fails, try to guess how
17316 ExtTextOut is going to act.
17317
17318 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
17319 in place of stricmp.
17320 (w32_list_synthesized_fonts): Removed.
17321 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
17322 (struct enumfont_t): New element; list.
17323 (enum_font_cb2): List all style and charset variations of a font.
17324 (Fw32_select_font): New optional argument; include_proportional.
17325 Exclude vertical fonts. Exclude proportional fonts unless
17326 include_proportional is non-nil.
17327 (w32_enable_synthesized_fonts): Change to a boolean.
17328 (Fw32_send_sys_command): Doc fix.
17329
17330 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17331
17332 * dispnew.c (update_frame): Move the variable `tem' to the block
17333 where it is used.
17334
17335 2002-01-19 Jason Rumney <jasonr@gnu.org>
17336
17337 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
17338 call to face-set-after-frame-default.
17339
17340 2002-01-18 Richard M. Stallman <rms@gnu.org>
17341
17342 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
17343 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
17344
17345 2002-01-17 Richard M. Stallman <rms@gnu.org>
17346
17347 * window.c (enlarge_window): When exceeding size of parent,
17348 directly delete all the siblings instead of trying to resize it.
17349
17350 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17351
17352 * term.c (set_tty_color_mode): Remove unused variable `tem'.
17353
17354 2002-01-16 Henrik Enberg <henrik@enberg.org>
17355
17356 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
17357
17358 2002-01-16 Kim F. Storm <storm@cua.dk>
17359
17360 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
17361 is invisible. This can happen if cursor is on top line of a
17362 window, and we switch to a buffer with a header line.
17363
17364 * w32term.c (x_erase_phys_cursor): Ditto.
17365
17366 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17367
17368 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
17369 `dont_resize' only when used.
17370
17371 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
17372
17373 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
17374
17375 * xdisp.c (display_mode_element): When computing charpos, depend
17376 on multibyteness of elt, not the text in field.
17377
17378 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17379
17380 * buffer.c (Fkill_all_local_variables):
17381 Increment `update_mode_lines' only once.
17382
17383 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17384
17385 * lisp.h (adjust_after_replace_noundo)
17386 (Fupdate_coding_systems_internal): Add prototypes.
17387
17388 * sound.c (Fplay_sound): Initialize header_size also for :data case.
17389
17390 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
17391
17392 Support for the --color command-line argument and tty-color-mode
17393 frame parameter:
17394
17395 * term.c (tty_default_color_capabilities, tty_setup_colors)
17396 (set_tty_color_mode): New functions.
17397 (term_init): Call tty_default_color_capabilities.
17398 (Qtty_color_mode_alist): New variable.
17399 (syms_of_term): Intern and staticpro it.
17400
17401 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
17402 frames.
17403 (do_switch_frame): For termcap frames, switch the tty
17404 color mode as specified by the frame's parameters.
17405 (Qtty_color_mode): New variable.
17406 (syms_of_frame): Intern and staticpro it.
17407
17408 * emacs.c (USAGE2): Add the --color option.
17409 (standard_args): Ditto.
17410
17411 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17412
17413 * xterm.h (struct x_output): New members want_fullscreen,
17414 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
17415 y_pixels_outer_diff.
17416 New enum for FULLSCREEN_* constants.
17417 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
17418 is NULL.
17419 (x_fullscreen_adjust): Add prototype.
17420
17421 * emacs.c (USAGE2): Add the new full-screen arguments.
17422 (standard_args): Ditto.
17423
17424 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
17425 New variables.
17426 (syms_of_xfns): Intern and staticpro them.
17427 (x_frame_parms) <"fullscreen">: New parameter.
17428 (x_fullscreen_move, x_set_fullscreen): New functions.
17429 (x_set_frame_parameters): Support for Qfullscreen.
17430 (x_real_positions): More accurate computation of the frame position.
17431 (x_figure_window_size): Support full-screen frames.
17432 (Fx_create_frame): Default the fullscreen parameter.
17433
17434 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
17435 (XTread_socket) <Expose>: Call x_check_fullscreen.
17436 <ConfigureNotify>: Don't resize to fullscreen.
17437 Call x_check_fullscreen_move, and set the want_fullscreen member of
17438 output_data.x.
17439
17440 2002-01-13 Jason Rumney <jasonr@gnu.org>
17441
17442 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
17443 for mice with more than 3 buttons.
17444
17445 * w32term.c (parse_button): New parameter xbutton. Callers changed.
17446 (w32_read_socket): Handle new "XBUTTON" messages.
17447
17448 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
17449 (syms_of_w32fns): DEFVAR_BOOL it.
17450 (w32_wnd_proc): Handle new "XBUTTON" messages.
17451
17452 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17453
17454 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
17455
17456 2002-01-13 Andreas Schwab <schwab@suse.de>
17457
17458 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
17459
17460 2002-01-12 Andreas Schwab <schwab@suse.de>
17461
17462 * .gdbinit (xbuffer): Remove address operator since data is now a
17463 pointer.
17464
17465 2002-01-11 Richard M. Stallman <rms@gnu.org>
17466
17467 * insdel.c (adjust_after_replace_noundo): New function.
17468
17469 * coding.c (code_convert_region): Don't copy old text if undo disabled.
17470
17471 2002-01-09 Jason Rumney <jasonr@gnu.org>
17472
17473 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
17474 when checking for multiple frames.
17475
17476 2002-01-08 Richard M. Stallman <rms@gnu.org>
17477
17478 * window.c (delete_window): Rewrite the code for changing the
17479 selected window to handle the case where WINDOW is not a leaf.
17480
17481 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
17482
17483 * process.c (send_process): Set src_multibyte to 1 after the call
17484 top setup_coding_system, not before the call.
17485
17486 2002-01-07 Jason Rumney <jasonr@gnu.org>
17487
17488 * xmenu.c (set_frame_menubar, xmenu_show):
17489 (xdialog_show): Initialize wv->help to Qnil.
17490
17491 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
17492 (w32_dialog_show): Initialize wv->help to Qnil.
17493
17494 2002-01-06 Jason Rumney <jasonr@gnu.org>
17495
17496 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
17497
17498 * w32menu.c (w32_menu_display_help): Revert last change.
17499
17500 * xmenu.c (menu_highlight_callback): Revert last change.
17501
17502 2002-01-06 Andreas Schwab <schwab@suse.de>
17503
17504 * insdel.c (make_gap_larger): Make sure buffer size does not
17505 overflow range of int.
17506
17507 2002-01-05 Jason Rumney <jasonr@gnu.org>
17508
17509 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
17510 OVERLAPS_P.
17511
17512 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
17513
17514 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
17515 to the left or to the right of the pointer, put it against
17516 the left screen edge.
17517 (x_frame_parms): Add missing braces around initializer.
17518
17519 * w32term.c (x_setup_relief_colors): Don't compute an image's
17520 background color if it doesn't have a Pixmap.
17521 (notice_overwritten_cursor): Don't depend on
17522 output_cursor and updated_area. Compare pixel coordinates with
17523 window's cursor pixel coordinates.
17524 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
17525 Call notice_overwritten_cursor with new arg list.
17526 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
17527 unconditionally.
17528 (x_draw_image_relief): Use predefined macro instead of
17529 constant when the value of `tool_bar_button_relief' is negative.
17530
17531 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
17532
17533 2002-01-04 Richard M. Stallman <rms@gnu.org>
17534
17535 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
17536
17537 2002-01-03 Richard M. Stallman <rms@gnu.org>
17538
17539 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
17540 (Fkey_binding): Try the `keymap' property map first.
17541 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
17542 minor mode bindings.
17543
17544 2002-01-03 Kim F. Storm <storm@cua.dk>
17545
17546 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
17547
17548 2002-01-02 Richard M. Stallman <rms@gnu.org>
17549
17550 * keyboard.c (read_key_sequence): Handle the keymap property
17551 before minor mode maps.
17552
17553 * editfns.c (Fformat): Update thissize from field_width
17554 based on the actual width, in the string case.
17555
17556 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17557
17558 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
17559 when used as truth value to prevent gcc warnings.
17560
17561 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
17562 * w32proc.c: Include <config.h>.
17563
17564 2002-01-01 Andreas Schwab <schwab@suse.de>
17565
17566 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
17567 not EMACS_INT, to make them compatible with DEFVAR_INT.
17568 * lisp.h (max_specpdl_size): Adjust declaration.
17569
17570 2002-01-01 Richard M. Stallman <rms@gnu.org>
17571
17572 * print.c (print_object): Test print_escape_nonascii only for
17573 unibyte strings.
17574 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
17575 when outputting to a multibyte buffer.
17576
17577 2001-12-29 Richard M. Stallman <rms@gnu.org>
17578
17579 * print.c (print_object): In multibyte string, use hex escapes.
17580 Use octal only for unibyte strings.
17581 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
17582
17583 * lread.c (read_escape): New arg BYTEREP for reporting whether
17584 escape forces unibyte or multibyte.
17585 (read1): When reading a string, take note of that info.
17586
17587 2001-12-29 Ken Raeburn <raeburn@gnu.org>
17588
17589 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
17590 comparison to test lisp value returned by Fget.
17591
17592 2001-12-29 Richard M. Stallman <rms@gnu.org>
17593
17594 * lisp.h (max_specpdl_size): Add declaration.
17595
17596 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
17597
17598 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
17599 Handle modifier bits. Correct typo in error message.
17600
17601 2001-12-28 Richard M. Stallman <rms@gnu.org>
17602
17603 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
17604 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
17605 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17606 Update calls to Fdefine_abbrev.
17607 (write_abbrev): Update for changed data format.
17608 Don't list "system" abbrevs.
17609 (Fexpand_abbrev): Update use count with new data format.
17610 (describe_abbrev): Update for changed data format.
17611 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
17612
17613 * config.in (HAVE_MBSINIT): Add #undef.
17614
17615 * strftime.c (mbsinit): Define as no-op if not available.
17616
17617 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
17618 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
17619
17620 * keymap.c (Flookup_key): Error message if key has wrong data type.
17621 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
17622 (exclude_key): New variable.
17623
17624 2001-12-28 Gerd Moellmann <gerd@gnu.org>
17625
17626 * xterm.c (x_setup_relief_colors): Don't compute an image's
17627 background color if it doesn't have a Pixmap.
17628
17629 * xterm.c (notice_overwritten_cursor): Don't depend on
17630 output_cursor and updated_area. Compare pixel coordinates with
17631 window's cursor pixel coordinates.
17632 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
17633 Call notice_overwritten_cursor with new arg list.
17634 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
17635 unconditionally.
17636
17637 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
17638 height of the cursor line to the amount to scroll.
17639
17640 2001-12-27 Richard M. Stallman <rms@gnu.org>
17641
17642 * intervals.c (set_point_both): The position after an invisible,
17643 intangible character is not an acceptable stopping point.
17644
17645 2001-12-27 Ken Raeburn <raeburn@gnu.org>
17646
17647 * window.c (enlarge_window): In new preserve_before code, convert
17648 CURBEG from lisp object to integer before doing arithmetic.
17649
17650 2001-12-27 Richard M. Stallman <rms@gnu.org>
17651
17652 * bytecode.c (Fbyte_code): Undo previous change.
17653
17654 2001-12-26 Kim F. Storm <storm@cua.dk>
17655
17656 * keyboard.c (record_char): Ignore duplicate help-echo events only
17657 separated by mouse-movement. When tracking mouse, only record
17658 first and last mouse-movement event in same window.
17659 Don't record mouse-movement events in keyboard macros.
17660
17661 2001-12-25 Richard M. Stallman <rms@gnu.org>
17662
17663 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
17664 (Fenlarge_window): New arg PRESERVE_BEFORE.
17665
17666 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
17667 instead of Fstring_as_unibyte.
17668
17669 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17670
17671 The following changes remove mocklisp support:
17672
17673 * mocklisp.h, mocklisp.c: Files removed.
17674
17675 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
17676 `Qmocklisp' and `Qmocklisp_arguments'.
17677 Remove prototype of syms_of_mocklisp.
17678
17679 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
17680
17681 * callint.c: Do not include mocklisp.h.
17682 (Fcall_interactively): Do not test for mocklisp case.
17683
17684 * eval.c: Remove variables `Qmocklisp_arguments',
17685 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
17686 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
17687 Do not test for mocklisp case.
17688 (Fwhile): Remove unused variable `tem'.
17689 (syms_of_eval): Remove variable `moclisp-arguments'.
17690
17691 * data.c (wrong_type_argument): Remove mocklisp case.
17692
17693 * doc.c (Fdocumentation): Remove mocklisp case.
17694
17695 * emacs.c (main): Do not call syms_of_mocklisp.
17696
17697 2001-12-21 Richard M. Stallman <rms@gnu.org>
17698
17699 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
17700 to the left or to the right of the pointer, put it against
17701 the left screen edge.
17702
17703 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
17704
17705 * Makefile.in (distclean): Remove .gdbinit if we are building
17706 outside the source tree.
17707
17708 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
17709
17710 * w32.c (emacs_root_dir): New function.
17711
17712 * msdos.c (emacs_root_dir): New function.
17713
17714 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
17715 of the current drive as the fallback for default_directory.
17716
17717 * dired.c (file_name_completion): Run the elements of
17718 completion-ignored-extensions through ENCODE_FILE.
17719
17720 * lisp.h (scmp): Remove prototype, since it's now a static
17721 function private to dired.c.
17722
17723 2001-12-18 Richard M. Stallman <rms@gnu.org>
17724
17725 * dired.c (scmp): Function moved from minibuf.c.
17726 Delete multibyte handling--used only on encoded strings.
17727
17728 * minibuf.c (scmp): Function moved to dired.c.
17729
17730 * fns.c (merge): Add QUIT call.
17731
17732 2001-12-18 Dave Love <fx@gnu.org>
17733
17734 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
17735 language/georgian.el.
17736
17737 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
17738
17739 * Makefile.in (lisp, shortlisp): Synchronize with changes to
17740 lisp/Makefile.in:DONTCOMPILE.
17741
17742 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17743
17744 * xdisp.c (window_box_height): Do not return negative values.
17745 From Gerd Moellmann <gerd@gnu.org>.
17746
17747 * keyboard.c (head_table): Add missing braces around initializer.
17748
17749 * term.c (keys): Likewise.
17750
17751 * xfns.c (x_frame_parms, visual_classes): Likewise.
17752
17753 2001-12-17 Sam Steingold <sds@gnu.org>
17754
17755 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
17756 patch (COMPOSING_P, not COMPOSING).
17757
17758 2001-12-17 Richard M. Stallman <rms@gnu.org>
17759
17760 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
17761
17762 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
17763 before calling decode_coding.
17764
17765 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
17766
17767 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
17768 instead of only for COMPOSITION_DISABLED.
17769
17770 2001-12-16 Richard M. Stallman <rms@gnu.org>
17771
17772 * alloc.c (pure_alloc): After overflow, allocate just a small block.
17773
17774 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
17775
17776 * buffer.h (struct buffer): New field `display_error_modiff'.
17777 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
17778
17779 * window.c (Frecenter): Clear display_error_modiff field.
17780
17781 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
17782 Call redisplay_window, but not if display_error_modiff field says no.
17783 (redisplay_window_error): New function.
17784 (displayed_buffer): New variable.
17785 (redisplay_internal, redisplay_windows): Call the new functions
17786 instead of redisplay_window directly.
17787
17788 2001-12-15 Richard M. Stallman <rms@gnu.org>
17789
17790 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
17791
17792 2001-12-14 Andrew Innes <andrewi@gnu.org>
17793
17794 * makefile.w32-in (EMACSLOADPATH): Define.
17795 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
17796 (bootstrap-temacs): Remove dependency on bootstrap-clean.
17797
17798 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
17799
17800 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
17801 parameter have a numeric value all the time.
17802
17803 * w32fns.c (x_report_frame_params): Likewise.
17804
17805 2001-12-12 Richard M. Stallman <rms@gnu.org>
17806
17807 * fileio.c (Fwrite_region): Doc fix.
17808
17809 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
17810 (redisplay_internal): Call clear_image_cache only for window terminals.
17811
17812 2001-12-12 Gerd Moellmann <gerd@gnu.org>
17813
17814 * xdisp.c (move_it_vertically_backward): Change heuristic
17815 for the case that we didn't move far enough initially.
17816
17817 * window.c (Frecenter): Simplify computation in the case of window
17818 system frames and ARG < 0; use window_box_height.
17819
17820 2001-12-11 Richard M. Stallman <rms@gnu.org>
17821
17822 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
17823 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
17824
17825 2001-12-11 Andrew Innes <andrewi@gnu.org>
17826
17827 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
17828 arg is negative.
17829
17830 2001-12-11 Richard M. Stallman <rms@gnu.org>
17831
17832 * m/hp800.h: Split the __hpux conditional into the parts
17833 that are right for GNU/Linux too and the parts that are not.
17834 Use the former if GNU_LINUX.
17835 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
17836
17837 * s/gnu-linux.h (GNU_LINUX): Defined.
17838
17839 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17840
17841 * macros.c, msdos.c, w16select.c: Change doc-string comments to
17842 `new style' [w/`doc:' keyword].
17843
17844 2001-12-10 Jason Rumney <jasonr@gnu.org>
17845
17846 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
17847 before using.
17848
17849 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17850
17851 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
17852 keyword].
17853
17854 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
17855
17856 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
17857
17858 * s/hpux10.h (srand48): Don't undefine.
17859
17860 2001-12-09 Jason Rumney <jasonr@gnu.org>
17861
17862 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
17863 Add comment to explain where the struct came from.
17864 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
17865 (add_menu_item): Process pop-up menus first to avoid memory leak.
17866 (add_menu_item, w32_menu_display_help): Use `help' field as
17867 Lisp_Object.
17868 (w32_free_submenu_strings): Only free owner-drawn strings.
17869
17870 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17871
17872 * COPYING: Moved back.
17873
17874 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
17875 Add parentheses around && within ||.
17876
17877 * indent.c (compute_motion): Likewise.
17878
17879 * intervals.c (merge_properties_sticky): Likewise.
17880
17881 * coding.c (setup_coding_system, shrink_encoding_region)
17882 (Fdecode_sjis_char): Likewise.
17883
17884 2001-12-07 Andreas Schwab <schwab@suse.de>
17885
17886 * xdisp.c (display_mode_element): Don't read past end of string if
17887 it ends with '%'.
17888
17889 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
17890 can hold.
17891
17892 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
17893 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
17894 type changed to Lisp_Object.
17895 (syms_of_data): DEFVAR_LISP them.
17896
17897 2001-12-07 Richard M. Stallman <rms@gnu.org>
17898
17899 * callproc.c (init_callproc): Set Vdata_directory based on the source
17900 location whenever Emacs was run uninstalled.
17901
17902 2001-12-06 Paul Eggert <eggert@twinsun.com>
17903
17904 * config.in (HAVE_WORKING_VFORK): New #undefs.
17905 * process.c (create_process):
17906 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
17907 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
17908 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
17909 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
17910 * m/intel386.h (HAVE_VFORK): Likewise.
17911 * m/mips-siemens.h (HAVE_VFORK): Likewise.
17912 * m/mips.h (HAVE_VFORK): Likewise.
17913 * s/freebsd.h (vfork): Remove #define.
17914 * s/lynxos.h (HAVE_VFORK): Remove #undef.
17915 * s/usg5-4-2.h: Fix comment about vfork.
17916
17917 2001-12-06 Richard M. Stallman <rms@gnu.org>
17918
17919 * s/hpux10.h (random): Add undef.
17920 (HAVE_RANDOM): Define it just once.
17921
17922 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
17923
17924 * eval.c: Undo last change: the standard syntax is not wanted.
17925
17926 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
17927
17928 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
17929 scroll bars of the frame before deleting the frame itself. If the
17930 frame has a widget, delete the frame with XtDestroyWidget, and do
17931 not call XDestroyWindow before that.
17932
17933 2001-12-06 Kim F. Storm <storm@cua.dk>
17934
17935 * xfns.c (x_report_frame_params): Return actual fringe widths.
17936
17937 * w32fns.c (x_report_frame_params): Return actual fringe widths.
17938
17939 2001-12-05 Andrew Innes <andrewi@gnu.org>
17940
17941 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
17942 excessively large.
17943
17944 * insdel.c (make_gap_larger): New function.
17945 (make_gap_smaller): New function.
17946 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
17947 Call make_gap_smaller if arg is negative.
17948
17949 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
17950
17951 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
17952 Pass a dummy argument when calling interrupt_signal.
17953 (parse_menu_item): Mark disabled items before checking for empty def.
17954 (read_char_minibuf_menu_prompt): Make safety more visible.
17955 (read_key_sequence): Add a `first_unbound' variable.
17956 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
17957 unbound prefix as soon as we can detect it.
17958
17959 * doc.c (Fsnarf_documentation): Add prototype.
17960 (get_doc_string): Handle negative arguments.
17961 (Fdocumentation): Use AREF and ASIZE.
17962 Move the calls to get_doc_string to a single place.
17963 Don't confuse an interactive-spec for a docstring reference.
17964 (Fdocumentation_property): Take advantage of the fact that
17965 get_doc_string now ignores the sign of the docstring position.
17966
17967 * eval.c: Use standard syntax for usage in docstrings.
17968
17969 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17970
17971 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
17972
17973 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17974
17975 * xterm.c (x_draw_image_relief): Use predefined macro instead of
17976 constant when the value of `tool_bar_button_relief' is negative.
17977
17978 2001-12-02 Richard M. Stallman <rms@gnu.org>
17979
17980 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
17981 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
17982
17983 * fileio.c (read_non_regular): Delete Fsignal call.
17984
17985 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
17986
17987 * lisp.h (run_hook_list_with_args): Undo last change.
17988
17989 2001-12-01 Gerd Moellmann <gerd@gnu.org>
17990
17991 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
17992
17993 2001-12-01 Jason Rumney <jasonr@gnu.org>
17994
17995 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
17996
17997 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
17998 [!WM_MOUSELEAVE]: Define.
17999
18000 * w32menu.c (current_popup_menu, get_menu_item_info):
18001 (set_menu_item_info): New vars.
18002 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
18003 (w32_menu_show): Set current_popup_menu.
18004 (add_menu_item): Allocate new strings for owner-drawn menu items
18005 and help strings.
18006 Use owner-draw for disabled menu items again.
18007 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
18008 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
18009
18010 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
18011 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
18012 <WM_EXITMENULOOP>: Free menu strings.
18013 <WM_MOUSELEAVE>: Stop tracking mouse.
18014 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
18015
18016 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
18017 and mouse face.
18018
18019 2001-12-01 Kim F. Storm <storm@cua.dk>
18020
18021 The following changes add left-fringe and right-fringe
18022 frame parameters to adjust fringe widths, or remove one or
18023 both fringes.
18024
18025 * frame.h (struct frame): Remove trunc_area_pixel_width and
18026 trunc_area_cols fields.
18027 (Qleft_fringe, Qright_fringe): Declare.
18028 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
18029
18030 * frame.c (Qleft_fringe, Qright_fringe): New vars.
18031 (syms_of_frame): Initialize them.
18032
18033 * window.c (coordinates_in_window): Handle separate left and right
18034 fringe widths.
18035
18036 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
18037 and fringe_cols fields.
18038 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
18039 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
18040 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
18041 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
18042 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
18043 (x_compute_fringe_widths): Add prototype.
18044
18045 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
18046 fill fringe evenly with small dashes.
18047 (x_draw_fringe_bitmap): Clear background if necessary. Align and
18048 clip the new ZV bitmap to avoid jitter between rows.
18049 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
18050 background. Don't draw fringe bitmaps if fringe width is zero.
18051 (x_compute_fringe_widths): New function.
18052 (x_new_font, x_set_window_size_1): Use it.
18053
18054 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
18055 (x_set_frame_parameters): Process `font' parameter before other
18056 parameters as fringe widths depend on it.
18057 (x_set_fringe_width): New function.
18058 (x_figure_window_size): Use x_compute_fringe_widths.
18059 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
18060 parameters.
18061
18062 * widget.c (set_frame_size): Use x_compute_fringe_widths.
18063 (EmacsFrameSetCharSize): Ditto.
18064
18065 * w32term.h: Merged changes from xterm.h.
18066 * w32term.c: Merged changes from xterm.c.
18067 * w32fns.c: Merged changes from xfns.c.
18068
18069 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18070
18071 * COPYING: Removed.
18072
18073 2001-11-29 Dave Love <fx@gnu.org>
18074
18075 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
18076 extra extra slot.
18077 (detect_coding_mask): Fix call of detect_coding_iso2022.
18078
18079 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18080
18081 * fileio.c (file-name-coding-system)
18082 (default-file-name-coding-system): Doc fix (links to referenced
18083 variables added).
18084
18085 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
18086
18087 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
18088 Add dummy uses of gcproN variables.
18089
18090 * category.c (describe_category, describe_category_1)
18091 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
18092 (syms_of_category): Don't defsubr Sdescribe_categories.
18093
18094 2001-11-28 Richard M. Stallman <rms@gnu.org>
18095
18096 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
18097
18098 * Makefile.in (lispdir): New variable, referring to build dir.
18099 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
18100
18101 2001-11-28 Andrew Innes <andrewi@gnu.org>
18102
18103 * w32menu.c (w32_menu_display_help): Actually add the new argument
18104 OWNER.
18105
18106 2001-11-28 Jason Rumney <jasonr@gnu.org>
18107
18108 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
18109 menu items. From David Ponce <dponce@wanadoo.fr>.
18110 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
18111 conditionally.
18112 (w32_menu_display_help): New argument OWNER. Rewritten to store a
18113 help event in the owner frame's keyboard buffer.
18114
18115 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
18116 (Fx_show_tip): Don't subtract last width from row width.
18117
18118 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
18119 (w32_read_socket): Use EQ to compare frames.
18120
18121 2001-11-28 Gerd Moellmann <gerd@gnu.org>
18122
18123 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
18124 OVERLAPS_P.
18125
18126 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18127
18128 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
18129 `gcpro3' and `gcpro4'.
18130
18131 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
18132
18133 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
18134
18135 * ccl.c: Use AREF and ASIZE.
18136
18137 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
18138
18139 * lisp.h (run_hook_list_with_args): Remove.
18140 (LIST_END_P): Fix call to wrong_type_argument.
18141 (make_fixnum_or_float): Use EMACS_INT rather than int.
18142
18143 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
18144
18145 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
18146 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
18147
18148 * eval.c: Use AREF and ASIZE.
18149 (Ffetch_bytecode): Add the file name to the error message.
18150
18151 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
18152 which match the end of the file-name.
18153 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
18154 is not a valid env var, but leave it as is instead.
18155
18156 * keymap.c (access_keymap): Handle t bindings like nil bindings.
18157 Make nil bindings in char-tables transparent.
18158 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
18159
18160 2001-11-26 Richard M. Stallman <rms@gnu.org>
18161
18162 * textprop.c (set_text_properties_1): Allow START, END in either order.
18163 Do nothing if range is empty.
18164
18165 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
18166
18167 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
18168 (clean): Not here.
18169
18170 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
18171
18172 * textprop.c (set_text_properties_1): Clearly mark that the
18173 interval should not be empty.
18174
18175 * intervals.c (graft_intervals_into_buffer):
18176 Don't call set_text_properties_1 on an empty interval.
18177
18178 2001-11-25 Richard M. Stallman <rms@gnu.org>
18179
18180 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
18181
18182 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
18183 don't lose the data in it.
18184
18185 2001-11-25 Juanma Barranquero <lektu@terra.es>
18186
18187 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
18188
18189 * buffer.c (Fkill_buffer): Likewise.
18190
18191 * print.c (temp_output_buffer_setup): Likewise.
18192
18193 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
18194
18195 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
18196
18197 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
18198
18199 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
18200 Niemitalo <kon@iki.fi>.
18201
18202 2001-11-25 Jason Rumney <jasonr@gnu.org>
18203
18204 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
18205
18206 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
18207 (Fx_show_tip): Block input during frame creation.
18208 (Fx_show_tip, Fx_hide_tip): Enable.
18209
18210 2001-11-24 Richard M. Stallman <rms@gnu.org>
18211
18212 * lread.c (Fload): Detect recursive load error for more than 3
18213 nestings of the same file.
18214 (Vrecursive_load_depth_limit): Variable deleted.
18215 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
18216
18217 2001-11-24 Jason Rumney <jasonr@gnu.org>
18218
18219 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
18220 mouse position if either left or top is not specified.
18221
18222 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
18223 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
18224 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
18225 (my_create_tip_window): Assign tip_window.
18226 (x_create_tip_frame): Use same defaults as X.
18227 (compute_tip_xy): Remove unused variable. Use full screen width.
18228 (Fx_show_tip): Do not double height. Call ShowWindow directly.
18229
18230 * w32term.c (x_after_update_window_line): Doc fix.
18231 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
18232 frames.
18233 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
18234
18235 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
18236 for all Windowed systems.
18237
18238 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
18239
18240 * msdos.c (IT_clear_screen): If the frame's faces are not yet
18241 realized, use the initial screen colors to clear the screen.
18242
18243 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18244
18245 * textprop.c (Fset_text_properties): Remove unused variables
18246 `unchanged', `prev_changed', `s' and `len'.
18247
18248 * search.c (Freplace_match): Remove unused variable `inslen'.
18249
18250 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
18251
18252 2001-11-22 Jason Rumney <jasonr@gnu.org>
18253
18254 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
18255 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
18256 (my_create_tip_window): New function.
18257 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
18258 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
18259
18260 2001-11-20 Jason Rumney <jasonr@gnu.org>
18261
18262 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
18263 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
18264
18265 * w32fns.c (Vw32_system_coding_system): Remove.
18266 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
18267
18268 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
18269
18270 * fileio.c (Fwrite_region): Move choose_write_coding_system to
18271 after build_annotations.
18272
18273 * syntax.c (describe_syntax): Add dummy arg.
18274 (describe_syntax_1): Update call to describe_vector.
18275
18276 * category.c (describe_category): Add dummy arg.
18277 (describe_category_1): Update call to describe_vector.
18278
18279 * keymap.c (Fdescribe_vector): Add `describer' parameter.
18280 (describe_command, describe_translation): Add dummy second param.
18281 (describe_map): Call elt_describer with two arguments.
18282 (describe_vector_princ): Add `fun' parameter.
18283 Call it instead of the hardcoded `princ'.
18284 (describe_vector): Add arg `args'.
18285 Pass it as a new second argument to elt_describer.
18286
18287 * keymap.h (describe_vector): Update prototype.
18288
18289 * frame.c: Don't include keymap.h any more.
18290 (keys_of_frame): Remove.
18291
18292 * lisp.h (keys_of_frame): Remove declaration.
18293
18294 * emacs.c (main): Don't call `keys_of_frame' any more.
18295
18296 2001-11-14 Andreas Schwab <schwab@suse.de>
18297
18298 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
18299 if defined, 0 otherwise.
18300 (MAP_FAILED): Define if not defined and use it to test mmap failure.
18301 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
18302
18303 2001-11-19 Richard M. Stallman <rms@gnu.org>
18304
18305 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
18306
18307 2001-11-18 Jason Rumney <jasonr@gnu.org>
18308
18309 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
18310 (x_draw_bar_cursor): If the background color of the glyph under
18311 the cursor equals the frame's cursor color, use the glyph's
18312 foreground color for drawing the bar cursor.
18313 (x_after_update_window_line): Clear internal border in different
18314 circumstances.
18315 (w32_set_vertical_scroll_bar): Check for width and height > 0.
18316 (w32_draw_relief_rect): Correct relief by 1 pixel.
18317 (x_set_glyph_string_background_width):
18318 Set extends_to_end_of_line_p if the row's fill_line_p is set and
18319 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
18320 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
18321 if cursor_in_non_selected_windows is false.
18322 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
18323 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
18324 Notice if cursor gets overwritten.
18325 (notice_overwritten_cursor): Renamed from
18326 note_overwritten_text_cursor. Rewritten to take glyph widths
18327 into account, and to take X positions as parameters.
18328 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18329 around call to x_draw_glyphs.
18330 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
18331 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
18332 color to use for image glyph reliefs.
18333 (x_draw_image_relief): Accept zero tool_bar_button_relief.
18334 (glyph_rect): Remove unused variable `area'.
18335
18336 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
18337 some items.
18338 (x_set_internal_border_width): Set frame garbaged when window
18339 doesn't exist yet.
18340 (Fx_create_frame): Accept zero tool_bar_button_relief.
18341 (x_clear_image_1, four_corners_best, image_background)
18342 (image_background_transparent): New functions.
18343 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
18344 (gs_format): Add `:background' entry.
18345 (lookup_image): Set IMG's background color if specified.
18346 (pbm_load, xbm_load_image, png_load): Set IMG's background field
18347 when appropriate.
18348 (x_clear_image_1): Reset `background_valid' and
18349 `background_transparent_valid' fields.
18350 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
18351 calculating it here. Set IMG's background_transparent field.
18352 (enum xpm_keyword_index): Add XPM_BACKGROUND.
18353 (enum png_keyword_index): Add PNG_BACKGROUND.
18354 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
18355 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
18356 (enum gif_keyword_index): Add GIF_BACKGROUND.
18357 (enum gs_keyword_index): Add GS_BACKGROUND.
18358 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
18359 Pre-calculate image background color where necessary.
18360 (x_create_x_image_and_pixmap, xbm_load, gs_load):
18361 Use display info's n_cbits entry for screen depth.
18362 (Fx_show_tip): Remove unused variables `buffer', `top',
18363 `left', `max_width' and `max_height'.
18364
18365 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
18366
18367 2001-11-18 Gerd Moellmann <gerd@gnu.org>
18368
18369 * puresize.h (BASE_PURESIZE): Increase to 750000.
18370
18371 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18372
18373 * frame.c (Fframe_live_p): Doc fix.
18374
18375 2001-11-18 Richard M. Stallman <rms@gnu.org>
18376
18377 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
18378 (message_dolog_marker3): New static variables hold three markers.
18379 (syms_of_xdisp): Initialize and staticpro them.
18380 (message_dolog): Use message_dolog_marker1..3 instead of
18381 allocating markers each time. Unchain them when done.
18382
18383 2001-11-17 Richard M. Stallman <rms@gnu.org>
18384
18385 * doc.c (Fsnarf_documentation): Doc fix.
18386
18387 2001-11-17 Andreas Schwab <schwab@suse.de>
18388
18389 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
18390
18391 2001-11-17 Richard M. Stallman <rms@gnu.org>
18392
18393 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
18394
18395 2001-11-17 Jason Rumney <jasonr@gnu.org>
18396
18397 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
18398
18399 2001-11-17 Gerd Moellmann <gerd@gnu.org>
18400
18401 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
18402 with invalid position.
18403
18404 2001-11-16 Richard M. Stallman <rms@gnu.org>
18405
18406 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
18407
18408 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
18409 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
18410 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
18411
18412 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
18413
18414 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
18415
18416 * fileio.c (build_annotations): Split off the tail.
18417 (build_annotations_2): New fun. Extracted from build_annotations.
18418 (Fwrite_region): Split the call to build_annotations into two
18419 calls to build_annotations and build_annotations_2.
18420
18421 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18422
18423 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
18424 clear_waiting_for_input with argument.
18425
18426 * xterm.h (x_update_cursor): Remove duplicated prototype.
18427
18428 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
18429
18430 * xterm.c (waiting_for_input): Remove unnecessary declaration.
18431
18432 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
18433
18434 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
18435
18436 * fileio.c (choose_write_coding_system): New fun, extracted
18437 from Fwrite_region.
18438 (Fwrite_region): Use it.
18439
18440 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
18441 (funcall_lambda, run_hook_with_args): Make static and add prototype.
18442 (ml_apply, find_handler_clause): Add prototype.
18443
18444 2001-11-16 Eli Zaretskii <eliz@gnu.org>
18445
18446 * config.in: Add #undef HAVE_COFF_H.
18447
18448 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
18449 Required for ISC 4.1.
18450
18451 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
18452
18453 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
18454 Andrew Wiseman <a.wiseman@btclick.com>.
18455
18456 2001-11-16 Kim F. Storm <storm@cua.dk>
18457
18458 The following changes are made to clean up the various internal
18459 references to the fringes to actually use the term `fringe' for
18460 them. Previously, they were called `flags areas', `bitmap areas',
18461 `left/right side of windows', or implicitly as `flags' or
18462 `bitmaps':
18463
18464 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
18465 Comments fixed. Use renamed symbols.
18466
18467 * dispnew.c: Comment fix. Use renamed symbols.
18468
18469 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
18470 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
18471 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
18472
18473 * msdos.c: Comment fix.
18474
18475 * w32fns.c: Use renamed symbols.
18476
18477 * w32term.c: Comment fixes. Use renamed symbols.
18478 (fringe_bitmap_type): Renamed from bitmap_type.
18479 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
18480 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
18481 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
18482
18483 * w32term.h: Comment fixes. Use renamed symbols.
18484 (fringes_extra): Renamed from flags_areas_extra.
18485 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
18486 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
18487 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
18488 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
18489 (FRAME_X_LEFT_FRINGE_WIDTH):
18490 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
18491 (FRAME_X_RIGHT_FRINGE_WIDTH):
18492 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
18493
18494 * widget.c: Use renamed symbols.
18495
18496 * window.c: Comment fixes. Use renamed symbols.
18497 (coordinates-in-window-p): Doc fix.
18498
18499 * xdisp.c: Comment fixes. Use renamed symbols.
18500
18501 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
18502
18503 * xfns.c: Use renamed symbols.
18504
18505 * xterm.c: Comment fixes. Use renamed symbols.
18506 (fringe_bitmap_type): Renamed from bitmap_type.
18507 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
18508 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
18509 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
18510
18511 * xterm.h: Comment fixes. Use renamed symbols.
18512 (fringes_extra): Renamed from flags_areas_extra.
18513 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
18514 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
18515 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
18516 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
18517 (FRAME_X_LEFT_FRINGE_WIDTH):
18518 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
18519 (FRAME_X_RIGHT_FRINGE_WIDTH):
18520 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
18521
18522 2001-11-15 Jason Rumney <jasonr@gnu.org>
18523
18524 * w32menu.c (add-menu-item): Make help_echo and radio buttons
18525 work for most menu items. From David Ponce
18526 <david.ponce@wanadoo.fr>.
18527
18528 2001-11-15 Gerd Moellmann <gerd@gnu.org>
18529
18530 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
18531 Some x_set_* function expect to be called even if old and new
18532 value are equal.
18533
18534 * xdisp.c (build_desired_tool_bar_string): Accept zero
18535 tool_bar_button_relief.
18536
18537 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
18538
18539 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
18540
18541 * xterm.c (x_draw_bar_cursor): If the background color of the
18542 glyph under the cursor equals the frame's cursor color, use
18543 the glyph's foreground color for drawing the bar cursor.
18544
18545 * dispnew.c (direct_output_forward_char): Fix character/byte
18546 position comparison.
18547
18548 2001-11-15 Miles Bader <miles@gnu.org>
18549
18550 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
18551 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
18552 Update arguments to find_field.
18553 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
18554 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
18555 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
18556 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
18557
18558 2001-11-14 Richard M. Stallman <rms@gnu.org>
18559
18560 * editfns.c (Fpropertize): Allow call with 1 arg.
18561
18562 * dispextern.h (image_background, image_background_transparent):
18563 Conditionalize on HAVE_X_WINDOWS.
18564
18565 2001-11-13 Richard M. Stallman <rms@gnu.org>
18566
18567 * print.c (Fprin1_to_string): Doc fix.
18568
18569 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
18570
18571 * floatfns.c (Fceiling, Ffloor): Doc fixes.
18572
18573 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
18574
18575 * fileio.c (Ffile_accessible_directory_p): Doc fix.
18576
18577 * eval.c (syms_of_eval): Doc fix.
18578
18579 * coding.c (syms_of_coding): Doc fix.
18580
18581 * doc.c (Fsnarf_documentation): Doc fix.
18582
18583 * dispnew.c (syms_of_display): Doc fix.
18584
18585 * category.c (Fget_unused_category): Doc fix.
18586
18587 * buffer.c (syms_of_buffer): Doc fixes.
18588
18589 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
18590
18591 * print.c (prin1, print): Doc fix.
18592
18593 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18594
18595 * fontset.h: Remove declarations of variables
18596 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
18597
18598 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
18599 `Vclip_large_size_font'.
18600
18601 2001-11-13 Jason Rumney <jasonr@gnu.org>
18602
18603 * w32fns.c: Doc fix.
18604
18605 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18606
18607 * xfaces.c (Fface_attributes_as_vector): Doc fix.
18608
18609 * fns.c: Doc fix.
18610
18611 * emacs.c: Doc fix.
18612
18613 * coding.c: Doc fix.
18614
18615 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
18616 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
18617 `new style' [w/`doc:' keyword].
18618
18619 2001-11-12 Richard M. Stallman <rms@gnu.org>
18620
18621 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
18622 LeaveNotify events. Only FocusIn and FocusOut do that now.
18623 (x_display_and_set_cursor): Do display hollow cursors in active
18624 minibuffer windows when they are not selected.
18625
18626 2001-11-12 Jason Rumney <jasonr@gnu.org>
18627
18628 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
18629 * w32term.c: Change doc-string comments to `new style'
18630 [w/`doc:' keyword]. Doc fixes.
18631
18632 * w32fns.c: Don't define max.
18633 (Fx_open_connection): Only execute once.
18634
18635 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18636
18637 * ccl.c: Change macros to use do-while block instead of if-else.
18638 Use braces to follow GNU Coding Standards.
18639
18640 2001-11-11 Richard M. Stallman <rms@gnu.org>
18641
18642 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
18643
18644 * lread.c (read_escape): Use end_of_file_error for reporting eof.
18645
18646 * insdel.c (replace_range): Use adjust_markers_for_replace
18647 instead of adjust_markers_for_delete and adjust_markers_for_insert.
18648
18649 * intervals.h (set_text_properties, set_text_properties_1): Declare.
18650
18651 * textprop.c (set_text_properties_1): New subroutine
18652 broken out of set_text_properties.
18653 (set_text_properties): Use set_text_properties_1.
18654
18655 * intervals.c (graft_intervals_into_buffer):
18656 Use set_text_properties_1 to clear out properties.
18657
18658 * search.c (Freplace_match): Use replace_range to insert
18659 and delete. Don't request property inheritance from
18660 surrounding text.
18661
18662 2001-11-10 Jason Rumney <jasonr@gnu.org>
18663
18664 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
18665 vertical fonts. Allow them if face name is explicitly specified.
18666 Do not give up if we find a font that cannot be converted to an xlfd.
18667
18668 2001-11-10 Gerd Moellmann <gerd@gnu.org>
18669
18670 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
18671 instead of malloc/free.
18672
18673 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18674
18675 * xfaces.c (merge_face_vectors): Use braces to follow GNU
18676 Coding Standards.
18677 (Finternal_set_lisp_face_attribute): Likewise.
18678
18679 * buffer.c (Fbury_buffer): Likewise.
18680
18681 * indent.c (current_column_1): Remove unused variable `prev_col'.
18682
18683 * coding.c (encode_coding): Use precomputed value of `src'.
18684 (encode_coding): Remove unused variable `src_end'.
18685 (code_convert_region): Remove unused variables `count'.
18686
18687 2001-11-07 Jason Rumney <jasonr@gnu.org>
18688
18689 * w32term.c (x_display_and_set_cursor): Do not move system caret
18690 if cursor_glyph is NULL.
18691
18692 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18693
18694 * keymap.c (access_keymap): Fix compilation error.
18695
18696 2001-11-07 Miles Bader <miles@gnu.org>
18697
18698 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
18699
18700 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18701
18702 * intervals.c (graft_intervals_into_buffer):
18703 Remove #ifdef'd-out code.
18704 (graft_intervals_into_buffer): Remove unused variable `middle'.
18705
18706 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
18707 code (eval-current-buffer).
18708 Change doc-string comments to `new style' [w/`doc:' keyword].
18709
18710 2001-11-06 Richard M. Stallman <rms@gnu.org>
18711
18712 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
18713
18714 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
18715
18716 * lread.c (read1): Fix behavior with nested backquoting.
18717
18718 * keyboard.c (make_lispy_event): Check integerness and fix
18719 Lisp_Object/int mixup.
18720
18721 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18722
18723 * fns.c (copy_hash_table): Remove unused variable `v'.
18724
18725 * fontset.c (fontset_font_pattern): Remove unused variable
18726 `family_registry'.
18727
18728 * indent.c (current_column_1): Remove unused variable `prev_col'.
18729
18730 2001-11-05 Richard M. Stallman <rms@gnu.org>
18731
18732 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
18733
18734 * buffer.c (Fkill_buffer): Don't delete auto save file
18735 if buffer is modified.
18736
18737 2001-11-05 Andrew Innes <andrewi@gnu.org>
18738
18739 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
18740 CHECK_NUMBER_CDR.
18741
18742 2001-11-05 Richard M. Stallman <rms@gnu.org>
18743
18744 * unexelf.c (unexec): Minor changes; clean up comments.
18745
18746 2001-11-05 Sam Steingold <sds@gnu.org>
18747
18748 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
18749
18750 2001-11-05 Andreas Schwab <schwab@suse.de>
18751
18752 * sound.c (sound_perror): Save errno from being clobbered.
18753
18754 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
18755
18756 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
18757 the program image directly.
18758
18759 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18760
18761 * buffer.h (Fbuffer_local_value): Add prototype.
18762
18763 2001-11-04 Richard M. Stallman <rms@gnu.org>
18764
18765 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
18766 and CHECK_BUFFER.
18767
18768 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
18769 (record_char): Likewise.
18770
18771 * keyboard.c (make_lispy_event): Don't insist a drag event must
18772 move to a different buffer position. Instead, check for moving at
18773 least double_click_fuzz.
18774
18775 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
18776
18777 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
18778
18779 * indent.c (current_column_1, Fmove_to_column): Separate the code
18780 for display-table glyphs from the code for buffer text, to fix
18781 bugs in the former.
18782
18783 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
18784
18785 * buffer.c (Fbuffer_local_value): New function.
18786 (syms_of_buffer): Defsubr it.
18787
18788 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
18789 value of `cursor-in-non-selected-windows'.
18790
18791 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
18792 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
18793 (syms_of_xdisp): Initialize it.
18794
18795 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18796
18797 * xfns.c (Fx_create_frame): Doc fix.
18798
18799 * coding.c: Change doc-string comments to `new style' [w/`doc:'
18800 keyword].
18801
18802 * eval.c (top_level_value, top_level_set): Remove commented and
18803 #ifdef'd-out code.
18804 (Fdefvar): Fix usage in doc-string.
18805
18806 2001-11-03 Richard M. Stallman <rms@gnu.org>
18807
18808 * xfns.c: Include unistd.h, if it exists.
18809
18810 * editfns.c: Move the include of ctype.h after unistd.h.
18811
18812 * gmalloc.c: Test BROKEN_PROTOTYPES.
18813
18814 2001-11-03 Ken Raeburn <raeburn@gnu.org>
18815
18816 * lisp.h (CHECK_STRING_CAR): New macro.
18817 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
18818 treating XCAR and XCDR as lvalues.
18819 (openp): Use CHECK_STRING_CAR.
18820 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
18821
18822 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
18823
18824 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
18825 (SIGMASKTYPE): Define.
18826
18827 * syssignal.h (sigunblock): Don't define if already defined.
18828
18829 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18830
18831 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
18832 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
18833 Fix typos in comments.
18834
18835 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
18836 and #ifdef'd-out code.
18837 Fix and reindent comments.
18838
18839 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
18840
18841 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
18842 argument `i' in macros.
18843
18844 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
18845 `i' in macros.
18846
18847 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
18848 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
18849 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
18850 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
18851 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
18852 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
18853 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
18854 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
18855 in macros.
18856
18857 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
18858 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
18859 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
18860 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
18861 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
18862 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
18863 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
18864 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
18865 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
18866 (remove unused second argument).
18867
18868 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
18869
18870 * syntax.c (describe_syntax): New wrapper.
18871 (Finternal_describe_syntax_value): Rename from describe_syntax.
18872 Don't insert space at front and \n at the end.
18873 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
18874
18875 * regex.c (re_wctype): Try to fix some warnings.
18876 (regcomp, regexec): Don't forget the __restrict.
18877
18878 2001-11-02 Richard M. Stallman <rms@gnu.org>
18879
18880 * textprop.c (Fget_char_property): Doc fix.
18881
18882 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18883
18884 * process.c (Fstart_process): Add usage to doc-string.
18885
18886 * data.c (Fsetq_default): Ditto.
18887
18888 * callint.c (Finteractive): Ditto.
18889
18890 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
18891
18892 * macros.c: Don't include keymap.h any more.
18893
18894 2001-11-01 Richard M. Stallman <rms@gnu.org>
18895
18896 * data.c (Fmake_local_variable): Doc fix.
18897
18898 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
18899 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
18900
18901 * keymap.c (Fdescribe_buffer_bindings): Print character property
18902 bindings along with or instead of the buffer local map.
18903 Make the overriding maps override what they should.
18904
18905 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18906
18907 * window.c (grow_mini_window): Fix typo in comment.
18908
18909 2001-11-01 Gerd Moellmann <gerd@gnu.org>
18910
18911 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
18912 (XTset_vertical_scroll_bar): Likewise.
18913
18914 * xfns.c (x_build_heuristic_mask): Use four_corners_best
18915 instead of IMAGE_BACKGROUND.
18916
18917 * xfns.c (four_corners_best): Reindent.
18918
18919 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
18920 Handle :box so that it is possible to specify sexprs.
18921
18922 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
18923
18924 * s/hpux11.h: New file.
18925
18926 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18927
18928 * emacs.c (USAGE1): Show command line option --no-window-system
18929 instead of --no-windows in usage.
18930 (standard_args): Rename --no-windows to --no-window-system.
18931 (bug_reporting_address): Follow Emacs coding conventions.
18932
18933 * eval.c (Fcommandp): Doc fix.
18934 Change doc-string comments to `new style' [w/`doc:' keyword].
18935
18936 * frame.c (Fframe_live_p): Doc fix.
18937
18938 * buffer.c (selective-display-ellipses): Doc fix.
18939
18940 2001-10-31 Gerd Moellmann <gerd@gnu.org>
18941
18942 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
18943
18944 * xfaces.c (realize_x_face): If C is not a single-byte character,
18945 set the face's colors_copied_bitwise_p instead of the defaulted_p
18946 members which have a different meaning.
18947 (free_face_colors): Do nothing for a face whose colors have been
18948 copied bitwise.
18949
18950 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
18951
18952 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18953
18954 * marker.c, mocklisp.c: Change doc-string comments to `new style'
18955 [w/`doc:' keyword].
18956
18957 2001-10-31 Gerd Moellmann <gerd@gnu.org>
18958
18959 * fns.c (require_unwind): Return Lisp_Object.
18960
18961 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18962
18963 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
18964 (last-input-char): Revert doc-string to be the same as the
18965 doc-string of `last-input-event'.
18966
18967 * xdisp.c: Fix typos in comments.
18968
18969 2001-10-31 Gerd Moellmann <gerd@gnu.org>
18970
18971 * window.c (grow_mini_window): Handle case that the root
18972 window is already smaller than the nominal mininum height.
18973
18974 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
18975
18976 * emacs.c (main): Don't call keys_of_macros any more.
18977
18978 * lisp.h (keys_of_macros): Remove.
18979
18980 * macros.c (keys_of_macros): Remove.
18981
18982 * xfaces.c (Fface_attribute_relative_p): Declare args.
18983
18984 2001-10-30 Jason Rumney <jasonr@gnu.org>
18985
18986 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
18987 (enum_font_cb2): Ignore fonts with vertical orientation.
18988
18989 2001-10-30 Richard M. Stallman <rms@gnu.org>
18990
18991 * keyboard.c (Finput_pending_p): Doc fix.
18992
18993 2001-10-30 Gerd Moellmann <gerd@gnu.org>
18994
18995 * xterm.c (x_after_update_window_line): Don't run the code
18996 clearing in borders for rows whose visible height is 0.
18997
18998 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
18999 resized_p flag is set. If not set, use the much less flickering
19000 method previously used.
19001
19002 * dispnew.c (change_frame_size_1): Set frame's resized_p.
19003
19004 * frame.h (struct frame) <resized_p>: New member.
19005
19006 * lread.c (to_multibyte): Ensure read_buffer is at least twice
19007 as large as the number of bytes to convert.
19008
19009 * lread.c (to_multibyte): New function.
19010 (read1): Use it.
19011
19012 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
19013
19014 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
19015
19016 2001-10-30 Gerd Moellmann <gerd@gnu.org>
19017
19018 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
19019 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
19020 if the row's fill_line_p is set and drawing the last glyph with
19021 DRAW_IMAGE_{RAISED,SUNKEN}.
19022
19023 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
19024
19025 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
19026
19027 * xmenu.c: Include coding.h and charset.h.
19028 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
19029 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
19030 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
19031 Explicitly set wv->help. Use `TRUE' rather than `True'.
19032 (menu_help_callback): Use empty_string.
19033
19034 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
19035 (Fx_popup_dialog): Explicitly init f.
19036 (w32_menu_display_help): Use empty_string.
19037
19038 2001-10-29 Richard M. Stallman <rms@gnu.org>
19039
19040 * fns.c (Frequire): Detect recursive try to require the same
19041 feature 3 or more levels deep, and get error.
19042 (require_unwind): New subroutine.
19043 (require_nesting_list): New variable.
19044 (syms_of_fns): Init and staticpro it.
19045
19046 * print.c (print_object): Clarify indication of insertion type.
19047
19048 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
19049
19050 * coding.c (syms_of_coding): Document that locale-coding-system is
19051 used for decoding input on X.
19052
19053 * window.c (Fscroll_left, Fscroll_right): Doc fix.
19054
19055 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19056
19057 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
19058 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
19059
19060 2001-10-29 Gerd Moellmann <gerd@gnu.org>
19061
19062 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
19063 use NO_CURSOR if cursor_in_non_selected_windows is false.
19064
19065 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
19066 the slant attribute if FRAME is t.
19067
19068 * xfns.c (x_set_internal_border_width): Set frame garbaged
19069 when X window doesn't exist yet.
19070
19071 * xterm.c (x_after_update_window_line): Clear internal border
19072 in different circumstances.
19073
19074 * xterm.c (XTread_socket) <KeyPress>: Don't use
19075 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
19076 <handa@etl.go.jp>.
19077
19078 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
19079
19080 * m/ibms390.h: New file. From Adam Thornton
19081 <athornton@sinenomine.net>.
19082
19083 2001-10-28 Gerd Moellmann <gerd@gnu.org>
19084
19085 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
19086
19087 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
19088 a loop counter.
19089
19090 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19091
19092 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
19093
19094 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
19095 keyword].
19096 Fix typos in comments.
19097
19098 * emacs.c (bug_reporting_address): New function.
19099 Use it when displaying usage message.
19100
19101 * minibuf.c (read_minibuf): Remove unused external declaration of
19102 variable `Qread_only'.
19103
19104 * keymap.c (access_keymap): Remove unused variable `charset'.
19105
19106 2001-10-28 Miles Bader <miles@gnu.org>
19107
19108 * xfaces.c (merge_face_heights): Handle TO being relative as well.
19109 Remove #ifdef'd-out code.
19110 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
19111 (syms_of_xfaces): Initialize them.
19112
19113 2001-10-27 Jason Rumney <jasonr@gnu.org>
19114
19115 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
19116 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
19117 position using the system caret.
19118
19119 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
19120 (w32_system_caret_height, w32_system_caret_x)
19121 (w32_system_caret_y): New variables for tracking system caret.
19122 (w32_initialize): Initialize them.
19123 (x_display_and_set_cursor): Make system caret follow the active cursor.
19124
19125 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
19126 New messages types.
19127
19128 * w32term.c (note_mouse_highlight): Clear old help_echo.
19129
19130 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19131
19132 * xterm.c: Fix typo in a comment.
19133
19134 * emacs.c: Fix typos in comments.
19135 Remove unnecessary spaces.
19136 Change doc-string comments to `new style' [w/`doc:' keyword].
19137 (USAGE2): Fix typos in usage string.
19138
19139 * xterm.c: Fix typo in a comment.
19140
19141 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
19142 emacs.c.
19143
19144 2001-10-27 Gerd Moellmann <gerd@gnu.org>
19145
19146 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
19147 instead of 1/2 line_height in the heuristic for skipping
19148 farther backward when target_y was not reached.
19149
19150 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
19151 Display errno only if non-zero.
19152 (sound_warning): New function.
19153 (vox_configure): Don't treat failing to set sample rate as error.
19154 (various places): Improve error messages.
19155
19156 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
19157
19158 * fileio.c (Faccess_file): Run the argument filename through
19159 Fexpand_file_name, before using it.
19160
19161 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
19162 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
19163
19164 2001-10-26 Gerd Moellmann <gerd@gnu.org>
19165
19166 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
19167
19168 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
19169 Fix clearing in the case of scroll bars on the right.
19170
19171 2001-10-26 Juanma Barranquero <lektu@terra.es>
19172
19173 * w32gui.h (XImage): Add a dummy typedef.
19174
19175 2001-10-26 Gerd Moellmann <gerd@gnu.org>
19176
19177 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
19178
19179 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
19180
19181 * frame.c (Fframe_parameter): Fix last change.
19182
19183 * fileio.c: Revert last change (which removed old commented-out
19184 version of expand-file-name). Add a comment that explains why
19185 this old version should not be removed.
19186
19187 2001-10-25 Gerd Moellmann <gerd@gnu.org>
19188
19189 * frame.c (Fframe_parameter): Fix a bug whereby some
19190 ``artificial'' frame parameters, like `minibuffer' were not
19191 obtained by calling Fframe_parameters.
19192
19193 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
19194 cursor differently.
19195
19196 * xdisp.c (move_it_vertically_backward): Compute line height
19197 differently. Add heuristic to try to be more compatible to 20.x.
19198
19199 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
19200
19201 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
19202
19203 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
19204 boolean.
19205
19206 2001-10-25 Miles Bader <miles@gnu.org>
19207
19208 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
19209 BG is a pointer to a structure, not a structure.
19210 (gif_format, png_format): Add missing commas.
19211
19212 2001-10-24 Richard M. Stallman <rms@gnu.org>
19213
19214 * xfaces.c (Fface_attributes_as_vector): New function.
19215 (syms_of_xfaces): Defsubr it.
19216
19217 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19218
19219 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
19220 variable `area'.
19221
19222 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19223
19224 * search.c (scan_newline): Remove unused variable `selective_display'.
19225
19226 2001-10-25 Miles Bader <miles@gnu.org>
19227
19228 * dispextern.h (struct image): Add `background',
19229 `background_valid', and `background_transparent' fields.
19230 (image_background, image_background_transparent): New declarations.
19231 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
19232 * xfns.c (image_background, image_background_transparent)
19233 (four_corners_best): New functions.
19234 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
19235 (gs_format): Add `:background' entry.
19236 (lookup_image): Set IMG's background color if specified.
19237 (pbm_load, xbm_load_image, png_load): Set IMG's background field
19238 when appropriate.
19239 (x_clear_image_1): Reset `background_valid' and
19240 `background_transparent_valid' fields.
19241 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
19242 calculating it here. Set IMG's background_transparent field.
19243 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19244 (enum png_keyword_index): Add PNG_BACKGROUND.
19245 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
19246 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
19247 (enum gif_keyword_index): Add GIF_BACKGROUND.
19248 (enum gs_keyword_index): Add GS_BACKGROUND.
19249 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
19250 Pre-calculate image background color where necessary.
19251 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
19252 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
19253 color to use for image glyph reliefs.
19254
19255 2001-10-24 Gerd Moellmann <gerd@gnu.org>
19256
19257 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
19258 in full-width rows.
19259
19260 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
19261 Fix clearing of area not covered by scroll bar.
19262
19263 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19264
19265 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
19266 and `real_start'.
19267 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
19268 (glyph_rect): Remove unused variable `area'.
19269
19270 2001-10-24 Gerd Moellmann <gerd@gnu.org>
19271
19272 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
19273
19274 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
19275 (row_containing_pos): Take additional argument DY.
19276 Treat rows ending in middle of char differently.
19277 (display_line): Handle tabs on window systems differently.
19278
19279 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
19280 with additional argument.
19281
19282 * dispextern.h (row_containing_pos): Adjust prototype.
19283
19284 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
19285 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
19286 (try_window_id, try_window_reusing_current_matrix)
19287 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
19288 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
19289
19290 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19291
19292 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
19293 gnuemacs).
19294 (HAVE_BOXES): Fix typo in comment.
19295 (push_menu_pane): Fix typo in comment.
19296
19297 * xdisp.c (display_prop_string_p): Remove unused local declaration
19298 of `Qwhen'.
19299 (single_display_prop_string_p): Remove unused local declarations
19300 of `Qwhen' and `Qmargin'.
19301 (string_buffer_position): Remove unused variable `around'.
19302 (store_frame_title): Remove unused variable `width'.
19303
19304 * window.c: Don't define max.
19305 (coordinates_in_window): Remove unused variable `uy'.
19306
19307 * widget.c: Don't define max.
19308
19309 * process.c: Don't define max.
19310 (create_process): Remove unused variable `buffer'.
19311
19312 2001-10-23 Gerd Moellmann <gerd@gnu.org>
19313
19314 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
19315
19316 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
19317
19318 * xfaces.c (Finternal_set_lisp_face_attribute)
19319 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
19320 frame is on a windowed display.
19321
19322 2001-10-23 Gerd Moellmann <gerd@gnu.org>
19323
19324 * dispnew.c (sync_window_with_frame_matrix_rows):
19325 Fix handling of windows which aren't full-width, fix handling
19326 of marginal areas.
19327
19328 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
19329
19330 2001-10-23 Andreas Schwab <schwab@suse.de>
19331
19332 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
19333 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
19334
19335 2001-10-23 Gerd Moellmann <gerd@gnu.org>
19336
19337 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
19338 REAL_END. Notice if cursor gets overwritten.
19339 (notice_overwritten_cursor): Take X positions as parameters.
19340 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
19341 around call to x_draw_glyphs.
19342
19343 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19344
19345 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
19346 instead of C) and usage.
19347
19348 * editfns.c (char-to-string): Fix argument names (use CHAR instead
19349 of C) and usage.
19350
19351 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
19352 `left', `max_width' and `max_height'.
19353
19354 2001-10-23 Gerd Moellmann <gerd@gnu.org>
19355
19356 * xdisp.c (display_line): For a tab continued to the next line,
19357 set row's ends_in_middle_of_char_p.
19358
19359 2001-10-22 Gerd Moellmann <gerd@gnu.org>
19360
19361 * xdisp.c (display_line): Fix computation of continuation lines
19362 width for TABs.
19363
19364 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19365
19366 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
19367 `Qlaplace'.
19368
19369 * fileio.c: Remove unused code.
19370
19371 2001-10-22 Miles Bader <miles@gnu.org>
19372
19373 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
19374 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
19375 Remove `DOC_STRINGS_IN_COMMENTS' cases.
19376
19377 2001-10-21 Jason Rumney <jasonr@gnu.org>
19378
19379 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
19380
19381 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
19382
19383 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
19384 (Finsert_string): Avoid the multi-line string literals warning.
19385
19386 2001-10-22 Miles Bader <miles@gnu.org>
19387
19388 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
19389 (Fdocumentation): Don't use it.
19390 (syms_of_doc): Don't initialize it.
19391
19392 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
19393 * print.c (Fwith_output_to_temp_buffer): Likewise.
19394 * window.c (Fsave_window_excursion): Likewise.
19395 * editfns.c (Fsave_excursion, Fsave_current_buffer)
19396 (Fsave_restriction): Likewise.
19397 * eval.c (Frun_hooks, Frun_hook_with_args)
19398 (Frun_hook_with_args_until_failure)
19399 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
19400 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
19401 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
19402 (Funwind_protect, Fcondition_case): Likewise.
19403 * coding.c (Ffind_operation_coding_system): Likewise.
19404 * keyboard.c (Ftrack_mouse): Likewise.
19405
19406 2001-10-21 Miles Bader <miles@gnu.org>
19407
19408 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
19409 (Fmake_hash_table): Add usage: string to doc string.
19410 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
19411 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
19412 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
19413 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
19414 (Fml_prefix_argument_loop): Likewise.
19415
19416 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19417
19418 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
19419
19420 * sysdep.c (init_sys_modes): Change doc-string comments to `new
19421 style' [w/`doc:' keyword].
19422
19423 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
19424 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
19425 comments to `new style' [w/`doc:' keyword].
19426
19427 2001-10-21 Jason Rumney <jasonr@gnu.org>
19428
19429 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
19430
19431 * w32term.c (remember_mouse_glyph): New function.
19432 (w32_mouse_position): Use it.
19433 (note_mouse_movement): If the mouse moved off the glyph, remember
19434 its new position.
19435
19436 * w32term.h (struct w32_output): Correct spelling of x_compatible.
19437 (w32_display_info): Add mouse_face_overlay.
19438
19439 * w32term.c (notice_overwritten_cursor): Renamed from
19440 note_overwritten_text_cursor. Rewritten to take glyph widths into
19441 account.
19442 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
19443 (fast_find_string_pos): New function.
19444 (fast_find_position): Return the correct vpos. Add parameter
19445 STOP. In the final row, stop before glyphs having STOP as object.
19446 Don't consider glyphs that are not from a buffer.
19447 (fast_find_position) [0]: Add a presumably more correct version
19448 for after 21.1.
19449 (expose_window_tree, expose_frame): Don't compute intersections here.
19450 (expose_window): Do it here instead.
19451 (expose_window_tree, expose_window, expose_line): Return 1 when
19452 overwriting mouse-face.
19453 (expose_window): If W is the window currently being updated, mark
19454 the frame garbaged.
19455 (expose_frame): If mouse-face was overwritten, redo it.
19456 (x_use_underline_position_properties): New variable.
19457 (syms_of_xterm): DEFVAR_BOOL it.
19458 (x_draw_glyph_string): Add comment to use it in future.
19459 (x_draw_glyph_string): Restore clipping after drawing box.
19460 Fix a computation of the underline position.
19461 (w32_get_glyph_string_clip_rect): Minor cleanup.
19462 (x_fill_stretch_glyph_string): Remove an assertion.
19463 (x_produce_glyphs): Don't convert multibyte characters
19464 to unibyte characters in unibyte buffers.
19465 (cursor_in_mouse_face_p): New function.
19466 (x_draw_stretch_glyph_string): Use it to choose a different GC
19467 when drawing a cursor within highlighted text. Don't draw
19468 background again if it has already been drawn.
19469 (x_draw_glyph_string_box): Don't draw a full-width
19470 box just because the glyph row's full_width_p flag is set.
19471 (x_draw_glyphs): Fix computation of rightmost x for
19472 full-width rows.
19473 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
19474 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
19475 change bottom shadow accordingly. Some cleanup.
19476 (x_update_window_end): Handle overwritten mouse face
19477 also for tool bar windows.
19478 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
19479 DRAW is DRAW_IMAGE_RAISED.
19480 (clear_mouse_face): Return 1 if text with mouse face was
19481 actually redrawn. Make the function static.
19482 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
19483 optimize away highlighting if we pass over that same overlay again.
19484 (note_mouse_highlight): Call mouse_face_overlay_overlaps
19485 to detect a case where we have to highlight a different region
19486 despite not having left the currently highlighted region.
19487 Set mouse_face_overlay in the x_display_info. Avoid changing the
19488 mouse pointer shape when show_mouse_face has already done it, or
19489 there is no need. Handle mouse-face and help-echo in strings.
19490 (glyph_rect): New function.
19491 (w32_mouse_position): Use it to raise the threshold for mouse
19492 movement event generation.
19493 (w32_initialize_display_info): Initialize the x_display_info's
19494 mouse_face_overlay.
19495 (w32_set_vertical_scroll_bar): Don't clear a zero height
19496 or width area.
19497 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
19498 a widget to zero height.
19499
19500 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
19501 Protect unibyte strings created by replacing their multibyte
19502 equivalents in menu_items.
19503 (w32_menu_show): Don't overwrite an item's name with its key
19504 description in case the description is a multibyte string.
19505 (single_submenu): Some cleanup.
19506
19507 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
19508 (postprocess_image): New function.
19509 (lookup_image): Call it for all image types except PostScript.
19510 (x_kill_gs_process): Call postprocess_image.
19511 (tiff_error_handler, tiff_warning_handler): New functions.
19512 (tiff_load): Install them as handlers.
19513 (x_kill_gs_process): Recognize if someone has cleared the image
19514 cache under us.
19515 (valid_image_p): Protect better against invalid image
19516 specifications. Previous code could signal an error.
19517 (Fx_hide_tip, Fshow_tip): Doc fix.
19518 (Fv_max_tooltip_size): New variable.
19519 (syns_of_xfns): DEFVAR_LISP it.
19520 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
19521 window buffer to *tip* right after creating the frame. Set frame's
19522 window_width. Use a maximum tooltip size specified by
19523 Vx_max_tooltip_size, if that has valid contents.
19524 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
19525 Make sure the tooltip is completely visible.
19526 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
19527 (Fx_create_frame): Adjust the frame's height for presence
19528 of the tool bar before calling x_figure_window_size.
19529 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
19530 when the window gets smaller.
19531 (x_set_foreground_color): Set frame's cursor_pixel.
19532 (x_set_foreground_color, x_set_background_color): Cleaned up.
19533 (x_set_font): Handle case of x_new_fontset returning the same name
19534 as before, although there was a change in fontsets.
19535
19536 2001-10-21 Miles Bader <miles@gnu.org>
19537
19538 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
19539 (Flogxor): Add usage: string to doc string.
19540 * charset.c (Fstring): Likewise.
19541 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
19542 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
19543
19544 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19545
19546 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
19547
19548 * alloc.c: Reindent DEFUNs with doc: keywords.
19549
19550 * abbrev.c (Finsert_abbrev_table_description): Reindent.
19551
19552 * frame.c: Change doc-string comments to `new style' [w/`doc:'
19553 keyword].
19554
19555 See ChangeLog.9 for earlier changes.
19556
19557 ;; Local Variables:
19558 ;; coding: iso-2022-7bit
19559 ;; End:
19560
19561 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
19562 Copying and distribution of this file, with or without modification,
19563 are permitted provided the copyright notice and this notice are preserved.
19564
19565 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4