]> code.delx.au - gnu-emacs/blob - src/ChangeLog
* gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
[gnu-emacs] / src / ChangeLog
1 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
4 GTK main loop is entered in xterm.c, thus doing the redraw.
5
6 2005-03-10 Kim F. Storm <storm@cua.dk>
7
8 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
9
10 2005-03-08 Kenichi Handa <handa@m17n.org>
11
12 * frame.c (x_set_font): Call set_default_ascii_font if an
13 available font is found.
14
15 * fontset.c (set_default_ascii_font): New function.
16 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset)
17 here.
18
19 * fontset.h (set_default_ascii_font): Extern it.
20
21 2005-03-07 Kim F. Storm <storm@cua.dk>
22
23 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
24 (clear_image_cache_count): New var.
25 (redisplay_internal): Don't clear face and image caches in the
26 middle of redisplay; do it afterwards.
27
28 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
29
30 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
31 is valid. If not, clear phys_cursor_on_p and return.
32
33 2005-03-07 Andreas Schwab <schwab@suse.de>
34
35 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
36
37 2005-03-06 Richard M. Stallman <rms@gnu.org>
38
39 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
40
41 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
42 (Feval, Ffuncall): Use CHECK_CONS_LIST.
43
44 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
45
46 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
47 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
48
49 2005-03-05 Juri Linkov <juri@jurta.org>
50
51 * emacs.c (USAGE1): Replace Info node name "command arguments"
52 with "emacs invocation".
53 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
54 allow arguments `--color' and `MODE' to be separated by space.
55 Add --no-blinking-cursor, -nbc.
56 (standard_args): Add -nbc, --no-blinking-cursor.
57
58 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
59
60 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
61 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
62 * fileio.c (Fexpand_file_name) [VMS]:
63 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
64 * doc.c (munge_doc_file_name) [VMS]: Likewise.
65 (Fsnarf_documentation): Call munge_doc_file_name.
66
67 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
68
69 * s/vms.h (FILE_SYSTEM_CASE): New macro.
70 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
71 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
72
73 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
74
75 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
76 defined (MAC_OSX) && defined (HAVE_CARBON)'.
77
78 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include
79 QuickTime.h.
80
81 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
82 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
83 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New
84 functions.
85 (mac_clear_font_name_table): Move extern to macterm.h.
86
87 * macfns.c (install_window_handler): Move extern to macterm.h.
88 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
89 valid. Don't check !NILP (dir) because it is already checked with
90 CHECK_STRING.
91 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
92 specifying the default location and obtaining the selected
93 filename.
94
95 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
96
97 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
98 are included via Carbon.h.
99
100 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]: Define
101 USE_CARBON_EVENTS to 1.
102 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
103 (x_free_frame_resources): Call remove_window_handler for
104 non-tooltip windows.
105 [TARGET_API_MAC_CARBON]: Don't include headers that are included
106 via Carbon.h.
107 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
108 (mac_do_receive_dragUPP): New variables.
109 (mac_handle_service_event, init_service_handler): Put declarations
110 and definitions in #ifdef MAC_OSX.
111 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
112 drag-and-drop handler functions and register them.
113 (remove_window_handler): New function.
114 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]: Use
115 fsspec_to_posix_pathname.
116 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
117 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
118 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]: Set
119 default cursors.
120 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
121 init_service_handler or init_quit_char_handler.
122 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
123
124 * macterm.h (install_window_handler, remove_window_handler)
125 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
126 (mac_clear_font_name_table): New externs.
127
128 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
129
130 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
131 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
132 (Fexpand_file_name): Likewise.
133
134 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
135
136 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
137 no longer special-case VMS. Add bogus return value.
138
139 2005-03-02 Kim F. Storm <storm@cua.dk>
140
141 * dispextern.h (XASSERTS): Define to 0 if not already defined.
142 (xassert) [!XASSERTS]: Define dummy version.
143
144 2005-03-02 Kim F. Storm <storm@cua.dk>
145
146 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
147 Reported by David Kastrup.
148
149 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
150
151 * xdisp.c (get_next_display_element): Fix control and escape
152 glyph from display vector.
153
154 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
155
156 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
157
158 2005-02-27 Richard M. Stallman <rms@gnu.org>
159
160 * xdisp.c (fast_find_position): Rename END to BEG.
161 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
162
163 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
164
165 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
166 gtk_window_resize and x_wm_set_size_hint.
167
168 2005-02-25 Kim F. Storm <storm@cua.dk>
169
170 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
171
172 * xdisp.c (init_from_display_pos): Don't read past end of
173 it->overlay_strings array.
174
175 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
176
177 * buffer.c (syms_of_buffer): Fix typo.
178
179 2005-02-23 Lute Kamstra <lute@gnu.org>
180
181 * buffer.c (Foverlay_buffer): Doc fix.
182
183 2005-02-22 Kim F. Storm <storm@cua.dk>
184
185 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
186 and symbol keys in alists and hash tables.
187
188 * xdisp.c (fast_find_position): Fix search for start of overlay.
189
190 2005-02-21 Kim F. Storm <storm@cua.dk>
191
192 * window.c (window_scroll_pixel_based): When scrolling backwards,
193 handle partial visible line at end of window even when we hit PT.
194
195 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
196
197 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
198
199 2005-02-21 Kim F. Storm <storm@cua.dk>
200
201 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
202 I think those asserts are bogus if buffer contains invisible text
203 or images.
204
205 2005-02-21 David Kastrup <dak@gnu.org>
206
207 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
208
209 2005-02-20 Kim F. Storm <storm@cua.dk>
210
211 * xdisp.c (pos_visible_p): Be sure to move to the specified
212 position. Always get the full ascent / descent of the
213 corresponding row, to return reliable rtop and rbot values.
214 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
215 Must look one character back, as back_to_previous_line_start
216 returns position after the newline.
217 (move_it_vertically_backward): Fix heuristic for when to move further
218 back in case line_height * 2/3 is larger than window height.
219 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
220 as it does not do anything anymore. Add arg current_matrix_p to
221 use current matrix rather than desired matrix when set.
222 (try_cursor_movement): Don't scroll to make cursor row fully
223 visible if cursor didn't move. This avoids unexpected recentering
224 in case of blinking cursor or accepting process output.
225 Use current matrix to check cursor row visibility.
226 (redisplay_window): Fix whether to recenter or move to top in case
227 cursor line is taller than window height.
228 (find_first_unchanged_at_end_row): Stop search if we reach a row
229 which not enabled (instead of abort).
230
231 2005-02-18 Kim F. Storm <storm@cua.dk>
232
233 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
234 to be nil in a :box attribute value list; customize prints that
235 as lisp value when no box color is specified.
236
237 * .gdbinit (pitx, pit): Pretty print display iterator.
238 (prowx, prow): Pretty print glyph row.
239 (pcursorx, pcursor): Pretty print a window cursor.
240 (pwinx, pwin): Pretty print struct window.
241
242 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
243
244 * alloc.c (BLOCK_BYTES): Harmless typo.
245
246 2005-02-17 Andreas Schwab <schwab@suse.de>
247
248 * xfns.c (hack_wm_protocols): Use correct type for last parameter
249 of XGetWindowProperty to avoid aliasing issues.
250 (Fx_window_property): Likewise.
251
252 * xselect.c (Fx_disown_selection_internal): Use union of struct
253 input_event and struct selection_input_event to avoid aliasing issues.
254
255 * xterm.c (handle_one_xevent): Use union of struct input_event and
256 struct selection_input_event to avoid aliasing issues.
257 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
258
259 2005-02-17 Kim F. Storm <storm@cua.dk>
260
261 * dispextern.h (enum it_method): New enum.
262 (GET_FROM_*): Its members.
263 (struct it): Change member method from function pointer to enum.
264
265 * xdisp.c (check_it, init_from_display_pos, handle_stop)
266 (setup_for_ellipsis, handle_single_display_spec)
267 (handle_composition_prop, next_overlay_string)
268 (get_overlay_strings, reseat_1, reseat_to_string)
269 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
270 (in_display_vector_p, display_line, get_next_display_element):
271 Change it->method from function pointer to enum.
272 (get_next_element): New array to map it->method to function.
273 (get_next_display_element): Use it.
274 (set_iterator_to_next): Use switch instead of if/else chain.
275
276 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
277
278 * w32select.c: Summary: Thorough rework to implement Unicode
279 clipboard operations and delayed rendering.
280
281 Drop last_clipboard_text and related code, keep track of
282 ownership via clipboard_owner instead. Drop old #if0 sections.
283
284 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
285 (clipboard_owner, modifying_clipboard, cfg_coding_system)
286 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
287 (current_coding_system, current_requires_encoding)
288 (current_num_nls, current_clipboard_type, current_lcid):
289 New static variables.
290
291 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
292 (render, render_all, run_protected, lisp_error_handler)
293 (owner_callback, create_owner, setup_config)
294 (enum_locale_callback, cp_from_locale, coding_from_cp):
295 New local functions.
296
297 (term_w32select, globals_of_w32select): New global functions.
298
299 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
300 clipboard_owner instead. Use delayed rendering and provide
301 all text formats. Provide CF_LOCALE if necessary.
302
303 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
304 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
305 available. Force DOS line-ends for decoding.
306
307 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
308
309 (syms_of_w32select): Init and register new variables.
310
311 * w32.h: Add prototypes for globals_of_w32select and
312 term_w32select. Make the neighboring K&R declarations into
313 prototypes, too.
314
315 * emacs.c: Include w32.h to get function prototypes.
316 (main): Call globals_of_w32select.
317
318 * w32.c (term_ntproc): Call term_w32select.
319
320 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
321
322 2005-02-16 Kim F. Storm <storm@cua.dk>
323
324 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
325 at end of display vector.
326
327 2005-02-15 Richard M. Stallman <rms@gnu.org>
328
329 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
330 for mode and header lines.
331
332 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
333
334 * keymap.h (describe_map_tree): Change decl.
335
336 * keyboard.c (command_loop_1): Always use safe_run_hooks
337 to run Qdeferred_action_function.
338
339 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
340 (describe_map, describe_vector): Likewise. When it's 1,
341 don't omit shadowed bindings, instead mark them as shadowed.
342
343 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
344 for describe_map_tree. Pass 1 for MENTION_SHADOW.
345
346 * data.c (Fsetq_default): Allow no arg case.
347
348 2005-02-14 Kenichi Handa <handa@m17n.org>
349
350 * coding.c (encode_coding_string): Always return a unibyte string.
351 If NOCOPY is nonzero and there's no need of encoding, make STR
352 unibyte directly.
353
354 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
355 multibyte string, signal an error instead of aborting.
356
357 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
358
359 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
360
361 2005-02-12 Kim F. Storm <storm@cua.dk>
362
363 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
364
365 2005-02-10 Kim F. Storm <storm@cua.dk>
366
367 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
368 if it moves outside window or it doesn't display text.
369
370 2005-02-09 Kim F. Storm <storm@cua.dk>
371
372 * undo.c (Fprimitive_undo): Check that undo function does not
373 switch buffer.
374
375 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
376
377 * xselect.c (selection_data_to_lisp_data): For the special case
378 type == XA_ATOM, data contains array of int, not array of Atom.
379 (x_property_data_to_lisp, selection_data_to_lisp_data): Comment
380 update: data must be array of int for format == 32.
381
382 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
383
384 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
385
386 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
387
388 * xfns.c (Fx_change_window_property): Use long array when format is 32.
389 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
390 convert long array returned from XGetWindowProperty to an int array.
391 (x_set_tool_bar_lines): Check that width and height is greater than
392 zero before clearing area.
393
394 * xselect.c (x_reply_selection_request): Pass long array to
395 XChangeProperty so that 64 bit longs are handeled correctly.
396 (x_get_window_property): If format is 32 and long is bigger than 32
397 bits convert data from XGetWindowProperty from long array to int array.
398 (lisp_data_to_selection_data): When the input is a vector and the
399 format is 32, allocate a long array even if long is bigger than 32 bits.
400 (x_fill_property_data): Use char, short and long as the man page
401 for XChangeProperty specifies. This way the data returned is OK for
402 both 32 and 64 bit machines.
403 (x_handle_dnd_message): Calculate size correctly even for 64 bit
404 machines.
405 (Fx_send_client_event): Undo change from 2005-02-05,
406 x_fill_property_data now handles that case.
407
408 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
409 reason for the approach in the code.
410
411 2005-02-07 Kim F. Storm <storm@cua.dk>
412
413 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
414
415 2005-02-06 Richard M. Stallman <rms@gnu.org>
416
417 * eval.c (Frun_hook_with_args)
418 (Frun_hook_with_args_until_success)
419 (Frun_hook_with_args_until_failure): Doc fixes.
420
421 2005-02-05 Andreas Schwab <schwab@suse.de>
422
423 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
424
425 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
426
427 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
428 the longs in a XClientMessageEvent correctly when long is 64 bits.
429
430 2005-02-05 Eli Zaretskii <eliz@gnu.org>
431
432 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
433 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
434
435 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
436
437 * xmenu.c (menubar_selection_callback): Force out GTK buffered
438 events so the menu event comes after them. This is to prevent sit-for
439 from exiting on buffered events directly after a menu selection,
440 lisp code for Help => About Emacs uses sit-for.
441
442 * gtkutil.c (create_menus): Connect selection-done event instead of
443 the deactivate event to deactivate_cb. This will make the last
444 leave event come before the call to deactivate_cb, so the leave
445 event does not make sit-for exit after a menu selection.
446
447 2005-02-03 Kim F. Storm <storm@cua.dk>
448
449 * dispnew.c (build_frame_matrix_from_leaf_window)
450 [!GLYPH_DEBUG]: Fix xassert.
451
452 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
453
454 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
455
456 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
457
458 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
459 the compiling OS version.
460
461 * macfns.c (x_create_tip_frame): Likewise.
462
463 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
464
465 2005-02-03 Richard M. Stallman <rms@gnu.org>
466
467 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
468
469 * xdisp.c (echo_area_display): Clear echo_message_buffer.
470
471 * buffer.c (Fbury_buffer): Doc fix.
472
473 2005-02-02 Steven Tamm <steventamm@mac.com>
474
475 * macfns.c (unwind_create_frame): Fixing compile error due to
476 xassert being uncondition, but predicate is.
477 * dispnew.c (update_window): Fixing compile error due to
478 xassert being uncondition, but predicate is.
479
480 2005-02-02 Miles Bader <miles@gnu.org>
481
482 * dispextern.h (xassert): Enable unconditionally.
483
484 2005-02-02 Kim F. Storm <storm@cua.dk>
485
486 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
487
488 2005-02-02 Kenichi Handa <handa@m17n.org>
489
490 * casefiddle.c (casify_object): Enable changing characters of
491 different byte length.
492 (casify_region): Fix loop condition, args to replace_range_2, and
493 update opoint_byte.
494
495 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
496
497 2005-02-01 Kim F. Storm <storm@cua.dk>
498
499 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
500 stack before calling handle_display_prop.
501
502 2005-01-31 Kim F. Storm <storm@cua.dk>
503
504 * undo.c (Qapply): New lisp var.
505 (syms_of_undo): Intern and staticpro it.
506 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
507 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
508
509 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
510
511 2005-01-30 Jesper Harder <harder@phys.au.dk>
512
513 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
514 <mac-emulate-three-button-mouse>: Fix docstring indentation.
515
516 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
517
518 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
519 Increase value to 3 Meg.
520
521 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
522
523 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
524 button events are not received otherwise.
525
526 2005-01-29 Richard M. Stallman <rms@gnu.org>
527
528 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
529
530 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
531
532 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
533
534 * keymap.c (access_keymap): YAILOM.
535
536 2005-01-27 Kim F. Storm <storm@cua.dk>
537
538 * xdisp.c (get_phys_cursor_geometry): New function to calculate
539 phys cursor position and size for hollow cursor. Position is
540 aligned with get_glyph_string_clip_rect and ensures that a hollow
541 cursor is shown, even when the actual glyph is not visible.
542
543 * dispextern.h (get_phys_cursor_geometry): Add prototype.
544
545 * xterm.c (x_clip_to_row): Ensure y >= 0.
546 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
547
548 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
549
550 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
551
552 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
553
554 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
555
556 2005-01-27 Kim F. Storm <storm@cua.dk>
557
558 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
559 glyph, even when row is only partially visible and actual cursor
560 position is not visible.
561
562 2005-01-24 Richard M. Stallman <rms@gnu.org>
563
564 * xterm.c (x_error_quitter): No longer static, and moved after
565 x_error_handler.
566
567 2005-01-24 Kim F. Storm <storm@cua.dk>
568
569 * xdisp.c (move_it_by_lines): If we move forward after going too
570 far back, cancel move if end position is same as start position.
571
572 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
573
574 * dispextern.h (struct glyph_string): New members clip_head and
575 clip_tail.
576
577 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
578 region to the area between clip_head and clip_tail.
579 (draw_glyphs): Record the area that need to be actually redrawn to
580 the new variables clip_head and clip_tail when there are
581 overhangs. Set values of these variables to the corresponding
582 members in struct glyph_string. Refine x coordinates for
583 notice_overwritten_cursor using clip_head and clip_tail.
584
585 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
586
587 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
588 QDTextBounds.
589 (x_draw_glyph_string): Don't fill the background of the successor
590 of a glyph with a right overhang if the successor will draw a cursor.
591 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
592 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
593
594 2005-01-24 Kim F. Storm <storm@cua.dk>
595
596 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
597 direction if window height was smaller than next-screen-context-lines.
598 Now always scroll at least one line in the requested direction.
599 Ensure that we actually do scroll backwards when requested to do so.
600
601 * xdisp.c (redisplay_window): Only try to make cursor line fully
602 visible once (to avoid redisplay loop).
603
604 2005-01-23 Kim F. Storm <storm@cua.dk>
605
606 * window.c (Fpos_visible_in_window_p): Simplify return value for
607 partially visible rows.
608 (window_scroll_pixel_based): Adapt to that change.
609
610 * window.c (window_scroll_pixel_based): Force moving to next line
611 if scrolling doesn't move start point, e.g. if looking at tall image.
612
613 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
614 Clear last_height before calling line_bottom_y to get real height.
615 Fix calculation of y.
616
617 2005-01-22 Steven Tamm <steventamm@mac.com>
618
619 * s/darwin.h: Removed PTY_ITERATION from here.
620 (DARWIN): Define.
621 * process.c (init_process): Default process-connection-type to
622 nil on darwin 6 or less, t if it is 7 or higher. This way the
623 broken pty behavior is still allowed on darwin 6 for interactive
624 processes for people that know what they are doing.
625
626 2005-01-22 Kim F. Storm <storm@cua.dk>
627
628 * window.c (auto_window_vscroll_p): New boolean.
629 (syms_of_window): DEFVAR_BOOL it.
630 (Fpos_visible_in_window_p): Extend return value to include RTOP
631 and RBOT values if FULLY is nil.
632 (window_scroll_pixel_based): Adjust vscroll for partially visible
633 rows if auto_window_vscroll_p is set.
634 (Fset_window_vscroll): Do nothing if vscroll is not modified.
635
636 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
637 to return number of partially invisible pixels at top and bottom
638 of the dislay row at POS.
639
640 * lisp.h (pos_visible_p): Fix prototype.
641
642 2005-01-21 Richard M. Stallman <rms@gnu.org>
643
644 * fileio.c (Fcopy_file): Doc fix.
645
646 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
647
648 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
649 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
650 start of function for older compilers.
651
652 2005-01-20 Richard M. Stallman <rms@gnu.org>
653
654 * editfns.c (Fmessage): If arg is "", return "" (as before).
655
656 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
657
658 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
659 variable.
660
661 2005-01-20 Steven Tamm <steventamm@mac.com>
662
663 * editfns.c (Voperating_system_release): Add.
664 (init_editfns): Assign new variable operating-system-release
665 based on call to uname if available.
666 (get_operating_system_release): Add function to
667 allow c-level access to operating system release.
668
669 * config.h: Regenerated.
670
671 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
672 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
673 using ptys as '7'.
674
675 2005-01-20 Kim F. Storm <storm@cua.dk>
676
677 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
678
679 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
680 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
681
682 * macterm.c (x_draw_glyph_string_box): Likewise.
683
684 * w32term.c (x_draw_glyph_string_box): Likewise.
685
686 * indent.c (Fvertical_motion): Temporarily disable selective display.
687
688 2005-01-19 Kim F. Storm <storm@cua.dk>
689
690 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
691 image property.
692
693 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
694
695 2005-01-18 Kim F. Storm <storm@cua.dk>
696
697 * xdisp.c (fast_find_position): Backtrack to find first row if
698 charpos is inside a display overlay that spans multiple lines.
699
700 2005-01-18 Kenichi Handa <handa@m17n.org>
701
702 * coding.c (decode_coding_iso2022): Translate invalid codes if
703 translation-table is specified.
704
705 2005-01-18 Kim F. Storm <storm@cua.dk>
706
707 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
708 change. If handle_display_prop indicates newline is replaced by
709 image or text, move back to start of relevant overlay or interval
710 and continue scan from there. Simplify.
711
712 2005-01-17 Kim F. Storm <storm@cua.dk>
713
714 * dispnew.c (mode_line_string, marginal_area_string):
715 Fix off-by-one error in search for glyph.
716
717 2005-01-16 Kim F. Storm <storm@cua.dk>
718
719 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
720
721 2005-01-16 Steven Tamm <steventamm@mac.com>
722
723 * macterm.c (mac_to_x_fontname): Remove spurious argument.
724
725 2005-01-16 Andreas Schwab <schwab@suse.de>
726
727 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
728
729 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
730
731 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
732 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
733
734 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
735
736 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
737 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
738 New flags for readable_events.
739 (get_filtered_input_pending, readable_filtered_events): Remove.
740 (tracking_off): Call readable_events and get_input_pending with
741 flag READABLE_EVENTS_DO_TIMERS_NOW.
742 (readable_events): Move code from old readable_filtered_events here,
743 but check new READABLE_EVENTS_* in argument flags instead of previous
744 two boolean arguments do_timers_now and filter_events.
745 If we are doing mouse tracking and the mouse moved, return only if
746 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
747 (swallow_events): Call get_input_pending with flag
748 READABLE_EVENTS_DO_TIMERS_NOW.
749 (get_input_pending): Move code from old get_filtered_input_pending
750 here. Replace boolean arguments do_timers_now, filter_events with
751 flags, and pass flags to readable_events. Document new
752 READABLE_EVENTS_* flags.
753 (detect_input_pending_ignore_squeezables): New function.
754 (detect_input_pending_run_timers): Call get_input_pending with flag
755 READABLE_EVENTS_DO_TIMERS_NOW.
756 (Finput_pending_p): Call get_input_pending with flags
757 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
758
759 * dispnew.c (update_window, update_frame_1): Replace calls to
760 detect_input_pending with detect_input_pending_ignore_squeezables
761 so that redisplay is not paused if the event queue contains only
762 mouse movements.
763
764 * lisp.h: Declare detect_input_pending_ignore_squeezables.
765
766 2005-01-15 Steven Tamm <steventamm@mac.com>
767
768 * macterm.c (Vmac_use_core_graphics): Declare variable for
769 mac-allow-anti-aliasing.
770 (syms_of_macterm): DEFVAR_LISP and initialize it.
771 (mac_draw_string_common): Use core graphics text rendering if
772 mac-allow-anti-aliasing is enabled.
773
774 * macfns.c (Fx_file_dialog): Save As dialog includes only the
775 file name in the text box.
776
777 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
778
779 * macfns.c (x_set_foreground_color, x_set_background_color):
780 Sync with xfns.c.
781 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
782 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
783 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
784
785 2005-01-14 Kim F. Storm <storm@cua.dk>
786
787 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
788
789 2005-01-13 Richard M. Stallman <rms@gnu.org>
790
791 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
792 if Voverriding_terminal_local_map is non-nil.
793
794 * keyboard.c (syms_of_keyboard): Doc fix.
795
796 2005-01-13 Kim F. Storm <storm@cua.dk>
797
798 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
799 (specify 0 for FACE instead). Reorder arg list. Doc fix.
800
801 2005-01-12 Richard M. Stallman <rms@gnu.org>
802
803 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
804 face property for characters that don't specify one.
805
806 * fns.c (Frequire): Record in load-history unconditionally.
807
808 2005-01-10 Kim F. Storm <storm@cua.dk>
809
810 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
811
812 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
813 Callers changed.
814 Add support to merge with lisp face id too (if face_name is t).
815
816 * xdisp.c (get_next_display_element, next_element_from_display_vector):
817 Don't lookup lface_id from display table glyphs here; instead use
818 merge_faces to merge the lisp face id into current face.
819
820 2005-01-09 Kim F. Storm <storm@cua.dk>
821
822 * dispextern.h (struct it): New member dpvec_face_id.
823 (merge_into_realized_face): Add prototype.
824
825 * xfaces.c (merge_into_realized_face): New function. Used to
826 merge escape-glyph face or face from display table into current face.
827
828 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
829 (syms_of_xdisp): DEFVAR_LISP it.
830 (escape_glyph_face): Remove var.
831 (redisplay_window): Don't initialize it.
832 (setup_for_ellipsis, get_next_display_element):
833 Set it->dpvec_face_id to -1.
834 (get_next_display_element): Test Vshow_nonbreak_escape.
835 Do not setup escape_glyph_face.
836 Properly merge escape-glyph face or face from display table with
837 current face for escape and control characters.
838 Set it->dpvec_face_id to relevant face id instead of adding it to each
839 element of display vector.
840 (next_element_from_display_vector): If it->dpvec_face_id is set,
841 use that instead of lface_id from glyph itself.
842
843 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
844
845 * xterm.h (struct x_output): New member, toolbar_detached.
846
847 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
848 38.
849 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
850 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
851 (xg_create_tool_bar): Initialize toolbar_detached.
852 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
853 toolbar_detached is zero.
854
855 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
856
857 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
858 gtk_menu_popup if not for_click, so callbacks for the menu are called.
859
860 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
861 (xg_tool_bar_callback, xg_tool_bar_help_callback)
862 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
863
864 * xselect.c (x_get_foreign_selection, x_fill_property_data)
865 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
866 XFLOAT_DATA to get extract number from Lisp object.
867
868 2005-01-07 Kim F. Storm <storm@cua.dk>
869
870 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
871 Set stop_charpos to current charpos instead of 0.
872
873 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
874
875 * xdisp.c (Fformat_mode_line): First arg now required.
876
877 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
878
879 * macterm.c (XLoadQueryFont): Correctly handle 0 size
880 font widths that are returned from some Japanese fonts.
881
882 2005-01-06 Kim F. Storm <storm@cua.dk>
883
884 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
885 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
886 (destroy_fringe_bitmap): Set fringe_faces element to nil.
887 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
888 fringe_faces array and init elements to nil.
889 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
890 non-persistent face id.
891 (mark_fringe_data): New function for GC.
892
893 * alloc.c (mark_fringe_data): Declare extern.
894 (Fgarbage_collect): Call mark_fringe_data.
895
896 * alloc.c (overrun_check_free): Invalidate freed memory if
897 XMALLOC_CLEAR_FREE_MEMORY is defined.
898
899 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
900
901 * macfns.c: Include sys/param.h.
902 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
903 and function.
904 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
905 of filename string. Set event callback function when creating
906 dialog boxes. Add code conversions for filenames. Don't dispose
907 apple event descriptor record if failed to create it.
908
909 * macterm.c: Include sys/param.h.
910 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
911 kEventWindowUpdate.
912 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
913 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
914 of FSSpec from apple event descriptor record.
915 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
916 size of filename string.
917 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
918 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
919 file dialog is in action.
920 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
921 Reject only when there are no filename items. Set background color
922 before (un)highlighting the window below the dragged items.
923 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
924
925 2005-01-05 Romain Francoise <romain@orebokech.com>
926
927 * term.c (encode_terminal_code): Fix buffer size computation.
928
929 2005-01-04 Richard M. Stallman <rms@gnu.org>
930
931 * xdisp.c (Fformat_mode_line): Doc fix.
932
933 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
934
935 * alloc.c (refill_memory_reserve): Move.
936 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
937 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
938
939 2005-01-03 Richard M. Stallman <rms@gnu.org>
940
941 * window.c (window_scroll_pixel_based): Don't correct preserve_y
942 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
943
944 2005-01-03 Jason Rumney <jasonr@gnu.org>
945
946 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
947 fontp->space_width to FONT_WIDTH so they are valid.
948
949 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
950 average width. Set fontp->average_width and fontp->space_width to
951 their appropriate values.
952
953 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
954 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
955 fontp->space_width.
956
957 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
958
959 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
960 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
961 metrics for max and min bounds.
962 (x_load_font): Correctly calculate average font width metrics.
963
964 2005-01-02 Richard M. Stallman <rms@gnu.org>
965
966 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
967
968 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
969
970 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
971
972 2004-12-31 Richard M. Stallman <rms@gnu.org>
973
974 * xdisp.c (setup_for_ellipsis, get_next_display_element):
975 Set it->ellipsis_p to 1 or 0.
976 (display_line): Record whether row ends in mid-ellipsis.
977 (set_cursor_from_row): If ends in ellipsis. find start of it.
978 (cursor_row_p): If PT's at the end of the ellipsis the row
979 ends within, don't display cursor on this row.
980
981 * dispextern.h (struct it): New element ellipsis_p.
982 (struct glyph_row): New element ends_in_ellipsis_p.
983
984 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
985 position if we're reading from something other than the buffer.
986
987 * window.c (window_scroll_pixel_based): Only look at
988 Vscroll_preserve_screen_position if the old PT can't be kept.
989 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
990
991 2004-12-30 Kim F. Storm <storm@cua.dk>
992
993 * xdisp.c (get_line_height_property): New function extracted from
994 original calc_line_height_property.
995 (calc_line_height_property): Rework. Handle t and (nil . ratio).
996 (x_produce_glyphs): Use them to handle line-height and
997 line-spacing according to new height spec.
998 (Qtotal): Remove.
999 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1000
1001 2004-12-30 Kenichi Handa <handa@m17n.org>
1002
1003 * fileio.c (Finsert_file_contents): Don't use
1004 current_buffer->buffer_file_coding_system even if REPLACE is
1005 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
1006
1007 * fontset.h (struct font_info): New members space_width and
1008 average_width.
1009
1010 * frame.h (struct frame): New member space_width.
1011 (FRAME_SPACE_WIDTH): New macro.
1012
1013 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
1014
1015 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1016 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1017 fontp->space_width.
1018 (x_load_font): Calculate fontp->space_width and fontp->average_width.
1019 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
1020
1021 * xdisp.c (x_produce_glyphs): Calculate tab width by
1022 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
1023
1024 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
1025
1026 * macterm.c (SelectionRange): Add Xcode position apple event struct.
1027 (do_ae_open_documents): Handle Xcode-style file position open events.
1028
1029 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
1030
1031 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
1032
1033 2004-12-29 Richard M. Stallman <rms@gnu.org>
1034
1035 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
1036
1037 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1038
1039 * macfns.c (install_window_handler): Modify extern to return OSErr
1040 value.
1041 (mac_window): Handle return value of install_window_handler.
1042
1043 * macterm.c (reflect_byte): Remove function.
1044 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
1045 Lookup table instead.
1046 (mac_do_font_lists): Simplify calculation of the longest
1047 nonspecial string.
1048 (init_mac_drag_n_drop): Remove function and declaration.
1049 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1050 init_mac_drag_n_drop.
1051 (mac_do_track_drag): New function and declaration.
1052 (install_window_handler): Return OSErr value.
1053 (install_window_handler) [TARGET_API_MAC_CARBON]:
1054 Register handlers for tracking/receiving drag-and-drop items.
1055 (do_ae_open_documents): Generate unibyte strings for filenames.
1056 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
1057 Reject only non-filename items. Set event modifiers, and return value.
1058
1059 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1060
1061 * coding.c (decode_coding): Fix previous change.
1062
1063 2004-12-28 Richard M. Stallman <rms@gnu.org>
1064
1065 * xdisp.c (back_to_previous_visible_line_start):
1066 Don't call handle_display_prop.
1067
1068 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1069
1070 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
1071 (decode_coding_emacs_mule, encode_coding_emacs_mule)
1072 (decode_coding_iso2022, encode_designation_at_bol)
1073 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
1074 (decode_coding): Constify arguments and local vars.
1075
1076 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1077
1078 * xmenu.c (popup_get_selection): Only pop down dialogs
1079 on C-g and Escape.
1080 (popup_get_selection): Remove parameter down_on_keypress.
1081 (create_and_show_popup_menu, create_and_show_dialog):
1082 Remove parameter down_on_keypress to popup_get_selection.
1083
1084 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1085
1086 * dispextern.h: Change HAVE_CARBON to MAC_OS.
1087 (struct glyph_string): Likewise.
1088
1089 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
1090 mac_initialize.
1091
1092 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
1093 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
1094
1095 * fns.c (vector): Change MAC_OSX to MAC_OS.
1096
1097 * frame.c (x_set_frame_parameters, x_report_frame_params)
1098 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
1099 (x_set_border_width, Vdefault_frame_scroll_bars):
1100 Change HAVE_CARBON to MAC_OS.
1101
1102 * image.c [MAC_OS]: Include sys/stat.h.
1103 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
1104 QuickTimeComponents.h.
1105
1106 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
1107 [!MAC_OSX] (select): Use mac_wait_next_event.
1108 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
1109 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
1110 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1111 (mac_clear_font_name_table): Add extern.
1112 (Fmac_clear_font_name_table): New defun.
1113 (syms_of_mac): Defsubr it.
1114 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
1115 [MAC_OSX] (select_and_poll_event): New function.
1116 [MAC_OSX] (sys_select): Use it.
1117 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
1118 [MAC_OSX && SELECT_USE_CFSOCKET]
1119 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
1120 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
1121 RunLoop for simultaneously monitoring two kinds of inputs, window
1122 events and process outputs, without periodically polling.
1123
1124 * macfns.c (mac_initialized): Remove extern.
1125 (stricmp): Put in #if 0. All callers changed to use xstricmp in
1126 xfaces.c.
1127 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
1128 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
1129 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
1130 (mac_get_rdb_resource): New function (from w32reg.c).
1131 (x_get_string_resource): Use it.
1132 (install_window_handler): Add extern.
1133 (mac_window): New function.
1134 (Fx_create_frame): Use it instead of make_mac_frame.
1135 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
1136 (Fx_open_connection, Fx_close_connection): New defuns.
1137 (syms_of_macfns): Defsubr them.
1138 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
1139 Add kWindowNoUpdatesAttribute to the window attribute.
1140 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
1141 (x_create_tip_frame): Don't call ShowWindow.
1142 (Fx_show_tip): Call ShowWindow.
1143 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
1144 TARGET_API_MAC_CARBON'.
1145 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
1146 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
1147
1148 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
1149 (Window): Typedef to WindowPtr and move outside `#if
1150 TARGET_API_MAC_CARBON'.
1151 (XSizeHints): New struct.
1152
1153 * macterm.c (x_update_begin, x_update_end)
1154 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
1155 frame.
1156 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1157 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
1158 (construct_mouse_click): Put in #if 0.
1159 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
1160 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
1161 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1162 (activate_scroll_bars, deactivate_scroll_bars)
1163 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
1164 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
1165 if the position is neither user-specified nor program-specified.
1166 (x_free_frame_resources): Free size_hints.
1167 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
1168 (mac_clear_font_name_table): New function.
1169 (mac_do_list_fonts): Initialize font_name_table if needed.
1170 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
1171 around mac_do_list_fonts.
1172 (mac_unload_font): New function.
1173 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
1174 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
1175 and definitions with #if TARGET_API_MAC_CARBON.
1176 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
1177 (install_window_handler): Add decl.
1178 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
1179 window. Use UpdateControls. Get the rectangle that should be
1180 updated and restrict the target of expose_frame to it.
1181 (do_grow_window): Set minimum height/width according to size_hints.
1182 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
1183 (do_zoom_window): Don't use x_set_window_size.
1184 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
1185 (install_window_handler): New function.
1186 [!USE_CARBON_EVENTS] (mouse_region): New variable.
1187 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
1188 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
1189 GetEventDispatcherTarget inside BLOCK_INPUT.
1190 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
1191 Update mouse_region when mouse is moved.
1192 (make_mac_frame): Remove.
1193 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
1194 Initialize mouse pointer shapes. Change values of f->left_pos and
1195 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
1196 Don't call ShowWindow.
1197 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
1198 Vinvocation_name and Vsystem_name.
1199 (mac_make_rdb): New function (from w32term.c).
1200 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
1201 already been opened. Don't pass argument to
1202 mac_initialize_display_info. Don't set dpyinfo->height/width.
1203 Add entries to x_display_list and x_display_name_list.
1204 (x_delete_display): New function.
1205 (mac_initialize): Don't call mac_initialize_display_info.
1206 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
1207
1208 * macterm.h (check_mac): Add extern.
1209 (struct mac_output): New member size_hints.
1210 (FRAME_SIZE_HINTS): New macro.
1211 (mac_unload_font): Add extern.
1212
1213 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
1214
1215 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
1216
1217 2004-12-27 Richard M. Stallman <rms@gnu.org>
1218
1219 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
1220 (syms_of_buffer): Don't defsubr it.
1221
1222 * process.c (list_processes_1): Set undo_list instead
1223 of calling Fbuffer_disable_undo.
1224
1225 * xdisp.c (single_display_spec_string_p): Rename from
1226 single_display_prop_string_p.
1227 (single_display_spec_intangible_p): Rename from
1228 single_display_prop_intangible_p.
1229 (handle_single_display_spec): Rename from handle_single_display_prop.
1230 Rewritten to be easier to understand.
1231
1232 Change in load-history format. Functions now get (defun . NAME),
1233 and variables get just NAME.
1234
1235 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1236
1237 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1238 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
1239 (Qdefvar): Var deleted.
1240 (syms_of_eval): Don't initialze it.
1241
1242 * lread.c (syms_of_lread) <load-history>: Doc fix.
1243
1244 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1245
1246 * xmenu.c (popup_get_selection): Pop down on C-g.
1247 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
1248 pops down menu on C-g.
1249 (xdialog_show): If dialog popped down and no button in the dialog was
1250 pushed, call Fsignal to quit.
1251 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
1252 Fsignal to quit.
1253
1254 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
1255
1256 * gtkutil.c (xg_initialize): Install bindings for C-g so that
1257 dialogs and menus pop down.
1258
1259 2004-12-27 Kenichi Handa <handa@m17n.org>
1260
1261 * coding.c (code_convert_region): Fix calculation of `ratio'.
1262
1263 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1264
1265 * gtkutil.c (update_frame_tool_bar): Make the value of
1266 tool-bar-button-margin control margins of images in tool bar.
1267
1268 * alloc.c (check_depth): New variable.
1269 (overrun_check_malloc, overrun_check_realloc): Only add
1270 overhead and write check pattern if check_depth is 1 (to handle
1271 recursive calls). Increase/decrease check_depth in entry/exit.
1272 (overrun_check_free): Only check for overhead if check_depth is 1.
1273 Increase/decrease check_depth in entry/exit.
1274
1275 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1276
1277 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
1278 before touching input_available_clear_time, to avoid accessing it
1279 from multiple threads.
1280
1281 2004-12-23 Jason Rumney <jasonr@gnu.org>
1282
1283 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
1284 of JPEG library.
1285
1286 2004-12-22 Richard M. Stallman <rms@gnu.org>
1287
1288 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
1289
1290 * lisp.h (Vundo_outer_limit): Fix decl.
1291
1292 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
1293 Uses changed.
1294 (syms_of_undo): Initialize appropriately.
1295 (truncate_undo_list): If it's nil, there's no limit.
1296
1297 2004-12-22 Kenichi Handa <handa@m17n.org>
1298
1299 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
1300
1301 2004-12-21 Richard M. Stallman <rms@gnu.org>
1302
1303 * eval.c (unwind_to_catch): Clear immediate_quit.
1304
1305 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
1306 specially as `\ ' and `\-'.
1307
1308 * keyboard.c (kbd_buffer_store_event_hold):
1309 In the code for while-no-input, handle immediate_quit.
1310
1311 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
1312 Call that at the very start.
1313 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
1314 (syms_of_alloc): Don't define undo-limit,
1315 undo-strong-limit and undo-outer-limit here.
1316
1317 * undo.c (truncate_undo_list): Return void.
1318 Take just one argument, the buffer.
1319 Make it current, and inhibit recursive GC.
1320 Access and update the undo list directly; return void.
1321 Refer to the undo...limit variables directly.
1322 Test undo_outer_limit only after counting the whole current command.
1323 When it's exceeded, call the function in undo-outer-limit-function.
1324 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
1325 (Vundo_outer_limit_function): New variable.
1326 (syms_of_undo): Define undo-limit, undo-strong-limit
1327 and undo-outer-limit here, and undo-outer-limit-function.
1328 Doc fixes.
1329
1330 * lisp.h (truncate_undo_list): Update decl.
1331
1332 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
1333
1334 * fileio.c (Fread_file_name): Delete duplicates in
1335 file-name-history when history_delete_duplicates is true.
1336
1337 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1338
1339 * macterm.c (mac_do_list_fonts): Fix memory leak
1340
1341 2004-12-20 Richard M. Stallman <rms@gnu.org>
1342
1343 * regex.c (re_match_2_internal) <symend, wordend>:
1344 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
1345
1346 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1347
1348 * macterm.c (endif, x_font_name_to_mac_font_name):
1349 Use maccentraleurroman instead of maccentraleuropean
1350 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
1351 quickly finding a specific font without needing regexps.
1352
1353 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1354
1355 * syssignal.h: Declare main_thread.
1356 (SIGNAL_THREAD_CHECK): New macro.
1357
1358 * keyboard.c (input_available_signal): Move thread checking code
1359 to macro SIGNAL_THREAD_CHECK and call that macro.
1360 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
1361
1362 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
1363
1364 * emacs.c: Define main_thread.
1365 (main): Initialize main_thread.
1366 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
1367 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
1368
1369 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
1370
1371 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
1372
1373 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
1374
1375 * process.c (send_process_trap, sigchld_handler):
1376 Call SIGNAL_THREAD_CHECK.
1377
1378 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
1379
1380 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
1381
1382 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
1383 returning when xg_ignore_gtk_scrollbar is true.
1384
1385 2004-12-14 Kim F. Storm <storm@cua.dk>
1386
1387 * keyboard.c (read_char): Save and restore echo_string when
1388 handling input method.
1389
1390 2004-12-13 Richard M. Stallman <rms@gnu.org>
1391
1392 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
1393
1394 * keyboard.c (Vthrow_on_input): New variable.
1395 (syms_of_keyboard): Defvar and initialize it.
1396 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
1397
1398 * lisp.h (QUIT): Check for Vthrow_on_input.
1399 (Vthrow_on_input): Declare it.
1400
1401 2004-12-13 Kim F. Storm <storm@cua.dk>
1402
1403 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
1404 vector.
1405
1406 2004-12-12 Richard M. Stallman <rms@gnu.org>
1407
1408 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
1409
1410 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
1411 (Ftry_completion): Really use outer `zero'; eliminate inner one.
1412
1413 2004-12-12 Kenichi Handa <handa@m17n.org>
1414
1415 * term.c (encode_terminal_code): Fix previous change.
1416
1417 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
1418
1419 * keyboard.c (handle_async_input): Remove pthread mutex handling.
1420 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
1421
1422 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
1423 in macro arguments.
1424
1425 * minibuf.c (Ftry_completion, Fall_completions): Don't use
1426 XFASTINT blindly.
1427
1428 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
1429
1430 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1431
1432 * w32term.c (x_calc_absolute_position): Remove calculation of
1433 difference between inner and outer window. Don't subtract difference
1434 for left and top calculations.
1435
1436 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
1437 for left and top calculations. Remove call to x_real_positions.
1438 [Bug report by Drew Adams in November]
1439 (x_check_expected_move): Do not set change_gravity to 1 when calling
1440 x_set_offset.
1441
1442 2004-12-08 Richard M. Stallman <rms@gnu.org>
1443
1444 * xdisp.c (get_next_display_element): Use `escape-glyph' for
1445 control chars and escaped octal codes.
1446 (Qescape_glyph): New variable.
1447 (syms_of_xdisp): Initialize it.
1448 (escape_glyph_face): New variable.
1449 (redisplay_window): Initialize it.
1450
1451 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
1452
1453 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
1454 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
1455
1456 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1457
1458 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
1459 reset_malloc_hooks.
1460
1461 * keyboard.c (handle_async_input, input_available_signal):
1462 Add ! defined (SYSTEM_MALLOC) around thread code.
1463
1464 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
1465
1466 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
1467
1468 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
1469
1470 * config.in: Regenerate.
1471
1472 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1473
1474 * xmenu.c (Fx_popup_menu): Correct documentation about position.
1475 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
1476 if not given by a mouse click to correspond with x-popup-menu
1477 documentation.
1478
1479 * config.in: Regenerate.
1480
1481 * gtkutil.c: Include signal.h and syssignal.h.
1482 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
1483
1484 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
1485 new variables main_thread and alloc_mutex,
1486 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
1487 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
1488 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
1489 (UN)BLOCK_INPUT.
1490 (emacs_blocked_free, emacs_blocked_malloc)
1491 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
1492 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
1493 (reset_malloc_hooks): New function.
1494
1495 * lisp.h: Declare reset_malloc_hooks.
1496
1497 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
1498
1499 * keyboard.c: Conditionally include pthread.h
1500 (handle_async_input, input_available_signalt): If not in the main
1501 thread, block signal, send signal to main thread and return.
1502
1503 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
1504 Set current folder in file chooser if default_filename is a directory.
1505
1506 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
1507
1508 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
1509 Remove redundant correctness checks.
1510 (regex_compile): Fix up error codes for \{..\} expressions.
1511
1512 2004-12-05 Richard M. Stallman <rms@gnu.org>
1513
1514 * regex.c (regex_compile): Fix end-of-pattern case for space.
1515
1516 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1517
1518 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
1519 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
1520 crashes with invalid characters.
1521 * macmenu.c (add_menu_item): Use it.
1522 * image.c (image_load_quartz2d): Likewise.
1523 * macfns.c (x_set_name, x_set_title): Likewise.
1524 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
1525 creating them each time for labels.
1526
1527 2004-12-02 Richard M. Stallman <rms@gnu.org>
1528
1529 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
1530 don't use it here.
1531
1532 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
1533 (interactive_p): Skip Scalled_interactively_p frames
1534 like Sinteractive_p frames.
1535 (unwind_to_catch): Clear handling_signal.
1536
1537 * data.c (Fmake_variable_buffer_local): Doc fix.
1538 (Fmake_local_variable): Doc fix.
1539
1540 * insdel.c (insert_from_string_before_markers)
1541 (insert_from_string): Don't modify buffer on empty insertion.
1542
1543 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
1544
1545 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1546
1547 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
1548 menu text as UTF8 fails.
1549
1550 2004-12-01 Kim F. Storm <storm@cua.dk>
1551
1552 * alloc.c: Add commentary for last change.
1553 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
1554 sizeof(size_t) != 4.
1555 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
1556 Use them. Also clear header and trailer of freed memory.
1557 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
1558 (string_overrun_cookie): Rename from string_overrun_pattern.
1559 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
1560
1561 2004-12-01 Andreas Schwab <schwab@suse.de>
1562
1563 * lisp.h: Declare string_to_multibyte.
1564
1565 2004-12-01 Kenichi Handa <handa@m17n.org>
1566
1567 * w32console.c (w32con_write_glyphs): Decide coding here.
1568 Adjusted for the change of encode_terminal_code.
1569
1570 * term.c (encode_terminal_code): Don't make it "static".
1571
1572 2004-11-30 Kenichi Handa <handa@m17n.org>
1573
1574 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
1575 (encode_terminal_code): Argument changed. Encode all
1576 characters at once, and return a pointer to the result of encoding.
1577 (write_glyphs): Decide coding here. Adjusted for the above change.
1578 (insert_glyphs): Likewise.
1579 (term_init): Initialize encode_terminal_bufsize to 0.
1580
1581 * coding.c (Vcode_conversion_workbuf_name): New variable.
1582 (syms_of_coding): Initialize and staticpro it.
1583 (set_conversion_work_buffer): New function.
1584 (run_pre_post_conversion_on_str): Use it.
1585 (run_pre_write_conversin_on_c_str): New function.
1586
1587 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1588
1589 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1590
1591 * keyboard.c: Don't undef SIGIO
1592 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1593 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1594 (macfns.o): Don't depend on ccl.h.
1595 * macfns.c (mac_frame_parm_handlers): Set handlers for
1596 Qleft_fringe and Qright_fringe.
1597 * macterm.c (mac_fill_rectangle_to_pixmap)
1598 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1599 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1600 Put in #if 0.
1601 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1602 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1603 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1604 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1605 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1606 XDrawImageString. Always draw background and foreground separately.
1607 (x_draw_image_foreground): Use clipping instead of computing the
1608 intersection rectangle.
1609 (x_draw_image_glyph_string): Don't draw an image with mask to a
1610 pixmap.
1611 (x_redisplay_interface): Set flush_display_optional member to 0.
1612 (XTread_socket): Correctly reset the TEConverter
1613 object.
1614
1615 2004-11-30 Kim F. Storm <storm@cua.dk>
1616
1617 * lisp.h: New defines to enable buffer overrun checking.
1618 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1619 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1620
1621 * alloc.c: Add more checks for buffer overruns.
1622 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1623 xmalloc_overrun_check_trailer, overrun_check_malloc)
1624 overrun_check_realloc, overrun_check_free): Add.
1625 (GC_STRING_EXTRA, string_overrun_pattern): Add.
1626 (check_sblock, allocate_string_data, compact_small_strings):
1627 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1628 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1629 (check_string_free_list): Add.
1630 (allocate_string, sweep_strings): Call check_string_free_list.
1631
1632 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1633 XMALLOC_OVERRUN_CHECK to avoid crash during load.
1634
1635 2004-11-29 Kim F. Storm <storm@cua.dk>
1636
1637 * fns.c (concat): Use SAFE_ALLOCA.
1638
1639 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
1640
1641 * sysdep.c (emacs_write): Don't use QUIT.
1642
1643 2004-11-29 Kenichi Handa <handa@m17n.org>
1644
1645 * buffer.c (init_buffer): Set current_buffer->directory to a
1646 multibyte string made by string_to_multibyte.
1647
1648 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
1649
1650 2004-11-27 Andreas Schwab <schwab@suse.de>
1651
1652 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
1653
1654 * s/gnu-linux.h: Enable no-op gcpros on ia64.
1655 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
1656
1657 * filelock.c (lock_file_1): Call get_boot_time early.
1658 Increase buffer size.
1659
1660 2004-11-27 Eli Zaretskii <eliz@gnu.org>
1661
1662 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
1663 is not defined.
1664
1665 2004-11-27 Kim F. Storm <storm@cua.dk>
1666
1667 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
1668 marker out of doc string.
1669
1670 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
1671
1672 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
1673 which was not mentioned in the log.
1674
1675 2004-11-26 Kim F. Storm <storm@cua.dk>
1676
1677 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
1678 angle bitmaps at top/bottom line.
1679
1680 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
1681 set it when it->method is set to next_element_from_display_vector.
1682 (setup_for_ellipsis): Add LEN argument. Callers changed.
1683 Set it->saved_face_id.
1684 (get_next_display_element): Use loop instead of recursion.
1685 Set it->saved_face_id. Combine duplicate code for ctr chars.
1686 (next_element_from_display_vector): Do not set it->saved_face_id.
1687 (next_element_from_ellipsis): Use setup_for_ellipsis.
1688
1689 2004-11-26 Eli Zaretskii <eliz@gnu.org>
1690
1691 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
1692 prevent compiler warnings.
1693
1694 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
1695
1696 * keyboard.c (command_loop_1): Print a message describing the key
1697 the user just pressed when this key has no binding.
1698
1699 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
1700 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
1701
1702 * lread.c (readchar): Check QUIT when `getc' is interrupted.
1703
1704 2004-11-24 Richard M. Stallman <rms@gnu.org>
1705
1706 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
1707
1708 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
1709
1710 2004-11-24 Kim F. Storm <storm@cua.dk>
1711
1712 * xdisp.c (move_it_in_display_line_to, display_line):
1713 Restore saved_face_id also when truncate-lines or hscrolled.
1714
1715 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1716
1717 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
1718 x-use-old-gtk-file-dialog.
1719
1720 * xfns.c: Define x_use_old_gtk_file_dialog.
1721 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
1722 outside ifdef USE_GTK.
1723
1724 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
1725
1726 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
1727 Don't use XFASTINT blindly.
1728
1729 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
1730
1731 * indent.c (skip_invisible): Avoid non-idempotent side-effects
1732 in macro arguments.
1733
1734 * keymap.c (Flookup_key): Check INTEGERP before XINT.
1735
1736 * lread.c (oblookup): Don't use XFASTINT blindly.
1737
1738 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
1739 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
1740
1741 2004-11-23 Kim F. Storm <storm@cua.dk>
1742
1743 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
1744 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
1745
1746 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
1747 signal_p is zero and face name is unknown.
1748 (Fx_list_fonts): Don't signal error in lookup_named_face.
1749 (Fface_font): Signal error in lookup_named_face.
1750 (ascii_face_of_lisp_face): Likewise.
1751
1752 * dispextern.h (lookup_named_face): Fix prototype.
1753
1754 * xdisp.c (handle_single_display_prop): Don't signal error in
1755 lookup_named_face for unknown fringe face name.
1756 (highlight_trailing_whitespace): Don't signal error in
1757 lookup_named_face if trailing-whitespace face unknown.
1758 (calc_line_height_property): Don't signal error in
1759 lookup_named_face if specified face name is unknown.
1760
1761 * fringe.c (update_window_fringes): Show top row indicator if
1762 window has header-line. Don't show arrow at bob and eob
1763 if the boundary indicators are not used.
1764 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1765
1766 * window.c (set_window_buffer): Clear display_error_modiff.
1767
1768 2004-11-22 Kim F. Storm <storm@cua.dk>
1769
1770 * fringe.c (update_window_fringes): Provide sensible fall-back
1771 value for non-nil indicate-buffer-boundaries setting.
1772
1773 2004-11-22 Markus Rost <rost@ias.edu>
1774
1775 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1776
1777 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
1778
1779 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1780
1781 2004-11-21 Kim F. Storm <storm@cua.dk>
1782
1783 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1784
1785 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
1786 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1787
1788 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
1789 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1790
1791 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
1792 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1793
1794 * xdisp.c (move_it_in_display_line_to, display_line):
1795 Restore saved_face_id if overflow-newline-into-fringe is enabled and
1796 line is continued before or in middle of element from display vector.
1797
1798 * indent.c (Fvertical_motion): Fix last change. Use another
1799 method to detect if iterator moved too far ahead after reseat.
1800
1801 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
1802 expand matrix width for overflow in zero-width area.
1803 (append_glyph, append_composite_glyph, produce_image_glyph)
1804 (append_stretch_glyph): Use it to avoid loop in redisplay.
1805 (note_mode_line_or_margin_highlight): Don't let help-echo from
1806 string override help-echo from image map.
1807
1808 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
1809
1810 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
1811 * callint.c (Fcall_interactively): Ditto.
1812
1813 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
1814
1815 * minibuf.c (Fminibuffer_complete_and_exit):
1816 Fixup the case of the completed value, for case-indep completion.
1817
1818 2004-11-20 Richard M. Stallman <rms@gnu.org>
1819
1820 * lisp.h (Fread_from_minibuffer): Add arg in decl.
1821
1822 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
1823 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
1824
1825 * search.c (Vsearch_spaces_regexp):
1826 Rename from Vsearch_whitespace_regexp. All uses changed.
1827
1828 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
1829
1830 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1831
1832 2004-11-19 Richard M. Stallman <rms@gnu.org>
1833
1834 * search.c (Vsearch_whitespace_regexp): New variable.
1835 (syms_of_search): Defvar it.
1836 (compile_pattern_1): Call re_set_whitespace_regexp with it.
1837 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1838 is non-nil.
1839 (struct regexp_cache): New element whitespace_regexp.
1840 (syms_of_search): Initialize whitespace_regexp elements.
1841 (compile_pattern): Compare whitespace_regexp elements.
1842 (compile_pattern_1): Set whitespace_regexp elements.
1843
1844 * regex.c (regex_compile): Substitute whitespace_regexp
1845 for spaces, if it is nonzero.
1846 (whitespace_regexp): New variable.
1847 (re_set_whitespace_regexp): New function.
1848
1849 2004-11-19 Kim F. Storm <storm@cua.dk>
1850
1851 * indent.c (Fvertical_motion): Fix last change.
1852
1853 2004-11-18 Kim F. Storm <storm@cua.dk>
1854
1855 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1856 Instead, move back again if reseating moves too far ahead.
1857
1858 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
1859
1860 * xdisp.c (message3): Call clear_message.
1861
1862 2004-11-17 Kim F. Storm <storm@cua.dk>
1863
1864 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1865
1866 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1867
1868 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
1869
1870 * xmenu.c (x_menu_in_use): Remove.
1871 (x_menu_set_in_use): Also set popup_activated_flag.
1872
1873 * xfns.c (Fx_file_dialog): Call popup_activated instead of
1874 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
1875
1876 * xterm.h: (x_menu_in_use): Remove.
1877
1878 2004-11-16 Richard M. Stallman <rms@gnu.org>
1879
1880 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1881 Use map-keymap-internal to implement that.
1882
1883 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1884
1885 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1886
1887 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1888 a window before using XWINDOW.
1889
1890 * window.c (make_window, Fselect_window, make_dummy_parent)
1891 (save_window_save):
1892 * frame.c (make_frame):
1893 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1894
1895 * lisp.h (NILP): Use EQ rather than XFASTINT.
1896
1897 2004-11-16 Kim F. Storm <storm@cua.dk>
1898
1899 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
1900
1901 * indent.c (Fvertical_motion): Fix last change. Only reseat when
1902 moving backwards.
1903
1904 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
1905
1906 * dispextern.h: Extern reseat_at_previous_visible_line_start.
1907
1908 2004-11-16 Kenichi Handa <handa@m17n.org>
1909
1910 * xdisp.c (display_mode_element): Fix previous change (calculate
1911 end position of substring to display correctly).
1912
1913 2004-11-16 Kim F. Storm <storm@cua.dk>
1914
1915 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1916 Reported by Andrew M. Scott.
1917
1918 2004-11-15 Kim F. Storm <storm@cua.dk>
1919
1920 * fns.c (Fsafe_plist_get): New defun.
1921 (syms_of_fns): Defsubr it.
1922
1923 * lisp.h (Fsafe_plist_get): Add EXFUN.
1924
1925 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1926 Use Fsafe_plist_get.
1927 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1928 Fix image map element parsing. Use Fsafe_plist_get.
1929
1930 2004-11-15 Richard M. Stallman <rms@gnu.org>
1931
1932 * xdisp.c (get_next_display_element): Fix previous change.
1933
1934 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1935
1936 * window.c (shrink_windows): Handle special case of one window left
1937 when trying to shrink the final reminder. Grow windows if
1938 total_removed is less than total_shrink.
1939
1940 * xmenu.c (pop_down_menu): Remove global variable current_menu,
1941 extract pointer from arg with XSAVE_VALUE.
1942 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1943 Construct arg to record_unwind_protect with make_save_value.
1944
1945 2004-11-13 Richard M. Stallman <rms@gnu.org>
1946
1947 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1948 (get_next_display_element): Fix previous change to apply only to \n.
1949
1950 * indent.c (Fvertical_motion): Scan to PT from start of line to
1951 make iterator consistent.
1952
1953 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1954
1955 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1956
1957 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1958
1959 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1960 Record unwind with clean_up_file_dialog.
1961
1962 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1963 Declare.
1964
1965 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1966
1967 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1968
1969 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
1970 (xg_file_sel_destroy): Remove.
1971 (xg_file_response_cb, pop_down_file_dialog)
1972 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
1973 New functions.
1974 (xg_get_file_with_chooser, xg_get_file_with_selection):
1975 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
1976 Move common code to xg_get_file_name. Return widget created.
1977 (xg_get_file_name): Set name, transient for, modal and destroy
1978 with parent here. Connect response signal to xg_file_response_cb,
1979 connect delete-event to gtk_true. Record pop_down_file_dialog
1980 for unwind. Do event loop and call x_menu_wait_for_event in loop.
1981 (xg_create_widget): Make dialogs modal.
1982
1983 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1984 Lisp_Object.
1985 (popup_get_selection): Move unwind protect ...
1986 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1987 Move destroy of widget to pop_down_menu.
1988 (popup_widget_loop): Move unwind protect ...
1989 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1990 Move destroy of widget to pop_down_menu.
1991 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
1992 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
1993 x_mouse_leave and grabbed = 0 to pop_down_menu.
1994
1995 2004-11-13 Kim F. Storm <storm@cua.dk>
1996
1997 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1998 (syms_of_xdisp): DEFVAR_BOOL it.
1999 (make_cursor_line_fully_visible, try_cursor_movement)
2000 (try_window_id): Use it.
2001
2002 2004-11-12 Kim F. Storm <storm@cua.dk>
2003
2004 * dispextern.h (struct glyph_row): New member extra_line_spacing.
2005 (struct it): New member max_extra_line_spacing.
2006 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
2007 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
2008 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
2009 part of last line is only extra line spacing (so the text on the
2010 line is fully visible). Use helper macros.
2011 Add W arg (to use them). All callers changed.
2012 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
2013 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
2014
2015 * window.c (window_scroll_pixel_based, Frecenter):
2016 Use move_it_vertically_backward directly.
2017 (Frecenter): Fix calculation of new start pos for negative arg.
2018 Before, the new start pos was sometimes chosen too far back, so
2019 the last line became only partially visible, and thus would be
2020 either only semi-visible or automatically scrolled to the middle
2021 of the window by redisplay.
2022
2023 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
2024 (move_it_vertically_backward): Don't recure to move further back.
2025 (move_it_vertically): Remove superfluous condition.
2026 (move_it_by_lines): Clear last_height when moved 0 lines.
2027 (resize_mini_window): Use it.max_extra_line_spacing.
2028 (display_tool_bar_line): Clear row->extra_line_spacing.
2029 (try_scrolling): Use move_it_vertically_backward directly.
2030 (redisplay_window): Likewise.
2031 (compute_line_metrics): Set row->extra_line_spacing.
2032 (display_line, display_string): Likewise.
2033 (x_produce_glyphs): Update it->max_extra_line_spacing.
2034
2035 * xmenu.c (pop_down_menu): Return nil.
2036
2037 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2038
2039 * xmenu.c (x_menu_wait_for_event): New function.
2040 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
2041 to handle timers.
2042 (popup_widget_loop): Add argument do_timers.
2043 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
2044 do_timers to popup_widget_loop.
2045 (xmenu_show): Call XMenuActivateSetWaitFunction so that
2046 x_menu_wait_for_event is called by XMenuActivate.
2047 (create_and_show_popup_menu): Pass 1 for do_timers to
2048 popup_get_selection.
2049 (pop_down_menu): New function.
2050 (popup_get_selection, popup_widget_loop): Unwind protect to
2051 pop_down_menu.
2052 (popup_widget_loop): Add argument widget.
2053 (create_and_show_popup_menu, create_and_show_dialog): Pass new
2054 argument widget to popup_widget_loop.
2055
2056 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2057
2058 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
2059
2060 2004-11-09 Kim F. Storm <storm@cua.dk>
2061
2062 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
2063 Fix various comments referring to XEvents instead of input events.
2064 (x_queue_event): Fix format strings.
2065 (x_stop_queuing_selection_requests): Likewise.
2066
2067 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
2068 (pint2hrstr): Add extra braces to silence compiler.
2069
2070 * print.c (print_object): Fix format string.
2071
2072 * lread.c (read1): Fix next_char matching.
2073
2074 * lisp.h (Fdelete): Add EXFUN.
2075 (replace_range_2): Add prototype.
2076
2077 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
2078
2079 * intervals.h (NULL_INTERVAL_P): Add separate version when
2080 ENABLE_CHECKING is not defined to silence compiler.
2081 (compare_string_intervals): Add prototype.
2082
2083 * fringe.c (destroy_fringe_bitmap): Fix return type.
2084 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
2085
2086 * emacs.c (Fdump_emacs): Fix format string.
2087
2088 * doc.c: Include <ctype.h>.
2089 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
2090
2091 * data.c (store_symval_forwarding): Remove unused variables.
2092
2093 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
2094
2095 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2096
2097 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
2098 to ${OLDXMENU}.
2099
2100 2004-11-09 Kim F. Storm <storm@cua.dk>
2101
2102 * process.c (Fmake_network_process): Remove kludge for interrupted
2103 connects on BSD. If connect is interrupted, just close socket and
2104 start over rather than sleeping and retry with same socket.
2105
2106 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2107
2108 * .cvsignore: Add buildobj.lst.
2109
2110 * doc.c: New variable Vbuild_files.
2111 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
2112 file names from buildobh.lst. Only attach docstrings from files
2113 that are in Vbuild_files.
2114 (syms_of_doc): Defvar Vbuild_files.
2115
2116 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
2117 and w32*.o.
2118 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
2119 (mostlyclean): Rm buildobj.lst
2120
2121 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
2122 is linked.
2123
2124 2004-11-09 Kim F. Storm <storm@cua.dk>
2125
2126 * fringe.c (update_window_fringes): Update fringe bitmaps if
2127 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
2128 also update previous row to get rid of misc. artifacts.
2129
2130 2004-11-08 Kim F. Storm <storm@cua.dk>
2131
2132 * xdisp.c (fast_find_position): Fix start pos if header line present.
2133 (note_mouse_highlight): Clear mouse face if we move out of text area.
2134
2135 2004-11-08 Eli Zaretskii <eliz@gnu.org>
2136
2137 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
2138 Don't include <sys/time.h> explicitly.
2139 Include <stdio.h> unconditionally, not just on MacOS.
2140
2141 2004-11-08 Kenichi Handa <handa@m17n.org>
2142
2143 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
2144 don't pay attention to '\' before '*'.
2145 (fontset_pattern_regexp): Change the meaning of the second arg.
2146 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
2147 (check_fontset_name): Try NAME as literal at first, and if it
2148 failes, try NAME as pattern.
2149
2150 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2151
2152 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
2153
2154 2004-11-07 Andreas Schwab <schwab@suse.de>
2155
2156 * lisp.h (Fmsdos_downcase_filename): Declare.
2157 * dired.c (Fmsdos_downcase_filename): Don't declare here.
2158 * fileio.c: Likewise.
2159
2160 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2161
2162 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
2163 comparisons with integers instead of Lisp_Object address.
2164 (Fmsdos_set_keyboard): Declare argument allkeys.
2165
2166 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
2167
2168 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
2169 int/Lisp_Object mixup.
2170
2171 * fileio.c: Ditto.
2172
2173 2004-11-06 Steven Tamm <steventamm@mac.com>
2174
2175 * editfns.c: Need to include sys/time.h before resource.h on darwin.
2176
2177 2004-11-06 Richard M. Stallman <rms@gnu.org>
2178
2179 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
2180
2181 * xfaces.c (merge_named_face): GCPRO the face_name in the
2182 named_merge_point struct that we make.
2183 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
2184
2185 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
2186 before deciding whether to inactivate mark.
2187
2188 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
2189
2190 * config.in: Regenerate (add HAVE_GETRUSAGE).
2191 * editfns.c (Fget_internal_run_time): New function.
2192 (syms_of_data): Defsubr it.
2193 * fns.c (sxhash): As far as possible, merge calculation of
2194 hash code for symbols and strings.
2195
2196 2004-11-06 Eli Zaretskii <eliz@gnu.org>
2197
2198 * frame.c (syms_of_frame): Fix the example in the doc string.
2199
2200 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2201
2202 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
2203
2204 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
2205 (create_and_show_dialog): Revert change from 2004-10-31.
2206
2207 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
2208
2209 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
2210
2211 2004-11-05 Kim F. Storm <storm@cua.dk>
2212
2213 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
2214
2215 * fileio.c (Ffile_modes): Doc fix.
2216 (auto_save_1): Check for Ffile_modes nil value.
2217
2218 2004-11-05 Kim F. Storm <storm@cua.dk>
2219
2220 * xselect.c (struct selection_event_queue, selection_queue)
2221 (x_queue_selection_requests, x_queue_event)
2222 (x_start_queuing_selection_requests)
2223 (x_stop_queuing_selection_requests): Add new queue for selection
2224 input events to replace previous XEvent queue in xterm.c.
2225 (queue_selection_requests_unwind): Adapt to new queue.
2226 (x_reply_selection_request): Adapt to new queue.
2227 Unexpect wait_object in case of x errors (memory leak).
2228 (x_handle_selection_request, x_handle_selection_clear): Make static.
2229 (x_handle_selection_event): New function. May queue selection events.
2230 (wait_for_property_change_unwind): Use save_value instead of cons.
2231 Clear property_change_reply_object.
2232 (wait_for_property_change): Abort if already waiting.
2233 Use save_value instead of cons for unwind data.
2234 (x_handle_property_notify): Skip events already arrived, but don't
2235 free them, as "arrived" field is checked by wait_for_property_change,
2236 and it will be freed by unwind or explicit unexpect_property_change.
2237 (x_get_foreign_selection): Add to new queue.
2238 (receive_incremental_selection): Don't unexpect wait_object when done
2239 as it has already been freed by previous wait_for_property_change.
2240
2241 * xterm.h (x_start_queuing_selection_requests)
2242 (x_stop_queuing_selection_requests, x_handle_selection_request)
2243 (x_handle_selection_clear): Remove prototypes.
2244 (x_handle_selection_event): Add prototype.
2245
2246 * xterm.c (handle_one_xevent): Don't queue X selection events
2247 here, it may be too late if we start queuing after we have already
2248 stored some selection events into the kbd buffer.
2249 (struct selection_event_queue, queue, x_queue_selection_requests)
2250 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
2251 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
2252 (x_catch_errors_unwind): Block input around final XSync.
2253
2254 * keyboard.h (kbd_buffer_unget_event): Add prototype.
2255
2256 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
2257 (kbd_buffer_unget_event): New function.
2258 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
2259 and use x_handle_selection_event.
2260 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
2261
2262 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2263
2264 * xselect.c (TRACE3): New debug macro.
2265 (x_reply_selection_request): Use it.
2266 (receive_incremental_selection): In call to TRACE0, the name of
2267 a symbol is in xname.
2268
2269 2004-11-05 Kim F. Storm <storm@cua.dk>
2270
2271 * fontset.c (fontset_pattern_regexp): Use unsigned char.
2272
2273 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2274
2275 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
2276
2277 * gtkutil.h (use_old_gtk_file_dialog): Declare.
2278
2279 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
2280 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
2281 * xfns.c (syms_of_xfns): ... to here.
2282
2283 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
2284 it doesn't start with /.
2285
2286 2004-11-04 Kenichi Handa <handa@m17n.org>
2287
2288 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
2289 treat it as a literal character.
2290
2291 2004-11-03 Kim F. Storm <storm@cua.dk>
2292
2293 * .gdbinit (ppt): New function.
2294
2295 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2296
2297 * xterm.c (x_window_to_scroll_bar): Only call
2298 xg_get_scroll_id_for_window if toolkit scroll bars are used.
2299
2300 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
2301 of save.
2302
2303 2004-11-02 Andreas Schwab <schwab@suse.de>
2304
2305 * window.c (Fscroll_right): Fix last change.
2306
2307 2004-11-02 Kim F. Storm <storm@cua.dk>
2308
2309 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
2310
2311 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2312
2313 * callproc.c (Fcall_process): Block input around vfork.
2314
2315 2004-11-02 Kim F. Storm <storm@cua.dk>
2316
2317 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
2318 (syms_of_eval): Defsubr it.
2319
2320 2004-11-02 Richard M. Stallman <rms@gnu.org>
2321
2322 * insdel.c (replace_range_2): New function.
2323
2324 * casefiddle.c (casify_region): Handle changes in byte-length
2325 using replace_range_2.
2326
2327 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
2328
2329 * xdisp.c (back_to_previous_visible_line_start):
2330 Subtract 1 from pos when checking previous newline for invisibility.
2331
2332 * window.c (window_scroll_pixel_based): Update preserve_y
2333 for header line if any.
2334 (Fscroll_left, Fscroll_right): Don't call interactive_p;
2335 use a new second argument instead.
2336
2337 * eval.c (Fcall_interactive_p): New function.
2338 (interactive_p): Don't test INTERACTIVE here.
2339 (Finteractive_p): Doc fix.
2340
2341 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
2342
2343 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2344
2345 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
2346 comparing font names.
2347
2348 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2349
2350 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
2351 Fx_file_dialog if only directories should be read.
2352
2353 * lisp.h: Fx_file_dialog takes 5 parameters.
2354
2355 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
2356 Add parameter only_dir_p.
2357 In Motif version, don't put DEFAULT_FILENAME in filter part of the
2358 dialog, just text field part. Do not add DEFAULT_FILENAME
2359 to list of files if it isn't there.
2360 In GTK version, pass only_dir_p parameter to xg_get_file_name.
2361
2362 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
2363 Check only_dir_p instead of comparing prompt to "Dired". When using
2364 a save dialog, add option kNavDontConfirmReplacement, change title
2365 to "Enter name", change text for save button to "Ok".
2366
2367 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
2368 Check only_dir_p instead of comparing prompt to "Dired".
2369
2370 * gtkutil.c (xg_get_file_with_chooser)
2371 (xg_get_file_with_selection): New functions, only defined ifdef
2372 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
2373 respectively.
2374 (xg_get_file_name): Add parameter only_dir_p.
2375 Call xg_get_file_with_chooser or xg_get_file_with_selection
2376 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
2377 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
2378
2379 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
2380
2381 * config.in: Rebuild (added HAVE_GTK_FILE_*).
2382
2383 2004-11-01 Kim F. Storm <storm@cua.dk>
2384
2385 * process.c (connect_wait_mask, num_pending_connects):
2386 Only declare and use them if NON_BLOCKING_CONNECT is defined.
2387 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
2388 (IF_NON_BLOCKING_CONNECT): New helper macro.
2389 (wait_reading_process_output): Only declare and use local vars
2390 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
2391
2392 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
2393
2394 * w32term.c (x_scroll_run): Delete region objects after use.
2395
2396 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2397
2398 * xmenu.c: Add prototypes for forward function declarations.
2399 (popup_get_selection): Remove parameter do_timers, remove call to
2400 timer_check.
2401 (create_and_show_popup_menu, create_and_show_dialog):
2402 Remove parameter do_timers from call to popup_get_selection.
2403
2404 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
2405 tool_bar_items and assign the result to f->tool_bar_items if
2406 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
2407 tool_bar_items to assignment of result.
2408
2409 * atimer.c (alarm_signal_handler): Do not call set_alarm if
2410 pending_atmers is non-zero.
2411
2412 2004-10-31 Kim F. Storm <storm@cua.dk>
2413
2414 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
2415
2416 2004-10-28 Will <will@glozer.net>
2417
2418 * macterm.c: allow user to assign key modifiers to the Mac Option
2419 key via a 'mac-option-modifier' variable.
2420
2421 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2422
2423 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
2424 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
2425 (x_handle_selection_request, x_handle_selection_clear)
2426 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
2427
2428 2004-10-28 Richard M. Stallman <rms@gnu.org>
2429
2430 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2431
2432 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2433
2434 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
2435
2436 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
2437 comment-starter over a 1-char one.
2438
2439 2004-10-27 Richard M. Stallman <rms@gnu.org>
2440
2441 * xdisp.c (get_next_display_element): In mode lines,
2442 treat newline and tab like other control characters.
2443
2444 * editfns.c (Fmessage): Doc fix.
2445
2446 * indent.c (vmotion): When moving up, check the newline before.
2447 Make prevline an int, not a Lisp_Object.
2448
2449 2004-10-27 Kim F. Storm <storm@cua.dk>
2450
2451 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
2452 Only allocate info and discarded tables once.
2453
2454 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
2455 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
2456 (SAFE_FREE): Test it to determine if we need to unwind to free.
2457 Remove size arg. All users changed.
2458 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
2459
2460 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2461
2462 * gtkutil.c: Put empty line between comment and function body.
2463 (xg_destroy_widgets): Rename from remove_from_container.
2464 Just destroy all widgets in list. Argument wcont removed.
2465 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
2466 instead of remove_from_container.
2467 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
2468 (free_frame_tool_bar): Add comment.
2469
2470 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
2471 is not NULL before strcmp.
2472
2473 2004-10-26 Kim F. Storm <storm@cua.dk>
2474
2475 * callint.c (Fcall_interactively): Add 'U' code to get the
2476 up-event discarded by a previous 'k' or 'K' argument.
2477
2478 2004-10-26 David Kastrup <dak@gnu.org>
2479
2480 * buffer.c (syms_of_buffer): Fix a few typos.
2481
2482 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2483
2484 * xsmfns.c: Put empty line between comment and function body.
2485 Use two spaces before comment end.
2486
2487 2004-10-25 Kenichi Handa <handa@m17n.org>
2488
2489 * fontset.c (fontset_pattern_regexp): Optimize for the case that
2490 PATTERN is full XLFD.
2491
2492 2004-10-24 Kenichi Handa <handa@m17n.org>
2493
2494 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
2495
2496 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
2497 (regex_compile): Return REG_ERANGEX if appropriate.
2498
2499 2004-10-22 Kenichi Handa <handa@m17n.org>
2500
2501 * editfns.c (Ftranslate_region_internal): New function.
2502 (syms_of_editfns): Defsubr it.
2503
2504 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2505
2506 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
2507
2508 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
2509
2510 * xterm.h (x_output): New member `xic_base_fontname'.
2511 (FRAME_XIC_BASE_FONTNAME): New macro.
2512 (xic_free_xfontset): Declare.
2513
2514 * xfns.c (xic_create_xfontset): Share fontsets between frames
2515 based on base_fontname.
2516 (xic_free_xfontset): New function.
2517 (free_frame_xic): Use it.
2518 (xic_set_xfontset): Ditto.
2519
2520 * xterm.c (xim_destroy_callback): Ditto.
2521
2522
2523 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
2524
2525 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
2526
2527 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2528
2529 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
2530 XSync.
2531
2532 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
2533 New variables and constant.
2534 (main): Calculate heap_bss_diff. If we are dumping and the
2535 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
2536 and exec ourself again.
2537 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
2538 print a warning.
2539
2540 * lastfile.c: Make my_endbss and my_endbss_static available on all
2541 platforms.
2542
2543 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
2544 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
2545
2546 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
2547
2548 * data.c (Flocal_variable_if_set_p): Doc fix.
2549
2550 2004-10-19 Jason Rumney <jasonr@gnu.org>
2551
2552 * w32.c (init_environment): Set emacs_dir correctly when running
2553 emacs from the build directory.
2554
2555 2004-10-19 Richard M. Stallman <rms@gnu.org>
2556
2557 * editfns.c (Fdelete_and_extract_region):
2558 If region is empty, return null string.
2559
2560 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2561
2562 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
2563 and canon_width.
2564 (xg_frame_cleared): Remove.
2565
2566 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
2567 (xg_find_top_left_in_fixed): Remove.
2568 (xg_create_scroll_bar): Put an event box widget between
2569 the scroll bar widget and the edit widget.
2570 (xg_show_scroll_bar): Show the parent widget (the event box).
2571 (xg_remove_scroll_bar): Destroy parent (the event box) also.
2572 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
2573 Move the parent (the event box) widget inside the fixed widget.
2574 Move window clear to xterm.c.
2575
2576 * gtkutil.h (xg_frame_cleared): Remove.
2577
2578 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
2579 (x_scroll_bar_create, XTset_vertical_scroll_bar):
2580 Remove arguments left and width to xg_update_scrollbar_pos.
2581 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
2582
2583 2004-10-19 Kenichi Handa <handa@m17n.org>
2584
2585 * xdisp.c (display_mode_element): Fix display of wide chars.
2586
2587 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2588
2589 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2590 gdk_window_clear and move gdk_window_process_all_updates after
2591 clear so events are sent to the X server in correct order.
2592
2593 2004-10-18 Kenichi Handa <handa@m17n.org>
2594
2595 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2596 comparing font names.
2597 (fs_query_fontset): Use fast_string_match for comparing fontset names.
2598 (list_fontsets): Likewise.
2599
2600 * search.c (fast_string_match_ignore_case): New function.
2601
2602 * lisp.h (fast_string_match_ignore_case): Extern it.
2603
2604 2004-10-17 Kim F. Storm <storm@cua.dk>
2605
2606 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2607 than bitmap if there is not left fringe.
2608 (get_overlay_arrow_glyph_row): Also used on windows system.
2609 (display_line): Display overlay string if no left fringe.
2610
2611 2004-10-16 Jason Rumney <jasonr@gnu.org>
2612
2613 * w32fns.c (w32_font_match): Encode font name being matched.
2614
2615 2004-10-16 Richard M. Stallman <rms@gnu.org>
2616
2617 * window.c (Fspecial_display_p): Doc fix.
2618
2619 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
2620
2621 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2622 Don't ignore menus, because where-is-internal already does it for us.
2623
2624 2004-10-15 Kim F. Storm <storm@cua.dk>
2625
2626 * xdisp.c (redisplay_window): Only update fringes and vertical
2627 border on window frames.
2628
2629 2004-10-14 Andreas Schwab <schwab@suse.de>
2630
2631 * m/ia64.h (DATA_SEG_BITS): Don't define.
2632
2633 2004-10-14 Kim F. Storm <storm@cua.dk>
2634
2635 * xterm.h: Include Xutil.h after keysym.h to work around bug
2636 in some X versions.
2637
2638 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2639
2640 * fns.c (map_char_table): Add missing gcpros.
2641
2642 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2643
2644 * keymap.c (get_keymap): An autoload form is not a keymap.
2645
2646 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2647
2648 2004-10-13 Kim F. Storm <storm@cua.dk>
2649
2650 * callproc.c (Fcall_process): Simplify handling of display arg.
2651 Resume `display_on_the_fly' once a coding system is determined.
2652
2653 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
2654
2655 2004-10-12 Kim F. Storm <storm@cua.dk>
2656
2657 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
2658 caller, such as call-process, is not going to poll for input.
2659 (calc_line_height_property): Handle case where it->object is nil.
2660
2661 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
2662
2663 2004-10-12 Kenichi Handa <handa@m17n.org>
2664
2665 * xdisp.c (get_next_display_element):
2666 If unibyte_display_via_language_environment is zero, display 8-bit
2667 chars in octal in unibyte buffer.
2668
2669 2004-10-12 Kim F. Storm <storm@cua.dk>
2670
2671 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
2672 are no ordinary bindings.
2673
2674 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2675
2676 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
2677
2678 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2679
2680 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
2681 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
2682 (make_mac_frame): Add BLOCK_INPUT around the making of a
2683 terminal frame.
2684 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
2685 * macgui.h (mktime): Use emacs_mktime.
2686 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
2687 Make a cancel file-open dialog be like C-g.
2688 * mac.c (mktime): Use emacs_mktime.
2689 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
2690 (Fmac_paste_function): Add better error handling for carbon cut/paste.
2691
2692 2004-10-10 Kim F. Storm <storm@cua.dk>
2693
2694 * keyboard.c (timer_resume_idle): New function to resume idle
2695 timer without resetting timers on the idle list.
2696 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
2697 (timer_start_idle, timer_stop_idle): Declare static.
2698 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
2699
2700 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
2701
2702 2004-10-08 Steven Tamm <steventamm@mac.com>
2703
2704 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
2705 * macterm.c (mac_check_for_quit_char): Remove warning for using
2706 NULL where 0 should be used.
2707 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
2708 objc/malloc.h
2709 * mac.c: Include time.h for Tiger compatibility.
2710
2711 2004-10-07 Kim F. Storm <storm@cua.dk>
2712
2713 * xdisp.c (redisplay_window): Fix flicker on vertical line between
2714 windows. Update vertical line after drawing window fringes, but
2715 only if actually drawing any bitmaps--or there is no fringe.
2716
2717 * xterm.c (x_update_window_end): Likewise.
2718 * macterm.c (x_update_window_end): Likewise.
2719 * w32term.c (x_update_window_end): Likewise.
2720
2721 * fringe.c (draw_window_fringes): Return value now indicates if
2722 any fringe bitmaps were redrawn (or there are no fringes).
2723
2724 * dispextern.h (draw_window_fringes): Update prototype.
2725
2726 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2727
2728 * macfns.c (mac_get_window_bounds): Add extern.
2729 (x_real_positions): Use mac_get_window_bounds.
2730
2731 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
2732 xmenu.c (YAILOM).
2733
2734 * macterm.c [!MAC_OSX]: Include Windows.h.
2735 (front_emacs_window): Rename from mac_front_window. All uses
2736 changed. Return the frontmost non-tooltip emacs window.
2737 (mac_get_window_bounds): New function.
2738 (x_calc_absolute_position): Use the difference of width and height
2739 between the inner and outer window.
2740 (x_set_offset): Specify window position by the coordinae of the
2741 outer window. Adjust the position if the title bar is completely
2742 outside the screen.
2743 (app_is_suspended, app_sleep_time): Remove unused variables.
2744 (do_app_resume, do_app_suspend): Remove their contents because
2745 window-activate/deactivate events will do the job.
2746 (do_zoom_window): Remove unused variables. Make compliant to the
2747 standard way of zooming. Set f->left_pos and f->top_pos.
2748 (XTread_socket): Don't use argument `expected'. Don't use
2749 FrontWindow to determine the clicked window. Exclude unprocessed
2750 mouseUp cases in the early stage. Add parentheses to fix operator
2751 precedence.
2752 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
2753
2754 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
2755
2756 * config.in: Regenerate.
2757
2758 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
2759 HAVE_EXECSHIELD.
2760
2761 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2762
2763 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2764 a row if Alt or Meta has been found for that row. Also stop scanning
2765 for Keysyms for that row.
2766
2767 2004-10-04 Kim F. Storm <storm@cua.dk>
2768
2769 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2770 to list. Include overlay arrow bitmap in return value.
2771
2772 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2773 bars with fractional column width. If scroll bar separates two
2774 windows, move it towards the window it belongs to. Only update
2775 the padding area below the scroll bar widget when necessary,
2776 i.e. when scroll bar widget is created, moved, or resized.
2777
2778 * xdisp.c (define_frame_cursor1): Do not change frame cursor
2779 while tracking/dragging mouse.
2780 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2781
2782 * window.c (coordinates_in_window): Relax check for cursor
2783 on vertial border between mode lines.
2784 (Fset_window_fringes): Do not allow negative widths.
2785 (Fset_window_scroll_bars): Likewise.
2786
2787 * .gdbinit (pp): Shorthand for p ARG + pr.
2788 (ff): New command: flush frame updates (X only).
2789
2790 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
2791
2792 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2793
2794 2004-09-30 Kenichi Handa <handa@m17n.org>
2795
2796 * process.c (send_process): Free composition data.
2797
2798 * fileio.c (Finsert_file_contents): Free composition data.
2799
2800 * coding.c (code_convert_region): Don't skip ASCIIs if there are
2801 compositions to encode.
2802 (encode_coding_string): Likewise. Free composition data.
2803
2804 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
2805
2806 * coding.c (code_convert_region): Free composition data.
2807
2808 2004-09-29 Kim F. Storm <storm@cua.dk>
2809
2810 * fringe.c: Remove limit on number of bitmaps.
2811 (fringe_bitmaps, fringe_faces): Change to pointers.
2812 (max_fringe_bitmaps): New var.
2813 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2814 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2815
2816 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2817 (struct glyph_row): Reorder fringe_bitmap related fields.
2818 (struct it): Likewise.
2819
2820 * w32term.c (fringe_bmp): Change to pointer.
2821 (max_fringe_bmp): New var.
2822 (w32_define_fringe_bitmap): Expand fringe_bmp.
2823 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2824 (w32_destroy_fringe_bitmap): Likewise.
2825
2826 2004-09-29 Kim F. Storm <storm@cua.dk>
2827
2828 * fringe.c: Simplify last change.
2829 (lookup_fringe_bitmap): New function.
2830 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2831 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2832 Keep standard bitmaps in Vfringe_bitmaps.
2833 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2834 (Fset_fringe_bitmap_face): Likewise.
2835
2836 * dispextern.h (lookup_fringe_bitmap): Add prototype.
2837 (valid_fringe_bitmap_p): Remove prototype.
2838
2839 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2840
2841 2004-09-29 Kim F. Storm <storm@cua.dk>
2842
2843 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2844 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2845
2846 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2847
2848 * fringe.c (Vfringe_bitmaps): New variable.
2849 (syms_of_fringe): DEFVAR_LISP it.
2850 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2851 Change arg to Lisp_Object and fail if not an integer.
2852 (get_fringe_bitmap_name, resolve_fringe_bitmap)
2853 (destroy_fringe_bitmap): New functions.
2854 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2855 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
2856 clear its fringe property.
2857 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2858 Fdestroy_fringe_bitmap.
2859 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2860 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
2861 and set fringe property. Signal error if no free slots.
2862 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2863 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2864
2865 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2866 symbols with a fringe property.
2867
2868 2004-09-27 Kim F. Storm <storm@cua.dk>
2869
2870 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2871 Doc fix. Format may now be a symbol or alist, not a cons.
2872
2873 * fringe.c (update_window_fringes): Handle new formats of
2874 indicate-buffer-boundaries (symbol or alist). No longer
2875 allow a simple cons.
2876 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2877
2878 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2879
2880 * config.in: Rebuild.
2881
2882 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2883
2884 * config.in: Rebuild.
2885
2886 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
2887
2888 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2889
2890 * xterm.c (x_term_init): Work around a bug in some X servers.
2891
2892 2004-09-18 Richard M. Stallman <rms@gnu.org>
2893
2894 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2895
2896 * xdisp.c (try_window_reusing_current_matrix):
2897 Handle the case where we reach the old displayed text,
2898 out of sync with the old line boundary.
2899
2900 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
2901
2902 * fileio.c (Finsert_file_contents): Fix case of replacement in a
2903 narrowed buffer.
2904
2905 2004-09-14 Kim F. Storm <storm@cua.dk>
2906
2907 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2908
2909 * xfaces.c (Qface_no_inherit): New var.
2910 (syms_of_xfaces): Intern and staticpro it.
2911 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2912 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2913 Don't increment face_change_count when face has non-nil
2914 face-no-inherit property.
2915
2916 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
2917
2918 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2919 (Fbyte_code): Remove dead code after `wrong_type_argument'.
2920
2921 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
2922 before doing the mark_stack_check_gcpros since they're not on the stack.
2923
2924 2004-09-12 Kim F. Storm <storm@cua.dk>
2925
2926 * editfns.c (Fformat): Handle format strings with multiple text
2927 properties. Reverse text property list from the format string,
2928 so the positions are in increasing order.
2929
2930 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2931
2932 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2933 x_uncatch_errors so that possible protocol errors are delivered.
2934
2935 2004-09-10 Eli Zaretskii <eliz@gnu.org>
2936
2937 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2938 blockinput.h.
2939 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2940 charset.h, and coding.h
2941 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
2942 (term.o): Depend on window.h and keymap.h.
2943 (abbrev.o): Depend on syntax.h.
2944 (callint.o): Depend on keymap.h.
2945 (casefiddle.o): Depend on charset.h and keymap.h.
2946 (category.o): Depend on keymap.h.
2947 (coding.o): Depend on dispextern.h.
2948 (cmds.o): Depend on keyboard.h and keymap.h.
2949 (dispnew.o): Depend on indent.h and intervals.h.
2950 (doc.o): Depend on keymap.h.
2951 (editfns.o): Depend on frame.h.
2952 (emacs.o): Depend on dispextern.h.
2953 (fileio.o): Don't depend on ccl.h.
2954 (filelock.o): Depend on charset.h and coding.h.
2955 (frame.o): Depend on w32term.h and macterm.h.
2956 (insdel.o): Depend on region-cache.h.
2957 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2958 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2959 (search.o): Depend on $(INTERVALS_SRC).
2960 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2961 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2962 xterm.h, w32term.h, and macterm.h.
2963 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2964 w32term.h, and macterm.h.
2965 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2966 region-cache.h, xterm.h, w32term.h, and macterm.h.
2967 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2968 (data.o): Depend on frame.h.
2969 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2970 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2971 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2972 (intervals.o): Depend on keymap.h.
2973
2974 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2975 Add debugging print-out to termscript.
2976
2977 2004-09-09 Richard M. Stallman <rms@gnu.org>
2978
2979 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2980
2981 2004-09-08 Richard M. Stallman <rms@gnu.org>
2982
2983 * window.c (Fset_window_buffer): Doc fix.
2984
2985 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2986
2987 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
2988
2989 * minibuf.c (history_delete_duplicates): New variable.
2990 (read_minibuf): Use it.
2991 (syms_of_minibuf): Create the corresponding lisp variable.
2992
2993 2004-09-08 Kim F. Storm <storm@cua.dk>
2994
2995 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2996 overlay just before point.
2997
2998 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
2999
3000 * buffer.h (struct buffer): Add auto_save_file_format field.
3001 * buffer.c (reset_buffer, init_buffer_once):
3002 Handle auto_save_file_format field.
3003 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
3004 `buffer-auto-save-file-format'.
3005 * fileio.c: Delete declaration for removed Vauto_save_file_format.
3006 (build_annotations): Adapt to replacement of
3007 `auto-save-file-format' with the new buffer-local variable
3008 `buffer-auto-save-file-format'.
3009 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
3010
3011 2004-09-07 Jason Rumney <jasonr@gnu.org>
3012
3013 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
3014
3015 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
3016 Handle Unicode menu titles.
3017
3018 2004-09-07 Kim F. Storm <storm@cua.dk>
3019
3020 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
3021 property from text property or overlay strings at point.
3022
3023 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3024
3025 * xmenu.c (update_submenu_strings): YAILOM.
3026 (set_frame_menubar): Make sure last_i is initialized.
3027
3028 2004-09-03 Jason Rumney <jasonr@gnu.org>
3029
3030 * w32menu.c (_widget_value): Add lname and lkey.
3031 (digest_single_submenu): Set lname and lkey in widget_value
3032 instead of name and key.
3033 (update_submenu_strings): New function.
3034 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3035 call update_submenu_strings.
3036
3037 * w32menu.c (globals_of_w32menu): Check for Unicode API.
3038 (digest_single_submenu, w32_menu_show): Encode menu strings as
3039 UTF-8 if Unicode API is available.
3040 (utf8to16): New function.
3041 (add_menu_item): Use it when calling Unicode API.
3042
3043 2004-09-03 Kim F. Storm <storm@cua.dk>
3044
3045 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
3046 in overlay or text-property strings; set cursor on corresponding
3047 glyph rather than at end of the string.
3048
3049 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3050
3051 * macfns.c (x_real_positions): Save the current window port and
3052 set a new one before obtaining the global coordinate.
3053 Use FRAME_MAC_WINDOW.
3054 (x_set_name, x_set_title): Encode title to UTF8.
3055 Use SetWindowTitleWithCFString.
3056 (Fx_server_version): Get correct OS version.
3057
3058 * macmenu.c (add_menu_item): Remove unused variable `i'.
3059 Don't let separator items destroy refence constants of other menu items.
3060
3061 * macterm.c (x_update_end): Move SetPortWindowPort to inside
3062 BLOCK_INPUT.
3063 (x_set_offset): Use FRAME_MAC_WINDOW.
3064
3065 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
3066 nontext_cursor if it is on a scroll bar.
3067
3068 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
3069 Carbon support.
3070 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
3071 Use LIBS_CARBON.
3072
3073 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3074
3075 * xfns.c (x_set_name_internal): New function. Check if we shall call
3076 xfree before ENCODE_UTF_8.
3077 (x_set_name, x_set_title): Call x_set_name_internal.
3078
3079 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
3080
3081 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
3082 reload it.
3083
3084 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3085
3086 * macmenu.c (_widget_value): Add lname and lkey.
3087 (single_submenu): Set lname and lkey in widget_value
3088 instead of name and key.
3089 (update_submenu_strings): New function.
3090 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3091 call update_submenu_strings.
3092
3093 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
3094 instead of name and key.
3095 (update_submenu_strings): New function.
3096 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3097 call update_submenu_strings.
3098
3099 * gtkutil.h (_widget_value): Added lname and lkey.
3100
3101 2004-08-30 Steven Tamm <steventamm@mac.com>
3102
3103 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
3104 by using different names for inner loop variables.
3105
3106 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3107
3108 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
3109 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
3110
3111 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
3112 tool bar items is 0.
3113
3114 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3115
3116 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
3117 strings in menu items.
3118 (single_submenu): Use ENCODE_MENU_STRING
3119 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
3120 button release isn't passed to event loop
3121 (add_menu_item): Use SetMenuItemWithCFString
3122
3123 2004-08-26 Steven Tamm <steventamm@mac.com>
3124
3125 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
3126 tool-bar/menu click
3127 * macfns.c (Fx_file_dialog): Implemented using NavServices
3128
3129 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3130
3131 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
3132
3133 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3134 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3135 (x_top_window_to_frame): Return 0 if wdesc is None.
3136
3137 2004-08-22 Richard M. Stallman <rms@gnu.org>
3138
3139 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
3140 HAVE_TERMIOS]: If there's no char for this signal, drop through
3141 and use system calls.
3142
3143 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
3144
3145 2004-08-20 Kim F. Storm <storm@cua.dk>
3146
3147 * process.c (wait_reading_process_output): Rename from
3148 wait_reading_process_input. All uses changed.
3149 (wait_reading_process_output_1): Rename from
3150 wait_reading_process_input_1. All uses changed.
3151
3152 * dispnew.c (Fsleep_for): Remove obsolete code.
3153
3154 2004-08-20 Kenichi Handa <handa@m17n.org>
3155
3156 * syntax.c (skip_chars): Fix for unibyte case.
3157
3158 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3159
3160 * syntax.c (char_quoted): Mixup byte/char pos.
3161 (back_comment): Fixup globals in all cases.
3162
3163 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3164
3165 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
3166 passing it to gtk_window_set_title.
3167
3168 2004-08-19 Kim F. Storm <storm@cua.dk>
3169
3170 * process.c (wait_reading_process_input): Clean up.
3171 Add wait_for_cell, wait_proc, and just_wait_proc args
3172 to avoid overloading `read_kbd' and `do_display' args.
3173 Change read_kbd arg to int. All callers changed.
3174
3175 * process.c (process_send_signal): Use CDISABLE.
3176
3177 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
3178
3179 2004-08-18 Kim F. Storm <storm@cua.dk>
3180
3181 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
3182 forward to wait_reading_process_input via DO_DISPLAY arg.
3183 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
3184 object, only process output from that process; also inhibit
3185 running timers if DO_DISPLAY==-2.
3186
3187 2004-08-17 Kim F. Storm <storm@cua.dk>
3188
3189 * process.c (process_send_signal): Fix last change--use
3190 _POSIX_VDISABLE instead of CVDISABLE when available.
3191
3192 2004-08-16 Richard M. Stallman <rms@gnu.org>
3193
3194 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
3195 Set VQUIT and VINTR chars to the standard ones if they are unset.
3196 [AIX]: Don't do that here. And don't force VINTR to standard
3197 when SIGNALS_VIA_CHARACTERS.
3198
3199 * process.c (process_send_signal)
3200 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
3201 Do nothing if the character is CVDISABLE.
3202
3203 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
3204
3205 * intervals.c (move_if_not_intangible):
3206 Force POSITION to be between BEGV and ZV.
3207
3208 2004-08-14 John Paul Wallington <jpw@gnu.org>
3209
3210 * buffer.c (Frestore_buffer_modified_p): Doc fix.
3211
3212 * fileio.c (Fread_file_name): Doc fix.
3213
3214 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3215
3216 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
3217
3218 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
3219
3220 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
3221
3222 * keyboard.c: Declare Qdisabled_command_function instead of
3223 Qdisabled_command_hook.
3224 (Fcommand_execute): Use Qdisabled_command_function instead of
3225 Qdisabled_command_hook.
3226 (syms_of_keyboard): Ditto.
3227
3228 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
3229
3230 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
3231 (syms_of_keymap) <key-translation-map>: Doc fixes.
3232
3233 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
3234
3235 * window.c (window_list_1): YAILOM.
3236
3237 * fileio.c (make_temp_name): Handle multibyte prefixes.
3238
3239 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
3240
3241 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3242 Doc fix.
3243
3244 2004-08-03 Kenichi Handa <handa@m17n.org>
3245
3246 * coding.c (decode_coding_string): Adjust coding->consumed, and
3247 etc. with shrinked_bytes.
3248
3249 2004-08-03 Kim F. Storm <storm@cua.dk>
3250
3251 * indent.c (compute_motion): Fix check for full width window
3252 in non-window case. Do not count left truncation glyph on
3253 window systems.
3254
3255 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
3256
3257 * data.c (Finteractive_form): Doc fix.
3258
3259 2004-08-02 Kim F. Storm <storm@cua.dk>
3260
3261 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
3262 properly accounting for continuation glyph on non-window systems.
3263 (Fcompute_motion): Use actual window width if WIDTH is nil, and
3264 actual window width/height if TOPOS is nil, properly accounting for
3265 continuation glyphs on non-window systems, and optional header lines.
3266 (vmotion): Let compute_motion calculate actual window width.
3267
3268 * window.c (window_scroll_line_based): Let compute_motion
3269 calculate actual window width.
3270
3271 2004-08-02 Kim F. Storm <storm@cua.dk>
3272
3273 * process.c (read_process_output): Use whole read buffer.
3274 Don't trigger adaptive read buffering on errors.
3275
3276 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
3277
3278 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
3279
3280 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
3281
3282 * callint.c (Fcall_interactively): Doc fix.
3283
3284 2004-07-30 Richard M. Stallman <rms@gnu.org>
3285
3286 * abbrev.c (Fexpand_abbrev): Undo previous change.
3287
3288 2004-07-30 Kim F. Storm <storm@cua.dk>
3289
3290 * editfns.c (Fformat): Allocate extra (dummy) element in info.
3291
3292 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
3293
3294 * eval.c (Fdefvar, Fdefconst): Doc fixes.
3295
3296 2004-07-27 Kim F. Storm <storm@cua.dk>
3297
3298 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
3299 we have ensured that the glyph fits on the current line (or returned
3300 MOVE_LINE_CONTINUED otherwise).
3301
3302 2004-07-26 Kim F. Storm <storm@cua.dk>
3303
3304 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
3305 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
3306 if target position is at end of display line but char is not a newline.
3307
3308 2004-07-25 Richard M. Stallman <rms@gnu.org>
3309
3310 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
3311 instead of ON_VERTICAL_BORDER, when on scroll bar.
3312 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
3313
3314 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
3315
3316 * window.c (Fcoordinates_in_window_p):
3317 Take account of FRAME_INTERNAL_BORDER_WIDTH.
3318
3319 * alloc.c (check_cons_list): New function (contents commented out).
3320
3321 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
3322
3323 * xfaces.c (Fcolor_supported_p): Doc fix.
3324
3325 * frame.c (Fselect_frame, Fset_frame_selected_window)
3326 (Fframe_visible_p, Fraise_frame): Doc fixes.
3327
3328 2004-07-24 Richard M. Stallman <rms@gnu.org>
3329
3330 * keyboard.h (not_single_kboard_state): Declare.
3331
3332 * fileio.c (Fwrite_region): Doc fix.
3333
3334 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
3335
3336 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
3337 only when a real abbrev is present.
3338
3339 * xfns.c (x_icon_verify): New function.
3340 (Fx_create_frame): Use it.
3341
3342 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
3343
3344 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
3345
3346 2004-07-21 Kim F. Storm <storm@cua.dk>
3347
3348 * window.h (struct glyph_matrix): New members nrows_scale_factor
3349 and ncols_scale_factor.
3350
3351 * window.c (make_window): Initialize nrows_scale_factor and
3352 ncols_scale_factor members.
3353
3354 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
3355 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
3356 (required_matrix_height): Apply nrows_scale_factor.
3357 (required_matrix_width): Apply ncols_scale_factor.
3358
3359 * xdisp.c (display_line): Increment nrows_scale_factor and set
3360 fonts_changed_p if past last allocated row.
3361 (append_glyph, append_composite_glyph, produce_image_glyph)
3362 (append_stretch_glyph): Increment ncols_scale_factor and set
3363 fonts_changed_p if current area is full.
3364
3365 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3366
3367 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
3368
3369 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
3370
3371 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
3372 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
3373 (Fset_window_start, Fscroll_up, Fscroll_down)
3374 (Fother_window_for_scrolling, Fscroll_other_window)
3375 (Fsave_window_excursion, Fset_window_vscroll)
3376 (syms_of_window) <window-size-fixed>: Doc fixes.
3377
3378 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3379
3380 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
3381 ENCODE_SYSTEM for filenames.
3382
3383 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3384
3385 * mac.c (sys_select): Block input around call to
3386 ReceiveNextEvent to prevent breakage. Correctly handle
3387 blocking on event queue only by calling ReceiveNextEvent
3388 instead of select (since GUI events aren't on an fd).
3389 (sys_read): Remove function
3390 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
3391
3392 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3393
3394 * mac.c (sys_select): Redo sys_select to use alarm-based
3395 polling instead of 1 sec timeouts (like solaris).
3396
3397 * macterm.c (x_make_frame_visible): Comment in polling on
3398 frame creation.
3399
3400 * keyboard.c: Undef SIGIO on Carbon
3401
3402 * atimer.c (alarm_signal_handler): Call alarm handlers after
3403 scheduling.
3404
3405 * eval.c (Feval): Remove quit_char test
3406
3407 * process.c (wait_reading_process_input): Remove clearing
3408 stdin for select call on process input.
3409
3410 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
3411
3412 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
3413 capitalization error in docstring.
3414
3415 2004-07-17 Juanma Barranquero <lektu@terra.es>
3416
3417 * keyboard.c (not_single_kboard_state): Do nothing unless
3418 MULTI_KBOARD is defined.
3419
3420 2004-07-17 Richard M. Stallman <rms@gnu.org>
3421
3422 * window.c (coordinates_in_window): Inside the window but outside
3423 its box to the L or R, return ON_VERTICAL_BORDER.
3424 (window_list_1): Rotate the list to start with WINDOW.
3425
3426 * print.c (print_preprocess): Test for print_depth at limit
3427 before entering in being_printed.
3428
3429 * keyboard.c (not_single_kboard_state): New function.
3430 (stuff_buffered_input): Now no-op only if no SIGTSTP.
3431
3432 * frame.c (Fdelete_frame): If we're in single_bboard_state on
3433 this kboard, and we delete its last frame, go to any_kboard_state.
3434
3435 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
3436
3437 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3438
3439 * w32fns.c (Fx_file_dialog): Encode strings in system coding
3440 system before passing them to OS functions for display.
3441
3442 2004-07-15 David Kastrup <dak@gnu.org>
3443
3444 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
3445 Apparently fixes an abort condition.
3446
3447 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
3448
3449 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
3450 instead of a cons.
3451
3452 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
3453
3454 * keyboard.c (echo_dash): Do nothing if there already is a dash
3455 at the end of the echo string.
3456
3457 2004-07-12 Kim F. Storm <storm@cua.dk>
3458
3459 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
3460 if GC_MARK_STACK.
3461
3462 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
3463
3464 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
3465
3466 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
3467 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
3468 (Freplace_buffer_in_windows, Fset_window_buffer)
3469 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
3470 (syms_of_window): Expand docstring of `display-buffer-function'.
3471
3472 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
3473
3474 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
3475 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
3476 that time values of the type (HIGH . LOW) are considered obsolete.
3477
3478 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
3479
3480 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
3481 docstring.
3482
3483 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
3484
3485 2004-07-06 John Paul Wallington <jpw@gnu.org>
3486
3487 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
3488
3489 * fns.c (Fclear_string): Signal an error if STRING is not a string.
3490
3491 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3492
3493 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
3494 instead of CGMainDisplayID (only in OSX 10.2 and later).
3495
3496 2004-07-04 John Paul Wallington <jpw@gnu.org>
3497
3498 * fileio.c (read_file_name_completion_ignore_case): New variable.
3499 (syms_of_fileio): Declare and initialise it.
3500 (Fread_file_name): Bind `completion-ignore-case' to respect it.
3501
3502 2004-07-03 Eli Zaretskii <eliz@gnu.org>
3503
3504 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
3505 for event.x and event.y.
3506
3507 2004-07-01 Kenichi Handa <handa@m17n.org>
3508
3509 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
3510 after getting a new string by pre-write-conversion.
3511
3512 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
3513
3514 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
3515 (x_calc_absolute_position): Remove unused var `child'.
3516
3517 * xfaces.c (x_supports_face_attributes_p)
3518 (Fdisplay_supports_face_attributes_p): YAILOM.
3519 (tty_supports_face_attributes_p): Remove unused var `i'.
3520
3521 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
3522 back_unibyte_ok.
3523
3524 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
3525
3526 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
3527
3528 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
3529
3530 2004-06-30 Andreas Schwab <schwab@suse.de>
3531
3532 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
3533 (Finit_image_library): Pass LIBRARIES through to
3534 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
3535 (lookup_image_type): Pass Qnil as second argument to
3536 Finit_image_library.
3537
3538 * lisp.h (Finit_image_library): Declare.
3539
3540 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3541
3542 * macterm.c (do_window_activate, do_window_deactivate): Remove.
3543 (XTread_socket): Send mouse button events to the toolbox
3544 dispatcher even when the mouse is grabbed. Don't process window
3545 activate events for non-Emacs windows. Replace function calls to
3546 do_window_activate and do_window_deactivate with their contents.
3547 Reset mouse grabbing status when a window is deactivated.
3548
3549 2004-06-29 Steven Tamm <steventamm@mac.com>
3550
3551 * macterm.c (mac_get_emulated_btn)
3552 (mac_event_to_emacs_modifiers): Fix emulated mouse button
3553 support to correctly mask out modifiers.
3554
3555 2004-06-29 David Kastrup <dak@gnu.org>
3556
3557 * search.c (Fset_match_data): Allow buffer before end of list
3558 which can happen if set-match-data is using a pre-consed list.
3559
3560 2004-06-28 Steven Tamm <steventamm@mac.com>
3561
3562 * macterm.c (XTread_socket): Correctly set the frame position
3563 after the window is moved.
3564
3565 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3566
3567 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
3568 gpix and gmask just before return to avoid memory leak.
3569 (xg_get_image_for_pixmap): Add workaround for monochrome displays
3570 so insensitive and activated icons look ok.
3571
3572 2004-06-27 Jason Rumney <jasonr@gnu.org>
3573
3574 * w32fns.c (file_dialog_callback): Disable edit control if set
3575 to directories only on CDN_INITDONE message.
3576 (Fx_file_dialog): Default to directories only when prompt starts
3577 with "Dired".
3578
3579 2004-06-25 Kim F. Storm <storm@cua.dk>
3580
3581 * alloc.c (allocate_misc): Update total_free_markers.
3582 (free_misc): New function.
3583 (safe_alloca_unwind, free_marker): Use it.
3584
3585 * lisp.h (free_misc): Add prototype.
3586
3587 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3588
3589 2004-06-24 Richard M. Stallman <rms@gnu.org>
3590
3591 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3592 (syms_of_emacs): Lisp variables deleted.
3593
3594 2004-06-23 David Kastrup <dak@gnu.org>
3595
3596 * search.c (Freplace_match): Adjust the match-data more thoroughly
3597 when replacing strings in the buffer.
3598 (Fmatch_data): When INTEGERS is non-nil and the last match was in
3599 a buffer, add the buffer as last element to the match data.
3600 (Fset_match_data): If an additional element of the match-data is a
3601 buffer, restore it to last_thing_searched.
3602 (save_search_regs): Save last_thing_searched as part of the match data.
3603 (restore_match_data): Restore it again.
3604
3605 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3606
3607 * keymap.c (Ftext_char_description): Doc fix.
3608 * doc.c (Fsnarf_documentation): Doc fix.
3609
3610 2004-06-22 Kim F. Storm <storm@cua.dk>
3611
3612 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3613
3614 * lisp.h (struct Lisp_Save_Value): New member dogc.
3615 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3616 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3617 (SAFE_FREE_LISP): New macro.
3618
3619 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3620 (make_save_value): Init new dogc member.
3621 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3622
3623 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3624 SAFE_FREE_LISP macros.
3625
3626 2004-06-22 Kim F. Storm <storm@cua.dk>
3627
3628 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3629 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3630 in that memory area are unknown to GC. Add comments.
3631
3632 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3633
3634 2004-06-21 Kim F. Storm <storm@cua.dk>
3635
3636 * lisp.h (MAX_ALLOCA): Define here.
3637 (safe_alloca_unwind): Add prototype.
3638 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3639
3640 * alloc.c (safe_alloca_unwind): New function.
3641
3642 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3643
3644 * charset.c (Fstring): Use SAFE_ALLOCA.
3645
3646 * coding.c (MAX_ALLOCA): Remove define.
3647
3648 * data.c (MAX_ALLOCA): Remove define.
3649 (Faset): Use SAFE_ALLOCA.
3650
3651 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
3652
3653 * fns.c (string_make_multibyte, string_to_multibyte)
3654 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
3655 (MAX_ALLOCA): Remove define.
3656 (Fbase64_encode_region, Fbase64_encode_string)
3657 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
3658 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
3659 memory leak if encoding fails.
3660
3661 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
3662
3663 2004-06-21 Eli Zaretskii <eliz@gnu.org>
3664
3665 * print.c (Fwith_output_to_temp_buffer): Doc fix.
3666
3667 2004-06-20 Richard M. Stallman <rms@gnu.org>
3668
3669 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
3670
3671 * search.c (match_limit): Cleaner err msg when no match data available.
3672
3673 * window.c (syms_of_window): Doc fix.
3674
3675 * keyboard.c (command_loop_1): Handle values `only' and `identity'
3676 for Vtransient_mark_mode.
3677
3678 * buffer.c (syms_of_buffer): Doc fix.
3679
3680 2004-06-21 David Kastrup <dak@gnu.org>
3681
3682 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
3683 and unbinding of `case-fold-search' according to
3684 `completion-ignore-case' around calls of string-match and
3685 predicates, respectively. Should give satisfactory performance
3686 in all relevant cases.
3687
3688 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3689
3690 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
3691 clip_x/y_origin.
3692
3693 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
3694
3695 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
3696
3697 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
3698 on Mac OSX.
3699
3700 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
3701
3702 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
3703
3704 2004-06-16 Kim F. Storm <storm@cua.dk>
3705
3706 * dispextern.h (Vimage_types): Remove extern.
3707
3708 2004-06-16 Miles Bader <miles@gnu.org>
3709
3710 * image.c (lookup_image_type): Initialize image type if necessary.
3711
3712 2004-06-15 Kim F. Storm <storm@cua.dk>
3713
3714 * xdisp.c (try_cursor_movement): Exclude header line from scroll
3715 margin at top of window.
3716 (try_window_reusing_current_matrix): Calculate proper cursor position
3717 after scrolling up with non-zero scroll margin, as the old cursor
3718 position corresponds to value of PT before executing this command.
3719 (try_window_id): Consider scroll margin at bottom of window too;
3720 otherwise we fail to scroll when hl-line-mode is enabled.
3721
3722 * syntax.c (skip_chars): Only recognize [:class:] when it has the
3723 proper format and class is a lower-case word.
3724
3725 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3726
3727 * gtkutil.c (xg_get_image_for_pixmap): New function.
3728 (xg_get_gdk_pixmap_and_mask): Remove.
3729 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
3730 xg_get_gdk_pixmap_and_mask.
3731
3732 * xterm.h (struct x_display_info): Typo in comment fixed.
3733
3734 2004-06-14 Juanma Barranquero <lektu@terra.es>
3735
3736 * dispextern.h (Vimage_types): Make it conditional on
3737 HAVE_WINDOW_SYSTEM.
3738
3739 * image.c (Vimage_types): Move from xdisp.c.
3740 (Vimage_type_cache): New variable.
3741 (define_image_type): New argument indicating whether an image
3742 library was loaded; cache loaded status and return t on success,
3743 nil otherwise.
3744 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
3745 (w32_delayed_load): New function to load an image library from a
3746 list of possible filenames.
3747 (init_xpm_functions, init_png_functions, init_jpeg_functions)
3748 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
3749 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
3750 (Finit_image_library): New function, extracted from `init_image'.
3751 Try to initialize an image library on demand and cache whether we
3752 were successful or not.
3753 (syms_of_image): Initialize `Vimage_types' and
3754 `Vimage_type_cache'. Add recognized image types to Vimage_types.
3755 Export `init-image-library'.
3756 (init_image): Remove initialization of all image types, except xbm
3757 and pbm.
3758
3759 * xdisp.c (Vimage_types): Delete (moved to image.c).
3760
3761 2004-06-14 Andreas Schwab <schwab@suse.de>
3762
3763 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3764 Avoid calling specbind when completion-regexp-list is empty.
3765
3766 2004-06-13 Richard M. Stallman <rms@gnu.org>
3767
3768 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3769 (re_wctype, re_iswctype, re_wctype_to_bit):
3770 Non-function definitions moved here from regex.c.
3771
3772 * regex.c (re_wctype, re_iswctype): Function defs longer static.
3773 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3774 (re_wctype, re_iswctype, re_wctype_to_bit):
3775 Non-function definitions moved to regex.h.
3776
3777 * window.c (Fselect_window): Doc fix.
3778
3779 * syntax.c: Include regex.h.
3780 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
3781 If requested, make a list of classes, then check the scanned
3782 chars for membership in them.
3783 (in_classes): New function.
3784 Doc fix.
3785
3786 * keyboard.c (cmd_error): Don't call any_kboard_state
3787 if inside a recursive edit level.
3788
3789 2004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
3790
3791 * keyboard.c (command_loop): Call any_kboard_state before
3792 command_loop_2 when at top level.
3793
3794 2004-06-13 Andreas Schwab <schwab@suse.de>
3795
3796 * print.c (print_object): Always use %ld for printing EMACS_INT.
3797
3798 * keyboard.c (cancel_hourglass_unwind): Return a value.
3799 (modify_event_symbol): Always use %ld for printing EMACS_INT.
3800 (Fexecute_extended_command): Likewise.
3801
3802 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3803 avoid clashes.
3804 (SYNTAX): Likewise.
3805 (SYNTAX_WITH_FLAGS): Likewise.
3806 (SYNTAX_MATCH): Likewise.
3807
3808 * syntax.c (char_quoted): Avoid warning about undefined operation.
3809 (find_defun_start): Likewise.
3810 (scan_lists): Likewise.
3811 (INC_FROM): Likewise.
3812 (scan_sexps_forward): Likewise.
3813
3814 * image.c: Include <ctype.h>.
3815
3816 * xfaces.c (face_attr_equal_p): Declare parameters.
3817
3818 2004-06-13 Kenichi Handa <handa@m17n.org>
3819
3820 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3821
3822 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
3823
3824 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3825
3826 2004-06-12 Kenichi Handa <handa@m17n.org>
3827
3828 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3829 ccl_prog_stack_struct and update it.
3830 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3831 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3832 ccl->eof_ic on EOF.
3833 (ccl_debug_hook): New function.
3834 (struct ccl_prog_stack): New member eof_ic.
3835 (ccl_driver): Handle EOF in subrountine call correctly.
3836
3837 2004-06-11 Kenichi Handa <handa@m17n.org>
3838
3839 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3840
3841 2004-06-11 Kim F. Storm <storm@cua.dk>
3842
3843 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3844
3845 2004-06-11 Juanma Barranquero <lektu@terra.es>
3846
3847 * keyboard.c (Fposn_at_point): Doc fix.
3848
3849 2004-06-11 David Kastrup <dak@gnu.org>
3850
3851 * search.c (match_limit): Don't flag an error if match-data
3852 exceeding the allocated search_regs.num_regs gets requested, just
3853 return Qnil.
3854
3855 2004-06-08 Miles Bader <miles@gnu.org>
3856
3857 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3858
3859 2004-06-07 Juanma Barranquero <lektu@terra.es>
3860
3861 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3862 (Fcurrent_time_string, Fcurrent_time_zone)
3863 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3864
3865 2004-06-07 Miles Bader <miles@gnu.org>
3866
3867 * xfaces.c (struct named_merge_point): New type.
3868 (push_named_merge_point): New function.
3869 (merge_named_face): New function.
3870 (merge_face_ref, face_at_buffer_position, face_at_string_position):
3871 Use `merge_named_face'.
3872 (merge_face_inheritance): Function removed.
3873 (merge_face_ref): Rename from `merge_face_vector_with_property'.
3874 Add new `err_msgs' and `named_merge_points' args. Return error
3875 status. Only print error messages if ERR_MSGS is true. Don't try to
3876 do :inherit attribute validation.
3877 (merge_face_heights): Handle `unspecified' in both directions.
3878 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3879 Call `merge_face_ref' instead of `merge_face_inheritance'.
3880 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3881 (compute_char_face, face_at_buffer_position)
3882 (face_at_string_position): Call `merge_face_ref' instead of
3883 `merge_face_vector_with_property'.
3884
3885 2004-06-07 Kenichi Handa <handa@m17n.org>
3886
3887 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3888 the necessary places.
3889
3890 2004-06-07 Kim F. Storm <storm@cua.dk>
3891
3892 * process.c (Fdelete_process): Undo 2004-05-28 change.
3893 Instead, call status_notify also for network process.
3894 (status_message): Use process instead of status as arg.
3895 Give messages "deleted" or "connection broken by remote peer" for
3896 an exited network process.
3897 (status_notify): Change call to status_message.
3898 (read_process_output): Increase readmax to 4096. Do not increase
3899 buffer size for datagram channels (default is now large enough).
3900
3901 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
3902
3903 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3904 problem due to newly defined variable.
3905
3906 2004-06-06 Miles Bader <miles@gnu.org>
3907
3908 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3909 immediately if non-interactive or not initialized.
3910
3911 2004-06-05 Richard M. Stallman <rms@gnu.org>
3912
3913 * minibuf.c (Fcompleting_read): Doc fix.
3914
3915 2004-06-05 Andreas Schwab <schwab@suse.de>
3916
3917 * macfns.c (x_create_tip_frame): Fix declaration after statement.
3918
3919 2004-06-05 Juanma Barranquero <lektu@terra.es>
3920
3921 * keymap.c (Fdescribe_vector): Fix docstring.
3922 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3923
3924 2004-06-05 Miles Bader <miles@gnu.org>
3925
3926 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3927 attributes have different values than the default face.
3928
3929 2004-06-04 Eli Zaretskii <eliz@gnu.org>
3930
3931 * xfaces.c (x_supports_face_attributes_p): Make this function
3932 conditional on HAVE_WINDOW_SYSTEM.
3933 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3934 Don't call x_supports_face_attributes_p if it was not compiled in.
3935
3936 2004-06-04 Miles Bader <miles@gnu.org>
3937
3938 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3939 from Ftty_supports_face_attributes_p.
3940 (x_supports_face_attributes_p): New function.
3941 (Ftty_supports_face_attributes_p): Function deleted.
3942 (Fdisplay_supports_face_attributes_p): New function.
3943 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
3944 (face_attr_equal_p): New function.
3945 (lface_equal_p): Use it.
3946
3947 2004-06-03 Juanma Barranquero <lektu@terra.es>
3948
3949 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3950 (Vw32_color_map): Fix typo in docstring.
3951 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3952 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3953 Make argument names match their use in docstring.
3954
3955 2004-06-02 Juanma Barranquero <lektu@terra.es>
3956
3957 Work around bugs/problems with MinGW builds of graphics libraries
3958 called from MSVC builds of Emacs.
3959
3960 * image.c (lookup_image): Make pointer to img static.
3961 (png_read_from_memory): Disable "global" optimization.
3962
3963 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3964
3965 * eval.c (Fcondition_case): Fix usage. Simplify.
3966
3967 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3968
3969 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3970
3971 * macfns.c: Don't include ccl.h.
3972 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
3973 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3974 TextUtils.h.
3975 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
3976 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3977 display height/width.
3978 (compute_tip_xy, Vx_max_tooltip_size): Declare.
3979 (unwind_create_tip_frame, compute_tip_xy): New functions.
3980 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3981 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3982 and last_show_tip_args.
3983
3984 * macgui.h [!MAC_OSX]: Include Gestalt.h.
3985 (Cursor, No_Cursor): New defines.
3986 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
3987 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3988
3989 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3990
3991 * macterm.c: Don't include Gestalt.h.
3992 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3993 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3994 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3995 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3996 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3997 (construct_mouse_click, XTmouse_position)
3998 (x_scroll_bar_report_motion, x_calc_absolute_position)
3999 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
4000 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
4001 (note_mouse_movement): Clear the mouse face and reset the pointer
4002 shape when the pointer goes outside the frame without grabbing.
4003 (mac_front_window): New function.
4004 (mac_window_to_frame): New macro.
4005 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
4006 (do_window_activate, do_window_deactivate, do_app_resume)
4007 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
4008 (do_zoom_window, mac_do_receive_drag, XTread_socket)
4009 (mac_check_for_quit_char): Use mac_front_window and/or
4010 mac_window_to_frame.
4011 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
4012 scroll-bar click event.
4013 (mac_define_frame_cursor): Change the pointer shape.
4014 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
4015 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
4016 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
4017 (do_window_update): Don't do anything if the updated window is the
4018 tooltip window.
4019 (do_mouse_moved): Handle mouse movement events here (previously in
4020 XTread_socket). Clear the mouse face if
4021 dpyinfo->mouse_face_hidden is set.
4022 (do_os_event, do_events): Remove (now in XTread_socket).
4023 (XTread_socket): Immediately return if interrupt_input_blocked.
4024 Loop until all the events in the queue are processed.
4025 Rearrange codes for mouse grabbing. Add tooltip support. Include the
4026 contents of do_os_event and do_events. Remove mouse movement
4027 handling (now in do_mouse_moved). Add the case where
4028 Vmouse_highlight has an integer value.
4029 (NewMacWindow): Remove.
4030 (make_mac_frame): Do what NewMacWindow previously did. Don't do
4031 excess initializations.
4032 (make_mac_terminal_frame): Previous initializations in
4033 make_mac_frame are moved here.
4034 (mac_initialize_display_info):
4035 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
4036
4037 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
4038 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
4039
4040 2004-05-29 Richard M. Stallman <rms@gnu.org>
4041
4042 * lisp.h (truncate_undo_list): Update decl.
4043
4044 * alloc.c (undo_outer_limit): New variable.
4045 (syms_of_alloc): Defvar it.
4046 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
4047
4048 * undo.c (truncate_undo_list): New arg LIMITSIZE.
4049
4050 * alloc.c (lisp_align_malloc): Check for base == 0
4051 regardless of HAVE_POSIX_MEMALIGN.
4052 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
4053
4054 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4055
4056 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
4057 (marker_blocks_pending_free): Remove.
4058 (Fgarbage_collect): Sweep after cleaning up undo-lists.
4059 Mark the undo lists after claning them up.
4060 Don't free block in marker_blocks_pending_free.
4061 (mark_buffer): Don't mark undo_list.
4062 (gc_sweep): Sweep hash-tables and strings first.
4063 Do free marker blocks that are empty.
4064
4065 2004-05-28 Jim Blandy <jimb@redhat.com>
4066
4067 * regex.c (print_partial_compiled_pattern): Add missing 'break'
4068 after 'case wordend'. For symbeg and symend, print to stderr,
4069 like the other cases.
4070
4071 2004-05-28 Noah Friedman <friedman@splode.com>
4072
4073 * process.c (Fdelete_process): Do not call remove_process.
4074
4075 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4076
4077 * alloc.c (struct backtrace): Remove.
4078 (Fgarbage_collect): Use the new mark_backtrace.
4079
4080 * eval.c (mark_backtrace): New function.
4081
4082 * minibuf.c (run_exit_minibuf_hook): New function.
4083 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
4084 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
4085
4086 2004-05-27 Kim F. Storm <storm@cua.dk>
4087
4088 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
4089 over display properties, e.g. images, that replace buffer text.
4090
4091 2004-05-25 Kim F. Storm <storm@cua.dk>
4092
4093 * alloc.c (marker_blocks_pending_free): New var.
4094 (gc_sweep): Store free marker blocks on that list.
4095 (Fgarbage_collect): Free them after undo-list cleanup.
4096
4097 * process.c (wait_reading_process_input): Check connect_wait_mask
4098 before actually accepting connection in case it has already been
4099 accepted due to recursion.
4100
4101 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
4102
4103 * coding.c (Fset_safe_terminal_coding_system_internal):
4104 Set suppress_error in safe_terminal_coding, not terminal_coding.
4105
4106 2004-05-22 Richard M. Stallman <rms@gnu.org>
4107
4108 * alloc.c (Fmake_string): Doc fix.
4109
4110 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
4111 and the alist pairs too.
4112
4113 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
4114
4115 * emacs.c (main): Update copyright year.
4116
4117 * fileio.c (Fread_file_name): Expand DIR if not absolute.
4118
4119 * insdel.c (del_range_2, replace_range): Don't write an anchor
4120 if the gap is empty.
4121
4122 * xdisp.c (try_scrolling): If scroll-up-aggressively or
4123 scroll-down-aggressively is small but positive, put point
4124 near the screen edge.
4125
4126 2004-05-22 Juanma Barranquero <lektu@terra.es>
4127
4128 * keymap.c (Fdefine_key): Doc fix.
4129
4130 2004-05-22 Kim F. Storm <storm@cua.dk>
4131
4132 * alloc.c (struct backtrace): Add debug_on_exit member.
4133 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
4134 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
4135 the removed cons cells.
4136 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
4137 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
4138 any cons cells pointing to unallocated stings.
4139 Do not lisp_free any marker blocks, as there may still be pointers
4140 to them from buffer undo lists at this stage of GC.
4141
4142 * keyboard.c (struct backtrace): Add debug_on_exit member.
4143 (Fcommand_execute): Clear it.
4144
4145 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
4146
4147 * intervals.c (lookup_char_property): Do not prematurely return nil.
4148
4149 2004-05-19 Jim Blandy <jimb@redhat.com>
4150
4151 Add support for new '\_<' and '\_>' regexp operators, matching the
4152 beginning and end of symbols.
4153
4154 * regex.c (enum syntaxcode): Add Ssymbol.
4155 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
4156 (re_opcode_t): New opcodes `symbeg' and `symend'.
4157 (print_partial_compiled_pattern): Print the new opcodes properly.
4158 (regex_compile): Parse the new operators.
4159 (analyse_first): Skip sym(beg|end) (they match only the empty string).
4160 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
4161 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
4162 (re_match_2_internal): Match symbeg and symend.
4163
4164 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
4165
4166 2004-05-19 Kim F. Storm <storm@cua.dk>
4167
4168 * .gdbinit (xsymbol): Fix last change.
4169
4170 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
4171
4172 * .gdbinit (xprintstr): New fun.
4173 (xstring, xprintsym): Use it.
4174
4175 * w32proc.c (create_child): Use INTMASK.
4176
4177 * alloc.c (Fgarbage_collect): Do all the marking before flushing
4178 unmarked elements of the undo list.
4179
4180 2004-05-18 David Ponce <david@dponce.com>
4181
4182 * print.c (print): Reset print_depth before to call print_object.
4183
4184 2004-05-18 Jason Rumney <jasonr@gnu.org>
4185
4186 * w32console.c: Prefix RIF functions with w32con_ to avoid
4187 namespace clash with functions in term.c and w32term.c.
4188
4189 * w32menu.c (add_menu_item, w32_menu_display_help)
4190 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
4191
4192 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
4193
4194 2004-05-18 Eli Zaretskii <eliz@gnu.org>
4195
4196 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
4197
4198 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
4199 with make_number.
4200 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
4201 with XINT.
4202
4203 2004-05-18 Kim F. Storm <storm@cua.dk>
4204
4205 * blockinput.h (INPUT_BLOCKED_P): New macros.
4206
4207 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
4208 (Ftop_level): Unblock input if blocked.
4209
4210 * buffer.h (GET_OVERLAYS_AT): New macro.
4211 * msdos.c (IT_note_mouse_highlight): Use it.
4212 * textprop.c (get_char_property_and_overlay): Use it.
4213 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
4214 * xfaces.c (face_at_buffer_position): Use it.
4215
4216 * print.c (print_object): Increase buf size.
4217
4218 2004-05-17 Jason Rumney <jasonr@gnu.org>
4219
4220 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
4221 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
4222 Lisp_Object using i member.
4223 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
4224 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
4225 consistently.
4226
4227 * w32proc.c (create_child): Use make_number instead of masking pid.
4228
4229 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
4230 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
4231 Use EQ to compare Lisp_Objects.
4232 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
4233
4234 * w32term.c (w32_num_mouse_buttons): Rename from
4235 Vw32_num_mouse_buttons and make it an int.
4236
4237 * w32.c (init_environment): Use it.
4238
4239 * w32fns.c (w32_wnd_proc): Likewise.
4240
4241 * w32proc.c (w32_pipe_read_delay): Rename from
4242 Vw32_pipe_read_delay and make it an int.
4243
4244 * w32.c (_sys_read_ahead): Use it.
4245
4246 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
4247
4248 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
4249
4250 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
4251 (key_event): Don't mix Lisp_Object and int.
4252
4253 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
4254
4255 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
4256 modifiers in language change event.
4257
4258 2004-05-17 Kim F. Storm <storm@cua.dk>
4259
4260 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
4261 Such objects may be freed markers which still exist on an undo list.
4262
4263 2004-05-16 Juanma Barranquero <lektu@terra.es>
4264
4265 * data.c (Fset_default): Make argument names match their use in
4266 docstring.
4267
4268 2004-05-15 Andreas Schwab <schwab@suse.de>
4269
4270 * emacs.c (gdb_array_mark_flag): Define.
4271 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
4272
4273 2004-05-15 Eli Zaretskii <eliz@gnu.org>
4274
4275 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
4276 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
4277 defined for the MS-DOS build.
4278
4279 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4280
4281 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
4282
4283 2004-05-14 Kenichi Handa <handa@m17n.org>
4284
4285 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
4286
4287 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4288
4289 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
4290 section to frame.c section.
4291 (Fxw_display_color_p, Fx_file_dialog): Declare if
4292 HAVE_WINDOW_SYSTEM defined.
4293
4294 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
4295
4296 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
4297
4298 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
4299 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
4300 (XTread_socket): Fix int/Lisp_Object mixup.
4301 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
4302
4303 * macterm.h (struct frame, struct face, struct image)
4304 (display_x_get_resource, Fx_display_color_p)
4305 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
4306 Add prototypes.
4307
4308 2004-05-14 Kim F. Storm <storm@cua.dk>
4309
4310 * process.c (wait_reading_process_input): Make reentrant.
4311 Make Available and Connecting non-static. Save and restore value
4312 of waiting_for_user_input_p.
4313
4314 2004-05-13 Kim F. Storm <storm@cua.dk>
4315
4316 * keyboard.c (mark_kboards): Don't mark x and y members
4317 that are overloaded in selection request events.
4318
4319 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4320
4321 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
4322
4323 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
4324
4325 * window.c (Fdisplay_buffer, Fsplit_window)
4326 (split-height-threshold): Doc fix.
4327
4328 2004-05-13 Juanma Barranquero <lektu@terra.es>
4329
4330 * xfaces.c (Ftty_supports_face_attributes_p)
4331 (Finternal_copy_lisp_face): Fix typo in docstring.
4332 (Finternal_get_lisp_face_attribute): Fix docstring.
4333
4334 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4335
4336 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
4337
4338 2004-05-11 Steven Tamm <steventamm@mac.com>
4339
4340 * macfns.c (Fx_create_frame): Default to using tool-bar by
4341 setting tool-bar-lines to 1 in default-frame-alist.
4342
4343 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4344
4345 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
4346 (xpm_get_color_table_v, xpm_make_color_table_h)
4347 (xpm_put_color_table_h, xpm_get_color_table_h)
4348 (xpm_str_to_color_key, xpm_load_image, xpm_load)
4349 (syms_of_image): Support XPM on Carbon Emacs. Does not
4350 depend on libXpm, but only supports XPM version 3 without extensions.
4351
4352 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4353
4354 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
4355 instead of FRAME_X_P
4356
4357 2004-05-11 Kim F. Storm <storm@cua.dk>
4358
4359 * process.c (read_process_output): Grow decoding_buf when needed;
4360 this could cause a crash in allocate_string and compact_small_strings.
4361
4362 2004-04-29 Jim Blandy <jimb@redhat.com>
4363
4364 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
4365 against proper opcode.
4366
4367 2004-05-10 Juanma Barranquero <lektu@terra.es>
4368
4369 * process.c (Fstart_process): Fix docstring.
4370
4371 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
4372 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
4373 (Fsplit_char, Fchar_charset): Make argument names match their use
4374 in docstring.
4375
4376 2004-05-10 Richard M. Stallman <rms@gnu.org>
4377
4378 * print.c (print_preprocess): Use being_printed, loop_count and
4379 halftail to detect overdeep nesting and cyclic cdr chains.
4380
4381 2004-05-10 Andreas Schwab <schwab@suse.de>
4382
4383 * lisp.h (Fmake_symbolic_link): Declare.
4384
4385 * fileio.c (Frename_file): Remove extra argument in call to
4386 Fmake_symbolic_link.
4387
4388 2004-05-10 Kim F. Storm <storm@cua.dk>
4389
4390 * xdisp.c (calc_line_height_property): Use string position when
4391 object is a string.
4392
4393 2004-05-10 Kenichi Handa <handa@m17n.org>
4394
4395 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
4396 inhibit-modification-hooks to t temporarily before calling
4397 Ferase_buffer.
4398
4399 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
4400 inhibit-modification-hooks to t temporarily before calling
4401 Ferase_buffer.
4402
4403 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
4404 inhibit-modification-hooks to t temporarily before calling
4405 Ferase_buffer.
4406
4407 * fns.c (count_combining): Delete it.
4408 (concat): Don't check combining bytes.
4409
4410 2004-05-09 Jason Rumney <jasonr@gnu.org>
4411
4412 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
4413 (globals_of_w32fns): Set it.
4414
4415 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
4416
4417 * data.c (Fquo): Simplify.
4418
4419 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
4420
4421 * data.c (Fquo): If any argument is float, do the computation in
4422 floating point.
4423
4424 2004-05-08 Juanma Barranquero <lektu@terra.es>
4425
4426 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
4427 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
4428 Fix spelling of Emacs on docstring.
4429 (Fset_process_coding_system, Fprocess_coding_system)
4430 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
4431 Make argument names match their use in docstring.
4432 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
4433 Fix docstring.
4434
4435 * editfns.c (Finsert_buffer_substring): Make argument names match their
4436 use in docstring.
4437
4438 * syntax.c (Fmodify_syntax_entry): Fix docstring.
4439
4440 2004-05-07 Steven Tamm <steventamm@mac.com>
4441
4442 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
4443 around call to ReceiveEvent to avoid certain crashes.
4444
4445 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4446
4447 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
4448 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
4449 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
4450 Save/restore the current graphics port and device handle when
4451 drawing into an offscreen graphics world.
4452
4453 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
4454 (gif_load): Likewise.
4455
4456 2004-05-07 Juanma Barranquero <lektu@terra.es>
4457
4458 * window.c (Fset_window_buffer): Fix docstring.
4459
4460 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
4461
4462 * emacs.c (main) [VMS]: Fix var ref.
4463
4464 2004-05-06 Romain Francoise <romain@orebokech.com>
4465
4466 * data.c (Fsetq_default): Fix docstring.
4467
4468 2004-05-06 Jason Rumney <jasonr@gnu.org>
4469
4470 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4471 to avoid name clash.
4472
4473 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4474
4475 * fileio.c (barf_or_query_if_file_exists): Use lstat.
4476 (Frename_file): Handle renaming of symlinks across file systems.
4477 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
4478
4479 2004-05-04 Kim F. Storm <storm@cua.dk>
4480
4481 * xdisp.c (Qtotal): New var.
4482 (syms_of_xdisp): Intern and staticpro it.
4483 (calc_line_height_property): New arg total. Set it if
4484 line-spacing property has format (total . VALUE).
4485 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
4486 Handle total line-spacing property.
4487
4488 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4489
4490 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
4491 "under" scroll bar when size/position changes.
4492
4493 2004-05-03 Jason Rumney <jasonr@gnu.org>
4494
4495 * makefile.nt: Remove.
4496
4497 2004-05-02 Eli Zaretskii <eliz@gnu.org>
4498
4499 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
4500 Avoid compiler warnings.
4501
4502 * Makefile.in (region-cache.o): Depend on config.h.
4503
4504 2004-05-02 Romain Francoise <romain@orebokech.com>
4505
4506 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
4507 with continuation lines, too.
4508
4509 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
4510
4511 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
4512
4513 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
4514
4515 * xdisp.c (calc_line_height_property): YAILOM (yet another
4516 int/Lisp_Object mixup).
4517
4518 2004-05-01 Eli Zaretskii <eliz@gnu.org>
4519
4520 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
4521 undo bad effect of pack(4) in some versions of system headers.
4522
4523 2004-05-01 Jason Rumney <jasonr@gnu.org>
4524
4525 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
4526
4527 2004-04-30 Kim F. Storm <storm@cua.dk>
4528
4529 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
4530 (syms_of_buffer) <cursor-type>: Doc fix.
4531
4532 * dispextern.h (struct it): Remove member use_default_face.
4533 Add members override_ascent, override_descent, override_boff.
4534
4535 * xdisp.c (init_iterator): Handle line-spacing float value.
4536 Initialize override_ascent member.
4537 (append_space_for_newline): Reset override_ascent.
4538 Remove use_default_face.
4539 (calc_line_height_property): New function to calculate value of
4540 line-height and line-spacing properties. Look at overlays, too.
4541 Set override_ascent, override_descent, override_boff members when
4542 using another face than the current face. Float values are now
4543 relative to the frame default font, by default; accept a cons
4544 of ratio and face name to specify value relative to a specific face.
4545 (x_produce_glyphs): Use calc_line_height_property.
4546 Use override_ascent etc. when set to handle different face heights.
4547 A negative line-spacing property value is interpreted as a total
4548 line height, rather than inter-line spacing.
4549 (note_mouse_highlight): Allocate room for 40 overlays initially.
4550
4551 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4552
4553 * data.c (Fsubr_name): New fun.
4554 (syms_of_data): Defsubr it.
4555
4556 2004-04-29 Kim F. Storm <storm@cua.dk>
4557
4558 * xdisp.c (null_glyph_slice): New var.
4559 (append_glyph, append_composite_glyph, append_stretch_glyph):
4560 Use it to initialize glyph slice.
4561
4562 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
4563
4564 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
4565 (on_hot_spot_p): Make sure we always return a value.
4566 (Flookup_image_map): Remove unused var ix and iy.
4567 (note_mode_line_or_margin_highlight): Remove unused var `image'.
4568
4569 2004-04-27 Eli Zaretskii <eliz@gnu.org>
4570
4571 * msdos.c (init_environment): If one of the TMP... environment
4572 variables is set to a drive letter without a trailing slash,
4573 append a slash.
4574
4575 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
4576
4577 * editfns.c (lisp_time_argument): Provide externally.
4578
4579 * fileio.c (Fset_file_times): New function.
4580 (syms_of_fileio): Intern and staticpro it.
4581
4582 2004-04-27 Kim F. Storm <storm@cua.dk>
4583
4584 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
4585 header line strings.
4586
4587 * dispextern.h (struct it): New member use_default_face.
4588
4589 * xdisp.c (Qline_height): New variable.
4590 (syms_of_xdisp): Intern and staticpro it.
4591 (append_space_for_newline): Partially undo 2004-04-25 change;
4592 add default_face_p arg, and restore callers.
4593 Clear it->use_default_face after use.
4594 (x_produce_glyphs): Set default font for ascii char if
4595 it->use_default_font is set. Change line-spacing property to set
4596 just extra line spacing. Handle new line-height property.
4597
4598 2004-04-26 Andreas Schwab <schwab@suse.de>
4599
4600 * print.c (print_object): Print non-ascii characters in bool
4601 vector representation as octal escapes.
4602
4603 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4604 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4605 bool vectors.
4606 * lread.c (read1): Likewise.
4607 * alloc.c (Fmake_bool_vector): Likewise.
4608 * data.c (Faref, Faset): Likewise.
4609 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4610 (mapcar1): Likewise.
4611
4612 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4613
4614 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4615
4616 2004-04-26 Miles Bader <miles@gnu.org>
4617
4618 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4619
4620 2004-04-26 Juanma Barranquero <lektu@terra.es>
4621
4622 * buffer.c (Fpop_to_buffer): Fix docstring.
4623
4624 2004-04-26 Steven Tamm <steventamm@mac.com>
4625
4626 * lread.c (init_lread): Don't display missing lisp directory
4627 warnings with Carbon Emacs because self-contained bundled Emacs
4628 may be built without correct installation path.
4629
4630 2004-04-25 Kim F. Storm <storm@cua.dk>
4631
4632 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4633
4634 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4635
4636 * xdisp.c (append_space_for_newline): Rename from append_space.
4637 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
4638 (x_produce_glyphs): Handle line-spacing property on newline char.
4639 If value is t, adjust ascent and descent to fit current row height.
4640 If value is an integer or float, set extra_line_spacing to integer
4641 value, or to float value x current line height.
4642
4643 2004-04-23 Kenichi Handa <handa@m17n.org>
4644
4645 * fontset.c (Finternal_char_font): If POSITION is nil, return
4646 font for displaying CH with the default face.
4647
4648 2004-04-23 Juanma Barranquero <lektu@terra.es>
4649
4650 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4651
4652 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4653
4654 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
4655 Don't make assumptions about the relative place of i and val.
4656 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
4657
4658 2004-04-21 Kim F. Storm <storm@cua.dk>
4659
4660 * dispextern.h (struct glyph_slice): New struct.
4661 (struct glyph): New member slice.
4662 (GLYPH_SLICE_EQUAL_P): New macro.
4663 (GLYPH_EQUAL_P): Use it.
4664 (struct glyph_string): New member slice.
4665 (struct it_slice): New struct.
4666 (struct it): New member slice, add member to stack too.
4667 New member constrain_row_ascent_descent_p.
4668 (image_ascent): Add prototype.
4669
4670 * dispnew.c (buffer_posn_from_coords): Return full image width
4671 and height even for image slices (posn is relative to full image).
4672 (marginal_area_string): Adjust x0,y0 for image slice.
4673
4674 * image.c (image_ascent): Add slice arg; calculate ascent for
4675 image slice (or full image).
4676
4677 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
4678 (syms_of_keyboard): Defsubr them.
4679
4680 * lisp.h (pos_visible_p): Fix prototype.
4681
4682 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4683 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4684 (x_draw_image_foreground, x_draw_image_relief)
4685 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4686 Draw sliced images.
4687
4688 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
4689 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4690 (x_draw_image_foreground, x_draw_image_relief)
4691 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
4692 Draw sliced images.
4693
4694 * w32term.h (image_ascent): Remove prototype.
4695
4696 * window.c (Fpos_visible_in_window_p): Return pixel position if
4697 PARTIALLY arg is non-nil. Simplify. Doc fix.
4698 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
4699 to return/set vscroll in pixels.
4700
4701 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
4702
4703 * xdisp.c (Qslice): New variable.
4704 (syms_of_xdisp): Intern and staticpro it.
4705 (pos_visible_p): Return pixel position in new x and y args.
4706 (init_iterator): Reset it->slice info.
4707 (handle_display_prop): Parse (slice ...) property.
4708 (push_it, pop_it): Save/restore slice info.
4709 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
4710 force repositioning of tall row if window is vscrolled, as that
4711 would reset vscroll.
4712 (append_space): Set it->constrain_row_ascent_descent_p to avoid
4713 increasing row height if row is non-empty.
4714 (fill_image_glyph_string): Copy slice info.
4715 (take_vertical_position_into_account): Simplify.
4716 (produce_image_glyph): Handle iterator slice info, setup glyph
4717 slice info. Do not force minimum line height.
4718 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
4719 do not increase height (ascent/descent) of non-empty row when
4720 adding normal character glyph; instead reduce glyph ascent/descent
4721 appropriately; if row is higher than current glyph, adjust glyph
4722 descent/ascent to reposition glyph within the existing row.
4723 Likewise, when char is newline, only set ascent/descent if row is
4724 currently empty.
4725 (note_mouse_highlight): Handle hotspots with sliced image.
4726
4727 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4728 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4729 (x_draw_image_foreground, x_draw_image_relief)
4730 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4731 Draw sliced images.
4732
4733 * xterm.h (image_ascent): Remove prototype.
4734
4735 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4736
4737 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
4738
4739 2004-04-20 John Paul Wallington <jpw@gnu.org>
4740
4741 * fns.c (Fassoc, Feql): Fix indentation.
4742
4743 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4744
4745 2004-04-19 John Paul Wallington <jpw@gnu.org>
4746
4747 * fns.c (Feql): New function.
4748 (syms_of_fns): Defsubr it.
4749
4750 2004-04-18 Jason Rumney <jasonr@gnu.org>
4751
4752 * w32select.c (Fw32_set_clipboard_data): Get sequence number
4753 after closing the clipboard.
4754
4755 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
4756
4757 * buffer.c (Fbuffer_base_buffer): Doc fix.
4758
4759 2004-04-17 Kim F. Storm <storm@cua.dk>
4760
4761 * keymap.c (Fkey_description): Add optional PREFIX arg.
4762 Combine prefix with KEYS to make up the full key sequence to describe.
4763 Correlate meta_prefix_char and following (simple) key to describe
4764 as meta modifier. All callers changed.
4765 (describe_map): Rename arg `keys' to `prefix'. Remove local
4766 `elt_prefix' var. Use Fkey_description with prefix instead of
4767 elt_prefix combined with Fsingle_key_description.
4768 (describe_vector): Declare static. Replace arg `elt_prefix' with
4769 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
4770 if !KEYMAP_P. Use Fkey_description with prefix instead of
4771 Fsingle_key_description.
4772
4773 * keymap.h (Fkey_description): Fix prototype.
4774 (describe_vector): Remove prototype.
4775
4776 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4777
4778 * image.c (PNG_BG_COLOR_SHIFT): Remove.
4779 (png_load): Fix calculation of transparent background color on X
4780 and W32 platforms.
4781
4782 2004-04-16 Juanma Barranquero <lektu@terra.es>
4783
4784 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4785 not too large before computing how much to scroll.
4786
4787 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
4788
4789 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4790
4791 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
4792
4793 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4794 Add hyperlink to Elisp manual to the docstring.
4795
4796 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
4797
4798 * callint.c (fix_command): Use XDCR.
4799
4800 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
4801
4802 * window.c (Fget_lru_window): Doc fix.
4803
4804 2004-04-14 Kim F. Storm <storm@cua.dk>
4805
4806 * editfns.c (Fformat): Fix allocation size of precision array.
4807
4808 * dispnew.c (update_window): Only set changed_p if
4809 scrolling_window actually did scroll.
4810 (scrolling_window): Only return 1 if we actually did scroll.
4811
4812 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4813 height to glyph height when cursor row is not fully visible.
4814 (make_cursor_line_fully_visible): Add FORCE_P arg to return
4815 failure in case row is higher than window. Callers changed.
4816 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4817 Try to scroll partially visible, higher-than-window cursor row.
4818 (redisplay_window): Always try to scroll partially visible,
4819 higher-than-window cursor row - both initially and again with
4820 centering_position = 0.
4821 Clear desired matrix before retrying with centering_position = 0.
4822
4823 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4824
4825 * syntax.c (scan_lists): Simplify backward string scan.
4826 Fix off-by-one boundary check for string and comment fences.
4827
4828 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
4829
4830 * sheap.c, unexcw.c: New files.
4831
4832 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
4833
4834 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4835 base buffer has been killed. Correct the error message if the
4836 base buffer does not exist.
4837
4838 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
4839
4840 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4841 Cygwin itself. Add support for Xaw3d scrollbars.
4842
4843 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4844
4845 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4846
4847 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4848 before Cygwin unexec.
4849
4850 * Makefile.in: Link changes for Cygwin unexec() support.
4851
4852 2004-04-12 Andreas Schwab <schwab@suse.de>
4853
4854 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4855
4856 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
4857
4858 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4859 IGNORE argument equals NAME. Doc fix.
4860
4861 2004-04-11 Masatake YAMATO <jet@gyve.org>
4862
4863 * buffer.c (fix_start_end_in_overlays): Make overlays
4864 empty if they are backwards.
4865
4866 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4867
4868 * xfaces.c (face_color_supported_p): Fix compilation without X11.
4869
4870 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
4871
4872 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4873
4874 2004-04-06 Kim F. Storm <storm@cua.dk>
4875
4876 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4877 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4878
4879 * w32term.c (w32_read_socket): Set mouse_face_hidden after
4880 clearing highlight.
4881
4882 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4883
4884 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4885 clearing highlight.
4886
4887 * indent.c (vmotion): Do not reserve one column for continuation
4888 marks on window frames.
4889
4890 2004-04-04 Eli Zaretskii <eliz@gnu.org>
4891
4892 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4893 from GCC.
4894
4895 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4896
4897 * .gdbinit-union: Remove.
4898
4899 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4900 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
4901 ($nonvalbits): Remove.
4902 ($valmask): Set it by calling xreload to avoid redundancy.
4903
4904 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4905 (gdb_emacs_intbits): Remove.
4906
4907 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4908
4909 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
4910
4911 2004-03-30 Kenichi Handa <handa@m17n.org>
4912
4913 * editfns.c (Fformat): Fix initialization of the array info.
4914
4915 2004-03-30 Kim F. Storm <storm@cua.dk>
4916
4917 * xterm.c (x_mouse_click_focus_ignore_position): New var.
4918 (syms_of_xterm): DEFVAR_BOOL it.
4919 (ignore_next_mouse_click_timeout): New var.
4920 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4921 Use it to filter mouse clicks following focus event.
4922
4923 2004-03-29 David Ponce <david@dponce.com>
4924
4925 * callint.c (Fcall_interactively): Fix last change.
4926
4927 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4928
4929 * eval.c (Fcommandp): Simplify.
4930
4931 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4932 Extend to handle all kinds of functions.
4933
4934 * lisp.h (Finteractive_form): Declare.
4935
4936 * callint.c (Fcall_interactively): Use it.
4937
4938 2004-03-26 Kim F. Storm <storm@cua.dk>
4939
4940 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4941 to catch errors in calc_pixel_width_or_height during redisplay.
4942
4943 2004-03-26 Masatake YAMATO <jet@gyve.org>
4944
4945 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
4946
4947 * lisp.h (fix_start_end_in_overlays): Likewise.
4948
4949 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
4950
4951 * editfns.c (Ftranspose_regions): Likewise.
4952
4953 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4954
4955 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
4956
4957 2004-03-19 Richard M. Stallman <rms@gnu.org>
4958
4959 * s/sol2-6.h: Delete previous change.
4960
4961 2004-03-19 Kim F. Storm <storm@cua.dk>
4962
4963 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4964 to_charpos corresponds to newline in right fringe. Use local
4965 BUFFER_POS_REACHED_P macro.
4966
4967 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4968
4969 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4970 to compile on non-window system.
4971
4972 2004-03-19 Kim F. Storm <storm@cua.dk>
4973
4974 * dispextern.h (calc_pixel_width_or_height): Add prototype.
4975
4976 * image.c (Qcenter): Move to xdisp.c.
4977
4978 * xdisp.c (Qcenter): Declare here.
4979 (syms_of_xdisp): Intern and staticpro it.
4980 (handle_single_display_prop): Allow space display property on all
4981 platforms.
4982 (display_mode_line): Set mode_line_p before displaying line.
4983 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
4984 handling. Remove complex cases for fringes and scroll-bars.
4985 Add left, right, and center alignment positions. Add text (area)
4986 width/height. Return width or height for image specs.
4987 (produce_stretch_glyph): Improve handling of :align-to. Is now
4988 relative to left of text area by default, but other base offsets
4989 can be specified -- also for text lines.
4990
4991 * term.c (produce_glyphs): Handle IT_STRETCH.
4992 (produce_stretch_glyph): New function to handle space width and
4993 align-to display properties on non-window systems.
4994
4995 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4996
4997 * fileio.c (Fread_file_name): Set completion-ignore-case for
4998 case-insensitive systems.
4999
5000 2004-03-14 Masatake YAMATO <jet@gyve.org>
5001
5002 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
5003 when keymap and cursor are setup.
5004
5005 2004-03-14 Steven Tamm <steventamm@mac.com>
5006
5007 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
5008
5009 2004-03-14 Kim F. Storm <storm@cua.dk>
5010
5011 * dispextern.h (x_find_image_file): Add prototype.
5012
5013 * image.c (x_find_image_file): Make extern.
5014
5015 * xfns.c (x_find_image_file): Remove prototype.
5016
5017 2004-03-13 Eli Zaretskii <eliz@gnu.org>
5018
5019 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5020
5021 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5022
5023 2004-03-12 Richard M. Stallman <rms@gnu.org>
5024
5025 * fns.c (internal_equal): New arg PROPS controls comparing
5026 text properties. All callers changed.
5027 (Fequal_including_properties): New function.
5028 (syms_of_fns): defsubr it.
5029
5030 2004-03-12 Kim F. Storm <storm@cua.dk>
5031
5032 Fix image support on MAC. From YAMAMOTO Mitsuharu.
5033
5034 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
5035 (image_background, image_background_transparent): Fix prototypes.
5036
5037 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
5038
5039 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
5040 (x_query_font, x_find_ccl_program, x_set_window_size)
5041 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5042 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5043 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
5044
5045 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
5046 (x_query_font, x_find_ccl_program, x_set_window_size)
5047 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5048 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5049 (mac_draw_line_to_pixmap): Add prototypes.
5050
5051 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5052
5053 * macterm.c (XTread_socket): Fix mouse click on tool bar.
5054
5055 2004-03-11 Kim F. Storm <storm@cua.dk>
5056
5057 * dispextern.h: Move image related prototypes from xfns.c section
5058 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
5059 HAVE_X_WINDOWS.
5060
5061 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
5062 Move gtkutil.o to new GTK_OBJ list.
5063 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
5064 (GTK_OBJ) [USE_GTK]: New declaration.
5065 (obj): Add $(GTK_OBJ) to list.
5066
5067 2004-03-11 Steven Tamm <steventamm@mac.com>
5068
5069 * image.c [MAC_OSX]: Include sys/stat.h
5070
5071 * macfns.c (syms_of_macfns): Remove definitions of things now
5072 defined in image.c
5073
5074 2004-03-11 Kim F. Storm <storm@cua.dk>
5075
5076 The following changes consolidates the identical/similar image
5077 support code previously found in xfns.c, w32fns.c, and macfns.c
5078 into a new file image.c.
5079
5080 * makefile.w32-in (OBJ1): Add image.o.
5081 ($(BLD)/image.$(O)): Add dependencies.
5082
5083 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
5084 (image.o): Add dependencies.
5085
5086 * image.c: New file with consolidated image support code.
5087 (COLOR_TABLE_SUPPORT): New define to control whether
5088 color table support is available (X only).
5089 (Bitmap_Record): Common name for x_bitmap_record,
5090 w32_bitmap_record, and mac_bitmap_record.
5091 (XImagePtr): Common name for pointer to XImage or equivalent.
5092 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
5093 to XImagePtr on X+MAC, and to HDC on W32.
5094 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
5095 (NO_PIXMAP): Common name for "None" or equivalent.
5096 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
5097 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
5098 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
5099 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
5100 Define with suitable equivalents on W32 and MAC for code sharing.
5101 (XDrawLine): Define on MAC for code sharing.
5102 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
5103 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
5104 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5105 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5106 (x_reference_bitmap, x_create_bitmap_from_data)
5107 (x_create_bitmap_from_file, x_destroy_bitmap)
5108 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5109 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5110 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5111 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5112 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5113 (define_image_type, lookup_image_type, valid_image_p)
5114 (image_error, enum image_value_type, struct image_keyword)
5115 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5116 (make_image, free_image, prepare_image_for_display, image_ascent)
5117 (four_corners_best, image_background, image_background_transparent)
5118 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5119 (make_image_cache, free_image_cache, clear_image_cache)
5120 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5121 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5122 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5123 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5124 (init_image_func_pointer, image_load_quartz2d)
5125 (struct ct_color, init_color_table, free_color_table)
5126 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5127 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5128 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5129 (x_disable_image, x_build_heuristic_mask)
5130 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5131 (TIFF support, GIF support, Ghostscript support): Consolidate image
5132 code from xfns.c, w32fns.c, and macfns.c.
5133 (syms_of_image): Consolidate image related symbol setup here.
5134 (init_image): Consolidate image related initializations here.
5135
5136 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
5137 and init_image. Remove call to init_xfns.
5138
5139 * macterm.h (struct mac_bitmap_record): Add file member.
5140 Not currently used, but simplifies code sharing.
5141
5142 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5143 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5144 (x_reference_bitmap, x_create_bitmap_from_data)
5145 (x_create_bitmap_from_file, x_destroy_bitmap)
5146 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5147 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5148 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5149 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5150 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5151 (define_image_type, lookup_image_type, valid_image_p)
5152 (image_error, enum image_value_type, struct image_keyword)
5153 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5154 (make_image, free_image, prepare_image_for_display, image_ascent)
5155 (four_corners_best, image_background, image_background_transparent)
5156 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5157 (make_image_cache, free_image_cache, clear_image_cache)
5158 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5159 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5160 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5161 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5162 (init_image_func_pointer, image_load_quartz2d)
5163 (struct ct_color, init_color_table, free_color_table)
5164 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5165 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5166 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5167 (x_disable_image, x_build_heuristic_mask)
5168 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5169 (TIFF support, GIF support, Ghostscript support): Merge with image
5170 code from xfns.c and macfns.c into image.c.
5171 (syms_of_xfns): Move image related symbols to image.c.
5172 (init_external_image_libraries, init_xfns): Remove; initialization
5173 moved to init_image in image.c.
5174
5175 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5176 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5177 (x_reference_bitmap, x_create_bitmap_from_data)
5178 (x_create_bitmap_from_file, x_destroy_bitmap)
5179 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5180 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5181 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5182 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5183 (define_image_type, lookup_image_type, valid_image_p)
5184 (image_error, enum image_value_type, struct image_keyword)
5185 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5186 (make_image, free_image, prepare_image_for_display, image_ascent)
5187 (four_corners_best, image_background, image_background_transparent)
5188 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5189 (make_image_cache, free_image_cache, clear_image_cache)
5190 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5191 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5192 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5193 (struct ct_color, init_color_table, free_color_table)
5194 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5195 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5196 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5197 (x_disable_image, x_build_heuristic_mask)
5198 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5199 (TIFF support, GIF support, Ghostscript support): Merge with image
5200 code from xfns.c and macfns.c into image.c.
5201 (syms_of_xfns): Move image related symbols to image.c.
5202 (init_external_image_libraries, init_xfns): Remove; initialization
5203 moved to init_image in image.c.
5204
5205 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5206 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5207 (x_reference_bitmap, x_create_bitmap_from_data)
5208 (x_create_bitmap_from_file, x_destroy_bitmap)
5209 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5210 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5211 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5212 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5213 (define_image_type, lookup_image_type, valid_image_p)
5214 (image_error, enum image_value_type, struct image_keyword)
5215 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5216 (make_image, free_image, prepare_image_for_display, image_ascent)
5217 (four_corners_best, image_background, image_background_transparent)
5218 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5219 (make_image_cache, free_image_cache, clear_image_cache)
5220 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5221 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5222 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5223 (struct ct_color, init_color_table, free_color_table)
5224 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5225 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5226 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5227 (x_disable_image, x_build_heuristic_mask)
5228 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5229 (TIFF support, GIF support, Ghostscript support): Merge with
5230 w32fns.c and macfns.c image code into image.c.
5231 (syms_of_xfns): Move image related symbols to image.c.
5232 (init_xfns): Remove; initialization moved to init_image in image.c.
5233
5234 * lisp.h (syms_of_image, init_image): Add protoypes.
5235 (init_xfns): Remove prototype.
5236
5237 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5238 (x_reference_bitmap, x_create_bitmap_from_data)
5239 (x_create_bitmap_from_file, x_destroy_bitmap)
5240 (x_create_bitmap_mask): Move prototypes from dispextern.h.
5241 (gamma_correct) [MAC_OS]: Add prototype.
5242
5243 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5244 (x_reference_bitmap, x_create_bitmap_from_data)
5245 (x_create_bitmap_from_file, x_destroy_bitmap)
5246 (x_create_bitmap_mask): Move prototypes to dispextern.h.
5247
5248 2004-03-09 Kenichi Handa <handa@etlken2>
5249
5250 * coding.c (decode_coding_emacs_mule): Handle insufficent source
5251 correctly.
5252
5253 2004-03-04 Richard M. Stallman <rms@gnu.org>
5254
5255 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
5256
5257 * window.c (Fdisplay_buffer): Doc fix.
5258
5259 * buffer.c (Fpop_to_buffer): Doc fix.
5260
5261 2004-03-03 Kim F. Storm <storm@cua.dk>
5262
5263 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
5264
5265 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
5266
5267 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
5268
5269 2004-03-02 Richard M. Stallman <rms@gnu.org>
5270
5271 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
5272
5273 2004-03-02 Kenichi Handa <handa@m17n.org>
5274
5275 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
5276
5277 2004-03-02 Kim F. Storm <storm@cua.dk>
5278
5279 * window.h (struct window): New member overlay_arrow_bitmap.
5280
5281 * window.c (make_window): Initialize overlay_arrow_bitmap.
5282
5283 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
5284 implement and integrate multiple overlay arrows with redisplay.
5285 (syms_of_xdisp): DEFVAR_LISP and initialize it.
5286 (last_arrow_position, last_arrow_string): Replace by properties.
5287 (Qlast_arrow_position, Qlast_arrow_string)
5288 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
5289 (syms_of_xdisp): Intern and staticpro them.
5290 (overlay_arrow_string_or_property, update_overlay_arrows)
5291 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
5292 (overlay_arrow_at_row): New functions for multiple overlay arrows.
5293 (redisplay_internal): Use them instead of directly accessing
5294 Voverlay_arrow_position etc. for multiple overlay arrows.
5295 (mark_window_display_accurate): Use update_overlay_arrows.
5296 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
5297 (try_window_id): Use overlay_arrows_changed_p.
5298 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
5299 (display_line): Use overlay_arrow_at_row to check multiple
5300 overlay arrows, and get relevant overlay-arrow-string and
5301 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
5302 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
5303 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
5304
5305 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
5306 (update_window_fringes): Remove unused code.
5307
5308 2004-03-01 Jason Rumney <jasonr@gnu.org>
5309
5310 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
5311
5312 2004-03-01 Juanma Barranquero <lektu@terra.es>
5313
5314 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
5315
5316 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
5317
5318 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5319
5320 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
5321 how many colors can be displayed.
5322
5323 2004-03-01 Kenichi Handa <handa@m17n.org>
5324
5325 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
5326 correctly.
5327
5328 2004-02-28 Kim F. Storm <storm@cua.dk>
5329
5330 * dispnew.c (update_window): Update header line also if there are
5331 no other changes in window (move code after set_cursor label).
5332
5333 * lisp.h (mark_window_display_accurate): Remove prototype.
5334
5335 * window.c (window_loop, Fforce_window_update): Force mode line
5336 updates by setting prevent_redisplay_optimizations_p and
5337 update_mode_lines.
5338
5339 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5340
5341 * xfns.c (x_window): Fix indentation.
5342
5343 * xterm.c (x_calc_absolute_position): Call x_real_positions
5344 to get WM window sizes and use those to calculate position.
5345 (x_set_offset): Remove code commented out.
5346
5347 2004-02-28 Miles Bader <miles@gnu.org>
5348
5349 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
5350
5351 2004-02-28 Kim F. Storm <storm@cua.dk>
5352
5353 * keyboard.c (kbd_buffer_store_event_hold): New function to store
5354 an event into kbd fifo, but with special handling of quit event;
5355 a quit event is saved for later, and further events are discarded
5356 until the saved quit event has been processed.
5357 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
5358 (gen_help_event): Store help event in kbd fifo.
5359 (NREAD_INPUT_EVENTS): Remove.
5360 (read_avail_input): Adapt to new read_socket_hook interface.
5361 Remove allocation and initialization of local input_event buffer,
5362 as read_socket_hook stores events directly in fifo. Allocate and
5363 initialize local hold_quit event to handle postponed quit event
5364 (and store it if set by kbd_buffer_store_event_hold).
5365
5366 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
5367 (gen_help_event): Fix prototype.
5368
5369 * macterm.c (XTread_socket): Remove bufp_r and
5370 numcharsp args. Add hold_quit arg.
5371 Rework to use just one, local, inev input_event. Store inev
5372 directly in fifo using kbd_buffer_store_event_hold.
5373
5374 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
5375 (read_input_waiting): Adapt to new read_socket_hook interface.
5376 Remove allocation and initialization of local input_event buffer,
5377 as read_socket_hook stores events directly in fifo. Allocate and
5378 initialize local hold_quit event to handle postponed quit event
5379 (and store it if set by kbd_buffer_store_event_hold).
5380
5381 * term.c (read_socket_hook): Fix arg list.
5382
5383 * termhooks.h (read_socket_hook): Fix prototype.
5384
5385 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
5386 numcharsp args. Add hold_quit arg.
5387 Rework to use just one, local, inev input_event. Store inev
5388 directly in fifo using kbd_buffer_store_event_hold.
5389
5390 * w32inevt.h (w32_console_mouse_position): Fix prototype.
5391
5392 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
5393 Add hold_quit arg. Rework to use just one, local, inev
5394 input_event. Store inev directly in fifo using
5395 kbd_buffer_store_event_hold. Update count in one place.
5396 Postpone call to gen_help_event until inev is stored; use new
5397 local do_help for this.
5398 Remove local emacs_event in handing of ButtonPress event; just use
5399 inev instead (so no reason to copy it later).
5400
5401 * xsmfns.c (x_session_check_input): Remove numchars arg.
5402
5403 * xterm.c (x_focus_changed, x_detect_focus_change):
5404 Remove numchars arg. Always store event into bufp arg.
5405 Return nothing. Callers changed accordingly.
5406 (glyph_rect): Simplify.
5407 (STORE_KEYSYM_FOR_DEBUG): New macro.
5408 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
5409 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
5410 (current_hold_quit) [USE_GTK]: Add.
5411 (event_handler_gdk): Adapt to new handle_one_xevent.
5412 (handle_one_xevent): Remove bufp_r and numcharsp args.
5413 Add hold_quit arg. Rework to use just one, local, inev
5414 input_event. Store inev directly in fifo using
5415 kbd_buffer_store_event_hold. Update count in one place.
5416 Postpone call to gen_help_event until inev is stored; use new
5417 local do_help for this.
5418 Simplify handling of keysyms (consolidate common code). Fix bug
5419 where count was updated with nchars instead of nbytes.
5420 Remove local emacs_event in handing of ButtonPress event; just use
5421 inev instead (so no reason to copy it later).
5422 Remove `out' label. Rename label `ret' to `done'; add various
5423 `goto done' to clarify code flow in deeply nested blocks.
5424 (x_dispatch_event): Simplify as handle_one_xevent now calls
5425 kbd_buffer_store_event itself.
5426 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
5427 arg. Call handle_one_xevent with new arglist. Store event from
5428 x_session_check_input in fifo.
5429 [USE_GTK]: Setup current_hold_quit.
5430 Decrement handling_signal before unblocking input.
5431 (x_initialize) [USE_GTK]: Initialize current_count.
5432
5433 * xterm.h (x_session_check_input): Fix prototype.
5434
5435 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5436
5437 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
5438
5439 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
5440 macgui.h).
5441
5442 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
5443
5444 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
5445 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
5446 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
5447 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
5448 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
5449 (Bitmap): Remove typedef.
5450 (Pixmap): Change int to GWorldPtr.
5451
5452 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5453
5454 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5455 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
5456 New #define to extract 16-bit depth color components from unsigned
5457 long representation.
5458 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
5459 colors used for masks.
5460 (struct mac_display_info): Add color_p. Remove n_cbits.
5461
5462 * macfns.c: Include sys/types.h and sys/stat.h.
5463 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
5464 Include QuickTime/QuickTime.h.
5465 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5466 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
5467 functions defined in macterm.c.
5468 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
5469 (ZPixmap): New #define for compatibility with xfns.c.
5470 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5471 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5472 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
5473 New functions.
5474 (four_corners_best, x_create_x_image_and_pixmap)
5475 (x_destroy_x_image, unwind_create_frame, x_disable_image)
5476 (x_edge_detection, init_color_table, colors_in_color_table)
5477 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
5478 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
5479 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
5480 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
5481 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
5482 long mixup.
5483 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
5484 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
5485 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
5486 (x_set_cursor_type, Fxw_color_values, valid_image_p)
5487 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
5488 (x_alloc_image_color, clear_image_cache, lookup_image)
5489 (x_find_image_file, xbm_read_bitmap_file_data)
5490 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
5491 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
5492 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
5493 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
5494 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
5495 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
5496 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
5497 #if 0.
5498 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
5499 #if 0. Free white_relief.gc and black_relief.gc.
5500 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
5501 New functions (from xfns.c).
5502 (Fx_create_frame): Record unwind_create_frame.
5503 (Fxw_display_color_p): Use dpyinfo->color_p.
5504 (Fx_display_grayscale_p, Fx_display_planes): Don't use
5505 dpyinfo->n_cbits.
5506 (Fx_display_color_cells): Use dpyinfo->n_planes;
5507 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
5508 (Qheuristic, cross_disabled_images, emboss_matrix)
5509 (laplace_matrix): New variables (from xfns.c).
5510 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
5511 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
5512 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
5513 (image_background_transparent): New function (from xfns.c).
5514 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5515 (image_load_quicktime): Add declaration.
5516 [MAC_OSX] (image_load_quartz2d): Likewise.
5517 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
5518 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
5519 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
5520 (xbm_load_image_from_file, x_laplace_read_row)
5521 (x_laplace_write_row, pbm_read_file): Remove functions.
5522 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
5523 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
5524 (colors_in_color_table): Sync with xfns.c (although not used).
5525 (lookup_rgb_color): Don't lookup color table. Just do gamma
5526 correction.
5527 (COLOR_INTENSITY): New #define (from xfns.c).
5528 (x_disable_image): New function (from xfns.c).
5529 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5530 (x_build_heuristic_mask): Sync with xfns.c.
5531 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5532 (HAVE_PBM): Remove #ifdef.
5533 (pbm_load): Sync with xfns.c. Set img->width and img->height
5534 before IMAGE_BACKGROUND.
5535 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
5536 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
5537 Don't enclose with #if HAVE_PNG.
5538 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
5539 symbol _CGImageCreateWithPNGDataProvider is defined.
5540 Otherwise use image_load_quicktime.
5541 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
5542 [HAVE_PNG] (png_load): Sync with xfns.c.
5543 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5544 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
5545 HAVE_JPEG.
5546 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
5547 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
5548 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
5549 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
5550 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
5551 (tiff_image_p, tiff_load): Don't enclose declarations with #if
5552 HAVE_TIFF.
5553 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
5554 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
5555 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
5556 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
5557 New functions (from xfns.c).
5558 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
5559 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
5560 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
5561 Don't enclose with #if HAVE_GIF.
5562 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
5563 animated gif. Otherwise use image_load_quicktime.
5564 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
5565 gif_DrawText to avoid conflict with QuickdrawText.h.
5566 [HAVE_GIF] (gif_load): Sync with xfns.c.
5567 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
5568 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
5569 Ghostscript is not supported yet).
5570 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
5571 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
5572 cross_disabled_images (from xfns.c). Remove #if 0 for supported
5573 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5574 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
5575 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5576 HAVE_PNG. Call EnterMovies to support animated gifs.
5577 Call init_image_func_pointer to bind a symbol
5578 _CGImageCreateWithPNGDataProvider if it is defined.
5579
5580 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5581 (x_draw_bar_cursor): Sync declaration with xterm.c.
5582 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
5583 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
5584 graphics).
5585 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
5586 (mac_draw_line_to_pixmap, XCreatePixmap)
5587 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
5588 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5589 New functions.
5590 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5591 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5592 Cast bits to char *.
5593 (reflect_byte): New function (from w32fns.c).
5594 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5595 due to byte alignment.
5596 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5597 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5598 (XSetForeground): Remove static (now used in macfns.c).
5599 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5600 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5601 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5602 (x_draw_glyph_string_box, x_draw_image_foreground)
5603 (x_draw_image_foreground_1, x_draw_image_glyph_string)
5604 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5605 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5606 Sync with xterm.c.
5607 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5608 than the xterm.c version when a strictly horizontal or vertical
5609 line is drawn.
5610 (XTset_terminal_window): Add static.
5611 (x_make_frame_visible): Add UNBLOCK_INPUT.
5612 (x_free_frame_resources): New funcion (from xterm.c).
5613 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5614 occurs in tool bar area.
5615 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5616 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
5617 Initialize image cache.
5618 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5619 Enclose unused functions with #if 0.
5620 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5621 (decode_mac_font_name): New function to apply code conversions
5622 from a mac font name to an XLFD font name according to its script code.
5623 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
5624 font name to a mac font name according to REGISTRY and ENCODING fields.
5625 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5626 whose name starts with `.'.
5627 (init_font_name_table): Use decode_mac_font_name. Add both
5628 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5629 of a font is smJapanese.
5630 (mac_do_list_fonts): New function to list fonts that match a given
5631 pattern.
5632 (x_list_fonts, XLoadQueryFont): Use it.
5633 (XLoadQueryFont): Set rbearing field for each variable width
5634 character to avoid needless redraw.
5635 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5636
5637 2004-02-26 Kim F. Storm <storm@cua.dk>
5638
5639 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5640 as read_socket_hook handler on X aborts if buffer is too small
5641 and W32 handler doesn't always check buffer limit.
5642
5643 * xdisp.c (handle_single_display_prop): Handle left-fringe and
5644 right-fringe similar to a display margin image. Specifically,
5645 the characters having the fringe prop are no longer shown, and
5646 we use IT_IMAGE/next_element_from_image with image_id = -1 to
5647 do this. Set fringe bitmap face_id in it->face_id.
5648 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5649 still realize it->face (i.e. the fringe bitmap face).
5650
5651 2004-02-25 Miles Bader <miles@gnu.org>
5652
5653 * xdisp.c (check_it): Check string/string_pos consistency.
5654 (init_iterator): Initialize string-related fields properly.
5655
5656 2004-02-11 Miles Bader <miles@gnu.org>
5657
5658 * xdisp.c (produce_image_glyph): Force negative descents to zero.
5659
5660 2004-02-10 Miles Bader <miles@gnu.org>
5661
5662 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
5663 BLOCK_INPUT can be nested, so it doesn't make much sense.
5664
5665 2004-02-24 Michael Mauger <mmaug@yahoo.com>
5666
5667 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
5668 (xbm_read_bitmap_data): Use unsigned char for image data.
5669
5670 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
5671
5672 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
5673
5674 2004-02-22 Jason Rumney <jasonr@gnu.org>
5675
5676 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
5677 correctly over other bitmaps.
5678
5679 2004-02-21 Eli Zaretskii <eliz@gnu.org>
5680
5681 * emacs.c (USAGE1): Split into two halves.
5682 (USAGE2): Second half of the old USAGE1.
5683 (USAGE3): Rename from USAGE2.
5684 (USAGE4): Rename from USAGE3.
5685
5686 2004-02-21 Juri Linkov <juri@jurta.org>
5687
5688 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
5689 Fix --multibyte. Move --help, --version to USAGE2. Add alias
5690 --file. Fix -f, -l. Sort options. Untabify.
5691 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
5692
5693 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
5694
5695 * category.c (Fdefine_category, Fcategory_docstring)
5696 (Fget_unused_category, Fset_category_table)
5697 (Fcategory_set_mnemonics): Doc fixes.
5698
5699 2004-02-20 Kim F. Storm <storm@cua.dk>
5700
5701 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
5702 The following changes are relative to the 2004-01-21 revision.
5703 (NREAD_INPUT_EVENTS): Define as max number of input events to read
5704 in one call to read_socket_hook. Value is 8.
5705 (read_avail_input): Separate and rework handling of read_socket_hook
5706 and non-read_socket_hook cases. Use smaller input_event buffer
5707 in read_socket_hook case, and repeat if full buffer is read.
5708 Use new local variable 'discard' to skip input after C-g.
5709 In non-read_socket_hook case, just use a single input_event, and
5710 call kbd_buffer_store_event on the fly for each character.
5711
5712 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5713
5714 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
5715 Remove unused `gu' alternative.
5716
5717 2004-02-19 Andreas Schwab <schwab@suse.de>
5718
5719 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
5720 warning.
5721
5722 2004-02-18 Kim F. Storm <storm@cua.dk>
5723
5724 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
5725 Fix last change.
5726
5727 2004-02-17 Kim F. Storm <storm@cua.dk>
5728
5729 * xdisp.c (fast_find_position): Fix return value of new version;
5730 it was inverted compared to the 21.1 version.
5731 (get_window_cursor_type): Don't look at glyph if NULL.
5732 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
5733
5734 * keyboard.c: Rework previous change; it didn't consider that the
5735 buf array was allocated on the stack.
5736 (prev_read): Remove variable.
5737 (read_avail_input_buf): New static event buffer array.
5738 (in_read_avail_input): New static variable to handle re-entrancy.
5739 (read_avail_input): Change buf to pinter to read_avail_input_buf.
5740 Use in_read_avail_input to handle re-entrance; when re-entered,
5741 fully initialize and use tmp_buf array instead of read_avail_input_buf.
5742 Do not initialize read_avail_input_buf in full here; instead assume it
5743 is always cleared on entry. To ensure that, we clear (just) the
5744 entries that were used before we return.
5745 (init_keyboard): Initialize read_avail_input_buf here.
5746
5747 2004-02-16 Jesper Harder <harder@ifa.au.dk>
5748
5749 * cmds.c (Fend_of_line): Doc fix.
5750
5751 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
5752
5753 * keyboard.c (prev_read): New static variable.
5754 (read_avail_input): Use it to zero out only those slots in buf[]
5755 that were used last time we were called.
5756
5757 2004-02-16 Eli Zaretskii <eliz@gnu.org>
5758
5759 * Makefile.in (obj): Move fringe.o from here...
5760 (XOBJ, MAC_OBJ): ...to here.
5761
5762 2004-02-16 Stephen Eglen <stephen@gnu.org>
5763
5764 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5765
5766 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
5767
5768 * data.c (Fbyteorder):
5769 * fringe.c (Fdefine_fringe_bitmap):
5770 * xdisp.c (handle_single_display_prop):
5771 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5772
5773 2004-02-16 Jason Rumney <jasonr@gnu.org>
5774
5775 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5776
5777 2004-02-15 Steven Tamm <steventamm@mac.com>
5778
5779 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5780 controlling emulation of a three button mouse with option and
5781 command keys.
5782 (Qreverse, mac_get_enumlated_btn): Handle the emulation
5783 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
5784
5785 2004-02-15 Kim F. Storm <storm@cua.dk>
5786
5787 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5788
5789 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5790 Perform byte-swapping.
5791
5792 2004-02-14 Kim F. Storm <storm@cua.dk>
5793
5794 * dispextern.h (struct draw_fringe_bitmap_params): Change member
5795 bits from char to short to facilitate wider bitmaps.
5796 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5797 member.
5798
5799 * fringe.c (struct fringe_bitmap): Change member bits from char to
5800 short to facilitate 16 bits wide bitmaps. Modify all standard
5801 bitmaps accordingly.
5802 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5803 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5804 (draw_fringe_bitmap): Ditto.
5805 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5806 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5807 handle up to 16 bits wide bitmaps.
5808 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
5809 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
5810
5811 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5812 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5813 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5814
5815 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5816 so it is no longer necessary to expand them here.
5817
5818 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5819
5820 2004-02-12 Kim F. Storm <storm@cua.dk>
5821
5822 * window.c (Fwindow_fringes): Doc fix.
5823
5824 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5825
5826 * xselect.c (x_get_foreign_selection): Add new optional parameter
5827 time_stamp.
5828 (Fx_get_selection_internal): Ditto, pass time_stamp to
5829 x_get_foreign_selection.
5830
5831 * data.c (Fbyteorder): New function.
5832
5833 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5834
5835 * atimer.c: Move include stdio.h to same place as in other files.
5836
5837 * region-cache.c: Ditto.
5838
5839 * sysdep.c: Ditto.
5840
5841 * xfaces.c: Ditto.
5842
5843 2004-02-09 Sam Steingold <sds@gnu.org>
5844
5845 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
5846
5847 2004-02-09 Kim F. Storm <storm@cua.dk>
5848
5849 * fringe.c: New file. Move original fringe related declarations
5850 and code from dispextern.h and xdisp.c here.
5851 Rework code to support user defined fringe bitmaps, redefining
5852 standard bitmaps, ability to overlay user defined bitmap with
5853 overlay arrow bitmap, and add faces to bitmaps.
5854 (Voverflow_newline_into_fringe): Declare here.
5855 (enum fringe_bitmap_align): New enum.
5856 (..._bits): All bitmaps are now defined without bitswapping; that
5857 is now done in init_fringe_once (if necessary).
5858 (standard_bitmaps): New array with specifications for the
5859 standard fringe bitmaps.
5860 (fringe_faces): New array.
5861 (valid_fringe_bitmap_id_p): New function.
5862 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5863 (draw_fringe_bitmap): New function which draws fringe bitmap,
5864 possibly overlaying bitmap with cursor in right fringe or the
5865 overlay arrow in the left fringe.
5866 (update_window_fringes): Do not handle overlay arrow here.
5867 Compare and copy fringe bitmap faces.
5868 (init_fringe_bitmap): New function.
5869 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5870 define and destroy user defined fringe bitmaps.
5871 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5872 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5873 (syms_of_fringe): New function. Defsubr new DEFUNs.
5874 DEFVAR_LISP Voverflow_newline_into_fringe.
5875 (init_fringe_once, init_fringe): New functions.
5876 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
5877
5878 * Makefile.in (obj): Add fringe.o.
5879 (fringe.o): New dependencies.
5880
5881 * dispextern.h (FRINGE_ID_BITS): New definition for number of
5882 bits allocated to hold a fringe number. Increase number of bits
5883 from 4 to 8 to allow user defined fringe bitmaps.
5884 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5885 left_user_fringe_face_id, right_user_fringe_bitmap,
5886 right_user_fringe_face_id.
5887 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5888 Move to new file fringe.c.
5889 (MAX_FRINGE_BITMAPS): Define here.
5890 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5891 and overlay_p. Change member which to int.
5892 (struct redisplay_interface): New members define_fringe_bitmap
5893 and destroy_fringe_bitmap.
5894 (valid_fringe_bitmap_id_p): Add prototype.
5895 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5896
5897 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5898 arrows.
5899 (update_frame): Do flush_display if force_flush_display_p to
5900 ensure display (specifically fringes) are updated in a timely
5901 manner when resizing the frame by dragging the mouse.
5902 (update_window_line): Update row if overlay arrow changed.
5903 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5904 or overlay arrow changed.
5905
5906 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5907 syms_of_fringe, and init_fringe.
5908
5909 * frame.h (struct frame): New member force_flush_display_p.
5910
5911 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5912 Add prototypes.
5913
5914 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
5915 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
5916 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5917 Use cursor color for displaying cursor in fringe.
5918 (x_redisplay_interface): Add null handlers for
5919 define_fringe_bitmap and destroy_fringe_bitmap functions.
5920
5921 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5922 xterm.c to handle overlayed fringe bitmaps and to use cursor color
5923 for displaying cursor in fringe.
5924 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5925 specific functions to define and destroy fringe bitmaps in fringe_bmp.
5926 (w32_redisplay_interface): Add them to redisplay_interface.
5927 (w32_term_init): Call w32_init_fringe instead of explicitly
5928 defining fringe bitmaps in fringe_bmp array.
5929 (x_delete_display): Call w32_reset_fringes instead of explicitly
5930 destroying fringe bitmaps in fringe_bmp array.
5931
5932 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5933 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5934 (continued_bits, continuation_bits, ov_bits, first_line_bits)
5935 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5936 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5937 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5938 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5939 Move fringe handling vars and code to new file fringe.c.
5940 (handle_display_prop): Handle left-fringe and right-fringe
5941 display properties; store user fringe bitmaps in iterator.
5942 (move_it_in_display_line_to): Handle cursor in fringe at eob.
5943 (clear_garbaged_frames): Set force_flush_display_p if resized.
5944 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5945 (display_line): Handle cursor in fringe at eob.
5946 (display_line): Set row user fringe bitmaps from iterator.
5947
5948 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5949 Use cursor color for displaying cursor in fringe.
5950 (x_redisplay_interface): Add null handlers for
5951 define_fringe_bitmap and destroy_fringe_bitmap functions.
5952
5953 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5954
5955 * macfns.c (Fx_change_window_property): Make doc string and
5956 parameters same as for X version.
5957
5958 * w32fns.c (Fx_change_window_property): Ditto.
5959
5960 2004-02-07 Kim F. Storm <storm@cua.dk>
5961
5962 * xdisp.c (hscroll_window_tree): Position cursor near to right
5963 margin in hscrolled window when jumping to end of line (rather
5964 than centering cursor).
5965
5966 * process.c (wait_reading_process_input): Don't do adaptive read
5967 buffering if waiting for a specific process.
5968
5969 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
5970
5971 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5972 (Fread_minibuffer, Feval_minibuffer)
5973 (Fread_string, Fread_no_blanks_input)
5974 (Fcompleting_read): Doc fixes.
5975 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5976 completion-regexp-list. Define Qcase_fold_search and staticpro it.
5977 (read_minibuf): Fix initial comment.
5978 (Ftry_completion, Fall_completions, Ftest_completion): Bind
5979 case-fold-search to the value of completion-ignore-case when
5980 checking completion-regexp-list.
5981 (Fdisplay_completion_list): Make it handle arguments that are
5982 symbols. Doc fix.
5983
5984 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5985
5986 * xterm.h: Add declaration of free_frame_menubar.
5987
5988 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5989 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
5990 (Fx_change_window_property): Add declaration of parameters type and
5991 format. Remove unused variable cons.
5992
5993 * xselect.c: Include stdio,h.
5994
5995 2004-02-05 Kenichi Handa <handa@m17n.org>
5996
5997 * fns.c (Fset_char_table_range): Fix previous change.
5998
5999 * buffer.c (Fset_buffer_multibyte): Fix docstring.
6000
6001 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
6002
6003 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
6004
6005 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
6006
6007 * keymap.c (Vmouse_events): Rename from Vmenu_events.
6008 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
6009
6010 2004-02-04 Kenichi Handa <handa@m17n.org>
6011
6012 * fns.c (Fset_char_table_range): Handle charsets ascii,
6013 eight-bit-control, and eight-bit-graphic correctly.
6014
6015 2004-02-03 Jason Rumney <jasonr@gnu.org>
6016
6017 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
6018
6019 * w32fns.c (x_to_w32_font): Likewise.
6020
6021 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6022
6023 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
6024 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
6025
6026 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
6027 ClientMessages.
6028
6029 * xselect.c: Include termhooks.h and X11/Xproto.h
6030 (x_check_property_data, x_fill_property_data)
6031 (x_property_data_to_lisp, mouse_position_for_drop)
6032 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
6033 (Fx_send_client_event): Move here from xfns.c.
6034 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
6035
6036 * xfns.c (x-send-client-message): Move to xselect.c
6037 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
6038 OUTER_P.
6039 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
6040 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
6041 if vector_ret_p is true.
6042 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
6043
6044 2004-02-02 Eli Zaretskii <eliz@gnu.org>
6045
6046 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
6047 basename of FILE relative to it, not FILE itself.
6048
6049 2004-02-02 Kenichi Handa <handa@m17n.org>
6050
6051 * coding.c (coding_restore_composition): Check invalid
6052 composition data more rigidly.
6053
6054 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
6055
6056 * fileio.c (Fread_file_name_internal): Correctly handle the case
6057 where insert-default-directory is nil.
6058 (Fread_file_name): Always return an empty string if the user exits
6059 with an empty minibuffer. Adapt the docstring accordingly.
6060 (syms_of_fileio): Adapt the docstring of insert-default-directory
6061 to the change in Fread_file_name.
6062
6063 2004-01-29 Eli Zaretskii <eliz@gnu.org>
6064
6065 * alloca.c [!alloca]: Fix the prototype for xfree.
6066
6067 2004-01-29 Kenichi Handa <handa@m17n.org>
6068
6069 * fns.c (string_char_to_byte): Optimize for ASCII only string.
6070 (string_byte_to_char): Likewise.
6071
6072 2004-01-28 Peter Runestig <peter@runestig.com>
6073
6074 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
6075
6076 2004-01-27 Steven Tamm <steventamm@mac.com>
6077
6078 * unexmacosx.c (unexec_copy): Do not copy more than was
6079 requested to prevent overwriting during unexec.
6080
6081 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6082
6083 * process.c (sigchld_handler): Add comment about not calling malloc.
6084
6085 * process.h: Add extern to synch_process_termsig.
6086
6087 2004-01-27 Steven Tamm <steventamm@mac.com>
6088
6089 * macterm.c (make_mac_frame, make_mac_terminal_frame):
6090 Move setting of scroll bars from make_mac_frame to
6091 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
6092
6093 2004-01-26 Richard M. Stallman <rms@gnu.org>
6094
6095 * search.c (Freplace_match): Handle nonexistent
6096 back-references properly.
6097
6098 2004-01-03 Richard M. Stallman <rms@gnu.org>
6099
6100 * window.c (decode_any_window): New function.
6101 (Fwindow_height, Fwindow_width, Fwindow_edges)
6102 (Fwindow_pixel_edges, Fwindow_inside_edges)
6103 (Fwindow_inside_pixel_edges): Use decode_any_window.
6104
6105 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6106
6107 * process.h: synch_process_termsig new variable.
6108
6109 * callproc.c: Define synch_process_termsig.
6110 (Fcall_process): Initiate synch_process_termsig to zero and
6111 check if non-zero and get signal name after subprocess has ended.
6112
6113 * process.c (sigchld_handler): Set synch_process_termsig
6114 if terminated by a signal. synch_process_death setting removed.
6115
6116 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
6117
6118 2004-01-26 Andreas Schwab <schwab@suse.de>
6119
6120 * print.c (print_preprocess): Declare size as EMACS_INT to not
6121 lose bits.
6122 (print_object): Likewise.
6123 * alloc.c (Fpurecopy): Likewise.
6124
6125 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
6126
6127 * window.c (Fwindow_minibuffer_p): Doc fix.
6128
6129 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
6130
6131 * editfns.c (Fformat): Make both passes accept the same set of flags.
6132
6133 2004-01-23 Kenichi Handa <handa@m17n.org>
6134
6135 * fns.c (Fmd5): If OBJECT is a buffer different from the current
6136 one, set buffer to OBJECT temporarily.
6137
6138 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6139
6140 * keyboard.c (kbd_buffer_gcpro): Remove.
6141 (kbd_buffer_store_event, clear_event, Fdiscard_input)
6142 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
6143 Don't initialize and/or maintain the variable any more. It was made
6144 redundant by my commit of 2003-06-15.
6145
6146 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
6147
6148 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6149
6150 * lisp.h: Add undef DECL_ALIGN.
6151
6152 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6153
6154 * process.c (wait_reading_process_input) [SYNC_INPUT]:
6155 Check interrupt_input_pending explicitly.
6156
6157 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
6158
6159 * keyboard.c (handle_async_input): New fun,
6160 extracted from input_available_signal.
6161 (input_available_signal, reinvoke_input_signal): Use it.
6162
6163 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
6164
6165 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
6166
6167 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
6168 manipulation macros for when tags are in the lower bits.
6169 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
6170 (DECL_ALIGN): New macro.
6171 (DEFUN): Use it.
6172
6173 * lisp.h [ENABLE_CHECKING]: Don't force union type.
6174
6175 * s/darwin.h (__attribute__): Remove outdated workaround.
6176
6177 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
6178
6179 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
6180 Don't check range of malloc address.
6181 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
6182
6183 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
6184
6185 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
6186
6187 2004-01-19 Kenichi Handa <handa@m17n.org>
6188
6189 * fontset.c (fontset_font_pattern): Fix previous change.
6190
6191 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
6192
6193 * xdisp.c (Voverflow_newline_into_fringe)
6194 (move_it_in_display_line_to, redisplay_internal)
6195 (update_window_fringes, redisplay_window, display_line, window):
6196 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
6197 that it compiles without a window-system.
6198 * dispnew.c (direct_output_for_insert, update_window): Likewise.
6199
6200 2004-01-16 Kim F. Storm <storm@cua.dk>
6201
6202 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
6203
6204 * buffer.c (init_buffer_once): Set buffer_defaults and
6205 buffer_local_flags for indicate_buffer_boundaries.
6206 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
6207 default- variable for it.
6208
6209 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
6210 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
6211 New members exact_window_width_line_p and cursor_in_fringe_p for
6212 overflowing newlines into right fringe.
6213 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
6214 and indicate_bottom_line_p for buffer boundaries and scrolling.
6215 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
6216 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
6217 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
6218 and HOLLOW_SQUARE_BITMAP.
6219 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
6220 Add prototypes.
6221
6222 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
6223 instead of related indicator fields.
6224 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
6225 (direct_output_for_insert): Handle exact width lines like
6226 contined lines. Call update_window_fringes.
6227 (update_window): Call update_window_fringes.
6228 (scrolling_window): Don't skip desired rows with changed bitmaps.
6229 Check if fringe bitmaps changes when assigning scrolled rows.
6230
6231 * xdisp.c (Voverflow_newline_into_fringe): New variable.
6232 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
6233 (move_it_in_display_line_to): Overflow newline into fringe for
6234 rows that are exactly as wide as the window.
6235 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
6236 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
6237 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
6238 (fringe_bitmaps): Add new bitmaps.
6239 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
6240 Select proper bitmap for cursor in fringe when appropriate.
6241 Handle alignment of bitmap to top or bottom of row.
6242 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
6243 done by update_window_fringes.
6244 (update_window_fringes, draw_window_fringes): New functions.
6245 (redisplay_internal): Call update_window_fringes in case only
6246 cursor row is updated.
6247 (redisplay_window): Call update_window_fringes.
6248 Explicitly call draw_window_fringes if redisplay was done using
6249 the current matrix or the overlay arrow is in the window.
6250 (try_window_reusing_current_matrix): Mark scrolled rows for
6251 fringe update (to update buffer-boundaries / scrolling icons).
6252 (find_last_unchanged_at_beg_row): Handle exact width lines line
6253 continued lines.
6254 (display_line): Overflow newline into fringe for rows that are
6255 exactly as wide as the window. Don't append space for newline
6256 in this case.
6257 (notice_overwritten_cursor): Explicitly clear cursor bitmap
6258 in fringe as if it had been overwritten.
6259 (erase_phys_cursor): Erase cursor bitmap in fringe.
6260 (syms_of_xdisp): Mark show-trailing-whitespace and
6261 void-text-area-pointer as user options.
6262 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
6263
6264 * xterm.c (x_update_window_end): Call draw_window_fringes.
6265 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6266 in row instead of actually drawing fringe bitmaps.
6267 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6268 (x_draw_window_cursor): Draw cursor in fringe.
6269
6270 * w32term.c (x_update_window_end): Call draw_window_fringes.
6271 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6272 in row instead of actually drawing fringe bitmaps.
6273 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6274 (w32_draw_window_cursor): Draw cursor in fringe.
6275
6276 * macterm.c (x_update_window_end): Call draw_window_fringes.
6277 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6278 in row instead of actually drawing fringe bitmaps.
6279 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6280 (mac_draw_window_cursor): Draw cursor in fringe.
6281
6282 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6283
6284 * xterm.c (handle_one_xevent): Don't handle characters that are part
6285 of an old style (XLookupString) compose sequence.
6286
6287 2004-01-15 Kenichi Handa <handa@m17n.org>
6288
6289 * search.c (Freplace_match): Use make_multibyte_string or
6290 make_unibyte_string according to the buffer multibyteness.
6291
6292 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
6293
6294 * alloc.c (struct interval_block, struct string_block)
6295 (struct symbol_block, struct marker_block, live_string_p)
6296 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
6297 Better preserve alignment for objects in blocks.
6298 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
6299
6300 * lread.c (defvar_per_buffer): Remove dead declaration.
6301
6302 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
6303 space size.
6304
6305 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6306
6307 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
6308 if a key press should pop down. Only pop down if a key is pressed
6309 outside the menu/dialog.
6310 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
6311 popup_get_selection.
6312 (create_and_show_dialog): Pass 1 for down_on_keypress to
6313 popup_get_selection.
6314
6315 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6316
6317 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
6318 BLOCK/UNBLOCK_INPUT.
6319
6320 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6321
6322 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
6323 specified.
6324
6325 2004-01-08 Kenichi Handa <handa@m17n.org>
6326
6327 * editfns.c (Fformat): Fix '&' to '&&'.
6328
6329 2004-01-08 Andreas Schwab <schwab@suse.de>
6330
6331 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
6332 size if PSEUDOVECTOR_FLAG is set.
6333
6334 2004-01-07 Kenichi Handa <handa@m17n.org>
6335
6336 * charset.c (Fdeclare_equiv_charset): Fix docstring.
6337
6338 * fontset.c (fontset_ref_via_base): Fix previous change.
6339
6340 2004-01-07 Kim F. Storm <storm@cua.dk>
6341
6342 * process.c (read_process_output): Only activate adaptive
6343 buffering if we read less than 256 bytes at a time.
6344
6345 2004-01-06 Kim F. Storm <storm@cua.dk>
6346
6347 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
6348 object and image object. Return glyph width and height.
6349 (mode_line_string, marginal_area_string): Ditto.
6350
6351 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6352 (marginal_area_string): Fix prototypes.
6353
6354 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
6355 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
6356 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
6357
6358 * keyboard.c (make_lispy_position): Use modified mode_line_string,
6359 buffer_posn_from_coords, and marginal_area_string functions to
6360 include both string object and image object in the lispy position.
6361 Also add actual glyph width and height to position.
6362 (read_key_sequence): Use real buffer position from mouse
6363 event to find keymap property even when click is in marginal area.
6364
6365 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
6366 mode_line_string and marginal_area_string functions to handle
6367 both string object and image object properties.
6368
6369 2004-01-06 Andreas Schwab <schwab@suse.de>
6370
6371 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
6372 character.
6373
6374 2004-01-02 Andreas Schwab <schwab@suse.de>
6375
6376 * macterm.c (emacs_options, x_initialized, same_x_server):
6377 Remove unused (and duplicated) definitions.
6378
6379 2004-01-02 Kim F. Storm <storm@cua.dk>
6380
6381 * process.h (struct Lisp_Process): New members for adaptive read
6382 buffering: adaptive_read_buffering, read_output_delay, and
6383 read_output_skip.
6384
6385 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
6386 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
6387 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
6388 (process_output_delay_count, process_output_skip): New vars.
6389 (Vprocess_adaptive_read_buffering): New variable.
6390 (make_process): Initialize adaptive read buffering members.
6391 (Fstart_process): Set adaptive_read_buffering member.
6392 (deactivate_process): Cleanup adaptive read buffering.
6393 (wait_reading_process_input): Temporarily omit delayed
6394 subprocesses from the set of file descriptors to read from;
6395 adjust the select timeout if we skipped any subprocesses.
6396 (read_process_output): Increase adaptive read buffering delay if
6397 we read less than a full buffer; reduce delay when we read a
6398 full buffer.
6399 (send_process): Simplify using local Lisp_Process var.
6400 Reset adaptive read buffering delay after write.
6401 (init_process): Initialize process_output_delay_count and
6402 process_output_skip.
6403 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
6404
6405 2004-01-01 Jason Rumney <jasonr@gnu.org>
6406
6407 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
6408
6409 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
6410
6411 * print.c (Ferror_message_string): Add hyperlink in the docstring
6412 to the definition of `signal' in the Elisp manual.
6413 * eval.c (Fsignal): Ditto.
6414
6415 2003-12-29 James Clark <jjc@jclark.com>
6416
6417 * fns.c (internal_equal): Return t for two NaN arguments.
6418
6419 2003-12-29 Richard M. Stallman <rms@gnu.org>
6420
6421 * data.c (store_symval_forwarding): Handle setting
6422 default-fill-column, etc., by changing the value in
6423 buffers that use the default.
6424
6425 * minibuf.c (Fset_minibuffer_window): Doc fix.
6426
6427 * fileio.c (choose_write_coding_system): Ignore auto_saving
6428 if using the visited file for auto saves.
6429 (Fwrite_region): Don't update SAVE_MODIFF
6430 if auto-saving in visited file.
6431
6432 2003-12-29 Kenichi Handa <handa@m17n.org>
6433
6434 * dispextern.h (face_font_available_p): Extern it.
6435
6436 * fontset.c (Voverriding_fontspec_alist): New variable.
6437 (lookup_overriding_fontspec): New function.
6438 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
6439 (fontset_font_pattern): Likewise.
6440 (regulalize_fontname): New function.
6441 (Fset_fontset_font): Call regulalize_fontname.
6442 (Fset_overriding_fontspec_internal): New function.
6443 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
6444 Defsubr Sset_overriding_fontspec_internal.
6445
6446 * xfaces.c (face_font_available_p): New function.
6447
6448 2003-12-28 Richard M. Stallman <rms@gnu.org>
6449
6450 * buffer.c (Fother_buffer): Don't crash if BUF is nil
6451 or if its name is nil.
6452
6453 * buffer.c (Fkill_buffer): Don't delete auto-save file
6454 if it's the same as the visited file.
6455
6456 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
6457
6458 * coding.c (Fcheck_coding_system): Doc fix.
6459
6460 2003-12-28 Kim F. Storm <storm@cua.dk>
6461
6462 * Makefile.in (eval.o): Depend on dispextern.h.
6463
6464 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6465 image glyph using image's ascent.
6466 (mode_line_string): Return image glyph as object clicked on.
6467 Adjust y0 for image glyph using image's ascent.
6468
6469 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
6470 (struct glyph): New members, ascent and descent. Used to save
6471 this glyph's ascent and descent, instead of having.
6472 (struct glyph): Declare member face_id using FACE_ID_BITS.
6473 (find_hot_spot): Add prototype.
6474
6475 * keyboard.c (Qimage): Remove extern (now in lisp.h).
6476 (QCmap): Declare extern.
6477 (make_lispy_position): When position is inside image hot-spot,
6478 use hot-spot element's id as posn element.
6479
6480 * lisp.h (IMAGEP): New macro to test for image object type.
6481 (Qimage): Declare extern.
6482
6483 * macfns.c (Qimage): Remove extern (now in lisp.h).
6484 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6485
6486 * macterm.c (Qface, Qmouse_face): Remove unused externs.
6487
6488 * w32fns.c (Qimage): Remove extern (now in lisp.h).
6489 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6490
6491 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
6492
6493 * w32term.c (Qface, Qmouse_face): Remove unused externs.
6494
6495 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
6496 pointer types.
6497 (Qrelative_width, Qalign_to): Remove unused variables.
6498 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
6499 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
6500 image maps.
6501 (x_y_to_hpos_vpos): Return glyph relative coordinates through
6502 new dx and dy args.
6503 Remove buffer_only_p arg (always 0). Simplify code accordingly.
6504 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
6505 than row's ascent and height, to get sensible height on tall rows.
6506 (build_desired_tool_bar_string): Remove Qimage extern.
6507 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
6508 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
6509 image glyph is alone on the last line.
6510 (append_glyph, append_composite_glyph, produce_image_glyph)
6511 (append_stretch_glyph): Set glyph's ascent and descent.
6512 (on_hot_spot_p): New function to check if position is inside an
6513 rectangular, circular, or polygon-shaped image hot-spot,
6514 (find_hot_spot): New function to search for image hot-spot.
6515 (Flookup_image_map): New defun to search for image hot-spot.
6516 (define_frame_cursor1): New aux function to determine frame pointer.
6517 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6518 Handle `pointer' text property and :pointer image property to
6519 control frame pointer shape. Detect image hot-spots for pointer
6520 and help_echo properties. Use define_frame_cursor1.
6521 (note_mouse_highlight): Use Vvoid_text_area_pointer.
6522 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
6523 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
6524
6525 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
6526
6527 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
6528 (Qimage): Remove extern (now in lisp.h).
6529 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6530
6531 * xmenu.c (show_help_event): Remove unused code.
6532
6533 * xterm.c (Qface, Qmouse_face): Remove unused externs.
6534 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
6535 row's ascent and descent, to get a sensible height on tall rows.
6536
6537 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
6538
6539 * minibuf.c (Fcompleting_read): Undo previous change.
6540
6541 2003-12-25 Lars Hansen <larsh@math.ku.dk>
6542
6543 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
6544 Arguments GCPRO'ed in call to file name handler.
6545
6546 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
6547
6548 * termcap.c (tgetst1): Scan for "%pN"; if all
6549 N are continuous in [1,9], remove all "%pN".
6550
6551 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6552
6553 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
6554
6555 * xfaces.c (lface_fully_specified_p): Take into account that
6556 MAC OS always have unspecified stipple.
6557
6558 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6559
6560 * tparam.c (tparam1): Add handling for `%pN', which
6561 means use param N for the next substitution.
6562
6563 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6564
6565 * xfaces.c (Fcolor_gray_p): Fix omission bug:
6566 In case `frame' is nil, consult the selected frame.
6567 (Fcolor_supported_p): Likewise.
6568
6569 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
6570
6571 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
6572 Doc fixes.
6573
6574 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
6575 and an integer. Adapt the introductory comment accordingly.
6576 (Fread_from_minibuffer): Delete code moved into read_minibuf.
6577 Doc fix.
6578 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
6579 read_minibuf.
6580 (Fcompleting_read): Delete code moved into read_minibuf.
6581 (Ftest_completion): Make it handle obarrays and hash tables correctly.
6582
6583 2003-12-03 Kenichi Handa <handa@m17n.org>
6584
6585 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
6586 encoding sequence.
6587
6588 2003-12-01 Kenichi Handa <handa@m17n.org>
6589
6590 * composite.c (syms_of_composite): Don't make the compostion hash
6591 table week.
6592
6593 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
6594
6595 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6596 * textprop.c (Fget_char_property_and_overlay): New function.
6597 (syms_of_textprop): Defsubr it.
6598
6599 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6600
6601 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6602 to compile on terminal configuration.
6603
6604 * fileio.c (Fread_file_name): Check use_file_dialog also before
6605 calling Fx_file_dialog.
6606
6607 * fns.c: use_file_dialog: New variable.
6608 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6609
6610 2003-11-29 Kim F. Storm <storm@cua.dk>
6611
6612 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6613 (syms_of_msdos): Don't intern and staticpro them.
6614
6615 2003-11-27 Kim F. Storm <storm@cua.dk>
6616
6617 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6618 coordinates relative to glyph at posn. If glyph is an image,
6619 return that as object at posn. Callers changed.
6620 (mode_line_string, marginal_area_string): Calculate and return
6621 pixel coordinates relative to glyph. Callers changed.
6622
6623 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6624 (marginal_area_string): Fix prototypes.
6625 (window_box_left_offset, window_box_right_offset): Add prototypes.
6626
6627 * frame.h (get_specified_cursor_type, get_window_cursor_type):
6628 Remove prototypes.
6629
6630 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6631
6632 * keyboard.c (make_lispy_position): Add x and y coordinates
6633 relative to the current glyph as 7th element of position.
6634 If glyph is an image, return it in the object element.
6635 (read_key_sequence): Skip checks for keymap property in cases
6636 where POSN_STRING is not a string (e.g. an image).
6637
6638 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6639 (Vshow_text_cursor_in_void): New variable.
6640 (glyph_to_pixel_coords): Don't use negative hpos.
6641 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6642 (append_stretch_glyph): Change ascent arg to be actual value
6643 in pixels rather than ratio to height. Callers changed.
6644 (calc_pixel_width_or_height): New aux function, implementing
6645 pixel based artihmetic for glyph widths and heights.
6646 (produce_stretch_glyph): Use calc_pixel_width_or_height for
6647 :width, :height, :align-to, and :ascent, thus allowing these to
6648 be specified in pixels as well as multiples of characters.
6649 Don't produce stretch glyphs with zero width or height.
6650 (get_specified_cursor_type): Declare static.
6651 (get_window_cursor_type): Declare static. Add glyph arg to be
6652 able to know when cursor is on an image; always substitute
6653 hollow-box cursor for filled-box cursor on images, to avoid
6654 negative images and flicker when blinking the cursor.
6655 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
6656 (note_mode_line_or_margin_highlight): Use non-text cursor rather
6657 than vertical scroll-bar cursor in display margins.
6658 (note_mouse_highlight): Use non-text cursor rather than text
6659 cursor in fringes and over images in the text area.
6660 Use non-text cursor when mouse pointer is outside editable text,
6661 i.e. in the void after end-of-line or end-of-buffer; this was
6662 already done for W32, but is now standard for all systems --
6663 user can toggle show-text-cursor-in-void to get old behaviour.
6664 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
6665 Vdisplay_pixels_per_inch.
6666
6667 2003-11-25 Andreas Schwab <schwab@suse.de>
6668
6669 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
6670 EMACS_INT to not lose bits.
6671 (Ffillarray): Don't set bits beyond the size of a bool vector.
6672
6673 2003-11-25 Kim F. Storm <storm@cua.dk>
6674
6675 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
6676 define this defun on systems that cannot use stderr as lvalue.
6677
6678 2003-11-24 Gerd Moellmann <gerd@gnu.org>
6679
6680 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
6681 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
6682 ld's default is incompatible with unexec.
6683
6684 2003-11-23 Kim F. Storm <storm@cua.dk>
6685
6686 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
6687 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
6688 (Fforce_window_update): New defun.
6689 (syms_of_window): Defsubr it.
6690 (Fset_window_margins, Fset_window_fringes): Doc fix.
6691
6692 * print.c (Fredirect_debugging_output): New defun.
6693 (syms_of_print): Defsubr it.
6694
6695 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
6696
6697 * fns.c (Fset_char_table_parent): Doc fix.
6698
6699 2003-11-22 Kim F. Storm <storm@cua.dk>
6700
6701 * dispnew.c (buffer_posn_from_coords): Return actual row/column
6702 for glyph clicked on, rather than (unused) pixel positions.
6703 (mode_line_string, marginal_area_string): Change X and Y args to
6704 pointers for returning actual row/column for glyph clicked on.
6705 Simplify and optimize loops.
6706
6707 * dispextern.h (mode_line_string, marginal_area_string):
6708 Update prototypes.
6709
6710 * keyboard.c (make_lispy_position): New function for generating
6711 mouse click positions from frame and pixel coordinates.
6712 Enhanced to return buffer position and actual row/column for
6713 events outside the text area using updated mode_line_string and
6714 marginal_area_string functions.
6715 Return left-fringe and right-fringe clicks as such, rather than
6716 clicks in text area.
6717 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
6718 pixel_to_glyph_coords, as we never use the results.
6719 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
6720 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
6721 Eliminate unused code in WHEEL_EVENT handling.
6722 (make_lispy_movement): Use make_lispy_position.
6723
6724 * window.c (coordinates_in_window): Remove redundant tests.
6725 Fix returned X pixel value for left-margin.
6726
6727 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
6728 mode_line_string and marginal_area_string parameters.
6729
6730 2003-11-22 Lars Hansen <larsh@math.ku.dk>
6731
6732 * w32.c (struct the_group, getgrgid): Add.
6733 * mac.c (struct my_group, getgrgid): Add.
6734
6735 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6736
6737 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
6738
6739 2003-11-21 Lars Hansen <larsh@math.ku.dk>
6740
6741 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
6742 include in call to file name handler. Optionally translate numeric
6743 UID and GID to strings. Update docstring.
6744 (directory_files_internal): Add parameter ID-FORMAT.
6745 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
6746 include in call to file name handler and call to
6747 directory_files_internal. Update Docstring.
6748 (Fdirectory_files): Add dummy parameter in call to
6749 directory_files_internal.
6750 * lisp.h (Qinteger): Add.
6751 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
6752 (Ffile_attributes): Add parameter.
6753 * data.c (Qinteger): Export.
6754
6755 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
6756
6757 * fns.c (Freverse, Fnreverse): Doc fixes.
6758
6759 2003-11-19 Kim F. Storm <storm@cua.dk>
6760
6761 * xdisp.c (init_iterator): Initialize it->start to position
6762 before reseating (in case start position is invisible).
6763 (init_to_row_start): Set it->start to row-start.
6764 (redisplay_window): Accept optional_new_start if start position
6765 is invisible (in which case IT_CHARPOS overshoots PT).
6766 (display_line): Setup row->start from it->start (rather than
6767 it->current which is wrong if first char on line is invisible).
6768 When done, reseat it->start to it->current (= start of next row).
6769 (expose_area): Fix exposure of text area when first char (e.g. TAB)
6770 is only partially visible.
6771
6772 * dispextern.h (struct it): New member start.
6773
6774 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6775
6776 * alloc.c (make_float, Fcons): Clear the markbit at init time.
6777 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6778 of block_index outside of the macro call.
6779 (Fgarbage_collect): Remove null code.
6780
6781 * m/amdx86-64.h: Don't redefine XPNTR.
6782
6783 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6784 of VALMASK.
6785
6786 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6787 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6788 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6789
6790 * lisp.h (VALMASK): Only define for non-union type.
6791 (MARKBIT): Remove.
6792 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6793 (XTYPE): Define unconditionally.
6794 (XSETTYPE): Remove one more remnant.
6795 (EQ): Define differently for the union and non-union cases.
6796 (INTMASK): New bit mask.
6797 (struct Lisp_Marker): Move down to prepare for upcoming patch.
6798 (GC_EQ): Delegate to EQ.
6799
6800 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6801
6802 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6803
6804 * xterm.c (x_window_to_scroll_bar): Move check of display to
6805 where window_id is compared.
6806
6807 2003-11-17 Kim F. Storm <storm@cua.dk>
6808
6809 * dispextern.h (struct it): New member first_vpos.
6810
6811 * xdisp.c (start_display): Set it->first_vpos.
6812 (try_window_id): Use first_vpos to start display in first _text_
6813 line if no reusable lines at start of window with header line.
6814
6815 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6816
6817 * w32fns.c (XPutPixel):
6818 * w32bdf.c (w32_init_bdf_font):
6819 * sunfns.c (sel_read):
6820 * process.c (Fmake_network_process):
6821 * frame.c (store_frame_param):
6822 * fontset.c (Fset_fontset_font):
6823 * emacs.c (shut_down_emacs):
6824 * ccl.c (ccl_driver): Remove period at end of error message.
6825
6826 * config.in: Regenerate.
6827
6828 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6829 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6830 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6831 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6832 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6833
6834 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6835
6836 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6837 (XTmouse_position, handle_one_xevent): Pass Display* to
6838 x_window_to_scroll_bar.
6839 (x_window_to_scroll_bar): Take a Display* argument.
6840 Check that display for frame is equal to Display* argument.
6841 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
6842 x_display_info_for_display instead. Use Display in xev instead
6843 of GDK_DISPLAY.
6844 (x_dispatch_event): Call x_display_info_for_display.
6845 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
6846 (x_connection_closed): Call xg_display_close for GTK.
6847 (x_term_init): Call xg_display_open for additional displays.
6848 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6849 for GTK.
6850
6851 * xmenu.c (single_menu_item, mouse_position_for_popup)
6852 (x_activate_menubar): Formatting adjustments.
6853
6854 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6855 adjustments.
6856
6857 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6858 (xg_display_close, xg_create_default_cursor)
6859 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6860 handling.
6861 (xg_left_ptr_cursor): Remove.
6862 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
6863 cursor here.
6864 (xg_win_to_widget): Take Display* argument, call
6865 gdk_xid_table_lookup_for_display.
6866 (xg_create_frame_widgets, xg_get_file_name, create_menus)
6867 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6868 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6869 in FRAME_X_DISPLAY_INFO.
6870 (xg_get_scroll_id_for_window): Take Display* argument.
6871 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
6872 (xg_initialize): Remove xg_left_ptr_cursor.
6873
6874 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6875 Display* argument.
6876 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
6877
6878 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6879
6880 * xterm.c (x_detect_focus_change): Do not change focus frame for
6881 Enter/LeaveNotify if the current focus frame has explicit focus.
6882
6883 2003-11-14 Kim F. Storm <storm@cua.dk>
6884
6885 * dispnew.c (update_text_area): Fix redisplay error when hscroll
6886 is active and first glyph is only partially visible.
6887
6888 2003-11-13 Kenichi Handa <handa@m17n.org>
6889
6890 * xdisp.c (select_frame_for_redisplay): New function.
6891 (redisplay_internal): Record also selected_frame for
6892 unwind_redisplay. Call select_frame_for_redisplay before
6893 redrawing each frame.
6894 (unwind_redisplay): Argument changed to a cons.
6895
6896 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
6897
6898 * fns.c (Fstring_to_multibyte): Doc fix.
6899
6900 2003-11-11 Kenichi Handa <handa@m17n.org>
6901
6902 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6903
6904 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6905
6906 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6907 program specified positions.
6908
6909 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6910
6911 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6912
6913 2003-11-08 Kenichi Handa <handa@m17n.org>
6914
6915 * Makefile.in (lisp): Add kannada.el.
6916 (shortlisp): Likewise.
6917
6918 2003-11-07 Kenichi Handa <handa@m17n.org>
6919
6920 * coding.c (coding_allocate_composition_data):
6921 Reset coding->composing to COMPOSITION_NO.
6922 (coding_restore_composition): Detect invalid composition data.
6923 Give Fstring and Fvector a Lispy integer, not C int.
6924
6925 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
6926
6927 * floatfns.c (Flogb): Don't use VALMASK.
6928
6929 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6930 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6931
6932 * lisp.h (XINT): Move the cast to clarify what is going on.
6933 (GCTYPEMASK, XSETTYPE): Remove.
6934 (XGCTYPE): Make it an alias of XTYPE.
6935
6936 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6937
6938 * xterm.c (x_term_init): Fix formatting.
6939
6940 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6941
6942 * gtkutil.h (xg_have_tear_offs): Declare.
6943 (xg_keep_popup, xg_did_tearoff): Remove.
6944
6945 * gtkutil.c: Remove variable xg_did_tearoff.
6946 (xg_have_tear_offs): New function.
6947 (tearoff_remove): Just decrease xg_detached_menus.
6948 (tearoff_activate): Increase xg_detached_menus and call
6949 tearoff_remove when tearoff is removed.
6950 (xg_keep_popup): Remove function.
6951 (create_menus): Give add_tearoff_p as argument to recursive
6952 call to create_menus.
6953 (xg_create_widget): Use variables instead of multiple
6954 strcmp. Tell create_menus to create tear off only for
6955 menu bar menus.
6956 (xg_update_menubar): Change title for a detached menu also.
6957 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6958 of deep_p.
6959 (xg_initialize): Initialize xg_detached_menus, remove
6960 initialization of xg_did_tearoff.
6961
6962 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6963 xg_have_tear_offs returns non-zero.
6964 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6965 call to xg_keep_popup.
6966
6967 2003-11-01 Andrew Choi <akochoi@shaw.ca>
6968
6969 * macterm.c (XTread_socket): Handle menubar selection and grow
6970 window only for mouseDown events.
6971
6972 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6973
6974 * xterm.c (x_term_init): For GTK part, increase x_initialized
6975 to check for more than one display. Use error instead of return 0.
6976
6977 2003-10-31 Andrew Choi <akochoi@shaw.ca>
6978
6979 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
6980 (copy_dysymtab): Call it.
6981
6982 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
6983
6984 * eval.c (Fdefvaralias): Doc fix.
6985
6986 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
6987
6988 * data.c (Fsetplist): Doc fix.
6989
6990 2003-10-14 Lute Kamstra <lute@gnu.org>
6991
6992 * window.c (Fset_window_fringes): Clarify docstring.
6993
6994 2003-10-14 Kim F. Storm <storm@cua.dk>
6995
6996 * window.c (Fset_window_margins): Simplify arg checking.
6997
6998 2003-10-13 Richard M. Stallman <rms@gnu.org>
6999
7000 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
7001 (print_partial_compiled_pattern): Replace assert with a printout.
7002 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
7003
7004 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
7005
7006 * window.c (Fset_window_margins): Allow only integers as args.
7007 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
7008 Doc fixes.
7009
7010 2003-10-13 Lute Kamstra <lute@gnu.org>
7011
7012 * window.c (Fset_window_fringes): Elaborate docstring.
7013
7014 2003-10-12 Andrew Choi <akochoi@shaw.ca>
7015
7016 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
7017
7018 * s/darwin.h (GC_MARK_STACK): Define.
7019
7020 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7021
7022 * window.c (shrink_windows): New function.
7023 (size_window): Call shrink_windows to calculate window sizes when
7024 shrinking frame with more than one window.
7025
7026 2003-10-12 Kim F. Storm <storm@cua.dk>
7027
7028 * xdisp.c (compute_fringe_widths): Doc fix.
7029
7030 2003-10-08 Kenichi Handa <handa@m17n.org>
7031
7032 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
7033
7034 2003-10-07 Kenichi Handa <handa@m17n.org>
7035
7036 * coding.c (Qcoding_system_define_form): New variable.
7037 (syms_of_coding): Intern and staticpro it.
7038 (Fcheck_coding_system): Try to autoload the definition of
7039 CODING-SYSTEM.
7040
7041 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
7042
7043 * fns.c (Frequire): Doc fix.
7044
7045 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7046
7047 * xfns.c (Fx_send_client_event): New function as a base for
7048 manipulating extended window manager hints.
7049 (Fx_send_client_event): Remove unused variable s.
7050
7051 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
7052 that function is removed.
7053
7054 * xterm.c (x_set_offset): Use move_offset_left/top instead of
7055 x/y_pixels_outer_diff.
7056 (x_check_expected_move): Calculate move_offset_left/top.
7057
7058 * xterm.h (struct x_output): New members: move_offset_top/left.
7059
7060 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
7061 call x_set_offset directly.
7062
7063 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
7064
7065 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
7066
7067 * xterm.c (x_delete_display): Free font names and font_encoder
7068 in dpyinfo->font_table.
7069
7070 * xfns.c (Fx_close_connection): Only call XFreeFont here.
7071 Move xfree of font names to x_delete_display.
7072
7073 * xterm.h (struct x_display_info): New member, wm_type.
7074 (struct x_output): New members, expected_top/left and
7075 check_expected_move.
7076
7077 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
7078 is received.
7079 (handle_one_xevent): Rename x_check_expected_move from
7080 x_check_fullscreen_move.
7081 (x_set_offset): Only add WM decoration sizes to modified_top/left
7082 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
7083 (x_check_expected_move): Rename from x_check_fullscreen_move.
7084 Removed fullscreen specific code. Use check_expected_move,
7085 expected_left/top instead. Also, set wm_type.
7086 (x_term_init): Initialize wm_type to unknown.
7087
7088 * frame.c (x_fullscreen_move): Remove addition of WM decoration
7089 sizes to move_x/y.
7090
7091 2003-10-03 Kenichi Handa <handa@m17n.org>
7092
7093 * macterm.c (x_load_font): Clear all members of FONTP before start
7094 filling them.
7095
7096 2003-10-02 Kenichi Handa <handa@m17n.org>
7097
7098 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
7099 before calling find_ccl_program_func. Call find_ccl_program_func
7100 only when fontp->font_encoder is not NULL.
7101
7102 * xterm.c (x_load_font): Clear all members of FONTP before start
7103 filling them.
7104
7105 2003-10-03 John Paul Wallington <jpw@gnu.org>
7106
7107 * keymap.c (map_keymap): Don't abort when binding is a vector.
7108
7109 2003-10-02 Jason Rumney <jasonr@gnu.org>
7110
7111 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
7112 Sync dependencies with Makefile.in.
7113 (alloca.o): Remove.
7114
7115 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
7116 filling them.
7117
7118 * w32bdf.c (w32_load_bdf_font): Likewise.
7119
7120 2003-09-30 Richard M. Stallman <rms@gnu.org>
7121
7122 * term.c (set_tty_color_mode): Calculate current_mode_spec
7123 regardless of value of VAL.
7124
7125 * intervals.c (graft_intervals_into_buffer):
7126 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
7127 Handle over_used when splitting UNDER.
7128
7129 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7130
7131 * regex.c (regex_compile): Free the stack when returning from function.
7132
7133 2003-09-28 Kenichi Handa <handa@m17n.org>
7134
7135 * fontset.c (Finternal_char_font): Change return value to
7136 cons (FONT-NAME . GLYPH-CODE).
7137
7138 2003-09-28 Eli Zaretskii <eliz@gnu.org>
7139
7140 * term.c (tty_setup_colors): Treat any negative argument as -1.
7141
7142 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
7143
7144 * process.c (send_process): Delete unused temp_buf.
7145
7146 2003-09-26 Dave Love <fx@gnu.org>
7147
7148 * xterm.c (x_bitmap_mask): Declare.
7149
7150 2003-09-25 Dave Love <fx@gnu.org>
7151
7152 * Makefile.in (fns.o): Depend on md5.h.
7153
7154 2003-09-25 Kim F. Storm <storm@cua.dk>
7155
7156 * window.c (set_window_buffer): Fix redisplay problems when
7157 switching between buffers with different display margin widths.
7158
7159 2003-09-23 Kim F. Storm <storm@cua.dk>
7160
7161 * process.c (set_socket_option): Fix :bindtodevice option.
7162 (Fset_network_process_option): Update process contact list when
7163 setting option succeeds.
7164 (Fmake_network_process): Doc fix.
7165
7166 2003-09-23 Dave Love <fx@gnu.org>
7167
7168 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
7169
7170 2003-09-22 Eli Zaretskii <eliz@gnu.org>
7171
7172 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
7173 color mode is an integer number (it could be -1).
7174
7175 2003-09-22 Richard M. Stallman <rms@gnu.org>
7176
7177 * intervals.c (graft_intervals_into_buffer): Correct the main loop
7178 in the case where OVER is longer than UNDER.
7179
7180 2003-09-22 Masatake YAMATO <jet@gyve.org>
7181
7182 * window.c (Fset_window_scroll_bars): Validate the value of
7183 `vertical_type'.
7184
7185 2003-09-21 Kim F. Storm <storm@cua.dk>
7186
7187 * frame.c (Vdefault_frame_scroll_bars): New variable.
7188 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
7189 (syms_of_frame): DEFVAR_LISP it, and initialize according to
7190 window-system default scroll bar position.
7191
7192 * window.c (Fwindow_scroll_bars): Doc fix.
7193
7194 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7195
7196 * xterm.c (x_set_offset): Take window manager decorations into account.
7197
7198 2003-09-19 Richard M. Stallman <rms@gnu.org>
7199
7200 * atimer.h: Don't include lisp.h.
7201 (P_): Define it here (as well as elsewhere).
7202
7203 * print.c (Fprin1_to_string): Move the PRINTPREPARE
7204 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
7205
7206 * data.c (Fvariable_binding_locus): New function.
7207 (syms_of_data): defsubr it.
7208 (Flocal_variable_p): Delete duplicate call to indirect_variable.
7209
7210 2003-09-18 Dave Love <fx@gnu.org>
7211
7212 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
7213
7214 * process.c (Fnetwork_interface_info): Fix type error.
7215 (Fnetwork_interface_list): Doc fix.
7216 (read_process_output, read_process_output): Delete unused var.
7217
7218 2003-09-17 Kim F. Storm <storm@cua.dk>
7219
7220 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
7221 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
7222 (Fnetwork_interface_info): Check that ifreq struct has required
7223 fields before accessing them; this requires that those fields are
7224 defined as macros, which may be too restrictive on some platforms,
7225 but it is better than failing on other platforms.
7226 (syms_of_process): Only defsubr above fns when included.
7227
7228 2003-09-17 Dave Love <fx@gnu.org>
7229
7230 * unexalpha.c: Don't include varargs.h.
7231
7232 2003-09-17 Kim F. Storm <storm@cua.dk>
7233
7234 * process.c (Fset_process_sentinel): Add sentinel to childp plist
7235 for network process.
7236 (socket_options): Add `:' prefix to option names. Add optbit field.
7237 (set_socket_option): Remove no_error arg and special handling of s < 0.
7238 Return 1<<optbit for known option, 0 for unknown.
7239 Do not interpret 0 as false for boolean option (only nil).
7240 Pass failed option and value to report_file_error.
7241 (Fset_network_process_options): Replace by Fset_network_process_option.
7242 (Fset_network_process_option): New function to set just one option.
7243 (Fmake_network_process): Allow :coding arg to be a cons.
7244 Allow :server arg to be an integer specifying backlog size.
7245 Remove :options arg, and allow options to be specified directly
7246 as :KEY, VALUE pairs. Parse these options before binding socket.
7247 As before, :reuseaddr t is default for a server process, but this
7248 can now be disabled by specifying :reuseaddr nil.
7249 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
7250 (init_process): Availability of network options is now checked with
7251 simpler syntax (featurep 'make-network-process :OPTION); use loop to
7252 setup features.
7253 (syms_of_process): Fix defsubr's for the replaced functions.
7254
7255 2003-09-16 Dave Love <fx@gnu.org>
7256
7257 * Makefile.in: Depend on coding.h.
7258
7259 2003-09-14 Kim F. Storm <storm@cua.dk>
7260
7261 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
7262 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
7263 (syms_of_process): Defsubr them.
7264
7265 * config.in: Regenerate.
7266
7267 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7268
7269 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
7270 * m/news-r6.h (XUNMARK): Remove.
7271 * m/mips.h (XUNMARK): Remove.
7272 * m/mips-siemens.h (XUNMARK): Remove.
7273 * m/iris4d.h (XUNMARK): Remove.
7274 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
7275
7276 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7277
7278 * lisp.h (VALBITS): Don't remove 1 for the markbit.
7279 (union Lisp_Object): Use unsigned int for types. Remove markbit.
7280 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
7281 (XTYPE): Use unsigned right-shift.
7282 (XMARKBIT, XMARK, XUNMARK): Remove.
7283
7284 * alloc.c (init_intervals, init_symbol, init_marker):
7285 Don't preallocate anything.
7286 (Fgarbage_collect, mark_object): Ignore the markbit.
7287
7288 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
7289
7290 2003-09-08 Lute Kamstra <lute@gnu.org>
7291
7292 * xdisp.c (pint2hrstr): New function.
7293 (decode_mode_spec): Add `%i' and `%I' specs.
7294 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
7295 for `mode-line-format'.
7296
7297 2003-09-07 Andreas Schwab <schwab@suse.de>
7298
7299 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
7300 avoid warning.
7301
7302 2003-09-07 Eli Zaretskii <eliz@gnu.org>
7303
7304 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
7305
7306 2003-09-03 Kim F. Storm <storm@cua.dk>
7307
7308 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
7309 change (superseded by 2002-08-30 change); the default blink-off
7310 cursor is now again "no cursor".
7311
7312 2003-09-01 Jason Rumney <jasonr@gnu.org>
7313
7314 * makefile.w32-in (alloca.o): Remove.
7315 (coding.o): Depend on intervals.h
7316 (emacs.o, bytecode.o): Depend on window.h
7317
7318 2003-09-01 Dave Love <fx@gnu.org>
7319
7320 * Makefile.in (alloca.o): Remove commands.
7321 (coding.o): Depend on intervals.h composite.h window.h.
7322 (emacs.o): Depend on window.h keyboard.h keymap.h.
7323 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
7324 (bytecode.o): Depend on window.h.
7325
7326 2003-08-31 Jason Rumney <jasonr@gnu.org>
7327
7328 * w32term.c (w32_per_char_metric): Allow cached metrics to be
7329 returned even when font_type is unknown.
7330
7331 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
7332
7333 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7334
7335 * xterm.c (x_term_init): Initialize new fields in x_display_info.
7336
7337 * xterm.h (struct x_display_info): Add red/green/blue_bits and
7338 *_offset.
7339
7340 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
7341 calculate pixel value.
7342
7343 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
7344
7345 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
7346 Don't tell redisplay display is accurate when it's actually been
7347 paused for pending input.
7348
7349 2003-08-29 Richard M. Stallman <rms@gnu.org>
7350
7351 * dispnew.c (adjust_glyph_matrix): Call window_box
7352 whenever W is nonzero.
7353
7354 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7355 (Fkill_local_variable, Fmake_variable_frame_local)
7356 (Flocal_variable_p, Flocal_variable_if_set_p):
7357 Use indirect_variable to trace thru variable aliases.
7358
7359 * config.in: Updated.
7360
7361 * callint.c (Fcall_interactively): Save and restore
7362 Vthis_command, Vthis_original_command, real_this_command,
7363 and current_kboard->Vlast_command.
7364
7365 * abbrev.c (Fexpand_abbrev): Insert before deleting.
7366
7367 2003-08-29 Gerd Moellmann <gerd@gnu.org>
7368
7369 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
7370
7371 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
7372
7373 * coding.c (decode_coding_iso2022): Initialize local variable c2.
7374 (decode_coding_sjis_big5): Likewise.
7375
7376 2003-08-27 Jason Rumney <jasonr@gnu.org>
7377
7378 * w32.c (sys_pipe): Protect against file descriptor overflow.
7379
7380 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
7381
7382 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
7383
7384 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
7385
7386 * xfns.c (Vgtk_version_string): New variable.
7387 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
7388
7389 2003-08-24 Eli Zaretskii <eliz@gnu.org>
7390
7391 * term.c (term_init): Remove `const' from buffer_size's declaration.
7392
7393 * Makefile.in (msdos.o): Depend on intervals.h.
7394
7395 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
7396
7397 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7398
7399 * xterm.h (struct x_display_info): New fields: client_leader_window
7400 and Xatom_wm_client_leader.
7401
7402 * xterm.c (x_initialize): Move call to x_session_initialize to ...
7403 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
7404
7405 * xsmfns.c (create_client_leader_window): New function.
7406 (x_session_initialize): Call create_client_leader_window, take
7407 dpyinfo as argument.
7408
7409 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
7410
7411 * Makefile.in (xsmfns.o): Add more depenedencies.
7412
7413 2003-08-21 Dave Love <fx@gnu.org>
7414
7415 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
7416
7417 2003-08-21 Kenichi Handa <handa@m17n.org>
7418
7419 * term.c (term_init): Fix previous change; don't rely on the
7420 length of `buffer' if TERMINFO is defined.
7421
7422 2003-08-20 Dave Love <fx@gnu.org>
7423
7424 * atimer.h: Include lisp.h.
7425
7426 * lisp.h (EMACS_LISP_H): New.
7427 (popup_activated_flag): Don't declare.
7428
7429 * alloca.c: Some merging with gnulib. Change logic and doc
7430 concerning (x)malloc/(x)free -- no longer Emacs-specific.
7431 [DO_BLOCK_INPUT]: Don't include lisp.h.
7432 (xmalloc, xfree): Declare.
7433 (malloc): Don't declare.
7434
7435 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
7436 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
7437 atimer.h, blockinput.h.
7438
7439 * alloc.c (lisp_align_malloc): Change type of `aligned'.
7440
7441 * alloca.s: Remove.
7442
7443 2003-08-19 Gerd Moellmann <gerd@gnu.org>
7444
7445 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
7446 use -lncurses.
7447
7448 * term.c (term_init): Use a buffer of size 4096 for tgetent since
7449 FreeBSD returns something longer than 2044. Abort if the end of
7450 the buffer is overwritten.
7451
7452 2003-08-19 Miles Bader <miles@gnu.org>
7453
7454 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
7455
7456 2003-08-19 Gerd Moellmann <gerd@gnu.org>
7457
7458 * alloc.c (lisp_align_malloc): Check for memory full when
7459 allocating ablocks, which also avoids freeing a pointer into an
7460 ablocks structure.
7461
7462 * puresize.h (BASE_PURESIZE): Increase to 1100000.
7463
7464 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
7465
7466 2003-08-16 Richard M. Stallman <rms@gnu.org>
7467
7468 * editfns.c (Fencode_time): Doc fix.
7469
7470 2003-08-16 David Ponce <david@dponce.com>
7471
7472 * fileio.c (Fwrite_region): Fix conditional expression to issue
7473 the right message.
7474
7475 2003-08-16 Juri Linkov <juri@jurta.org>
7476
7477 * syntax.c (Fforward_word): Argument changed to optional.
7478 Set default value to 1.
7479
7480 2003-08-15 Kenichi Handa <handa@m17n.org>
7481
7482 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
7483 what autoscaled.
7484 (best_matching_font): Once we find a better scalable font, set
7485 non_scalable_has_exact_height_p to 1.
7486 (try_font_list): Call try_alternative_families to try any family
7487 with the given registry.
7488
7489 2003-08-09 Andreas Schwab <schwab@suse.de>
7490
7491 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
7492
7493 * print.c (print_string): Fix printing of multibyte string with
7494 nontrivial printcharfun.
7495
7496 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7497
7498 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
7499
7500 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
7501
7502 2003-07-31 Kenichi Handa <handa@m17n.org>
7503
7504 * process.c (read_process_output): Return the actually read bytes
7505 instead of the result of decoding.
7506
7507 2003-07-31 Kenichi Handa <handa@m17n.org>
7508
7509 * xterm.h (struct x_bitmap_record): New member have_mask.
7510
7511 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
7512 to 0.
7513 (x_create_bitmap_from_file): Likewise.
7514 (x_destroy_bitmap): Check have_mask member before freeing a mask.
7515 (x_destroy_all_bitmaps): Likewise.
7516 (x_create_bitmap_mask): Set have_mask member to 1.
7517
7518 2003-07-30 Richard M. Stallman <rms@gnu.org>
7519
7520 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
7521
7522 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7523
7524 * gtkutil.c (xg_mark_data): Update calls to mark_object.
7525
7526 2003-07-29 Richard M. Stallman <rms@gnu.org>
7527
7528 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
7529 Conditionalize XIM code on HAVE_XIM.
7530
7531 * fns.c (Fclear_string): New function.
7532 (syms_of_fns): defsubr it.
7533
7534 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7535
7536 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
7537
7538 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
7539
7540 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
7541
7542 * buffer.c (delete_all_overlays): New function.
7543 * buffer.h (delete_all_overlays): Declare.
7544 * coding.c (run_pre_post_conversion_on_str):
7545 * print.c (temp_output_buffer_setup):
7546 * fileio.c (Finsert_file_contents):
7547 * minibuf.c (get_minibuffer): Use it.
7548
7549 2003-07-22 Andrew Choi <akochoi@shaw.ca>
7550
7551 * unexmacosx.c (unexec_regions_sort_compare):
7552 (unexec_regions_merge): New functions. Sort and merge unexec
7553 regions before dumping them.
7554
7555 2003-07-22 Dave Love <fx@gnu.org>
7556
7557 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
7558
7559 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
7560
7561 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
7562 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
7563 MARKBIT as the gcmarkbit for strings.
7564
7565 2003-07-21 Richard M. Stallman <rms@gnu.org>
7566
7567 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
7568
7569 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
7570 (syms_of_fns): Corresponding change.
7571
7572 * alloc.c (syms_of_alloc): Doc fixes.
7573
7574 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
7575
7576 * s/netbsd.h: Use -Wl syntax.
7577
7578 2003-07-17 Richard M. Stallman <rms@gnu.org>
7579
7580 * xterm.c (xim_initialize): Redo 6/24 change.
7581
7582 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
7583
7584 * buffer.c (copy_overlays): Use EMACS_INT for positions.
7585 (Fswitch_to_buffer): Don't signal an error when switching to the same
7586 buffer in a dedicated window.
7587
7588 * alloc.c: Use bitmaps for cons, as was done for floats.
7589 (init_float, init_cons): Let the normal code allocate the first block.
7590 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7591 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7592 New macros.
7593 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
7594 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7595 (live_cons_p): Check the pointer is not past the `conses' array.
7596 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7597 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7598 (survives_gc_p): Use CONS_MARKED_P and simplify.
7599 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7600
7601 2003-07-13 Paul Eggert <eggert@twinsun.com>
7602
7603 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7604 puts it into BSS instead, at least on Solaris 8 and 9.
7605 This is a valid optimization, and it may occur on other platforms,
7606 so Emacs should not assume that initializing a static variable to
7607 zero puts it into data.
7608 * alloc.c (pure, staticvec):
7609 Initialize these arrays to nonzero, so that they're not
7610 put into BSS by that optimization.
7611
7612 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7613
7614 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7615 (lisp_align_malloc): Use posix_memalign is available.
7616 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7617 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7618 for consistency. Update users.
7619
7620 2003-07-13 Richard M. Stallman <rms@gnu.org>
7621
7622 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7623
7624 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
7625
7626 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7627 and use the Gtk+ function gtk_window_icon_from_file if available.
7628
7629 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7630 handle mask of bitmaps.
7631 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7632 mask property.
7633 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7634
7635 * xterm.h (xg_set_icon): New function.
7636
7637 2003-07-12 Paul Eggert <eggert@twinsun.com>
7638
7639 * unexelf.c (unexec): Consider a section to precede the .bss
7640 section if its addresses overlap that of .bss.
7641
7642 2003-07-12 Richard M. Stallman <rms@gnu.org>
7643
7644 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7645
7646 * config.in (HAVE_CRTIN): Add #undef.
7647 (INLINE): Really inline only if OPTIMIZE is defined.
7648
7649 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7650 END_FILES_1.
7651 (START_FILES_1, END_FILES_1): New macros (conditional).
7652 (LD_SWITCH_SYSTEM_TEMACS): Define.
7653
7654 * s/openbsd.h: Don't include bsd4-3.h.
7655 (TERMINFO): Define.
7656 (LIBS_TERMCAP): Define.
7657 (LD_SWITCH_SYSTEM): Define (two definitions).
7658
7659 * xfns.c: Include libpng/png.h instead of png.h.
7660
7661 2003-07-11 Andreas Schwab <schwab@suse.de>
7662
7663 * buffer.c (modify_overlay): Update prototype.
7664 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
7665 Likewise.
7666
7667 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7668
7669 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
7670 (struct interval): Move to intervals.h.
7671 (struct Lisp_Marker): Use EMACS_INT for position info.
7672 (forward_point): Remove prototype of defunct function.
7673 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
7674 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
7675 (syms_of_textprop, set_text_properties): Remove prototypes that are
7676 already in intervals.h.
7677
7678 * intervals.h (struct interval): Move from lisp.h.
7679 Use EMACS_INT for position and size info.
7680
7681 * coding.c: Include intervals.h for Fset_text_properties.
7682
7683 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7684 position and length information.
7685
7686 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7687
7688 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7689 position and length information.
7690
7691 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7692
7693 Change overlays_after and overlays_before so the overlays themselves
7694 are linked into lists, rather than using cons cells. After all each
7695 Lisp_Misc already occupies 5 words, so we can add a `next' field to
7696 Lisp_Overlay for free and save up one cons cell per overlay (not
7697 to mention one indirection when traversing the list of overlay).
7698
7699 * lisp.h (struct Lisp_Overlay): New field `next'.
7700
7701 * buffer.h (struct buffer): Change overlays_before and overlays_after
7702 from Lisp lists of overlays to pointers to overlays.
7703
7704 * buffer.c (overlay_strings, recenter_overlay_lists):
7705 Fix typo in eassert in last commit.
7706 (unchain_overlay): New function.
7707 (add_overlay_mod_hooklist): Use AREF.
7708 (copy_overlays, reset_buffer, overlays_at, overlays_in)
7709 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
7710 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
7711 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
7712 (report_overlay_modification, evaporate_overlays, init_buffer_once):
7713 Adjust to new type of overlays_(before|after).
7714
7715 * alloc.c (mark_object): Mark the new `next' field of overlays.
7716 (mark_buffer): Manually mark the overlays_(after|before) fields.
7717
7718 * coding.c (run_pre_post_conversion_on_str):
7719 * editfns.c (overlays_around):
7720 * xdisp.c (load_overlay_strings):
7721 * fileio.c (Finsert_file_contents):
7722 * indent.c (current_column):
7723 * insdel.c (signal_before_change, signal_after_change):
7724 * intervals.c (set_point_both):
7725 * print.c (temp_output_buffer_setup): Use new type for
7726 overlays_(before|after).
7727
7728 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
7729
7730 * buffer.c (report_overlay_modification): Don't run hooks while
7731 traversing the list of overlays.
7732
7733 * buffer.h (struct buffer): Use an int for overlay_center.
7734 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7735 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7736
7737 * buffer.c (reset_buffer, recenter_overlay_lists)
7738 (adjust_overlays_for_insert, adjust_overlays_for_delete)
7739 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
7740 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
7741 (overlays_at, evaporate_overlays, recenter_overlay_lists)
7742 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7743
7744 * xdisp.c (fast_find_position): Remove unused var.
7745
7746 * cmds.c (Qexpand_abbrev): New sym.
7747 (syms_of_cmds): Initialize it.
7748 (internal_self_insert): Use it to call expand-abbrev.
7749
7750 2003-07-09 Kim F. Storm <storm@cua.dk>
7751
7752 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
7753 was configured with --without-xim.
7754 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
7755
7756 2003-07-07 Richard M. Stallman <rms@gnu.org>
7757
7758 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
7759
7760 * alloc.c (Fgarbage_collect): Doc fix.
7761
7762 2003-07-07 Nozomu Ando <nand@mac.com>
7763
7764 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7765
7766 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7767
7768 * minibuf.c (read_minibuf): UNGCPRO before returning.
7769 (Ftry_completion, Fall_completions): Doc fix.
7770
7771 * alloc.c (live_float_p): Check that p is not past the `floats' array,
7772 now that `floats' is not the last element of the struct any more.
7773
7774 2003-07-06 Jason Rumney <jasonr@gnu.org>
7775
7776 * w32term.h (ClipboardSequence_Proc): New type.
7777
7778 * w32fns.c (clipboard_sequence_fn): New variable.
7779 (globals_of_w32fns): Initialize it.
7780
7781 * w32select.c (last_clipboard_sequence_number): New variable.
7782 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7783 number if possible.
7784
7785 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
7786
7787 * m/amdx86-64.h (MARKBIT):
7788 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7789 MARKBIT and ARRAY_MARK_FLAG any more.
7790
7791 * m/hp800.h (XSETMARKBIT):
7792 * m/sr2k.h (XSETMARKBIT):
7793 * lisp.h (XSETMARKBIT): Remove unused macro.
7794
7795 * lisp.h (mark_object): Change prototype.
7796
7797 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7798 (last_marked): Change accordingly.
7799 (mark_interval, mark_maybe_object, mark_maybe_pointer)
7800 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7801 (mark_buffer): Update calls to mark_object.
7802
7803 * bytecode.c (mark_byte_stack):
7804 * fns.c (sweep_weak_table):
7805 * keyboard.c (mark_kboards): Update calls to mark_object.
7806
7807 2003-07-06 Jason Rumney <jasonr@gnu.org>
7808
7809 * alloc.c (struct ablock): Only include padding when there is some.
7810
7811 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
7812
7813 * alloc.c (ALIGN): Add casts to simplify usage.
7814 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7815 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7816 (struct ablock, struct ablocks): New types.
7817 (free_ablock): New global var.
7818 (lisp_align_malloc, lisp_align_free): New functions.
7819 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7820 (struct float_block): Reorder and add gcmarkbits.
7821 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7822 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7823 (init_float, make_float): Use lisp_align_malloc.
7824 (free_float, live_float_p): Don't use `type' any more.
7825 (make_float): Use FLOAT_UNMARK to access to mark bit.
7826 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7827 Use FLOAT_MARKED_P to access the mark bit.
7828 (pure_alloc): Simplify use of ALIGN.
7829 (mark_object): Use FLOAT_MARK to access the mark bit.
7830 (gc_sweep): Use new macros to access the float's mark bit.
7831 (init_alloc_once): Init free_ablock.
7832
7833 * lisp.h (struct Lisp_Float): Remove unused field `type'.
7834
7835 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
7836
7837 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7838 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7839 (allocate_buffer): Move.
7840 (string_bytes): Don't mask markbit of `size_byte'.
7841 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7842 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7843 Use the `size' field of buffers (rather than the `name' field) for
7844 the mark bit, as is done for all other vectorlike objects.
7845 Use the new macros to access the mark bit of vectorlike objects.
7846
7847 2003-06-26 Richard M. Stallman <rms@gnu.org>
7848
7849 * puresize.h (BASE_PURESIZE): Increment base size.
7850
7851 * xdisp.c (fast_find_position): Enable Gerd's new definition.
7852
7853 * xterm.c (xim_initialize): Undo previous change.
7854
7855 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
7856
7857 * alloc.c (survives_gc_p): Simplify.
7858
7859 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7860
7861 * window.c (Fset_window_dedicated_p): Simplify.
7862 (display_buffer_1): Don't raise the win from which minibuf was entered.
7863 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
7864 (Fminibuffer_selected_window): Simplify.
7865
7866 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7867
7868 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7869 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7870
7871 * insdel.c (check_markers, adjust_markers_for_delete)
7872 (adjust_markers_for_insert, adjust_markers_for_replace)
7873 (prepare_to_modify_buffer, RESTORE_VALUE):
7874 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7875 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7876 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7877 * alloc.c (Fmake_marker, free_marker, gc_sweep):
7878 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7879 * editfns.c (save_excursion_restore, transpose_markers):
7880 * window.c (delete_window):
7881 * xdisp.c (message_dolog): Update for new types.
7882
7883 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7884
7885 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7886 (realize_default_face): Use default_face_done_p for the force_p
7887 argument to set_lface_from_font_name. Set default_face_done_p to one.
7888
7889 * frame.c (make_frame): Initialize default_face_done_p.
7890
7891 * frame.h (struct frame): Add default_face_done_p.
7892
7893 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7894 will be defined.
7895
7896 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
7897
7898 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7899 Initialize the new field `gcmarkbit'.
7900 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7901 (mark_interval_tree): Don't mark the tree separately from the nodes.
7902 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7903 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7904 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7905
7906 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7907 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7908 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7909 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7910 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7911
7912 2003-06-24 Dave Love <fx@gnu.org>
7913
7914 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7915
7916 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
7917 from gnulib.
7918
7919 2003-06-21 Richard M. Stallman <rms@gnu.org>
7920
7921 * fileio.c (Fwrite_region): Alternate messages
7922 for append and partial write.
7923
7924 * keyboard.c (read_key_sequence): When converting upcase fn key to
7925 downcase, update fkey and keytran so `backspace' gets translated.
7926
7927 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7928
7929 * process.c (wait_reading_process_input): Don't signal SIGIO
7930 in batch mode.
7931
7932 2003-06-17 Kenichi Handa <handa@m17n.org>
7933
7934 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7935 composite.h.
7936
7937 * xselect.c: Don't include charset.h, coding.h, composite.h.
7938 (Qforeign_selection): New variable.
7939 (syms_of_xselect): Intern and static it.
7940 (selection_data_to_lisp_data): Return a unibyte string made from
7941 data with `foreign-selection' text property.
7942
7943 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
7944
7945 * termhooks.h (EVENT_INIT): New macro.
7946
7947 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
7948
7949 * alloc.c (mark_kboards): Move to keyboard.c.
7950
7951 * keyboard.c (record_asynch_buffer_change, read_avail_input):
7952 * xterm.c (x_dispatch_event):
7953 * xmenu.c (find_and_call_menu_selection):
7954 * xdisp.c (handle_tool_bar_click):
7955 * w32menu.c (menubar_selection_callback):
7956 * sysdep.c (kbd_input_ast, read_input_waiting):
7957 * msdos.c (dos_rawgetc):
7958 * macterm.c (mac_check_for_quit_char):
7959 * macmenu.c (menubar_selection_callback):
7960 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7961 data to kbd_buffer_store_event.
7962
7963 2003-06-15 Kim F. Storm <storm@cua.dk>
7964
7965 * xdisp.c (x_fix_overlapping_area): Always use area relative X
7966 to fix redisplay problem with tall characters (such as \e,AC\e(B).
7967
7968 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7969
7970 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7971
7972 2003-06-12 Kenichi Handa <handa@m17n.org>
7973
7974 * fileio.c (Fwrite_region): Save and restore restriction.
7975
7976 2003-06-12 Dave Love <fx@gnu.org>
7977
7978 * alloca.c (alloca): Declare arg as size_t.
7979
7980 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7981 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
7982
7983 2003-06-11 Dave Love <fx@gnu.org>
7984
7985 * search.c (shrink_regexp_cache): Use xrealloc.
7986 (syms_of_search): Use xmalloc.
7987
7988 2003-06-10 Kim F. Storm <storm@cua.dk>
7989
7990 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7991 Adjust phys_cursor.x to be relative to window box, rather than
7992 text area before checking -- to ensure cursor is redrawn when
7993 exposing window.
7994 Note: This also fixes a similar (older) bug if display margins
7995 are present.
7996
7997 2003-06-06 Kenichi Handa <handa@m17n.org>
7998
7999 * coding.c (encoding_buffer_size): If coding->type is
8000 coding_type_ccl, double magnification on CRLF encoding.
8001
8002 2003-06-06 Jason Rumney <jasonr@gnu.org>
8003
8004 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
8005 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
8006
8007 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
8008 Mac too.
8009
8010 2003-06-05 Dave Love <fx@gnu.org>
8011
8012 * strftime.c: Merge changes from gnulib.
8013
8014 * mktime.c (__mktime_internal): Merge changes from gnulib
8015 involving year 69 and dst2.
8016
8017 Changes to merge with gnulib version and be consistent with the
8018 autoconf test:
8019
8020 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
8021 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
8022 [HAVE_LOCALE_H]: Include locale.h.
8023 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
8024
8025 2003-06-05 Kim F. Storm <storm@cua.dk>
8026
8027 * window.c (coordinates_in_window): Convert X and Y to window
8028 relative coordinates inside mode-line and header-line parts.
8029 Convert X and Y to margin area relative coordinates inside left
8030 and right display margin parts.
8031
8032 2003-06-05 Jason Rumney <jasonr@gnu.org>
8033
8034 * w32fns.c (add_system_logical_colors_to_map): New function.
8035 (Fx_open_connection): Use it.
8036
8037 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
8038
8039 * process.c (allocate_pty): Revert part of the previous patch.
8040 (Faccept_process_output): Simplify.
8041
8042 2003-06-04 Jason Rumney <jasonr@gnu.org>
8043
8044 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
8045
8046 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
8047 (lispy_mouse_wheel_names): Remove.
8048 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
8049 Always define drag_and_drop_syms.
8050
8051 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
8052 WHEEL_EVENT events.
8053
8054 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
8055
8056 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
8057
8058 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
8059
8060 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8061
8062 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
8063 menu item label.
8064
8065 2003-06-03 Richard M. Stallman <rms@gnu.org>
8066
8067 * window.c (Fwindow_edges): Doc fix.
8068 (Fwindow_pixel_edges, Fwindow_inside_edges)
8069 (Fwindow_inside_pixel_edges): New functions.
8070 (syms_of_window): defsubr them.
8071
8072 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
8073 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
8074
8075 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
8076
8077 * dispnew.c (Fsit_for): Don't lie about the number of args.
8078
8079 2003-06-02 Dave Love <fx@gnu.org>
8080
8081 * callproc.c: Use HAVE_FCNTL_H, not USG5.
8082 (syms_of_callproc) <process-environment>: Doc fix.
8083
8084 * doc.c: Use HAVE_FCNTL_H, not USG5.
8085
8086 * xfaces.c (font_rescale_ratio): Fix for K&R.
8087
8088 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
8089
8090 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
8091
8092 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
8093
8094 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
8095 (xg_create_frame_widgets): Use ENCODE_UTF_8.
8096
8097 * xterm.c (Qutf_8): Move to coding.c
8098
8099 * xmenu.c (ENCODE_MENU_STRING): New.
8100 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
8101 Use it.
8102
8103 * coding.h (ENCODE_UTF_8): New.
8104 (Qutf_8): Declare.
8105
8106 * coding.c (Qutf_8): New.
8107 (syms_of_coding): Intern it.
8108
8109 * fns.c: Doc fixes.
8110
8111 2003-06-02 Kenichi Handa <handa@m17n.org>
8112
8113 * buffer.c (Fset_buffer_multibyte): Fix previous change.
8114
8115 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
8116
8117 * lread.c (openp): Make sure STR is a string.
8118
8119 2003-06-01 David Ponce <david@dponce.com>
8120
8121 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
8122 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
8123
8124 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
8125 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
8126 (discard_mouse_events): Discard WHEEL_EVENT events too.
8127 (lispy_wheel_names, wheel_syms): New.
8128 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
8129 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
8130 (make_lispy_event): Add WHEEL_EVENT handler.
8131
8132 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
8133 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8134 WHEEL_EVENT events.
8135
8136 2003-05-31 John Paul Wallington <jpw@gnu.org>
8137
8138 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
8139 timer are in lisp/emacs-lisp.
8140
8141 2003-05-31 Kenichi Handa <handa@m17n.org>
8142
8143 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
8144 region when a buffer is changed to unibyte.
8145
8146 * charset.h (VALID_LEADING_CODE_P): New macro.
8147 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
8148
8149 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
8150 is nonzero, accept multibyte form of eight-bit-control chars.
8151 (decode_composition_emacs_mule): Likewise.
8152 (decode_coding_emacs_mule): Likewise.
8153 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
8154 multibyte form of eight-bit-control chars.
8155
8156 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
8157 (Finsert_file_contents): If coding-system-for-read is bound to
8158 Qauto_save_coding, use the coding system emacs-mule with special
8159 setting for recovering a file.
8160 (choose_write_coding_system): On auto saving, use the coding
8161 system emacs-mule with special setting for auto saving.
8162 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
8163
8164 2003-05-30 Kenichi Handa <handa@m17n.org>
8165
8166 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
8167 properly before calling ccl_driver.
8168
8169 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
8170
8171 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
8172 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
8173 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
8174
8175 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
8176
8177 * xfaces.c (realize_default_face): Do not abort if lface is
8178 non-existent - reverts change from 2003-05-19.
8179
8180 2003-05-29 Kenichi Handa <handa@m17n.org>
8181
8182 * coding.c (decode_coding_iso2022): Pay attention to the byte
8183 sequence of CTEXT extended segment, and retain those bytes as is.
8184
8185 2003-05-28 Kenichi Handa <handa@m17n.org>
8186
8187 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
8188 of CODING_REPLACEMENT_CHARACTER.
8189 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
8190 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
8191 check this flag on encoding.
8192 (encode_coding_sjis_big5):
8193 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
8194 (Fset_terminal_coding_system_internal):
8195 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
8196 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
8197
8198 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
8199 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8200 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
8201
8202 2003-05-28 Richard M. Stallman <rms@gnu.org>
8203
8204 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
8205
8206 * eval.c (unbind_to): Move init of this_binding to separate statement.
8207
8208 2003-05-28 Kim F. Storm <storm@cua.dk>
8209
8210 * xdisp.c (expose_window): Fix error in calculation of
8211 window relative coordinates of area to redisplay.
8212
8213 2003-05-27 Jason Rumney <jasonr@gnu.org>
8214
8215 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
8216
8217 2003-05-27 David Ponce <david@dponce.com>
8218
8219 Handle W32 mouse wheel events as mouse click events, like in X.
8220
8221 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
8222 MOUSE_WHEEL_EVENT anymore.
8223
8224 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
8225 Scrolling down/up the mouse wheel is respectively mapped to mouse
8226 button 4 and 5.
8227 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8228 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
8229 WM_MOUSEWHEEL events.
8230
8231 2003-05-27 Andreas Schwab <schwab@suse.de>
8232
8233 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
8234
8235 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
8236 partially visible line.
8237
8238 * alloc.c (Fgarbage_collect): Fix last change.
8239
8240 2003-05-26 John Paul Wallington <jpw@gnu.org>
8241
8242 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
8243
8244 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
8245
8246 * window.c (Fset_window_buffer): Add type of `keep_margins'.
8247 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
8248
8249 * window.h (window_box_text_cols): Declare.
8250
8251 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
8252 (x_draw_vertical_border): Remove unused var `f'.
8253
8254 * xfaces.c (build_scalable_font_name): Remove `unused var
8255 pixel_size' warning.
8256
8257 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
8258
8259 * unexelf.c (unexec): Remove `unused var n' warning.
8260
8261 * strftime.c (my_strftime_localtime_r): Remove `defined but
8262 unused' warning.
8263
8264 * process.c (allocate_pty): Remove `unused var stb' and
8265 `cp might be used uninitialized' warnings.
8266
8267 * dispnew.c (mode_line_string): Remove unused var `f'.
8268
8269 * coding.c (find_safe_codings): Remove unused var `i'.
8270
8271 * bytecode.c (Fbyte_code): Remove `unused val' warning.
8272
8273 * buffer.c (Fkill_buffer): Remove unused var `list'.
8274
8275 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
8276
8277 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8278
8279 * frame.c (make_frame): Condition want_fullscreen with
8280 HAVE_WINDOW_SYSTEM.
8281
8282 2003-05-25 Juanma Barranquero <lektu@terra.es>
8283
8284 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
8285 (Fwindow_scroll_bars): Fix typo in docstring.
8286
8287 2003-05-24 Kim F. Storm <storm@cua.dk>
8288
8289 The following changes serve several purposes:
8290
8291 1) Swap the position of fringes and display margins in windows, i.e.
8292 the fringes are now displayed between the margins and the text area
8293 (by default).
8294
8295 2) Allow fringe and scroll bar parameters to be set per-buffer and
8296 per-window (like display margins). Such settings are now stored
8297 in window configurations, preserved when frames are resized, and
8298 copied when windows are split vertically or horizontally.
8299 Several bugs related to display margins have been fixed.
8300
8301 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
8302
8303 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
8304 rather than FRAME_WIDTH (FRAME_FONT (f)).
8305
8306 5) Introduce a consistent naming of variables, members and macros
8307 depending on whether their value is measured in pixels or in
8308 canonical columns/lines. Pixel dimensions are named *_width and
8309 *_height, while canonical columns/lines are named *_cols and
8310 *_lines. Pixel positions are named *_x and *_y, while column/line
8311 positions are named *_col and *_line.
8312
8313 6) Consolidate more of the X, W32, and MAC gui code by moving
8314 common data into struct frame, and generalize it for the non-gui
8315 case by using suitable defaults.
8316
8317 7) Cleanup and consolidate the macros controlling frame and window
8318 layout into frame.h and window.h, and generalize the use of the
8319 various window_box_* functions (enhanced to handle the new fringe
8320 position and the per-window fringe and scroll bar settings).
8321
8322 * frame.h (struct frame): Rename members height to text_lines,
8323 width to text_cols, window_height to total_lines, window_width to
8324 total_cols, new_height to new_text_lines, new_width to
8325 new_text_cols. All uses changed.
8326 (struct frame): New members which consolidate common members of
8327 x_output, w32_output, and mac_output structures: left_pos,
8328 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
8329 win_gravity, size_hint_flags, border_width, internal_border_width,
8330 line_height, fringe_cols, left_fringe_width, right_fringe_width,
8331 want_fullscreen. All uses changed.
8332 (struct frame): New member column_width contaning the canonical
8333 column width, analogue to line_height. All uses changed.
8334 (struct frame): Rename members scroll_bar_pixel_width to
8335 config_scroll_bar_width, and scroll_bar_cols to
8336 config_scroll_bar_cols. All uses changed.
8337 (struct frame): New member scroll_bar_actual_width which
8338 consolidates and renames the vertical_scroll_bar_extra member of
8339 x_output, w32_output, and mac_output structures. All uses changed.
8340 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
8341 from x/w32/macterm.h files. All uses changed. Also change code
8342 which referred to f->output_data...->pixel_height.
8343 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
8344 from x/w32/macterm.h files. All uses changed. Also change code
8345 which referred to f->output_data...->pixel_width.
8346 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
8347 Also change code which referred to f->height.
8348 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
8349 Also change code which referred to f->width.
8350 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
8351 to update new_text_lines and new_text_cols members directly.
8352 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
8353 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
8354 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
8355 FRAME_SCROLL_BAR_COLS. All uses changed.
8356 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
8357 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
8358 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
8359 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
8360 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
8361 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
8362 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
8363 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
8364 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
8365 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
8366 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
8367 Unconditionally return line_height member (it now has proper value
8368 also for non-window frames).
8369 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
8370 return new column_width member (rather than the default font width).
8371 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
8372 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
8373 from x/w32/macterm.h files. Unconditionally return corresponding
8374 member of frame structure (they now have proper values also for
8375 non-window frames).
8376 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
8377 Calculate return value from left and right widths.
8378 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
8379 internal_border_width member (has proper value for non-window frame).
8380 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
8381 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
8382 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
8383 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
8384 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
8385 consolidated from xterm.h, macterm.h, and w32term.h.
8386 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
8387 consolidated from xterm.h, macterm.h, and w32term.h.
8388 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
8389 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
8390 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
8391 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
8392 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
8393 consolidated from x/mac/w32term.h.
8394 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
8395 consolidated from x/mac/w32term.h.
8396 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
8397 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
8398 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
8399 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
8400
8401 * window.h (struct window): Rename members left to left_col,
8402 top to top_line, height to total_lines, width to total_cols,
8403 left_margin_width to left_margin_cols, right_margin_width to
8404 right_margin_cols, orig_height to orig_total_lines, orig_top to
8405 orig_top_line. All uses changed.
8406 (struct window): New members left_fringe_width, right_fringe_width,
8407 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
8408 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
8409 New macros primarily used to simplify other macros.
8410 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
8411 referred to XINT (w->width).
8412 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
8413 referred to XINT (w->height).
8414 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
8415 referred to XINT (w->width) * canon_x_unit.
8416 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
8417 referred to XINT (w->height) * canon_y_unit.
8418 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
8419 referred to XINT (w->left).
8420 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
8421 all uses and code that referred to XINT (w->left) + XINT (w->width).
8422 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
8423 referred to XINT (w->top).
8424 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
8425 referred to XINT (w->top) + XINT (w->height).
8426 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
8427 referred to XINT (w->left) * canon_x_unit.
8428 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
8429 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
8430 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
8431 referred to XINT (w->top) * canon_y_unit.
8432 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
8433 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
8434 (WINDOW_LEFTMOST_P): New macro.
8435 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
8436 All uses changed.
8437 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
8438 All uses changed.
8439 (WINDOW_BOX_LEFT_EDGE_X): Rename from
8440 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
8441 Do not exclude left fringe width.
8442 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
8443 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
8444 Do not exclude fringe widths.
8445 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
8446 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
8447 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
8448 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
8449 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
8450 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
8451 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
8452 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
8453 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
8454 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
8455 New macros. Change code which referenced corresponding
8456 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
8457 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
8458 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
8459 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
8460 allow per-window scroll-bar settings.
8461 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
8462 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
8463 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
8464 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
8465 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
8466 FRAME_SCROLL_BAR_WIDTH.
8467 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
8468 (WINDOW_SCROLL_BAR_AREA_X): New macros.
8469 (WINDOW_HEADER_LINE_HEIGHT): Rename from
8470 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
8471 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
8472 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
8473 (WINDOW_BOX_TEXT_HEIGHT): Rename from
8474 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
8475 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8476 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8477 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
8478 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
8479 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8480 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
8481 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8482 (window_from_coordinates): Update prototype.
8483 (Fset_window_buffer): Update EXFUN.
8484 (set_window_buffer): Update prototype.
8485
8486 * dispextern.h (struct glyph_matrix): Rename members window_left_x
8487 to window_left_col, window_top_y to window_top_line. All uses
8488 changed.
8489 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
8490 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
8491 internal_border_width is now set to 0 for non-window frames.
8492 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
8493 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
8494 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
8495 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
8496 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
8497 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8498 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8499 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
8500 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
8501 Move to window.h and renamed [see window.h changes].
8502 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
8503 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
8504 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
8505 Use WINDOW_TOTAL_LINES.
8506 (frame_update_line_height): Remove prototype.
8507
8508 * buffer.h (struct buffer): Rename members measured in columns:
8509 left_margin_width to left_margin_cols, right_margin_width to
8510 right_margin_cols. All uses changed.
8511 New members left_fringe_width, right_fringe_width,
8512 fringes_outside_margins for per-buffer fringe settings.
8513 New members scroll_bar_width and vertical_scroll_bar_type for
8514 per-buffer scroll bar settings.
8515
8516 * buffer.c (init_buffer_once): Set buffer_defaults and
8517 buffer_local_flags for new buffer-local variables
8518 left_fringe_width, right_fringe_width, fringes_outside_margins,
8519 scroll_bar_width, and vertical_scroll_bar_type.
8520 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
8521 default-* variables for them.
8522
8523 * dispnew.c: Make (many) trivial substitutions for renamed and
8524 new macros in dispextern.h, frame.h and window.h.
8525 (mode_line_string): No need to adjust width for mode lines, as it
8526 is already adjusted by the caller.
8527 (marginal_area_string): Handle fringes inside/outside margins.
8528
8529 * frame.c: Make (many) trivial substitutions for renamed and
8530 new macros in dispextern.h, frame.h and window.h.
8531 (make_frame): Initialize left_fringe_width, right_fringe_width,
8532 fringe_cols, scroll_bar_actual_width, border_width,
8533 internal_border_width, column_width, line_height, x_pixels_diff,
8534 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
8535 members with values suitable for a non-window frames.
8536
8537 * gtkutil.c: Make (many) trivial substitutions for renamed and
8538 new macros in dispextern.h, frame.h and window.h.
8539
8540 * indent.c: Make (few) trivial substitutions for renamed and
8541 new macros in dispextern.h, frame.h and window.h.
8542
8543 * keyboard.c: Make (many) trivial substitutions for renamed and
8544 new macros in dispextern.h, frame.h and window.h.
8545 (make_lispy_event): Use window positions returned from
8546 window_from_coordinates when constructing the lisp event for
8547 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
8548 (incorrect) values locally.
8549 (make_lispy_movement): Use window positions returned from
8550 window_from_coordinates when constructing the lisp event, rather
8551 than calculating (incorrect) values locally.
8552
8553 * scroll.c: Make (some) trivial substitutions for renamed and
8554 new macros in dispextern.h, frame.h and window.h.
8555
8556 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
8557 scroll-bars.
8558
8559 * sysdep.c: Make (few) trivial substitutions for renamed and
8560 new macros in dispextern.h, frame.h and window.h.
8561
8562 * term.c: Make (some) trivial substitutions for renamed and
8563 new macros in dispextern.h, frame.h and window.h.
8564
8565 * widget.c: Make (few) trivial substitutions for renamed and
8566 new macros in dispextern.h, frame.h and window.h.
8567
8568 * window.c: Make (many) trivial substitutions for renamed and
8569 new macros in dispextern.h, frame.h and window.h.
8570 (make_window): Initialize new members
8571 left_margin_cols, right_margin_cols, left_fringe_width,
8572 right_fringe_width, fringes_outside_margins, scroll_bar_width,
8573 and vertical_scroll_bar_type.
8574 (coordinates_in_window): Adapt to new fringe/margin positions
8575 and per-window fringes and scroll-bars.
8576 Fix bug related to incorrectly adjusting coordinates by
8577 frame's internal_border_width (the effect normally negible since
8578 the internal_border_width is typically 0 or 1 pixel, but very
8579 noticeable for an internal_border_width of e.g. 25 pixels).
8580 Upon successful return (other than ON_NOTHING), the coordinates
8581 are now always properly converted to window relative for the
8582 given display element.
8583 (window_from_coordinates): Add new parameters wx and wy to
8584 return the window relative x and y position in the returned
8585 window and part. A null arg means, don't return the position.
8586 All callers changed.
8587 (adjust_window_margins): New function which may reduce the width
8588 of the display margins if a window's text area is too small after
8589 resizing or splitting windows.
8590 (size_window): Fix bug that did not account for display margin
8591 widths when checking the minimum width of a window; use
8592 adjust_window_margins.
8593 (set_window_buffer): Call Fset_window_fringes and
8594 Fset_window_scroll_bars to setup per-window elements.
8595 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
8596 existing display margin, fringe widths, and scroll bar settings
8597 (e.g. after splitting a window or resizing the frame).
8598 All callers changed.
8599 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
8600 (Fsplit_window): Duplicate original window's display margin,
8601 fringe, and scroll-bar settings; then call Fset_window_buffer with
8602 KEEP_MARGINS non-nil. This fixes a bug which caused a split
8603 window to only preserve the display margins in one of the windows.
8604 When splitting horizontally, call adjust_window_margins on both
8605 windows to ensure that the text area of the new windows is non too
8606 narrow. This fixes a bug which could cause Emacs to trap if the
8607 width of the split window was less than the width of the display
8608 margins.
8609 (window_box_text_cols): Rename from window_internal_width.
8610 All uses changed. Adapt to per-window fringes and scroll bars.
8611 Fix bug that caused vertical separator to be subtracted also on
8612 window frames. Fix another bug that did not reduce the returned
8613 value by the columns used for display margins.
8614 (window_scroll_line_based): Fix bug related to scrolling too much
8615 when display margins are present (implicitly fixed by the fix to
8616 window_box_text_cols).
8617 (scroll_left, scroll_right): Fix bug related to scrolling too far
8618 by default when display margins are present (implicitly fixed by
8619 the fix to window_box_text_cols).
8620 (struct saved_window): Rename members left to left_col, top to
8621 top_line, width to total_cols, height to total_lines, orig_top to
8622 orig_top_line, orig_height to orig_total_lines. All uses changed.
8623 New members left_margin_cols, right_margin_cols,
8624 left_fringe_width, right_fringe_width, fringes_outside_margins,
8625 scroll_bar_width, and vertical_scroll_bar_type for saving
8626 per-window display elements.
8627 (Fset_window_configuration): Restore display margins, fringes,
8628 and scroll bar settings. This fixes a bug which caused display
8629 margins to be discarded when saving and restoring a window
8630 configuration.
8631 (save_window_save): Save display margins, fringes, and scroll bar
8632 settings. This fixes a bug which caused display margins to be
8633 discarded when saving and restoring a window configuration.
8634 (Fset_window_margins): Do nothing if display margins are not
8635 really changed. Otherwise, call adjust_window_margins to ensure
8636 the text area doesn't get too narrow. This fixes a bug which
8637 could cause Emacs to trap if setting display margins wider than
8638 the width of the window.
8639 (Fset_window_fringes): New defun to allow user to specifically set
8640 this window's fringe widths and position vs. display margins.
8641 (Fwindow_fringes): New defun to return window's actual fringe settings.
8642 (Fset_window_scroll_bars): New defun to allow user to specifically
8643 set this window's scroll bar width and position.
8644 (Fwindow_scroll_bars): New defun to return window's actual scroll
8645 bar settings.
8646 (compare_window_configurations): Also compare display margins,
8647 fringes, and scroll bar settings.
8648 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8649
8650 * xdisp.c: Make (many) trivial substitutions for renamed and
8651 new macros in dispextern.h, frame.h and window.h.
8652 (window_box_width): Adapt to per-window fringes and scroll bars,
8653 and new fringe vs. display margin position. Note that returned
8654 value is no longer guaranteed to be a whole multiple of the frame
8655 column width, since per-window fringes may now be any width.
8656 (window_box_left_offset): New function like window_box_left, but
8657 value is relative to left border of window (rather than frame).
8658 (window_box_right_offset): New function like window_box_right,
8659 but value is relative to left border of window.
8660 (window_box_left): Adapt to per-window fringes and scroll bars,
8661 and new fringe vs. display margin position. Simplify by using
8662 WINDOW_LEFT_EDGE_X and window_box_left_offset.
8663 (window_box): Allow null args for unnecessary return values;
8664 change/simplify relevant callers.
8665 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
8666 and new fringe vs. display margin position.
8667 Use window_box_left_offset and window_box_right_offset
8668 (get_glyph_string_clip_rect): Adapt to per-window fringes and
8669 scroll bars, and new fringe vs. display margin position.
8670 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
8671 (draw_fringe_bitmap): Rework to handle per-window fringes and new
8672 fringe vs. display margin position.
8673 (hscroll_window_tree): Use window_box_width instead of window_box.
8674 (redisplay_window): Adapt to per-window scroll bars.
8675 (draw_glyphs): Rework to handle per-window fringes and scroll
8676 bars, and new fringe vs. display margin position.
8677 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
8678 (x_clear_end_of_line): Adapt to per-window fringes and scroll
8679 bars, and new fringe vs. display margin position. Fix bug which
8680 increased total width of full_width rows by width of scroll bars
8681 although window's total width already includes that.
8682 (x_fix_overlapping_area): Simplify using window_box_left_offset.
8683 (expose_area): Simplify using window_box_left_offset.
8684 (x_draw_vertical_border): Handle per-window scroll bar settings,
8685 mixing windows with left, right and no scroll bars.
8686
8687 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
8688 where it's used in x_list_fonts (for clarity).
8689 (frame_update_line_height): Remove unused function; functionality
8690 is now done directly when setting the default font in x_set_font.
8691
8692 * xfns.c: Make (many) trivial substitutions for renamed and
8693 new macros in dispextern.h, frame.h and window.h.
8694
8695 * xmenu.c: Make (some) trivial substitutions for renamed and
8696 new macros in dispextern.h, frame.h and window.h.
8697
8698 * xterm.h (struct x_output): Move members left_pos, top_pos,
8699 border_width, pixel_height, pixel_width, line_height,
8700 internal_border_width, vertical_scroll_bar_extra,
8701 left_fringe_width, right_fringe_width, fringe_cols,
8702 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8703 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8704 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8705 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8706 (PIXEL_WIDTH, PIXEL_HEIGHT)
8707 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8708 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8709 frame.h and renamed [see frame.h changes].
8710 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8711 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8712 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8713 and renamed [see frame.h changes].
8714
8715 * xterm.c: Make (several) trivial substitutions for renamed and
8716 new macros in dispextern.h, frame.h and window.h.
8717 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8718 (scroll_run): Adapt to new fringe position.
8719 (glyph_rect): Use window coordinates returned from
8720 window_from_coordinates rather than frame_to_window_pixel_xy.
8721 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8722 scroll-bars.
8723 (handle_one_xevent): Simplify a USE_GTK conditional.
8724 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8725 (fringes are now inside margins, i.e. always in the clipping area).
8726 All callers changed.
8727 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8728 directly, then call compute_fringe_widths. Don't call
8729 frame_update_line_height.
8730
8731 * w32term.h (struct w32_output): Move members left_pos, top_pos,
8732 border_width, pixel_height, pixel_width, line_height,
8733 internal_border_width, vertical_scroll_bar_extra,
8734 left_fringe_width, right_fringe_width, fringe_cols,
8735 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8736 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8737 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8738 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8739 (PIXEL_WIDTH, PIXEL_HEIGHT)
8740 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8741 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8742 frame.h and renamed [see frame.h changes].
8743 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8744 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8745 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8746 and renamed [see frame.h changes].
8747
8748 * w32term.c: Make (several) trivial substitutions for renamed and
8749 new macros in dispextern.h, frame.h and window.h.
8750 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8751 (glyph_rect): Use window coordinates returned from
8752 window_from_coordinates rather than frame_to_window_pixel_xy.
8753 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8754 scroll-bars.
8755 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
8756 (fringes are now inside margins, i.e. always in the clipping area).
8757 All callers changed.
8758 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8759 directly, then call compute_fringe_widths. Don't call
8760 frame_update_line_height.
8761
8762 * w32console.c: Make (few) trivial substitutions for renamed and
8763 new macros in dispextern.h, frame.h and window.h.
8764
8765 * w32fns.c: Make (many) trivial substitutions for renamed and
8766 new macros in dispextern.h, frame.h and window.h.
8767
8768 * w32menu.c: Make (few) trivial substitutions for renamed and
8769 new macros in dispextern.h, frame.h and window.h.
8770
8771 * macterm.h (struct mac_output): Move members left_pos, top_pos,
8772 border_width, pixel_height, pixel_width, line_height,
8773 internal_border_width, vertical_scroll_bar_extra,
8774 left_fringe_width, right_fringe_width, fringe_cols,
8775 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8776 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8777 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8778 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8779 (PIXEL_WIDTH, PIXEL_HEIGHT)
8780 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8781 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8782 frame.h and renamed [see frame.h changes].
8783 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8784 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8785 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8786 and renamed [see frame.h changes].
8787
8788 * macterm.c: Make (several) trivial substitutions for renamed and
8789 new macros in dispextern.h, frame.h and window.h.
8790 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8791 (glyph_rect): Use window coordinates returned from
8792 window_from_coordinates rather than frame_to_window_pixel_xy.
8793 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8794 scroll-bars.
8795 (x_clip_to_row): Remove superfluous whole_line_p arg and code
8796 (fringes are now inside margins, i.e. always in the clipping area).
8797 All callers changed.
8798 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8799 directly, then call compute_fringe_widths. Don't call
8800 frame_update_line_height.
8801
8802 * macfns.c: Make (several) trivial substitutions for renamed and
8803 new macros in dispextern.h, frame.h and window.h.
8804 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
8805
8806 * macmenu.c: Make (few) trivial substitutions for renamed and
8807 new macros in dispextern.h, frame.h and window.h.
8808
8809 * msdos.h (struct x_output): Remove members left_pos, top_pos,
8810 and line_height, and use corresponding new members in struct
8811 frame. All uses changed.
8812 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8813 superseeded by corresponding macros in frame.h.
8814
8815 * msdos.c: Make (several) trivial substitutions for renamed and
8816 new macros in dispextern.h, frame.h and window.h.
8817 (IT_note_mouse_highlight): Use updated window coordinates returned
8818 by window_from_coordinates, rather than adjusting them locally.
8819 (internal_terminal_init): No need to initialize line_height here;
8820 it now defaults to 1.
8821
8822 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
8823
8824 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8825 dropping `down' events.
8826
8827 2003-05-24 Andreas Schwab <schwab@suse.de>
8828
8829 * coding.c (find_safe_codings): Fix last change.
8830
8831 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
8832
8833 * xfns.c (x_window): Fix typo from 2003-05-21 change.
8834
8835 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
8836
8837 * xdisp.c (display_mode_element): Increase max depth.
8838 Simplify the error handling code. Use a different error string
8839 for the case where we hit the depth limit.
8840
8841 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8842
8843 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8844
8845 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
8846
8847 * intervals.c (get_local_map): Don't get char-property of previous
8848 point any more: get_pos_property already does it and better.
8849
8850 2003-05-21 Dave Love <fx@gnu.org>
8851
8852 [Merged from unicode branch.]
8853
8854 * xfns.c (x_window, x_window): Use use_xim.
8855
8856 * xterm.c (use_xim): Initialize.
8857 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8858 (x_term_init): Maybe set use_xim.
8859
8860 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8861
8862 2003-05-21 Jason Rumney <jasonr@gnu.org>
8863
8864 * unexw32.c (_start): Remove _fmode initialization.
8865
8866 * emacs.c (main) [WINDOWSNT]: Move it here.
8867
8868 2003-05-20 Dave Love <fx@gnu.org>
8869
8870 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8871
8872 2003-05-19 Richard M. Stallman <rms@gnu.org>
8873
8874 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8875 as value for QCfont attribute.
8876 (realize_default_face): lface should already exist; crash if not.
8877 Specify 0 for FORCE_P when calling set_lface_from_font_name.
8878
8879 * frame.c (Fignore_event): Doc fix.
8880
8881 2003-05-19 Kenichi Handa <handa@m17n.org>
8882
8883 * coding.c (decode_coding_string): Handle post-read-conversion
8884 even if the coding doesn't require decoding.
8885
8886 2003-05-18 Richard M. Stallman <rms@gnu.org>
8887
8888 * callproc.c (Fcall_process_region): Doc fix.
8889
8890 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8891
8892 * lread.c (Fload): Print a message if package is obsolete.
8893
8894 * window.c (Fselect_window): Add optional `norecord' arg.
8895 (select_window_1): Fold into Fselect_window.
8896 (select_window_norecord): New function.
8897 (temp_output_buffer_show): Use it. Preserve current buffer.
8898
8899 * window.h (Fselect_window): Update declaration.
8900
8901 * window.c (delete_window, Fother_window, Fset_window_configuration):
8902 * minibuf.c (read_minibuf):
8903 * macterm.c (x_new_focus_frame):
8904 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8905 * callint.c (Fcall_interactively):
8906 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8907
8908 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8909
8910 2003-05-17 David Kastrup <dak@gnu.org>
8911
8912 * process.c (read_process_output): Back out change from 2003-03-09.
8913
8914 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
8915
8916 * editfns.c (get_pos_property): Don't assume that `object' = nil.
8917
8918 * textprop.c (text_property_stickiness): New arg `buffer'.
8919
8920 * intervals.h (text_property_stickiness): New arg `buffer'.
8921 (get_pos_property): Declare.
8922
8923 * intervals.c (get_local_map): Use get_pos_property, to obey
8924 stickiness and empty overlays.
8925 (create_root_interval, graft_intervals_into_buffer): Use BEG.
8926 (merge_properties, intervals_equal, merge_properties_sticky):
8927 Use XCAR, XCDR.
8928 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8929
8930 2003-05-17 Richard M. Stallman <rms@gnu.org>
8931
8932 * minibuf.c (read_minibuf): If buffer is empty, record the default
8933 in the history.
8934 (Fminibuffer_complete_word): When deleting the overlap, take account
8935 of its real position.
8936
8937 * fns.c (map_char_table): Fix previous change.
8938
8939 * syntax.c (find_defun_start):
8940 When open_paren_in_column_0_is_defun_start,
8941 return beginning of buffer.
8942
8943 * lisp.h (map_char_table): Declare added arg.
8944
8945 * fns.c (map_char_table): New arg TABLE gets the master table.
8946 All calls changed.
8947 Process default and inheritance, resorting to Faref if necessary.
8948
8949 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8950 (Faccessible_keymaps): Pass new arg to map_char_table.
8951
8952 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8953
8954 * casetab.c (set_case_table): Pass new arg to map_char_table.
8955
8956 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8957
8958 * lisp.h (specbinding_func): New typedef.
8959 (struct specbinding): Use specbinding_func, to put the `volatile'
8960 in the right place.
8961
8962 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8963 to avoid GCC warning.
8964
8965 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
8966
8967 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
8968
8969 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
8970
8971 * keyboard.c (apply_modifiers): Don't fill the other cache.
8972
8973 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
8974
8975 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8976
8977 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8978 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8979 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8980 (Fset_window_configuration, Fcurrent_window_configuration)
8981 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8982 (Fpos_visible_in_window_p, mark_window_cursors_off)
8983 (window_internal_height, window_internal_width, Frecenter)
8984 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8985 (replace_buffer_in_all_windows, init_window_once, init_window)
8986 (syms_of_window, keys_of_window): Move from lisp.h.
8987 * lisp.h: Move window.c declarations to window.h.
8988
8989 * bytecode.c: Include window.h.
8990 * emacs.c: Include window.h.
8991
8992 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
8993 (keyremap): Add `parent' field.
8994 (keyremap_step): Use it. Remove `parent' argument.
8995 (read_key_sequence): Setup and use the new `parent' field.
8996
8997 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
8998
8999 * keyboard.c (adjust_point_for_property): Ensure termination.
9000
9001 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
9002
9003 * keyboard.c (follow_key): Remove dead variable `did_meta'.
9004 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
9005 duplicated handling of function-key-map and key-translation-map
9006 in read_key_sequence.
9007 (read_key_sequence): Use them.
9008
9009 * keyboard.c (adjust_point_for_property): Try harder to move point
9010 to the non-sticky end of an invisible property.
9011
9012 * xdisp.c (single_display_prop_intangible_p): Make `space' display
9013 property intangible as well.
9014
9015 2003-05-10 Andreas Schwab <schwab@suse.de>
9016
9017 * xmenu.c (single_menu_item): Change last parameter to void* to
9018 avoid warning.
9019
9020 2003-05-09 Richard M. Stallman <rms@gnu.org>
9021
9022 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
9023 Bind Qinhibit_modification_hooks to t so there will be no GC.
9024 Rename local `tem' to `save_deactivate_mark'.
9025
9026 * eval.c (specpdl_ptr): Declare volatile.
9027 (unbind_to): Copy the whole binding and decrement specpdl_ptr
9028 before doing the work of unbinding it.
9029
9030 * lisp.h (struct specbinding): Declare elements volatile.
9031 (specpdl_ptr): Declare volatile.
9032
9033 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
9034
9035 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
9036 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
9037
9038 2003-05-08 Dave Love <fx@gnu.org>
9039
9040 * coding.c (Vlast_coding_system_used): Doc fix.
9041
9042 2003-05-07 Jason Rumney <jasonr@gnu.org>
9043
9044 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
9045 when system does not support them.
9046
9047 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
9048
9049 * fileio.c (Qwrite_region_annotate_functions): New var.
9050 (build_annotations): Use it to process the global part of the hook.
9051 (syms_of_fileio): Init and staticpro it.
9052
9053 * keyboard.c (safe_run_hooks_error): Display a message instead of
9054 silently ignoring the error.
9055
9056 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
9057
9058 * keyboard.c (input_available_signal): Mark static.
9059 (menu_bar_items): Use map_keymap.
9060 (menu_bar_one_keymap): Remove.
9061 (menu_bar_item): Adjust arglist (for use in map_keymap).
9062 Properly hide a second binding when not both are keymaps.
9063
9064 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
9065 (single_keymap_panes): Use it and map_keymap.
9066 (single_menu_item): Use skp as well.
9067
9068 * keymap.h (map_keymap_function_t): New type.
9069 (map_keymap): Declare.
9070
9071 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
9072 (map_keymap_call, Fmap_keymap): New functions.
9073 (syms_of_keymap): Defsubr map-keymap.
9074
9075 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9076
9077 * gtkutil.c (create_dialog, make_widget_for_menu_item)
9078 (make_menu_item, create_menus, xg_update_menu_item): Don't call
9079 ..._with_mnemonic functions for menu items.
9080
9081 2003-05-01 Kenichi Handa <handa@m17n.org>
9082
9083 * coding.c (coding_system_accept_latin_extra_p): Delete this
9084 function.
9085 (find_safe_codings): Pay attention to
9086 the property tranlsation-table-for-encode of each codings.
9087 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
9088
9089 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
9090
9091 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
9092
9093 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
9094
9095 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
9096
9097 * lisp.h (CHECK): Wrap args in parenthesis.
9098 (specbind): Fix doc: symbol = Qnil is not supported any more.
9099
9100 * bytecode.c (Fbyte_code) <unwind-protect>:
9101 Use Fprogn rather than 0 and Qnil.
9102
9103 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
9104 `double', and `triple' modifiers as well.
9105
9106 2003-04-30 Richard M. Stallman <rms@gnu.org>
9107
9108 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
9109
9110 * alloc.c (abort_on_gc): New variable.
9111 (Fgarbage_collect): Abort if abort_on_gc is set.
9112
9113 * lisp.h (abort_on_gc): Add decl.
9114
9115 * eval.c (Fsignal): Clear abort_on_gc.
9116
9117 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
9118 Reinit FORMAT_START and END before second scan.
9119
9120 * xdisp.c (move_it_vertically_backward): Do the final big else
9121 even if nlines is 0.
9122
9123 * xdisp.c (redisplay_internal): Finish the per-frame loop
9124 even if redisplay is suspended by input.
9125
9126 2003-04-24 Andrew Choi <akochoi@shaw.ca>
9127
9128 * macterm.c (x_list_fonts): Return all fonts that match if
9129 maxnames = -1.
9130
9131 2003-04-25 Kenichi Handa <handa@m17n.org>
9132
9133 * syntax.c (skip_chars): Fix previous change.
9134
9135 2003-04-24 Kenichi Handa <handa@m17n.org>
9136
9137 * syntax.c (skip_chars): Make the code faster by using the common
9138 technique of *p, *stop, and *endp.
9139
9140 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9141
9142 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
9143 tool_bar_items so GTK tool bar expose callback does not access items
9144 being updated.
9145
9146 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
9147
9148 * eval.c (Fapply): Undo last change and add a comment about why.
9149
9150 2003-04-18 Miles Bader <miles@gnu.org>
9151
9152 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
9153 pickier PARSE_MULTIBYTE_SEQ.
9154
9155 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
9156
9157 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
9158 Use XCDR, XCAR, CONSP.
9159 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
9160 (Fapply): Remove unnecessary GCPRO.
9161
9162 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
9163
9164 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
9165
9166 * buffer.h: Don't hardcode BEG==1.
9167
9168 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
9169
9170 2003-04-16 Richard M. Stallman <rms@gnu.org>
9171
9172 * xdisp.c (try_window, try_window_reusing_current_matrix):
9173 When at end of window, set window_end_pos to Z-ZV.
9174
9175 * buffer.c (Foverlay_recenter): Doc fix.
9176
9177 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
9178
9179 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
9180
9181 2003-04-14 Andrew Choi <akochoi@shaw.ca>
9182
9183 * macterm.c (mac_check_for_quit_char): Don't check more often than
9184 once a second.
9185
9186 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
9187
9188 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
9189 specially, so that they can't hide an implicit switch-frame event.
9190 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
9191 (head_table): Use switch-frame as event_kind for select-window.
9192 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
9193
9194 * editfns.c (Fformat): Lisp_Object/int mixup.
9195 (format2): Remove unused var numargs.
9196
9197 2003-04-11 Kenichi Handa <handa@m17n.org>
9198
9199 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
9200 (Qafter_insert_file_set_coding): New variable.
9201 (syms_of_fileio): Initialize and staticpro it. Delete declaration
9202 for after-insert-file-adjust-coding-function.
9203 (Finsert_file_contents): Call Qafter_insert_file_set_coding
9204 instead of Vafter_insert_file_adjust_coding_function.
9205
9206 2003-04-11 Kenichi Handa <handa@m17n.org>
9207
9208 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
9209
9210 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
9211 string. Callers changed.
9212
9213 2003-04-10 Kenichi Handa <handa@m17n.org>
9214
9215 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
9216 (syms_of_fileio): Declare it as a lisp variable.
9217 (Finsert_file_contents):
9218 Call Vafter_insert_file_adjust_coding_function before calling
9219 decode-format.
9220
9221 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9222
9223 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
9224 get GtkAdjustment as widget now is a GtkRange.
9225
9226 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
9227 GtkRange to avoid memory leak.
9228
9229 2003-04-09 Kenichi Handa <handa@m17n.org>
9230
9231 * xfaces.c (Vface_font_rescale_alist): New variable.
9232 (struct font_name): New member rescale_ratio.
9233 (font_rescale_ratio): New function.
9234 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
9235 (better_font_p): On comparing point sized, pay attention to
9236 recale_ratio member of fonts.
9237 (build_scalable_font_name): Reflect font->rescale_ratio in the
9238 font name.
9239 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
9240
9241 * lread.c (read1): Before calling index, check if the 2nd
9242 arguemnt is in ASCII range.
9243
9244 2003-04-08 Richard M. Stallman <rms@gnu.org>
9245
9246 * fileio.c (Ffile_symlink_p): Doc fix.
9247
9248 * editfns.c (Fformat): Translate positions of text properties
9249 in the format string to apply them to the result.
9250
9251 * fileio.c (Finsert_file_contents): Doc fix.
9252 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
9253
9254 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
9255
9256 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
9257
9258 2003-04-08 Steven Tamm <steventamm@mac.com>
9259
9260 * mac.c (init_mac_osx_environment): Switch libexec and bin so
9261 that self-contained application finds libexec files.
9262
9263 2003-04-08 Kenichi Handa <handa@m17n.org>
9264
9265 * coding.c (code_convert_region_unwind):
9266 Set Vlast_coding_system_used to the argument.
9267 (code_convert_region): If post-read-conversion function changed
9268 the value of last-coding-sytem, keep the new value in
9269 coding->symbol so that it won't be overridden.
9270 (run_pre_post_conversion_on_str): Likewise.
9271 (coding_system_accept_latin_extra_p): New function.
9272 (find_safe_codings): Pay attention to characters registered in
9273 latin-extra-code-table.
9274
9275 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
9276
9277 * Makefile.in (md5.o): Add missing dependency info.
9278
9279 2003-04-06 Richard M. Stallman <rms@gnu.org>
9280
9281 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
9282
9283 * marker.c (verify_bytepos): New function.
9284
9285 * intervals.c (set_intervals_multibyte_1): When becoming
9286 multibyte, adjust right and left child sizes to a whole set of
9287 characters. If an interval gets zero total-length, delete it.
9288 If an interval consists of just its children, delete one of them.
9289
9290 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
9291 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
9292
9293 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
9294 All calls deleted.
9295 (lisp_malloc): Do the work here directly.
9296
9297 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
9298
9299 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
9300 char tables.
9301
9302 2003-04-04 Kenichi Handa <handa@m17n.org>
9303
9304 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
9305 destructively change "%S" to "%s".
9306
9307 2003-04-03 Miles Bader <miles@gnu.org>
9308
9309 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
9310 always set.
9311
9312 2003-04-01 Dave Love <fx@gnu.org>
9313
9314 * xfns.c (xpm_lookup_color): Grok "opaque".
9315
9316 2003-03-31 Andrew Choi <akochoi@shaw.ca>
9317
9318 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
9319 parent window ID.
9320
9321 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
9322
9323 * macterm.h (struct mac_output): Define x_pixels_diff and
9324 y_pixels_diff.
9325
9326 2003-03-31 Juanma Barranquero <lektu@terra.es>
9327
9328 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
9329 blockinput.h and files included from it.
9330
9331 2003-03-31 Kim F. Storm <storm@cua.dk>
9332
9333 The following changes consolidates the common code related to
9334 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
9335 files into frame.c.
9336
9337 * frame.c: Include blockinput.h.
9338 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
9339 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
9340 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
9341 related vars here.
9342 (struct frame_parm_table, frame_parms): New table for describing
9343 frame parameters and their associated Q-variable.
9344 The order of the parameters corresponds to the sequence of the
9345 frame_parm_handlers table in redisplay_interface.
9346 (x_fullscreen_move, x_set_frame_parameters)
9347 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
9348 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
9349 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9350 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
9351 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
9352 Generic functions for processing of frame parameters.
9353 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
9354 (display_x_get_resource, x_get_resource_string): Functions for
9355 generic access to X resources.
9356 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9357 (x_default_parameter, Fx_parse_geometry): Functions for generic
9358 access to frame parameters.
9359 (x_figure_window_size): Generic calculation of frame size.
9360 Fixed to add space needed for tool bar. Also setup size_hint_flags.
9361 (syms_of_frame): Intern and staticpro frame parameter variables.
9362 Defvar_lisp Vx_resource_class and Vx_resource_name here.
9363 Defsubr Sx_get_resource and Sx_parse_geometry.
9364
9365 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
9366 parameter related vars defined in frame.c.
9367 (EMACS_CLASS): Define here.
9368 (enum FULLSCREEN_*): Define here.
9369 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
9370 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
9371 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
9372 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
9373 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
9374 (x_set_visibility, x_set_autoraise, x_set_autolower)
9375 (x_set_unsplittable, x_set_vertical_scroll_bars)
9376 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
9377 (x_figure_window_size): Add prototypes.
9378
9379 * dispextern.h (frame_parm_handler): New typedef.
9380 (struct redisplay_interface): New member frame_parm_handlers.
9381 (enum resource_types): Move declaration here.
9382 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9383 (x_default_parameter): Add prototypes.
9384
9385 * window.c: Remove extern decl for frame parameter vars.
9386 (change_window_heights): New generic function;
9387 replaces x_change_window_heights. All users changed.
9388
9389 * window.h (change_window_heights): Add prototype.
9390
9391 * xfaces.c: Remove extern decl for frame parameter vars.
9392
9393 * xterm.h (EMACS_CLASS): Remove. Use generic define.
9394 (struct w32_display_info): Fix type of xrdb member.
9395 (enum FULLSCREEN_*): Remove.
9396 Remove prototypes for generic functions (in frame.h).
9397
9398 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9399 parameters now defined in frame.h and frame.c.
9400 (Vx_resource_name): Remove. Use generic var.
9401 (enum x_frame_parms): Remove (bogus, unused enum).
9402 (check_x_display_info): Make non-static (for frame.c).
9403 (struct x_frame_parm_table, x_frame_parms): Remove.
9404 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9405 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9406 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9407 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9408 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9409 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9410 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9411 Remove. Use generic functions instead.
9412 (enum resource_types): Remove.
9413 (x_set_scroll_bar_default_width): New global function (for frame.c).
9414 (Fx_create_frame): Depend on x_figure_window_size to add space for
9415 toolbar and setup size_hint_flags.
9416 (x_frame_parm_handlers): New table for redisplay_interface.
9417 (syms_of_xfns): Don't intern/staticpro removed vars.
9418
9419 * xterm.c: Remove unnecessary extern declarations.
9420 (x_fullscreen_adjust): Remove. Use generic instead.
9421 (x_redisplay_interface): Add x_frame_parm_handlers member.
9422
9423 * w32gui.h (XrmDatabase): New (dummy) typedef.
9424
9425 * w32term.h (EMACS_CLASS): Remove. Use generic define.
9426 (struct w32_display_info): Fix type of xrdb member.
9427 (enum FULLSCREEN_*): Remove.
9428 (x_fullscreen_adjust): Remove prototype.
9429
9430 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9431 parameters now defined in frame.h and frame.c.
9432 (Vx_resource_name): Remove. Use generic var.
9433 (enum x_frame_parms): Remove (bogus, unused enum).
9434 (check_x_display_info): Make non-static (for frame.c).
9435 (struct x_frame_parm_table, x_frame_parms): Remove.
9436 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9437 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9438 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9439 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9440 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9441 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9442 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9443 Remove. Use generic functions instead.
9444 (enum resource_types): Remove.
9445 (x_set_scroll_bar_default_width): New global function (for frame.c).
9446 (Fx_create_frame): Depend on x_figure_window_size to add space for
9447 toolbar and setup size_hint_flags.
9448 (w32_frame_parm_handlers): New table for redisplay_interface.
9449 (syms_of_w32fns): Don't intern/staticpro removed vars.
9450
9451 * w32term.c: Remove unnecessary extern declarations.
9452 (x_fullscreen_adjust): Remove. Use generic instead.
9453 (x_redisplay_interface): Add w32_frame_parm_handlers member.
9454
9455 * w32reg.c (x_get_string_resource): Use XrmDatabase.
9456
9457 * macgui.h (XrmDatabase): New (dummy) typedef.
9458
9459 * macterm.h (EMACS_CLASS): Remove.
9460 (struct mac_display_info): Add xrdb member.
9461 (struct mac_output): Add want_fullscreen member.
9462
9463 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9464 parameters now defined in frame.h and frame.c.
9465 (Vx_resource_name): Remove. Use generic var.
9466 (check_x_display_info): Make non-static (for frame.c).
9467 (struct x_frame_parm_table, x_frame_parms): Remove.
9468 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9469 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9470 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9471 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9472 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9473 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9474 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9475 Remove. Use generic functions instead.
9476 (enum resource_types): Remove.
9477 (x_set_scroll_bar_default_width): New global function (for frame.c).
9478 (mac_frame_parm_handlers): New table for redisplay_interface.
9479 (syms_of_macfns): Don't intern/staticpro removed vars.
9480
9481 * macterm.c: Remove unnecessary extern declarations.
9482 (x_redisplay_interface): Add mac_frame_parm_handlers member.
9483
9484 * Makefile.in (frame.o): Add dependency on blockinput.h and files
9485 included from it (atimer.h and systime.h).
9486
9487 2003-03-30 Andreas Schwab <schwab@suse.de>
9488
9489 * xdisp.c (x_insert_glyphs): Fix swapped width and height
9490 parameters for shift_glyphs_for_insert.
9491
9492 * macterm.c (x_redisplay_interface): Add missing entry for
9493 draw_vertical_window_border.
9494
9495 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9496
9497 * fileio.c (Fexpand_file_name): In the no-handler case, after
9498 expanding, look again for a handler and invoke it. This is needed
9499 for filenames like "/foo/../user@host:/bar/../baz" -- the first
9500 expansion produces "/user@host:/bar/../baz" which needs to be
9501 expanded again for the finame result "/user@host:/baz".
9502
9503 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9504
9505 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
9506 of area to be redrawn for better performance.
9507
9508 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
9509
9510 * xterm.c (take_vertical_position_into_account): Remove.
9511 (xt_action_hook): Call set_vertical_scroll_bar if needed.
9512 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
9513 (xm_scroll_callback, x_create_toolkit_scroll_bar)
9514 (x_set_toolkit_scroll_bar_thumb): Simplify.
9515 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
9516 (XTread_socket): Remove unused var.
9517 (x_make_frame_invisible): Replace goto with else.
9518
9519 * xdisp.c (set_vertical_scroll_bar): New fun.
9520 (redisplay_window): Use it.
9521
9522 2003-03-26 Richard M. Stallman <rms@gnu.org>
9523
9524 * xdisp.c (update_tool_bar): Recompute tool bar if
9525 update_mode_lines is set. Set w->update_mode_line
9526 only if the tool bar contents actually change.
9527 (update_menu_bar): Undo previous change.
9528
9529 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9530
9531 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
9532 (xg_frame_set_char_size): Calculate scroll bar width before frame
9533 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
9534 (xg_separator_p): Check for all documented separator types.
9535 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
9536 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
9537
9538 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
9539 so tool bar gets updated.
9540
9541 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
9542
9543 * data.c (store_symval_forwarding): Re-instate part of the code
9544 that was deleted with too much enthusiasm.
9545
9546 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
9547
9548 * data.c (store_symval_forwarding): Delete special read-only
9549 hack for type == -1, since we now use ->constant instead.
9550 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
9551
9552 * buffer.c (overlays_in): Declare static.
9553 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
9554 `constant' field rather than the variable's `type' field.
9555
9556 2003-03-24 Andrew Choi <akochoi@shaw.ca>
9557
9558 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
9559
9560 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
9561
9562 * fns.c [MAC_OSX]: Do not redefine vector.
9563
9564 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
9565
9566 * macgui.h: Remove definition of No_Cursor.
9567
9568 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
9569
9570 * xdisp.c: Define No_Cursor.
9571 (x_write_glyphs, notice_overwritten_cursor)
9572 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
9573 (note_mouse_highlight): Remove Mac-specific code.
9574 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
9575
9576 2003-03-24 John Paul Wallington <jpw@gnu.org>
9577
9578 * xdisp.c (redisplay_window): If mini window's buffer is not
9579 empty, then redisplay it like other windows.
9580
9581 2003-03-23 Kim F. Storm <storm@cua.dk>
9582
9583 * w32term.c (w32_draw_window_cursor): Fix last change.
9584
9585 2003-03-23 Kenichi Handa <handa@m17n.org>
9586
9587 * alloc.c (make_string_from_bytes, make_specified_string):
9588 Add `const' for the arg CONTENTS.
9589
9590 * lisp.h (make_string_from_bytes, make_specified_string):
9591 Prototypes adjusted.
9592
9593 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9594
9595 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
9596
9597 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9598 (XG_SB_RANGE): New define.
9599
9600 * gtkutil.c (xg_fixed_handle_expose): New function.
9601 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9602 expose events.
9603 (xg_update_scrollbar_pos): Take two more arguments, left and width
9604 of scroll bar including borders.
9605 Clear left and right part outside scroll bar separately as some
9606 themes have bars that are not an even number of pixels.
9607 Don't set reallocate_redraws, don't call
9608 gdk_window_process_all_updates.
9609 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9610 so no need to change it. Calculate size and value with XG_SB_RANGE.
9611
9612 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9613 Pass left and width of scroll bar including borders to
9614 xg_update_scrollbar_pos.
9615
9616 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9617
9618 * Makefile.in: Make sure space precedes end-of-line backslashes.
9619
9620 2003-03-22 Kim F. Storm <storm@cua.dk>
9621
9622 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9623 Add generic versions here. Remove system specific versions
9624 defined elsewhere.
9625
9626 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9627 Add prototypes.
9628
9629 * xterm.h (STORE_NATIVE_RECT): New macro.
9630
9631 2003-03-21 Kim F. Storm <storm@cua.dk>
9632
9633 * xdisp.c (get_glyph_string_clip_rect):
9634 Use FRAME_INTERNAL_BORDER_WIDTH.
9635
9636 * dispextern.h (struct redisplay_interface): Add active_p
9637 argument to draw_window_cursor member. All uses changed.
9638
9639 2003-03-21 Kim F. Storm <storm@cua.dk>
9640
9641 The following changes consolidate code related to writing and
9642 inserting glyphs, exposing frame, the tool bar, the mouse face,
9643 the output cursor, and help echo from xterm.c, w32term.c and
9644 macterm.c into xdisp.c. It also generalizes the use of the
9645 window_part enum instead of using numeric values throughout.
9646
9647 * xdisp.c: Consolidate gui-independent code here.
9648 Include keymap.h.
9649 (Qhelp_echo): Import.
9650 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9651 (help_echo_string, help_echo_window, help_echo_object)
9652 (previous_help_echo_string, help_echo_pos): Declare here.
9653 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
9654 (estimate_mode_line_height): Define here. Handle windowing
9655 systems directly (without using estimate_mode_line_height_hook).
9656 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
9657 (update_window_cursor, update_cursor_in_window_tree)
9658 (fast_find_position, fast_find_string_pos)
9659 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
9660 (expose_area, expose_line, expose_overlaps, expose_window)
9661 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
9662 declared static as they are only used locally in xdisp.c.
9663 (draw_glyphs): Rename from x_draw_glyphs and make static.
9664 (tool_bar_item_info, notice_overwritten_cursor): Make static.
9665 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9666 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
9667 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
9668 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9669 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
9670 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
9671 (note_mouse_highlight, x_clear_window_mouse_face)
9672 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
9673 (x_intersect_rectangles): New generic functions for use by xdisp.c
9674 and GUI front-ends.
9675 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
9676 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
9677
9678 * dispextern.h (Display_Info): Generic typedef for *_display_info.
9679 (NativeRectangle): Generic typedef for rectangle type.
9680 (enum window_part): Move here from window.c.
9681 (struct redisplay_interface): New members flush_display_optional,
9682 define_frame_cursor, clear_frame_area, draw_window_cursor,
9683 draw_vertical_window_border, shift_glyphs_for_insert.
9684 Rename member clear_mouse_face to clear_window_mouse_face.
9685 (estimate_mode_line_height_hook): Remove hook.
9686 (auto_raise_tool_bar_buttons_p): Don't declare extern.
9687 (tool_bar_item_info): Remove prototype.
9688 (help_echo_string, help_echo_window, help_echo_object)
9689 (previous_help_echo_string, help_echo_pos)
9690 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
9691 (x_stretch_cursor_p, output_cursor): Declare extern.
9692 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
9693 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
9694 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9695 (display_and_set_cursor, set_output_cursor, x_cursor_to)
9696 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
9697 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9698 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
9699 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
9700 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
9701 Add prototypes.
9702 (mode_line_string, marginal_area_string): Fix prototypes.
9703
9704 * window.c (enum window_part): Move to dispextern.h.
9705 (coordinates_in_window): Use enum window_part member names
9706 instead of numbers to describe return value.
9707 (struct check_window_data): Change part member to window_part.
9708 (check_window_containing): Return window_part unaltered.
9709 (window_from_coordinates): Change part arg from int to enum
9710 window_part. Allow part arg to be null. All users changed.
9711
9712 * window.h (window_from_coordinates): Fix prototype.
9713
9714 * term.c (estimate_mode_line_height): Move to xdisp.c.
9715
9716 * keyboard.c (make_lispy_event): Use enum window_part.
9717
9718 * dispnew.c (mode_line_string, marginal_area_string): Use enum
9719 window_part instead of int in arg list. Users changed.
9720
9721 * xterm.h (No_Cursor): Declare as None for X.
9722 (struct mac_output): Replace member cross_cursor by hand_cursor.
9723
9724 * xterm.c: Remove consolidated defines and code.
9725 (BETWEEN): Remove unused macro.
9726 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
9727 (x_define_frame_cursor, x_clear_frame_area)
9728 (x_draw_window_cursor): New X-specific functions for RIF.
9729 (x_redisplay_interface): Add new members.
9730
9731 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
9732
9733 * w32term.h (struct w32_output): Remove cross_cursor member.
9734
9735 * w32term.c: Remove consolidated defines and code.
9736 (BETWEEN): Remove unused macro.
9737 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
9738 (w32_define_frame_cursor, w32_clear_frame_area)
9739 (w32_draw_window_cursor): New W32-specific functions for RIF.
9740 (w32_redisplay_interface): Add new members.
9741
9742 * w32gui.h (No_Cursor): Define as 0 for W32.
9743 (XRectangle): Add X compatible rectangle type.
9744 (NativeRectangle): Declare as RECT for W32.
9745 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9746
9747 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
9748
9749 * w32console.c: Remove consolidated defines and code.
9750
9751 * msdos.h (Display_Info): Add generic typedef.
9752
9753 * msdos.c: Remove consolidated defines and code.
9754 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
9755
9756 * macterm.h (struct mac_output): Replace member cross_cursor by
9757 hand_cursor.
9758 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
9759
9760 * macterm.c: Remove consolidated defines and code.
9761 (BETWEEN): Remove unused macro.
9762 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9763 (mac_define_frame_cursor, mac_clear_frame_area)
9764 (mac_draw_window_cursor): New Mac-specific functions for RIF.
9765 (x_redisplay_interface): Add new members.
9766
9767 * macgui.h (No_Cursor): Define as 0 for Mac.
9768 (XRectangle): Add X compatible rectangle type.
9769 (NativeRectangle): Declare as Rect for Mac.
9770 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9771
9772 * macfns.c (x_set_mouse_color): Setup hand_cursor.
9773 (x_set_cursor_color): Use x_display_and_set_cursor.
9774
9775 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
9776 included from it. Add dependency on keymap.h.
9777
9778 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9779
9780 2003-03-21 Kenichi Handa <handa@m17n.org>
9781
9782 * fileio.c (Fexpand_file_name): Fix previous change.
9783
9784 2003-03-19 Kenichi Handa <handa@m17n.org>
9785
9786 * fileio.c (Ffile_name_directory): Reconstruct file name by
9787 make_specified_string.
9788 (Ffile_name_nondirectory, Ffile_name_as_directory)
9789 (Fdirectory_file_name, Fexpand_file_name)
9790 (Fsubstitute_in_file_name): Likewise.
9791 (Fread_file_name): Compare decoded homedir with DIR and
9792 DEFAULT_FILENAME.
9793
9794 * alloc.c (make_specified_string): If NCHARS is negative, count
9795 the number of characters.
9796
9797 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9798
9799 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9800 all widgets.
9801
9802 * gtkutil.h: Removed xg_ignore_next_thumb.
9803
9804 2003-03-18 Kenichi Handa <handa@m17n.org>
9805
9806 * coding.c (Vchar_coding_system_table): Remove this variable.
9807 (Vcoding_system_safe_chars): New variable.
9808 (intersection): Remove this function.
9809 (find_safe_codings): Don't use Vchar_coding_system_table, but try
9810 all codings in SAFE_CODINGS.
9811 (Ffind_coding_systems_region_internal): Adjust for the change of
9812 find_safe_codings. Get generic coding systems from
9813 Vcoding_system_safe_chars.
9814 (Fdefine_coding_system_internal): New function.
9815 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9816 Initialize and staticpro Vcoding_system_safe_chars.
9817
9818 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9819
9820 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9821 equal old values before updating.
9822
9823 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9824
9825 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9826
9827 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9828
9829 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9830 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9831 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9832 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9833 (xg_create_scroll_bar): Pass bar to button event callback.
9834 (xg_find_top_left_in_fixed): New function.
9835 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9836 whole scroll bar area. Get old position with
9837 xg_find_top_left_in_fixed, calculate and only clear needed areas.
9838 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9839 dragging is in progress. Calculate whole as for Motif.
9840 Remove code that saved last values. Call gtk_range functions to
9841 set scroll bar sizes.
9842
9843 * gtkutil.h: Removed xg_ignore_next_thumb.
9844
9845 2003-03-17 Juanma Barranquero <lektu@terra.es>
9846
9847 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9848 and files included from it.
9849
9850 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
9851
9852 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9853 multiple occurrences of the same keymap under different prefixes.
9854 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9855
9856 2003-03-16 Jason Rumney <jasonr@gnu.org>
9857
9858 * w32gui.h: Use HDC for Display.
9859
9860 * w32term.c (w32_encode_char): Prevent double-byte chars from
9861 crashing Emacs.
9862
9863 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9864 as binary.
9865
9866 2003-03-16 Juanma Barranquero <lektu@terra.es>
9867
9868 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9869
9870 2003-03-16 Kim F. Storm <storm@cua.dk>
9871
9872 The following changes consolidate some of the gui-independent
9873 parts of the processing and drawing of "glyph strings" from
9874 xterm.c, w32term.c, and macterm.c into xdisp.c.
9875
9876 * dispextern.h (struct glyph): Reduce face_id member from 22 to
9877 21 bits (this reduces number of faces from 4M to 2M).
9878 Replace W32 specific w32_font_type member (2 bits) by generic
9879 font_type member (3 bits) for portability.
9880 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9881 (enum draw_glyphs_face): Define here.
9882 (struct glyph_string): Define here. Merge W32 and X versions.
9883 (struct redisplay_interface): New members per_char_metric,
9884 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9885 (VCENTER_BASELINE_OFFSET): Define here.
9886 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9887 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9888
9889 * xdisp.c: Consolidate gui-independent "glyph string" code here.
9890 (dump_glyph_string): Moved here.
9891 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9892 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9893 (fill_composite_glyph_string, fill_glyph_string)
9894 (fill_image_glyph_string, fill_stretch_glyph_string)
9895 (left_overwritten, left_overwriting, right_overwritten)
9896 (right_overwriting, get_char_face_and_encoding)
9897 (set_glyph_string_background_width, compute_overhangs_and_x)
9898 (append_glyph, append_composite_glyph, produce_image_glyph)
9899 (take_vertical_position_into_account, append_stretch_glyph)
9900 (produce_stretch_glyph): New generic functions (based on X version).
9901 Call platform specific functions through rif.
9902 (INIT_GLYPH_STRING): New macro, hides W32 details.
9903 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9904 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9905 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9906 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9907 (notice_overwritten_cursor):
9908 Generic functions exported to platform modules. Users changed.
9909
9910 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9911 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9912 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
9913 New macros for consolidated code.
9914
9915 * xterm.c: Remove consolidated defines and code.
9916 (x_per_char_metric, x_encode_char)
9917 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9918 (x_redisplay_interface): Add new members.
9919
9920 * w32gui.h (Display): Add dummy typedef for consolidation.
9921 (XChar2b): Define alias for wchar_t for consolidation.
9922 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9923
9924 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
9925 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
9926 New macros for consolidation.
9927
9928 * w32term.c: Remove consolidated defines and code.
9929 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9930 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9931 (w32_per_char_metric): Change font_type arg to int for RIF.
9932 (w32_encode_char): Return int according to RIF requirements.
9933 (w32_compute_glyph_string_overhangs): Adapt to RIF.
9934 (w32_get_glyph_overhangs): New function for RIF. Uses generic
9935 x_get_glyph_overhangs.
9936 (w32_redisplay_interface): Add new members.
9937
9938 * macgui.h (XChar2b): Move typedef here for consolidation.
9939 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9940
9941 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9942 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9943 consolidation.
9944
9945 * macterm.c: Remove consolidated defines and code.
9946 (mac_per_char_metric): New function for RIF.
9947 (mac_encode_char): Adapt to new RIF requirements.
9948 (mac_compute_glyph_string_overhangs): Adapt for RIF.
9949 (x_redisplay_interface): Add new members.
9950
9951 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
9952
9953 * keymap.c (Vmenu_events): New var.
9954 (syms_of_keymap): Initialize it.
9955 (where_is_internal): Check more carefully what is a menu event.
9956
9957 2003-03-14 Richard M. Stallman <rms@gnu.org>
9958
9959 * lread.c (read1): After #!, exit loop on eof.
9960
9961 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9962
9963 * gtkutil.h: Add declaration for xg_frame_cleared.
9964
9965 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9966
9967 * gtkutil.c (struct xg_last_sb_pos): New structure.
9968 (handle_fixed_child): New function.
9969 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9970 and force a redraw on them.
9971 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9972 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9973 so we can avoid unneeded redraws.
9974 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9975 and force a redraw on the scroll bar.
9976 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9977 if xg_last_sb_pos shows the positions are up to date.
9978 (xg_frame_cleared): New function.
9979
9980 2003-03-13 Kenichi Handa <handa@m17n.org>
9981
9982 * coding.c (Fdetect_coding_region): Fix docstring.
9983 (Fdetect_coding_string): Fix docstring.
9984
9985 2003-03-13 Andreas Schwab <schwab@suse.de>
9986
9987 * gtkutil.c: Add prototype for create_menus.
9988
9989 * data.c (long_to_cons): Fix type of top.
9990
9991 * xselect.c (selection_data_to_lisp_data): Use int instead of
9992 long for an integer of size 4.
9993
9994 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
9995 (xg_tool_bar_help_callback): Likewise.
9996
9997 2003-03-12 Andreas Schwab <schwab@suse.de>
9998
9999 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
10000
10001 2003-03-12 Kim F. Storm <storm@cua.dk>
10002
10003 The following changes consolidate the fringe handling from
10004 xterm.c, w32term.c, and macterm.c into xdisp.c.
10005
10006 * xdisp.c: Consolidate fringe handling code here.
10007 (left_bits, right_bits, continued_bits, continuation_bits)
10008 (ov_bits, zv_bits): Define fringe bitmaps.
10009 (fringe_bitmaps): New array holding fringe bitmaps.
10010 (draw_fringe_bitmap): Draw a specific bitmap; call display
10011 specific drawing routine via rif->draw_fringe_bitmap.
10012 (draw_row_fringe_bitmaps): Generic replacement for
10013 x_draw_row_fringe_bitmaps; all callers changed.
10014 (compute_fringe_widths): Generic replacement for
10015 x_compute_fringe_widths; all callers changed.
10016
10017 * dispextern.h (enum fringe_bitmap_type): Define here.
10018 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
10019 (fringe_bitmaps): Declare extern.
10020 (struct redisplay_interface): New member draw_fringe_bitmap.
10021 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
10022
10023 * xterm.c: Remove generic fringe code.
10024 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10025 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10026
10027 * w32term.c: Remove generic fringe code.
10028 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
10029 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
10030
10031 * macterm.c: Remove generic fringe code.
10032 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10033 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10034
10035 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
10036
10037 * print.c (Fprin1_to_string): Return unibyte string if possible.
10038
10039 2003-03-09 David Kastrup <dak@gnu.org>
10040
10041 * process.c (read_process_output): We have allocated enough space
10042 for readmax and carryover, so actually use the alloted space.
10043
10044 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10045
10046 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
10047 toolkit scrollbar click.
10048
10049 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
10050 for USE_GTK.
10051 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
10052 also.
10053 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
10054 scrollbar and control is pressed, call x_scroll_bar_handle_click.
10055
10056 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
10057
10058 * gtkutil.c (xg_get_scroll_id_for_window): New function.
10059 (xg_tool_bar_item_expose_callback): New function.
10060 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
10061 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
10062 on the tool bar widget.
10063 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
10064 to expose on the tool bar item widgets.
10065
10066 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10067
10068 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
10069 struct image* when deciding to update (struct image* may have been
10070 deleted from the image cache).
10071
10072 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
10073 the event isn't for a frame (i.e. for dialogs).
10074
10075 2003-03-07 Kenichi Handa <handa@m17n.org>
10076
10077 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
10078 composition components reaches the limit, terminate composing.
10079 (COMPOSITION_OK): New macro.
10080 (detect_coding_iso2022): Use it if an escape sequence for
10081 composition is found.
10082 (coding_restore_composition): Adjust the number of composition
10083 components if it is not sane.
10084
10085 2003-03-06 Juanma Barranquero <lektu@terra.es>
10086
10087 * w32term.h (struct w32_display_info): Add xrdb member to support
10088 passing resources via -xrm on Windows.
10089
10090 * w32term.c (w32_make_rdb): New function.
10091 (w32_term_init): Use it to initialize xrdb member of w32_display_info
10092 struct. Delete leftover code.
10093
10094 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
10095 for resources passed on the command line.
10096
10097 * w32reg.c (w32_get_rdb_resource): New function.
10098 (x_get_string_resource): Use it, so resources passed with -xrm
10099 supercede the ones in the registry.
10100
10101 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10102
10103 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
10104 instead of x_top_window_to_frame.
10105
10106 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10107
10108 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
10109 when restarting Emacs.
10110
10111 2003-03-03 Richard M. Stallman <rms@gnu.org>
10112
10113 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
10114 to run kill-buffer-query-functions.
10115 (Qkill_buffer_query_functions): New var.
10116 (syms_of_buffer): Init and staticpro it.
10117
10118 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10119
10120 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
10121
10122 2003-02-25 Kim F. Storm <storm@cua.dk>
10123
10124 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
10125 If centering point failed to make whole line visible and vscroll
10126 is non-zero, disable vscroll and try centering point again.
10127
10128 * lread.c (read1): Accept `single space' syntax like (? x).
10129
10130 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10131
10132 * keyboard.c (cancel_hourglass_unwind): Surround with
10133 #ifdef HAVE_X_WINDOWS
10134
10135 2003-02-25 Kenichi Handa <handa@m17n.org>
10136
10137 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
10138 process only when "subprocesses" is defined.
10139
10140 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
10141
10142 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
10143
10144 2003-02-24 Juanma Barranquero <lektu@terra.es>
10145
10146 * callint.c (fix_command): Declare as static void and move before
10147 Fcall_interactively.
10148
10149 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
10150 (syms_of_xdisp): Don't initialize Qwhen.
10151
10152 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10153
10154 * keyboard.c (cancel_hourglass_unwind): New function.
10155 (command_loop_1): Cancel hourglass with unwind-protect.
10156
10157 2003-02-23 Richard M. Stallman <rms@gnu.org>
10158
10159 * callint.c (fix_command): New subroutine, from Fcall_interactively.
10160 Detect (when ... (region-beginning)) etc.
10161 (Fcall_interactively): Call fix_command.
10162 (Qif, Qwhen): New variables.
10163 (syms_of_callint): Init and staticpro them.
10164
10165 * regex.c (print_partial_compiled_pattern): Output to stderr.
10166
10167 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10168
10169 * dired.c (directory_files_internal): Don't expand directory.
10170 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
10171 instead. From Lars Hansen <larsh@math.ku.dk>.
10172
10173 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
10174
10175 * fns.c (string_to_multibyte): Remove unused var i.
10176 (Flanginfo): Fix int/Lisp_Object mixup.
10177 (void_call2): New fun.
10178 (Fmap_char_table): Use it in place of call2.
10179
10180 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
10181
10182 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
10183
10184 * keymap.c (copy_keymap_1): Make it static.
10185
10186 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
10187
10188 2003-02-22 David Ponce <david@dponce.com>
10189
10190 * lread.c (Fload): Don't check STRING_MULTIBYTE.
10191
10192 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10193
10194 * process.h: Removed subtty field from struct Lisp_Process.
10195
10196 * process.c (create_process): Remove setting of subtty.
10197 (emacs_get_tty_pgrp): New function.
10198 (Fprocess_running_child_p, process_send_signal):
10199 Call emacs_get_tty_pgrp instead of ioctl.
10200 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
10201
10202 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10203
10204 * keymap.c (Fdefine_key): Doc fix.
10205
10206 2003-02-21 Juanma Barranquero <lektu@terra.es>
10207
10208 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
10209
10210 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
10211 POLLING_PROBLEM_IN_SELECT.
10212
10213 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
10214 Delete #undef of POLLING_PROBLEM_IN_SELECT.
10215
10216 * s/hpux10-20.h: New file.
10217
10218 * process.c (wait_reading_process_input):
10219 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
10220
10221 2003-02-20 Kenichi Handa <handa@m17n.org>
10222
10223 * fontset.c (check_fontset_name): If NAME is nil, return the
10224 default fontset.
10225 (override_font_info): New function.
10226 (Fset_fontset_font): Document that NAME nil means the default fontset.
10227 (Ffontset_info): If FONTSET is not the default fontset, merge
10228 FONTSET onto the copy of the default fontset, and work on that
10229 copy. Document that NAME nil means the default fontset.
10230 (Ffontset_font): Document that NAME nil means the default fontset.
10231
10232 * process.c (setup_process_coding_systems): If the process's
10233 in/out descriptor is -1, do nothing.
10234
10235 2003-02-19 Andreas Schwab <schwab@suse.de>
10236
10237 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
10238 Add prototypes.
10239
10240 2003-02-19 Kenichi Handa <handa@m17n.org>
10241
10242 * xfaces.c (try_alternative_families): Try all scalable fonts if
10243 Vscalable_fonts_allowed is not Qt.
10244
10245 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10246
10247 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
10248
10249 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10250
10251 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
10252 names.
10253
10254 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
10255 (sorted_font_list): Move allocation of struct font_name to
10256 x_face_list_fonts.
10257 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
10258 (Fx_list_fonts): Set maxnames to -1 to get all font names.
10259
10260 2003-02-18 Kim F. Storm <storm@cua.dk>
10261
10262 * lread.c (read1): Fix last change.
10263 "`" is not always special. Allow "?" after a character constant.
10264
10265 2003-02-18 Andrew Choi <akochoi@shaw.ca>
10266
10267 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
10268
10269 2003-02-18 Andreas Schwab <schwab@suse.de>
10270
10271 * window.c (window_scroll_pixel_based): Move outside a
10272 multi-glyph character before setting new window start.
10273
10274 * xdisp.c (in_display_vector_p): New function.
10275 * dispextern.h (in_display_vector_p): Declare.
10276
10277 2003-02-18 Kim F. Storm <storm@cua.dk>
10278
10279 * lread.c (read1): Fix and relax read syntax.
10280 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
10281 Only recognize "," after dotted-pair dot if inside backquote.
10282 Never include "`" or "," (inside backquote) in a symbol.
10283 Allow dotted-pair dot after a character constant.
10284 Allow "`" and "," (inside backquote) after a character constant.
10285
10286 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10287
10288 * gtkutil.c (xg_tool_bar_expose_callback): New function.
10289 (xg_create_tool_bar): Force style of tool bar to be horizontal with
10290 icons. Set name of tool bar to emacs-toolbar.
10291 (update_frame_tool_bar): Connect expose event to
10292 xg_tool_bar_expose_callback.
10293
10294 2003-02-17 Richard M. Stallman <rms@gnu.org>
10295
10296 * keyboard.c (this_command_key_count_reset): New variable.
10297 Initiatize to 0 where this_command_key_count is set.
10298 (read_char): Save and restore this_command_key_count_reset
10299 around input method code.
10300 (read_char): If this_command_key_count_reset, echo reread commands.
10301 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
10302
10303 2003-02-17 Kenichi Handa <handa@m17n.org>
10304
10305 * fns.c (string_to_multibyte): Always return a multibyte string.
10306
10307 2003-02-16 Jason Rumney <jasonr@gnu.org>
10308
10309 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
10310 Negative max_fonts parameter means list all.
10311
10312 2003-02-14 Dave Love <fx@gnu.org>
10313
10314 * fns.c (Flanginfo): Doc fix.
10315
10316 2003-02-13 Kim F. Storm <storm@cua.dk>
10317
10318 * lread.c (read_escape): Interpret \s as a SPACE character, except
10319 for \s-X in a character constant which still is the super modifier.
10320 (read1): Signal an `invalid read syntax' error if a character
10321 constant is immediately followed by a digit or symbol character.
10322
10323 * search.c (Fmatch_data): Doc fix. Explicitly state that
10324 match-data is undefined if last search failed.
10325
10326 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
10327 All uses changed.
10328
10329 2003-02-12 Juanma Barranquero <lektu@terra.es>
10330
10331 * eval.c (Fdefmacro): Fix typo.
10332
10333 2003-02-12 Kim F. Storm <storm@cua.dk>
10334
10335 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
10336 macro is a string, convert meta modifiers in string when copying
10337 the string into a vector.
10338
10339 2003-02-11 Kim F. Storm <storm@cua.dk>
10340
10341 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
10342
10343 2003-02-11 Kenichi Handa <handa@m17n.org>
10344
10345 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
10346
10347 2003-02-10 Kim F. Storm <storm@cua.dk>
10348
10349 * process.c: Doc fixes.
10350 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
10351
10352 2003-02-10 Kenichi Handa <handa@m17n.org>
10353
10354 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
10355
10356 * process.c (QCfilter_multibyte): New variable.
10357 (setup_process_coding_systems): New function.
10358 (Fset_process_buffer, Fset_process_filter):
10359 Call setup_process_coding_systems.
10360 (Fstart_process): Initialize the member `filter_multibyte' of
10361 struct Lisp_Process.
10362 (create_process): Call setup_process_coding_systems.
10363 (Fmake_network_process): New keyward `:filter-multibyte'.
10364 Initialize the member `filter_multibyte' of struct Lisp_Process.
10365 Call setup_process_coding_systems.
10366 (server_accept_connection): Call setup_process_coding_systems.
10367 (read_process_output): If the process has a filter, decide the
10368 multibyteness of a string to given to the filter by
10369 `filter_multibyte' member of the process. If the process doesn't
10370 have a filter and the result of conversion is unibyte, use
10371 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
10372 multibyte form.
10373 (Fset_process_coding_system): Call setup_process_coding_systems.
10374 (Fset_process_filter_multibyte): New function.
10375 (Fprocess_filter_multibyte_p): New function.
10376 (syms_of_process): Intern and staticpro QCfilter_multibyte.
10377 Defsubr Sset_process_filter_multibyte and
10378 Sprocess_filter_multibyte_p.
10379
10380 * process.h (struct Lisp_Process): New member filter_multibyte.
10381
10382 * lisp.h (setup_process_coding_systems): Add prototype.
10383
10384 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
10385 process, update coding systems for the process.
10386
10387 2003-02-09 Kenichi Handa <handa@m17n.org>
10388
10389 * fns.c (string_to_multibyte): New function.
10390 (Fstring_to_multibyte): New function.
10391 (syms_of_fns): Defsubr it.
10392
10393 2003-02-08 Andreas Schwab <schwab@suse.de>
10394
10395 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
10396 instead of the substitution.
10397
10398 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10399
10400 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
10401
10402 * xmenu.c (menu_position_func): Adjust menu popup position so that
10403 the menu is fully visible.
10404
10405 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10406
10407 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
10408 (x_make_frame_invisible, x_wm_set_icon_position):
10409 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
10410
10411 * xfns.c (x_set_name, x_set_title): Ditto.
10412
10413 2003-02-04 Richard M. Stallman <rms@gnu.org>
10414
10415 * keyboard.c (echo_now): Update before_command_echo_length.
10416 (Freset_this_command_lengths): Reset this_command_key_count etc.
10417 immediately rather than arranging to do it later.
10418 (before_command_key_count_1, before_command_echo_length_1)
10419 (before_command_restore_flag): Vars deleted.
10420 (add_command_key): Don't handle before_command_restore_flag.
10421 (read_char, record_menu_key): Don't update before_command_key_count or
10422 before_command_echo_length.
10423 (read_char): Don't handle before_command_restore_flag.
10424
10425 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
10426 in direct-output clauses if it wouldn't be called in the ordinary case.
10427
10428 2003-02-04 Kim F. Storm <storm@cua.dk>
10429
10430 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
10431
10432 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10433
10434 * gtkutil.c (remove_from_container): Copying list is not needed.
10435 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
10436 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
10437 on list returned from gtk_container_get_children to avoid memory leak.
10438
10439 2003-02-01 Jason Rumney <jasonr@gnu.org>
10440
10441 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
10442 local malloc.
10443 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
10444 definitions in xpm.h.
10445 (init_xpm_functions): New function.
10446 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
10447 (init_external_image_libraries): Try to load libXpm.dll.
10448
10449 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
10450 timestamp.
10451
10452 2003-01-31 Dave Love <fx@gnu.org>
10453
10454 * syntax.c (Fskip_chars_forward)
10455 (open-paren-in-column-0-is-defun-start): Doc fix.
10456
10457 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
10458
10459 * fileio.c: Support // at start of name for Cygwin (just added proper
10460 preprocessor tests).
10461
10462 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
10463
10464 * Makefile.in: Use @EXEEXT@ for Cygwin.
10465
10466 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
10467
10468 * s/cygwin.h: Added for Cygwin port.
10469
10470 2003-01-31 Juanma Barranquero <lektu@terra.es>
10471
10472 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
10473 when including gif_lib.h.
10474 (init_gif_functions, init_tiff_functions): New functions.
10475 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
10476 Windows. Disable color table lookups. Call library functions
10477 through pointers determined at runtime.
10478 (init_external_image_libraries): Try to load libungif.dll and
10479 libtiff.dll.
10480
10481 2003-01-31 Kenichi Handa <handa@m17n.org>
10482
10483 * xdisp.c (SKIP_GLYPHS): New macro.
10484 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
10485
10486 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10487
10488 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
10489
10490 2003-01-30 Dave Love <fx@gnu.org>
10491
10492 * alloc.c (Vgc_elapsed, gcs_done): New variables.
10493 (Fgarbage_collect): Use them.
10494 (init_alloc, syms_of_alloc): Set them up.
10495
10496 2003-01-30 Juanma Barranquero <lektu@terra.es>
10497
10498 * w32fns.c (init_external_image_libraries): Add missing operator.
10499
10500 2003-01-29 Jason Rumney <jasonr@gnu.org>
10501
10502 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
10503 an alternative name for jpeg.dll.
10504
10505 2003-01-29 Kenichi Handa <handa@m17n.org>
10506
10507 * xdisp.c (set_cursor_from_row): Pay attention to string display
10508 properties.
10509
10510 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10511
10512 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
10513 <escape>.
10514 (keycode_to_xkeysym_table): Reformat and add more comments.
10515 (XTread_socket): Drop special case for backspace.
10516
10517 2003-01-28 Andrew Choi <akochoi@shaw.ca>
10518
10519 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
10520 values in old-style RGB specs.
10521
10522 2003-01-27 Juanma Barranquero <lektu@terra.es>
10523
10524 * w32fns.c (init_external_image_libraries): Try alternate names for the
10525 jpeg dll.
10526
10527 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10528
10529 * gtkutil.c (create_dialog, xg_separator_p)
10530 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
10531 before calling strcmp or strlen.
10532
10533 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10534
10535 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
10536 and handle image load failure.
10537
10538 2003-01-26 Jason Rumney <jasonr@gnu.org>
10539
10540 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
10541 New functions.
10542 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
10543 Disable color table lookups. Call jpeg library functions
10544 through pointers determined at runtime.
10545 (init_external_image_libraries): Try to load jpeg.dll.
10546
10547 2003-01-25 Richard M. Stallman <rms@gnu.org>
10548
10549 * lisp.h: Declare format2 instead of format1.
10550
10551 * fileio.c (barf_or_query_if_file_exists):
10552 Call format2 instead of format1.
10553
10554 * editfns.c (format2): New function, replaces format1
10555 but takes exactly two Lisp Objects as format args.
10556
10557 * buffer.c (Fkill_buffer): Call format2 instead of format1.
10558
10559 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10560
10561 * xterm.h: Change to return value of x_dispatch_event to int.
10562
10563 * xterm.c (x_filter_event): New function.
10564 (event_handler_gdk, XTread_socket): Call x_filter_event.
10565 (x_dispatch_event): Change to return value of finish.
10566 (event_handler_gdk): Use return value from x_dispatch_event.
10567
10568 * xfns.c (x_window): Call create_frame_xic for GTK version to
10569 initialize input methods.
10570
10571 * gtkutil.h: Add (void) prototypes.
10572
10573 * gtkutil.c (create_menus): Remove code that puts the help menu to
10574 the right.
10575
10576 2003-01-25 Jason Rumney <jasonr@gnu.org>
10577
10578 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
10579 [HAVE_PNG]: Sync with xfns.c version.
10580 (png_load): Adjust colors for Windows. Use Windows
10581 bitmaps. Disable color table lookups.
10582 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
10583 (init_png_functions): New function.
10584 (png_read_from_memory, png_load): Call png library functions
10585 through pointers determined at runtime.
10586 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10587 (init_external_image_libraries): New function.
10588 (init_xfns): Call it.
10589
10590 2003-01-24 Andreas Schwab <schwab@suse.de>
10591
10592 * minibuf.c (Fminibuffer_message): Verify type of parameter.
10593
10594 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10595
10596 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10597 of static initializer.
10598
10599 2003-01-24 Dave Love <fx@gnu.org>
10600
10601 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10602 architectures.
10603
10604 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10605 Use __alignof__.
10606
10607 2003-01-24 Kenichi Handa <handa@m17n.org>
10608
10609 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
10610 It it is nonzero, don't pretend that an invisible area doesn't exist.
10611 (command_loop_1): Call adjust_point_for_property with proper
10612 second arg.
10613
10614 2003-01-22 Jason Rumney <jasonr@gnu.org>
10615
10616 Sync changes with xterm.c and xfns.c.
10617
10618 * w32term.c (x_draw_glyph_string_foreground)
10619 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10620
10621 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10622 phys_cursor's hpos is overwritten. This is still not completely
10623 correct, as it doesn't really make sense to use hpos at all to
10624 get the cursor glyph (as that is relative to the width of the
10625 characters on the line, which may have changed during the update).
10626
10627 * w32term.c (notice_overwritten_cursor): Handle the special case
10628 of the cursor being in the first blank non-text line at the
10629 end of a window.
10630
10631 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10632 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10633 Compute from the x position returned by x_draw_glyphs.
10634
10635 (x_display_and_set_cursor): Don't set phys_cursor_width here,
10636 except for NO_CURSOR and system caret, to make phys_cursor_width
10637 contain what its name suggests.
10638 (notice_overwritten_cursor): Consider the cursor image erased if
10639 the output area intersects the cursor image in y-direction.
10640
10641 * w32term.c (note_mode_line_or_margin_highlight): Rename from
10642 note_mode_line_highlight and extend.
10643
10644 * w32term.c (last_window): New variable.
10645 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10646 (note_mouse_movement): Remove reimplemented code in #if 0.
10647
10648 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10649 not update_mode_lines, and always set it to 1.
10650
10651 2003-01-21 Jason Rumney <jasonr@gnu.org>
10652
10653 * w32fns.c (IDC_HAND): Define it if system headers don't.
10654
10655 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10656
10657 * w32term.h (struct w32_output): New member hand_cursor.
10658 (WM_EMACS_SETCURSOR): New message definition.
10659
10660 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
10661 function w32_define_cursor.
10662 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
10663 position, change member name output_data.x to output_data.w32 and
10664 add function w32_define_cursor.
10665 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
10666 and change member name output_data.x to output_data.w32.
10667 (w32_initialize_display_info):
10668 Setup dpyinfo->vertical_scroll_bar_cursor.
10669
10670 * w32fns.c (Vx_hand_shape): New variable.
10671 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
10672 WM_EMACS_SETCURSOR.
10673 (x-create-frame): Setup Cursor types.
10674
10675 2003-01-21 David Ponce <david@dponce.com>
10676
10677 * w32term.c (w32_encode_char): For DIM=1 charset, set
10678 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
10679 x_encode_char change by Kenichi Handa <handa@m17n.org> on
10680 2002-09-30.)
10681 (w32_draw_relief_rect): Declare all args.
10682 (w32_define_cursor): New.
10683
10684 * w32fns.c (w32_load_cursor): New function.
10685 (w32_init_class): Use it.
10686 (x_put_x_image): Declare all args.
10687
10688 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
10689
10690 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
10691
10692 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10693
10694 * gtkutil.c: Must include stdio.h before termhooks.h
10695
10696 2003-01-21 Dave Love <fx@gnu.org>
10697
10698 * alloc.c (Fgc_status): Print zombie list.
10699 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10700 Fix assignment of zombies.
10701 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10702 Don't take car of non-cons.
10703
10704 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10705
10706 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10707
10708 2003-01-20 David Ponce <david@dponce.com>
10709
10710 * w32menu.c (digest_single_submenu): Declare all args.
10711
10712 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
10713 changes in xmenu.c:
10714
10715 (parse_single_submenu): Use individual keymap's prompt
10716 string as pane name, if there is one.
10717 (set_frame_menubar): Save menu_items_n_panes from each call to
10718 parse_single_submenu and use it when calling digest_single_submenu.
10719
10720 2003-01-20 Steven Tamm <steventamm@mac.com>
10721
10722 * macterm.c (XTread_socket): Checks for valid, visible window
10723 before sending a scroll-wheel event.
10724
10725 2003-01-20 Richard M. Stallman <rms@gnu.org>
10726
10727 * xdisp.c (redisplay_window): If mini window's buffer is not
10728 a minibuffer, then redisplay it like other windows.
10729
10730 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10731
10732 * gtkutil.c (xg_create_frame_widgets): Check if there is an
10733 external tool bar before setting tool bar height.
10734
10735 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10736
10737 * xterm.c (handle_one_xevent): Surround popup_activated
10738 with #ifdef:s for non-toolkit version.
10739
10740 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
10741 (gtkutil.o): New file.
10742 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
10743 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
10744
10745 * gtkutil.c: New file for GTK version.
10746
10747 * gtkutil.h: New file for GTK version.
10748
10749 * xterm.h: Add xt_or_gtk_widget.
10750 Include gtk files for USE_GTK.
10751 (struct x_output): Add toolbar_height.
10752 (struct x_output): Add GTK widgets and Gdk size_hints.
10753 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
10754 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
10755 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
10756
10757 * xterm.c: Include gtkutil.h for USE_GTK.
10758 (free_frame_menubar): Declare extern void for USE_GTK.
10759 (note_mouse_highlight): Check popup_activated for USE_GTK.
10760 (xt_action_hook): Don't compile if USE_GTK.
10761 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10762 (xg_scroll_callback): New function.
10763 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10764 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10765 for USE_GTK.
10766 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10767 xg_show_scroll_bar for USE_GTK.
10768 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10769 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10770 (event_handler_gdk): New function for USE_GTK.
10771 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10772 (handle_one_xevent): Make sure widget is mapped before
10773 calling x_real_positions for USE_GTK.
10774 (XTread_socket): Add GTK event loop for USE_GTK.
10775 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10776 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10777 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10778 (x_iconify_frame): Add code for USE_GTK.
10779 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10780 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
10781 is in gtkutil.c.
10782 (x_term_init): Add initialization for GTK.
10783 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10784
10785 * xmenu.c: Include gtkutil.h for USE_GTK.
10786 (Fx_popup_menu): Use current position if x and y is NIL.
10787 (single_menu_item, single_menu_item, Fx_popup_dialog):
10788 Check for USE_GTK.
10789 (popup_widget_loop): New function for USE_GTK.
10790 (x_activate_menubar): Add code for USE_GTK.
10791 (popup_activate_callback, popup_deactivate_callback)
10792 (menu_highlight_callback, menubar_selection_callback):
10793 Add USE_GTK versions.
10794 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10795 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10796 (free_frame_menubar): Only compile if not USE_GTK. GTK version
10797 is in gtkutil.c.
10798 (popup_selection_callback): New version for USE_GTK.
10799 (create_and_show_popup_menu): New fuction, one USE_GTK version and
10800 one USE_X_TOOLKIT version.
10801 (xmenu_show): Call create_and_show_popup_menu.
10802 (dialog_selection_callback): New version for USE_GTK.
10803 (create_and_show_dialog): New fuction, one USE_GTK version and
10804 one USE_X_TOOLKIT version.
10805 (xdialog_show): Call create_and_show_dialog.
10806
10807 * xfns.c: Include gtkutil for USE_GTK.
10808 (x_window_to_frame, x_any_window_to_frame)
10809 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10810 (x_top_window_to_frame): Add code for USE_GTK.
10811 (x_set_background_color): Call xg_set_background_color for GTK.
10812 (x_set_menu_bar_lines): Check for USE_GTK.
10813 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10814 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10815 (x_window): Call xg_create_frame_widgets for USE_GTK.
10816 (Fx_create_frame): Check for USE_GTK
10817 (Fx_file_dialog): New implementation for USE_GTK.
10818
10819 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10820 (update_menu_bar): Add check for USE_GTK.
10821 (update_tool_bar): Add check for USE_GTK and external tool bar.
10822 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10823 (redisplay_internal): Add check for USE_GTK and popup_activated.
10824 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10825 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10826 (display_menu_bar): Add check for USE_GTK
10827
10828 * lisp.h (Vx_resource_name): Declare extern.
10829
10830 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
10831 for USE_GTK.
10832 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10833
10834 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
10835 (FRAME_EXTERNAL_TOOL_BAR): New macro.
10836 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10837
10838 * fileio.c (Fread_file_name): Add check for USE_GTK.
10839
10840 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10841 Add check for USE_GTK.
10842
10843 * config.in: Added HAVE_GTK
10844
10845 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10846
10847 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
10848
10849 * charset.h (Funibyte_char_to_multibyte): Export.
10850
10851 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10852
10853 * xmenu.c (mouse_position_for_popup): New function.
10854 (Fx_popup_menu): Call mouse_position_for_popup for X and
10855 mouse_position_hook for others.
10856
10857 2003-01-17 Kim F. Storm <storm@cua.dk>
10858
10859 * editfns.c (Finsert): Mention `string-make-multibyte' and
10860 `string-as-multibyte' in doc string.
10861
10862 2003-01-17 Kenichi Handa <handa@m17n.org>
10863
10864 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
10865
10866 * editfns.c (Fformat): Convert an unibyte char argument that is
10867 formatted by "%c" to multibyte if the total result must be a
10868 multibyte string.
10869
10870 2003-01-16 Kim F. Storm <storm@cua.dk>
10871
10872 * process.c (set-process-filter): Document unibyte/multibyte-ness
10873 of string argument.
10874
10875 2003-01-16 Kenichi Handa <handa@m17n.org>
10876
10877 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
10878
10879 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10880 (re_search_2): Likewise.
10881
10882 2003-01-15 Kenichi Handa <handa@m17n.org>
10883
10884 * xdisp.c (message_dolog): Fix bug of the case that *Message*
10885 buffer is unibyte.
10886
10887 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
10888
10889 * fns.c (Fsubstring): Clarify doc string.
10890
10891 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10892 (Fprevious_char_property_change)
10893 (Fnext_single_char_property_change)
10894 (Fprevious_single_char_property_change, Fnext_property_change)
10895 (Fnext_single_property_change, Fprevious_property_change)
10896 (Fprevious_single_property_change, Fadd_text_properties)
10897 (Fput_text_property, Fset_text_properties)
10898 (Fremove_text_properties, Fremove_list_of_text_properties)
10899 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
10900
10901 2003-01-14 Kim F. Storm <storm@cua.dk>
10902
10903 * process.h (struct Lisp_Process): New member plist replaces old
10904 member private_vars. All uses changed.
10905
10906 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
10907 (QCplist): Rename from QCvars. Change all uses.
10908 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
10909 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
10910 (syms_of_process): Intern, staticpro, defsubr these.
10911 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
10912
10913 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
10914
10915 * m/delta.h: Remove (obsolete).
10916
10917 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
10918
10919 * fileio.c (Fdelete_directory, Fdelete_file): Document the
10920 behaviour in front of symlinks.
10921 (Fdelete_file): Raise an error on directories.
10922
10923 2003-01-13 Dave Love <fx@gnu.org>
10924
10925 * fns.c (Freverse): Use QUIT.
10926
10927 2003-01-13 Richard M. Stallman <rms@gnu.org>
10928
10929 * minibuf.c (minibuffer_completion_contents):
10930 Error if point is inside prompt.
10931
10932 * keyboard.c (command_loop_1): Don't redisplay directly
10933 if there's a post-command-hook.
10934
10935 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10936 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
10937
10938 2003-01-12 Kim F. Storm <storm@cua.dk>
10939
10940 * process.h (struct Lisp_Process): New member private_vars.
10941
10942 * process.c (QCvars): New variable.
10943 (syms_of_process): Intern and staticpro it.
10944 (Fset_process_contact): Removed function.
10945 (Fprocess_variable, Fset_process_variable): New functions.
10946 (syms_of_process): Defsubr them.
10947 (Fstart_process): Initialize private_vars plist to nil.
10948 (Fmake_network_process): New arg :vars to setup the private
10949 variables for new network process.
10950 (server_accept_connection): Copy server's private variables to
10951 client process.
10952
10953 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10954 crashes). Code rewritten and simplified. Now directly aligns the
10955 pointer and recalculates pure_bytes_used, rather than aligning the
10956 size and adjusting the pointer.
10957
10958 2003-01-11 Kim F. Storm <storm@cua.dk>
10959
10960 * process.c (Fset_process_contact): New function.
10961 (syms_of_process): defsubr it.
10962 (make-network-process): Update doc.
10963
10964 2003-01-10 Andreas Schwab <schwab@suse.de>
10965
10966 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10967 Reported by Berthold Gunreben <b.gunreben@web.de>.
10968
10969 2003-01-10 Dave Love <fx@gnu.org>
10970
10971 * composite.c (syms_of_composite): Make composition_hash_table weak.
10972
10973 2003-01-09 Kim F. Storm <storm@cua.dk>
10974
10975 * process.c (Fmake_network_process): Convert new port number
10976 to host byte order for `:service t' case. From Mario Lang.
10977
10978 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10979
10980 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10981 instead of XtAppProcessEvent.
10982
10983 * xterm.c (handle_one_xevent): New function.
10984 (x_dispatch_event): New function.
10985 (XTread_socket): Call handle_one_xevent.
10986
10987 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
10988
10989 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10990 call XQueryPointer to get coordinates.
10991 (popup_get_selection): Do not set popup_activated_flag to zero,
10992 let popup_deactivate_callback do that. Needed for Motif.
10993 Call x_dispatch_event instead of XtDispatchEvent.
10994 (xmenu_show): Calculate root coordinate from frame top/left position.
10995
10996 2003-01-08 Kim F. Storm <storm@cua.dk>
10997
10998 * process.c (server_accept_connection): Fix recording of new
10999 connection's local address in :local property of contact info.
11000 (Fmake_network_process): Record local network address for new
11001 client processes in :local property of contact info.
11002 (format-network-address): Add arg OMIT-PORT. Change callers.
11003
11004 2003-01-07 Dave Love <fx@gnu.org>
11005
11006 * Makefile.in (fns.o): Depend on coding.h.
11007
11008 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
11009
11010 * minibuf.c (Fread_variable): Doc fix.
11011
11012 * eval.c (Fuser_variable_p): Doc change. For custom variables,
11013 use the same test as for custom-variable-p.
11014
11015 2003-01-05 Richard M. Stallman <rms@gnu.org>
11016
11017 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
11018 Count LAST_LINE_MISFIT in scroll margin for end of window.
11019 Move label too_near_end before setting SCROLL_MARGIN_POS.
11020 Set LAST_LINE_MISFIT before jumping there.
11021
11022 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
11023 scroll_conservatively case. If scrolling that much doesn't change
11024 STARTP, move it down one line.
11025
11026 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
11027 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
11028
11029 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
11030 selected frame.
11031
11032 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
11033 (syms_of_keymap): Staticpro them.
11034 (Fapropos_internal): Initialize them and clear them out.
11035 Don't GCPRO them.
11036
11037 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
11038 Doc fixes.
11039
11040 * lisp.h: New misc type Lisp_Save_Value.
11041 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
11042 (XSAVE_VALUE): New macro.
11043 (struct Lisp_Save_Value): New data type.
11044 (union Lisp_Misc): Add u_save_value alternative.
11045 (make_save_value): Declare.
11046
11047 * alloc.c (make_save_value): New function.
11048
11049 * xterm.c (x_catch_errors): Save dpy using make_save_value.
11050 (x_catch_errors_unwind): Call XSync.
11051
11052 2003-01-01 Richard M. Stallman <rms@gnu.org>
11053
11054 * window.c (window_scroll_pixel_based): Partially undo last change.
11055
11056 * keyboard.c (command_loop_1): Call adjust_point_for_property
11057 in direct action cases for Qforward_char and Qbackward_char.
11058 Set already_adjusted so it won't be done twice.
11059
11060 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
11061
11062 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
11063 type definition of size_t.
11064
11065 2003-01-02 Steven Tamm <steventamm@mac.com>
11066
11067 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
11068 distinguish Carbon GUI builds from X11 builds on darwin.
11069
11070 2002-12-30 Steven Tamm <steventamm@mac.com>
11071
11072 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
11073 to default to t.
11074
11075 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
11076
11077 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
11078
11079 2002-12-28 Steven Tamm <steventamm@mac.com>
11080
11081 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
11082 allow building in a different directory than source. Uses some
11083 GNU Make extensions, but there is no other make on Mac OS X.
11084
11085 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
11086
11087 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
11088 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
11089 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
11090 (Fstring_to_number): Mention the returned value in the doc strings.
11091
11092 2002-12-23 Richard M. Stallman <rms@gnu.org>
11093
11094 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
11095 <scroll-down-aggressively>: Doc fix.
11096
11097 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
11098 string as pane name, if there is one.
11099 (set_frame_menubar): Save menu_items_n_panes from each call to
11100 parse_single_submenu and use it when calling digest_single_submenu.
11101
11102 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
11103 Don't try to make last line fully visible if it is past end of window.
11104
11105 2002-12-22 Steven Tamm <steventamm@mac.com>
11106
11107 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
11108 (mac_menu_show): Add support for hierarchical popup menus.
11109 (add_menu_item): Remove indentation support.
11110 (fill_submenu, fill_menu): Create hierarchical menus
11111 instead of using indentation.
11112
11113 2002-12-22 Richard M. Stallman <rms@gnu.org>
11114
11115 * xdisp.c (try_cursor_movement): Don't call try_window here.
11116 (redisplay_window): Never redisplay minibuffer when inactive.
11117
11118 * window.c (select_window_1): Undo 9/21 change.
11119
11120 2002-12-22 Steven Tamm <steventamm@mac.com>
11121
11122 * macterm.c (XTread_socket): Call KeyTranslate for control and
11123 meta to deal correctly shifted non-alpha characters, like C-S-5
11124 being treated like C-%. Does not look for shift key to deal
11125 with masking off control-key with mac-reverse-ctrl-meta.
11126
11127 2002-12-21 Richard M. Stallman <rms@gnu.org>
11128
11129 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
11130 If it is non-nil, run timers. Use an unwind-protect to requeue
11131 the events that were read ahead.
11132 (popup_get_selection_unwind): New subroutine.
11133 (popup_get_selection_queue): File-scope variable now holds that queue.
11134 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
11135 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
11136 Use an unwind-protect to pop down the dialog box.
11137 (xdialog_show_unwind): New subroutine implements that.
11138
11139 * xdisp.c (row_containing_pos): Change exit test using last_y.
11140 (try_window_id): Abort if row_containing_pos returns null.
11141
11142 * lread.c (load_error_handler): New function.
11143 (Fload): Handle errors in Fsubstitute_in_file_name.
11144 Don't expect Fsignal to return.
11145
11146 * eval.c: Errors and throws work right with interrupt blocking.
11147 (struct catchtag): New elt interrupt_input_blocked.
11148 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
11149 (internal_catch, Fcondition_case, internal_condition_case)
11150 (internal_condition_case_1, internal_condition_case_2): Save it.
11151 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
11152
11153 * editfns.c (Fformat): Add parens.
11154
11155 * dired.c (file_name_completion): Fix that change.
11156 Delete special quit-handling code; just use QUIT.
11157
11158 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
11159
11160 * dired.c (file_name_completion): Close directory on error
11161 just as in directory_files_internal.
11162
11163 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
11164
11165 * window.c (Fset_window_configuration): Set old_point to correct
11166 value when new_current_buffer == current_buffer.
11167
11168 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
11169
11170 Revisited my earlier fix for the following entry in etc/PROBLEMS:
11171 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11172 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11173
11174 These changes were in part based upon suggestions made by Peter
11175 'Luna' Runestig [peter@runestig.com].
11176
11177 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
11178 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
11179 (g_b_init_get_sid_identifier_authority ): Add several static
11180 global variables.
11181
11182 * w32.c (globals_of_w32): New function. Used to initialize those
11183 global variables that must always be initialized on startup even
11184 when the global variable initialized is non zero. Its primary
11185 purpose at this time is to set the global variables
11186 g_b_init_is_windows_9x, g_b_init_open_process_token,
11187 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
11188 g_b_init_get_sid_identifier_authority to 0 on startup.
11189 Called from main.
11190
11191 * w32.c (is_windows_9x): Perform initialization only if
11192 g_b_init_is_windows_9x is equal to 0. On initialization set
11193 g_b_init_is_windows_9x equal to 1.
11194
11195 * w32.c (open_process_token): Perform initialization only if
11196 g_b_init_open_process_token is equal to 0. On initialization set
11197 g_b_init_open_process_token equal to 1.
11198
11199 * w32.c (get_token_information): Perform initialization only if
11200 g_b_init_get_token_information is equal to 0. On initialization
11201 set g_b_init_get_token_information equal to 1.
11202
11203 * w32.c (lookup_account_sid): Perform initialization only if
11204 g_b_init_lookup_account_sid is equal to 0. On initialization
11205 set g_b_init_lookup_account_sid equal to 1.
11206
11207 * w32.c (get_sid_identifier_authority): Perform initialization
11208 only if g_b_init_get_sid_identifier_authority is equal to 0.
11209 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
11210
11211 * w32fns.c (globals_of_w32fns): New function. Used to initialize
11212 those global variables that must always be initialized on startup
11213 even when the global variable initialized is non zero.
11214 Its primary purpose at this time is to initialize the global variable
11215 track_mouse_event_fn.
11216
11217 * w32fns.c (w32_wnd_proc): Remove initialization of
11218 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
11219
11220 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
11221
11222 * w32menu.c (globals_of_w32menu): New function. Used to
11223 initialize those global variables that must always be initialized
11224 on startup even when the global variable initialized is non zero.
11225 Its primary purpose at this time is to initialize the global
11226 variables get_menu_item_info and set_menu_item_info.
11227
11228 * w32menu.c (initialize_frame_menubar): Remove initialization of
11229 get_menu_item_info and set_menu_item_info.
11230
11231 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
11232
11233 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
11234 Declare them.
11235
11236 * emacs.c (main): Call globals_of_w32 prior to calling
11237 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
11238 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
11239 is defined.
11240
11241 * w32term.c (x_update_window_begin): Fix Windows API error
11242 detected by BoundsChecker. Test to determine if
11243 w32_system_caret_hwnd is NULL prior to attempting to use
11244 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
11245
11246 * w32term.c (x_update_window_end): Fix Windows API error
11247 detected by BoundsChecker. Test to determine if
11248 w32_system_caret_hwnd is NULL prior to attempting to use
11249 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
11250
11251 2002-12-17 Kenichi Handa <handa@m17n.org>
11252
11253 * coding.c (coding_system_require_warning): New variable.
11254 (syms_of_coding): DEFVAR it.
11255
11256 * coding.h (coding_system_require_warning): Extern it.
11257
11258 * fileio.c (choose_write_coding_system): Even if
11259 Vcoding_system_for_write is non-nil, if
11260 coding_system_require_warning is nonzero, call
11261 Vselect_safe_coding_system_function.
11262
11263 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
11264
11265 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
11266 (lisp): Add font-core.
11267
11268 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
11269
11270 * textprop.c (text_read_only): New arg `propval'.
11271 (get_char_property_and_overlay): Remove unused var `next_overlay'.
11272 (verify_interval_modification): Use text_read_only's new arg.
11273
11274 2002-12-13 Kenichi Handa <handa@m17n.org>
11275
11276 * coding.c (Funencodable_char_position): Set pend correctly.
11277
11278 2002-12-12 Jason Rumney <jasonr@gnu.org>
11279
11280 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
11281 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
11282 Be more careful about when help_events are generated.
11283
11284 2002-12-12 Steven Tamm <steventamm@mac.com>
11285
11286 * macterm.c (mac_check_for_quit_char): Correctly set the
11287 modifiers of the event to 0.
11288 * mac.c (sys_select): Duplicate rfds before calling select to
11289 ensure that rfds survive the while loop.
11290
11291 2002-12-11 Kim F. Storm <storm@cua.dk>
11292
11293 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
11294 row_containing_pos returned NULL.
11295
11296 2002-12-10 Steven Tamm <steventamm@mac.com>
11297
11298 * mac.c (sys_read): Fix sys_read to not call select if IO is
11299 non-blocking.
11300 (sys_select): Fix sys_select to not use a timeout larger than
11301 the one given.
11302
11303 2002-12-10 Juanma Barranquero <lektu@terra.es>
11304
11305 * editfns.c (Fformat): Use alloca, not _alloca.
11306
11307 2002-12-09 Richard M. Stallman <rms@gnu.org>
11308
11309 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
11310 as the last thing.
11311
11312 2002-12-09 Dave Love <fx@gnu.org>
11313
11314 * s/sol2-8.h: Removed. (Not necessary.)
11315
11316 2002-12-09 Matthew Swift <swift@alum.mit.edu>
11317
11318 * editfns.c (Fformat): Handle precision in string conversion
11319 specifiers like libc functions do (ie, print at most that many
11320 characters).
11321
11322 2002-12-08 Richard M. Stallman <rms@gnu.org>
11323
11324 * xdisp.c (row_containing_pos): Check more carefully
11325 whether charpos is really in the row before returning it.
11326
11327 2002-12-07 Steven Tamm <steventamm@mac.com>
11328
11329 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
11330
11331 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
11332 each stack frame. This may change as it could be time consuming.
11333
11334 * macterm.c (mac_check_for_quit_char, quit_char_comp)
11335 (init_quit_char_handler, mac_determine_quit_char_modifiers)
11336 (mac_initialize): Add code to check for pressing of quit_char
11337 in the OS event queue.
11338
11339 * mac.c (sys_select): Call mac_check_for_quit_char every second
11340 while blocking on select.
11341
11342 * mac.c (sys_read): Use sys_select to test for input first
11343 before calling read, to allow C-g to break.
11344
11345 2002-12-07 Richard M. Stallman <rms@gnu.org>
11346
11347 * minibuf.c (Fcompleting_read): Doc fix.
11348
11349 * lread.c (syms_of_lread) <load-history>: Doc fix.
11350
11351 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
11352
11353 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
11354 autoload.
11355
11356 * data.c (Fdefalias): Record in load-history redefining an autoload.
11357
11358 * alloca.c: Undo ifdef change accidentally made on 12-04.
11359
11360 2002-12-06 Francesco Potorti` <pot@gnu.org>
11361
11362 * xfns.c (png_load): Avoid double gamma correction for PNG images.
11363
11364 2002-12-04 Richard M. Stallman <rms@gnu.org>
11365
11366 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
11367
11368 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
11369
11370 * alloca.c: Don't use #error.
11371
11372 2002-12-03 Dave Love <fx@gnu.org>
11373
11374 * buffer.c (Qucs_set_table_for_input): New.
11375 (Fget_buffer_create): Use it.
11376 (Qset_buffer_major_mode_hook): Deleted.
11377 (Fset_buffer_major_mode): Revert previous change.
11378 (init_buffer_once): Intern ucs-set-table-for-input.
11379 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
11380 Add &Qucs_set_table_for_input.
11381
11382 2002-12-03 Andreas Schwab <schwab@suse.de>
11383
11384 * callint.c (Fcall_interactively): Use next_event only if less
11385 than key_count.
11386
11387 2002-12-02 Andrew Choi <akochoi@shaw.ca>
11388
11389 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
11390 names to 255 characters.
11391
11392 * macterm.c (XTread_socket): If all frames have been collapsed,
11393 expand the first one before handling drag-and-drop events.
11394
11395 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
11396 which is detected by autoconf.
11397
11398 2002-12-01 Steven Tamm <steventamm@mac.com>
11399
11400 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
11401 offset in two hints table to allow prebinding to be redone and
11402 allow the executable to be stripped.
11403
11404 2002-11-29 Dave Love <fx@gnu.org>
11405
11406 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
11407 already provided.
11408
11409 2002-11-29 Richard M. Stallman <rms@gnu.org>
11410
11411 * xdisp.c (start_display): Check more intelligently for
11412 whether the line is continued.
11413 (move_it_vertically_backward): Clear it->continuation_lines_width.
11414
11415 2002-11-28 Dave Love <fx@gnu.org>
11416
11417 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
11418 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
11419
11420 2002-11-27 Steven Tamm <steventamm@mac.com>
11421
11422 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
11423 more descriptive error output from lread.c:Fload upon most require
11424 cycles during boostrapping.
11425
11426 2002-11-27 Jason Rumney <jasonr@gnu.org>
11427
11428 * fileio.c (Finsert_file_contents): Give a more appropriate error
11429 for files bigger than 2Gb when off_t is 32 bit.
11430
11431 * dired.c (Ffile_attributes): Don't return negative file sizes for
11432 files bigger than 2Gb when off_t is 32 bit.
11433
11434 2002-11-27 Dave Love <fx@gnu.org>
11435
11436 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11437
11438 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
11439 Test GETPGRP_VOID instead.
11440 [BSD_TERMIOS]: Remove definitions (never used).
11441
11442 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
11443 Don't define.
11444 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11445
11446 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
11447
11448 2002-11-25 Jason Rumney <jasonr@gnu.org>
11449
11450 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
11451 supported.
11452
11453 2002-11-25 Dave Love <fx@gnu.org>
11454
11455 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
11456
11457 * Makefile.in (TEMACS_LDFLAGS): Update last change.
11458
11459 2002-11-25 Andreas Schwab <schwab@suse.de>
11460
11461 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
11462
11463 2002-11-24 Steven Tamm <steventamm@mac.com>
11464
11465 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
11466 determine the size of pointers alloced in unexed space instead
11467 of using possibly invalid emacs_zone pointers. This fixes the
11468 binary incompatibility problems caused by updates to libSystem.B.
11469
11470 2002-11-24 Richard M. Stallman <rms@gnu.org>
11471
11472 * search.c (Fstring_match): Doc fix.
11473
11474 * callint.c (Fcall_interactively): If a command fails because
11475 `*' detects a read-only buffer, but RECORD_FLAG is set,
11476 record it anyway if the args don't actually do tty input.
11477
11478 2002-11-22 Dave Love <fx@gnu.org>
11479
11480 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
11481
11482 * keyboard.c (interrupt_signal): Provide forward declaration.
11483 (kbd_buffer_store_event): Don't declare interrupt_signal.
11484
11485 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
11486
11487 2002-11-21 Richard M. Stallman <rms@gnu.org>
11488
11489 * eval.c (interactive_p): Skip any number of bytecode
11490 and special form frames, in any order.
11491
11492 2002-11-20 Jason Rumney <jasonr@gnu.org>
11493
11494 * w32fns.c (convert_mono_to_color_image): New function.
11495 (xbm_load, xbm_load_image): Use it when foreground or background
11496 is explicitly set.
11497
11498 2002-11-19 Dave Love <fx@gnu.org>
11499
11500 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
11501
11502 2002-11-18 Jason Rumney <jasonr@gnu.org>
11503
11504 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
11505 (XPutPixel): Swap blue and red.
11506 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
11507 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11508 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
11509 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
11510
11511 2002-11-18 Dave Love <fx@gnu.org>
11512
11513 * m/orion105.h (HAVE_ALLOCA): Don't define.
11514
11515 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
11516
11517 * m/intel386.h: Don't include alloca.h or define alloca.
11518
11519 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
11520 malloc, realloc, calloc.
11521
11522 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
11523 (bcmp): Don't define.
11524
11525 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
11526
11527 * m/amdahl.h: Don't define LIB_STANDARD.
11528
11529 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
11530
11531 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
11532
11533 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
11534 Don't include alloca.h.
11535
11536 * s/aix3-2.h (HAVE_FSYNC): Don't define.
11537
11538 * regex.c (_GNU_SOURCE): Don't define.
11539
11540 * process.c (_GNU_SOURCE): Don't define.
11541
11542 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
11543
11544 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
11545
11546 * s/sol2-8.h: Include sol2-6.h.
11547
11548 2002-11-18 Miles Bader <miles@gnu.org>
11549
11550 * dispextern.h (struct face): Add `overstrike' field.
11551 * xterm.c (x_draw_glyph_string_foreground)
11552 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11553 * xfaces.c (load_face_font): Set `face->overstrike' based on
11554 result from choose_face_font.
11555 (best_matching_font, choose_face_font): Add `needs_overstrike'
11556 argument, and use it to return whether overstriking is desirable
11557 for this face/font combo.
11558 (set_font_frame_param: Pass new argument to choose_face_font.
11559
11560 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11561
11562 This change is my fix for the following entry in etc/PROBLEMS:
11563 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11564 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11565
11566 * w32.c: Added wrapper functions around the win32 API functions
11567 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
11568 GetSidIdentifierAuthority. These wrapper functions serve two
11569 purposes:
11570 1. They ensure that the wrapped function can never be called
11571 when Emacs is running on an operating system on which they are
11572 not supported (Microsoft Windows 95 / 98 / ME).
11573 2. They call the wrapped functions via function pointers rather
11574 than calling them directly. This avoids taking advantage of the
11575 undocumented fact that although these functions are not supported
11576 in the 9x branch of Microsoft Windows, the functions do exist in
11577 the version of advapi32.dll that is found in the 9x branch of
11578 Microsoft Windows.
11579
11580 * w32.c (init_user_info): Replace the calls to the win32 API
11581 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
11582 and GetSidIdentifierAuthority with calls to the newly added
11583 wrapper functions.
11584
11585 * w32.h: Added extern declarations for the following functions:
11586 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11587 syms_of_w32menu, and void syms_of_fontset.
11588
11589 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
11590 function pointer track_mouse_event_fn in the handler for the
11591 WM_SETFOCUS message.
11592
11593 * w32menu.c (initialize_frame_menubar): Add code to
11594 reinitialize the function pointers set_menu_item_info and
11595 get_menu_item_info.
11596
11597 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
11598
11599 * sound.c: Added a partial implementation of play-sound-internal
11600 for Microsoft Windows. Added various #ifdef / #else / #endif
11601 code blocks to separate the code that will compile under
11602 Microsoft Windows from the code that is specific to Gnu/Linux.
11603 Moved several blocks of code around to make this separation of code
11604 into Windows compatible and Gnu/Linux compatible code blocks easier.
11605
11606 * makefile.w32-in: Include sound.c and link with WinMM.lib.
11607
11608 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11609 added support for play-sound-internal under Windows would be
11610 included in the build of Emacs.
11611
11612 2002-11-16 Jason Rumney <jasonr@gnu.org>
11613
11614 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
11615
11616 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
11617
11618 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
11619
11620 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11621 (adjust_point_for_property): Move out of display and invisible even if
11622 we were already inside before (in case a property was added while
11623 we weren't looking). Be more careful when handling invisible props.
11624 Skip invisible text as if it really wasn't there at all.
11625
11626 2002-11-15 Jason Rumney <jasonr@gnu.org>
11627
11628 * w32term.c (x_draw_image_foreground)
11629 (w32_draw_image_foreground_1): Use standard copy and invert
11630 operations to draw images.
11631
11632 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11633 depth of 1.
11634 (xbm_read_bitmap_data): Invert bits as xbm is read in.
11635 (XPutPixel): Don't invert bits here.
11636
11637 2002-11-15 Jason Rumney <jasonr@gnu.org>
11638
11639 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11640 (w32_draw_image_foreground_1): Handle image masks.
11641 (x_draw_image_glyph_string): Don't BitBlt transparently.
11642
11643 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11644 (x_from_xcolors): Adjust RGB values for W32.
11645 (image_background, image_background_transparent)
11646 (postprocess_image, x_to_xcolors, x_disable_image)
11647 (x_build_heuristic_mask): Adapt for W32 and enable.
11648 (x_create_x_image_and_pixmap): Mark images with palettes as such.
11649 (xbm_load): Remove unused variable.
11650
11651 2002-11-14 Richard M. Stallman <rms@gnu.org>
11652
11653 * buffer.c (syms_of_buffer): Doc fix.
11654
11655 2002-11-14 Dave Love <fx@gnu.org>
11656
11657 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
11658
11659 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
11660 * xmenu.c (unuse_menu_items, digest_single_submenu):
11661 * xfns.c (x_put_x_image):
11662 * xdisp.c (message2_nolog, set_message):
11663 * undo.c (record_point):
11664 * terminfo.c (tparam):
11665 * syntax.c (scan_sexps_forward):
11666 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11667 * composite.c (update_compositions):
11668 * cm.c (calccost, cmgoto):
11669 * charset.c (c_string_width): Declare all args (per C99).
11670
11671 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
11672
11673 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
11674 Don't declare.
11675
11676 * emacs.c (main) [!VMS]: Avoid third arg.
11677
11678 * fns.c (Fcopy_sequence): Doc fix.
11679 (Fmap_char_table): Cast `call2'.
11680
11681 2002-11-14 Francesco Potorti` <pot@gnu.org>
11682
11683 * s/sol2-8.h: New file.
11684
11685 2002-11-14 Kim F. Storm <storm@cua.dk>
11686
11687 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
11688 dependency on `risky-local-variable' and the :propertize form.
11689
11690 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
11691
11692 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
11693
11694 * syntax.c (scan_sexps_forward): Undo last patch.
11695 Use a more obvious fix: check eob before updating the syntax table.
11696
11697 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
11698
11699 * syntax.c (scan_sexps_forward): Update syntax table before reading
11700 a char rather than after so we don't update the table past eob.
11701
11702 2002-11-09 Dave Love <fx@gnu.org>
11703
11704 * buffer.c (Fset_buffer_major_mode): Fix last change.
11705
11706 * regex.c (regexec): Fix pmatch declaration.
11707
11708 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
11709
11710 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
11711 to self-inserting characters.
11712 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
11713
11714 * coding.c (Vtranslation_table_for_input): New.
11715 (syms_of_coding): DEFVAR it.
11716
11717 2002-11-08 Juanma Barranquero <lektu@terra.es>
11718
11719 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
11720 window.
11721
11722 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11723
11724 * process.c (Fformat_network_address): Remove unused locals p,
11725 cp, and i.
11726
11727 2002-11-06 Dave Love <fx@gnu.org>
11728
11729 * buffer.c (Qset_buffer_major_mode_hook): New.
11730 (Fset_buffer_major_mode): Use it.
11731
11732 2002-11-06 Richard M. Stallman <rms@gnu.org>
11733
11734 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
11735 and stop_polling.
11736
11737 * process.c (wait_reading_process_input):
11738 Test POLLING_PROBLEM_IN_SELECT, not hpux.
11739 Avoid initialization for auto Lisp_Object var.
11740
11741 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
11742
11743 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
11744
11745 2002-11-05 Richard M. Stallman <rms@gnu.org>
11746
11747 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
11748
11749 * callint.c (Fcall_interactively): New local filter_specs.
11750 (Fcall_interactively): Check for progn as well as let.
11751 Add a gcpro.
11752 (Qprogn): New variable.
11753 (syms_of_callint): Staticpro and init Qprogn.
11754
11755 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
11756
11757 * lread.c (Feval_buffer): Doc fix.
11758
11759 2002-11-04 Dave Love <fx@gnu.org>
11760
11761 * keyboard.c (read_char): Always translate iff
11762 Vkeyboard_translate_table is a char table and c is valid.
11763
11764 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11765 and fix C types.
11766
11767 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
11768
11769 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11770
11771 * editfns.c (get_pos_property): Don't hardcode Qfield.
11772
11773 * keyboard.c (adjust_point_for_property): Handle `display' prop on
11774 overlays. Also handle `invisible' prop.
11775
11776 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
11777
11778 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11779 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11780
11781 2002-11-01 Andreas Schwab <schwab@suse.de>
11782
11783 * editfns.c (Fmessage): Revert last change to properly handle %%.
11784
11785 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
11786
11787 * xmenu.c (unuse_menu_items): New fun.
11788 (menu_items_inuse): New var.
11789 (syms_of_xmenu): Initialize it.
11790 (init_menu_items): Use it to detect re-entrance.
11791 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11792 (Fx_popup_menu): Remove spurious XSETFRAME.
11793
11794 * editfns.c (find_field): Make an exception for nil fields.
11795
11796 2002-11-01 Dave Love <fx@gnu.org>
11797
11798 * m/gec63.h: Deleted.
11799
11800 2002-10-31 Dave Love <fx@gnu.org>
11801
11802 * xterm.c (XTread_socket): Fix last change.
11803 (xaw_scroll_callback): Cast call_data to long to avoid warning.
11804
11805 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
11806
11807 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11808
11809 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
11810
11811 * editfns.c (overlays_around, get_pos_property): New funs.
11812 (find_field): Use them.
11813 Also be careful not to modify POS before its last use.
11814 (Fmessage): Don't Fformat if there's nothing to format.
11815
11816 2002-10-30 Dave Love <fx@gnu.org>
11817
11818 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11819 [HAVE_PTY_H]; Include pty.h.
11820
11821 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11822
11823 * xterm.c (Qeql): Declare.
11824 (Vx_keysym_table): New.
11825 (syms_of_xterm): Initialize it.
11826 (XTread_socket): Use it. Deal with ASCII keysyms.
11827 (XSetIMValues) [HAVE_X11R6]: Prototype.
11828
11829 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11830 (lispy_kana_keys): Comment out.
11831 (make_lispy_event) [XK_kana_A]: Comment out.
11832 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11833 Fix sprintf call.
11834
11835 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11836 regexp.h change).
11837 (TERMINFO, LIBS_TERMCAP): Define.
11838
11839 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11840 (bcmp): Define conditional on HAVE_BCMP.
11841 (NO_SIOCTL_H): Don't define.
11842 (TIOCSIGSEND): Don't make conditional on IRIX6.
11843
11844 * s/sol2-5.h: Don't include strings.h.
11845 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11846
11847 * s/irix6-0.h (IRIX6): Don't define.
11848 (bcopy, bcmp, bzero): Don't undef.
11849
11850 * s/irix6-5.h: Don't include strings.h.
11851 (IRIX6): Don't define.
11852 (bcopy, bcmp, bzero): Don't undef.
11853
11854 * syntax.c (Fforward_comment): Doc fix.
11855
11856 2002-10-29 Kim F. Storm <storm@cua.dk>
11857
11858 * process.c (Fsignal_process): Allow PROCESS to be specified by
11859 name in addition to pid (as integer or string).
11860
11861 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
11862
11863 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11864 environments.
11865
11866 2002-10-27 Kim F. Storm <storm@cua.dk>
11867
11868 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11869
11870 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11871
11872 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11873
11874 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11875
11876 2002-10-26 Richard M. Stallman <rms@gnu.org>
11877
11878 * editfns.c (Fformat): Detect invalid format letters for floats.
11879
11880 2002-10-25 Kenichi Handa <handa@m17n.org>
11881
11882 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11883 (x_set_title): Likewise.
11884
11885 2002-10-25 Juanma Barranquero <lektu@terra.es>
11886
11887 * macgui.h:
11888 * w32gui.h: Remove definition of XColor.
11889
11890 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11891
11892 2002-10-24 Kim F. Storm <storm@cua.dk>
11893
11894 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11895 Callers changed (supply dummy arg).
11896
11897 * lisp.h (get_window_cursor_type): Update prototype.
11898
11899 * w32term.c (x_display_and_set_cursor): Get active_cursor from
11900 get_window_cursor_type to track system caret.
11901
11902 2002-10-24 Kim F. Storm <storm@cua.dk>
11903
11904 * process.c (Fformat_network_address): New function.
11905 (syms_of_process): Defsubr it.
11906 (list_processes_1): Use it to format :local/:remote address if
11907 service/host is not set; before Emacs would crash in that case.
11908 (Fmake_network_process): Don't use Ffind_operation_coding_system
11909 to setup coding system if host or service is not set.
11910
11911 2002-10-23 Juanma Barranquero <lektu@terra.es>
11912
11913 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11914
11915 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11916 COLORREF.
11917
11918 * macgui.h:
11919 * w32gui.h: Add definition of XColor.
11920
11921 * macfns.c:
11922 * w32fns.c:
11923 * xfaces.c: Remove definition of XColor.
11924
11925 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
11926
11927 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11928
11929 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11930 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
11931 window if it is dedicated.
11932 (Fshrink_window): Add preserve_before as was done for enlarge_window.
11933 (Vspecial_display_function): Update docstring.
11934
11935 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11936 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11937 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11938
11939 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
11940
11941 * casefiddle.c (casify_region): Don't treat a prefix char as part
11942 of a word when at the beginning.
11943
11944 2002-10-17 Juanma Barranquero <lektu@terra.es>
11945
11946 * lread.c (syms_of_lread): Fix typos.
11947
11948 2002-10-17 Dave Love <fx@gnu.org>
11949
11950 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11951
11952 2002-10-16 Richard M. Stallman <rms@gnu.org>
11953
11954 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11955
11956 2002-10-14 Juanma Barranquero <lektu@terra.es>
11957
11958 * w16select.c (syms_of_win16select): Fix docstring for
11959 `selection-coding-system'.
11960
11961 * w32select.c (syms_of_w32select): Likewise.
11962
11963 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
11964
11965 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11966 a backslash-quoted char.
11967 (scan_lists, scan_sexps_forward): Pacify the compiler.
11968
11969 2002-10-13 Richard M. Stallman <rms@gnu.org>
11970
11971 * window.c (window_scroll): Set immediate_quit.
11972
11973 * print.c (print): When backquote form is the car of a list,
11974 output in old style. Use old_backquote_output to output all
11975 comma forms inside it in old style too.
11976
11977 * buffer.h (struct buffer): Move `undo_list' down below `name'.
11978
11979 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
11980
11981 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11982 batch mode).
11983
11984 * lread.c (Fload): Doc fix (load-suffixes).
11985
11986 2002-10-10 Steven Tamm <steventamm@mac.com>
11987
11988 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11989 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11990 Also switch the default to Qnil from Qt.
11991
11992 2002-10-08 Kenichi Handa <handa@m17n.org>
11993
11994 * coding.c (code_convert_region): When we need more GAP for
11995 conversion, pay attention to the case that coding->produced is not
11996 greater than coding->consumed.
11997
11998 2002-10-07 Richard M. Stallman <rms@gnu.org>
11999
12000 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
12001
12002 2002-10-06 Andrew Choi <akochoi@shaw.ca>
12003
12004 * macmenu.c (mac_menu_show): Add j to count menu items; match
12005 menu_item_selection to it to find selected item.
12006
12007 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12008
12009 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
12010 cases. The correct fix is to pass ReparentNotify to Xt.
12011 The shell widget interprets ConfigureNotify differently depending
12012 on if it has been reparented or not.
12013
12014 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
12015
12016 * editfns.c (Fformat_time_string): Doc fix.
12017
12018 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
12019
12020 * fns.c (Flength): Doc fix.
12021
12022 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
12023
12024 * keyboard.c (keyremap): New struct.
12025 (read_key_sequence): Use it: globally replace keytran_foo with
12026 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
12027 keytran_next and fkey_next to just `next'.
12028
12029 2002-10-04 Steven Tamm <steventamm@mac.com>
12030
12031 * macterm.c (keycode_to_xkeysym_table): Change return to be
12032 treated like an X keysym.
12033
12034 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12035
12036 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
12037 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
12038 This is to also handle x/y changes that occur because of a resize.
12039
12040 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
12041
12042 * frame.c (Vdelete_frame_functions): New variable.
12043 (syms_of_frame): Initialize and defvar it.
12044 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
12045 it when frame's `tooltip' parameter is non-nil.
12046
12047 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
12048
12049 * w32fns.c (x_create_tip_frame): Likewise.
12050
12051 * macfns.c (x_create_tip_frame): Likewise.
12052
12053 2002-09-30 Kenichi Handa <handa@m17n.org>
12054
12055 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
12056 -1 before calling ccl_driver.
12057
12058 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
12059 Only when it is non-nil, handle composition sequence.
12060 (setup_coding_system) <0>: Don't force composition handling.
12061
12062 * Makefile.in (lisp, shortlisp): Add utf-16.elc
12063
12064 2002-09-29 Richard M. Stallman <rms@gnu.org>
12065
12066 * search.c (Freplace_match): Adjust match data for the substitution
12067 just made in the buffer.
12068
12069 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
12070 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
12071
12072 2002-09-27 Richard M. Stallman <rms@gnu.org>
12073
12074 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
12075 (read_char): Use them. Do all exits thru the end of the function.
12076
12077 2002-09-27 Kenichi Handa <handa@etl.go.jp>
12078
12079 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
12080 is nil.
12081
12082 2002-09-26 Richard M. Stallman <rms@gnu.org>
12083
12084 * regex.h (__restrict_arr): Don't define if already defined.
12085
12086 * coding.c (run_pre_post_conversion_on_str):
12087 Save and restore Vdeactivate_mark.
12088
12089 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
12090
12091 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
12092
12093 2002-09-26 Kenichi Handa <handa@etl.go.jp>
12094
12095 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
12096 nonzero, try face's family at first. Otherwise try FAMILY at first.
12097 (choose_face_font): If C is a single byte char or latin-1, call
12098 try_font_list with PREFER_FACE_FAMILY 1.
12099
12100 2002-09-21 Richard M. Stallman <rms@gnu.org>
12101
12102 * window.c (select_window_1): Don't select frame.
12103 Set frame's selected window only when frame itself is selected.
12104 (Fselect_window): Doc fix.
12105
12106 2002-09-18 Kim F. Storm <storm@cua.dk>
12107
12108 * process.c (make-network-process): Doc fix (there is no
12109 network-server-log-function hook).
12110
12111 2002-09-18 Richard M. Stallman <rms@gnu.org>
12112
12113 * print.c (print): Clear out the unused parts of Vprint_number_table.
12114 (syms_of_print): Doc fix for `print-number-table'.
12115
12116 * unexelf.c (unexec): Undo previous change.
12117
12118 2002-09-17 Andreas Schwab <schwab@suse.de>
12119
12120 * m/alpha.h [LINUX]: Don't define DATA_START.
12121
12122 2002-09-16 Dave Love <fx@gnu.org>
12123
12124 * unexelf.c (unexec): Deal with .got, reinstating change from
12125 25-08-1999.
12126
12127 2002-09-13 Richard M. Stallman <rms@gnu.org>
12128
12129 * s/sol2-6.h (UNEXEC): Comment out definition.
12130
12131 * unexsol.c (unexec): Don't downcase first letter of error msg.
12132
12133 * xfaces.c (Fcolor_supported_p): Just one arg is required.
12134
12135 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
12136
12137 * unexsol.c: Include buffer.h, charset.h, coding.h.
12138
12139 2002-09-11 Richard M. Stallman <rms@gnu.org>
12140
12141 * unexsol.c: Don't use report_file_error; do it by hand
12142 using dlerror.
12143
12144 * process.c (wait_reading_process_input, both versions):
12145 Before calling turn_on_atimers, call stop_polling.
12146
12147 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
12148
12149 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
12150 we go to too_near_end, call clear_glyph_matrix.
12151 (redisplay_window): After make_cursor_line_fully_visible,
12152 call clear_glyph_matrix and bypass `goto done'.
12153
12154 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
12155 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
12156
12157 2002-09-10 Richard M. Stallman <rms@gnu.org>
12158
12159 * fileio.c (Fdo_auto_save): Catch error making directory.
12160 Only call push_message if we need to.
12161 At the same time, make an unwind-protect to pop it.
12162 Rename local message_p to old_message_p.
12163 (do_auto_save_make_dir, do_auto_save_eh): New functions.
12164 (do_auto_save_unwind): Don't call pop_message.
12165
12166 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
12167
12168 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
12169
12170 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
12171
12172 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
12173
12174 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
12175
12176 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
12177 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
12178 (re_match_2_internal): Be more careful with infinite loops.
12179
12180 2002-09-10 Kim F. Storm <storm@cua.dk>
12181
12182 * macros.c (end_kbd_macro): New function.
12183 (Fend_kbd_macro): Use it.
12184
12185 * macros.h (end_kbd_macro): Declare extern.
12186
12187 * keyboard.c (Fdiscard_input): If defining keyboard macro,
12188 end and save it instead of discarding it.
12189
12190 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
12191
12192 * s/sol2-6.h: Fix typo. Add comment.
12193
12194 2002-09-09 Richard M. Stallman <rms@gnu.org>
12195
12196 * regex.c (regnum_t): Use signed int, not unsigned int.
12197
12198 * s/sol2-6.h: New file.
12199
12200 * s/sol2-5.h (UNEXEC): Definition deleted.
12201
12202 2002-09-08 Kim F. Storm <storm@cua.dk>
12203
12204 * macros.c (executing_macro_index): Change type to EMACS_INT.
12205 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
12206
12207 * macros.h (executing_macro_index): Change type to EMACS_INT.
12208
12209 2002-09-06 Richard M. Stallman <rms@gnu.org>
12210
12211 * casetab.c (set_case_table): Make canon table point to eqv table.
12212
12213 2002-09-06 Juanma Barranquero <lektu@terra.es>
12214
12215 * coding.c (syms_of_coding): Fix spacing.
12216
12217 * composite.c (Fcompose_region_internal)
12218 (Fcompose_string_internal): Likewise.
12219
12220 * data.c (Flsh): Likewise.
12221
12222 * fontset.c (Fset_fontset_font): Likewise.
12223
12224 * macfns.c (Fx_server_max_request_size): Likewise.
12225
12226 * w16select.c (syms_of_win16select): Likewise.
12227
12228 * w32select.c (syms_of_w32select): Likewise.
12229
12230 * xselect.c (syms_of_xselect): Likewise.
12231
12232 2002-09-05 Richard M. Stallman <rms@gnu.org>
12233
12234 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
12235 call EXTEND_RANGE_TABLE and return a proper value.
12236 (set_image_of_range): Don't call set_image_of_range_1
12237 if no TRANSLATE or if range includes all of Latin-1.
12238 Only call it for the Latin-1 part of the range.
12239 For other cases, make two separate ranges,
12240 one for the original specified characters and one for
12241 their case-conversions.
12242
12243 2002-09-04 Richard M. Stallman <rms@gnu.org>
12244
12245 * s/sol2-5.h (UNEXEC): Use unexsol.o.
12246
12247 * window.c (displayed_window_lines): Correct for one-off bug
12248 in HEIGHT on non-window displays.
12249
12250 * regex.c (set_image_of_range_1): New function.
12251 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
12252 Return a value to indicate running out of memory.
12253 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
12254 (extend_range_table_work_area): New subroutine.
12255 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
12256 Different calling conventions, and used from set_image_of_range{,_1}.
12257 (IMMEDIATE_QUIT_CHECK): Definitions moved.
12258
12259 2002-09-04 Juanma Barranquero <lektu@terra.es>
12260
12261 * makefile.w32-in: All dependencies updated.
12262
12263 2002-09-01 Richard M. Stallman <rms@gnu.org>
12264
12265 * unexsol.c: New file.
12266
12267 * xfns.c (Qbox): Declare external, don't define.
12268
12269 * xdisp.c (redisplay_window) <force-start case>:
12270 If point is on semi-visible last line, reposition
12271 it at previous line.
12272
12273 * alloc.c (display_malloc_warning): Use display-warning.
12274 (malloc_warning_1): Function deleted.
12275
12276 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
12277
12278 * lread.c (read1): Handle #! by skipping the line.
12279
12280 2002-08-31 Richard M. Stallman <rms@gnu.org>
12281
12282 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
12283 Don't include LDFLAGS.
12284 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
12285
12286 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
12287
12288 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
12289 member of x_display_info unless we compile for some window system.
12290
12291 2002-08-31 Kim F. Storm <storm@cua.dk>
12292
12293 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
12294 (get_window_cursor_type): Don't use them.
12295 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
12296
12297 2002-08-30 Kenichi Handa <handa@etl.go.jp>
12298
12299 * xdisp.c (get_next_display_element): Fix previous change.
12300
12301 2002-08-30 Andrew Choi <akochoi@shaw.ca>
12302
12303 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
12304 (expose_window): Use it to fix the display of overlapping
12305 rows (merge code from xterm.c).
12306
12307 * macfns.c (Qbox): Add extern declaration.
12308
12309 2002-08-30 Juanma Barranquero <lektu@terra.es>
12310
12311 * w32fns.c (Qbox): Make extern.
12312 (syms_of_w32fns): Remove initialization of Qbox.
12313
12314 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
12315
12316 * xfns.c (Fx_open_connection): Fix error message.
12317
12318 2002-08-30 Kim F. Storm <storm@cua.dk>
12319
12320 The following changes consolidates the handling of the cursor
12321 type in xdisp.c, moving duplicate code and functionality from
12322 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
12323
12324 * frame.h (enum text_cursor_kinds): Consolidated here.
12325 Added DEFAULT_CURSOR value.
12326 (struct frame) <desired_cursor, cursor_width>
12327 <blink_off_cursor, blink_off_cursor_width>: New fields.
12328 Consolidated from output_x, output_w32 and output_mac structs.
12329 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12330 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
12331
12332 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
12333 Variables consolidated here.
12334 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
12335 (Vcursor_in_non_selected_windows): Renamed from
12336 cursor_in_non_selected_windows and changed to Lisp_Object.
12337 (syms_of_xdisp): Define and staticpro new and moved variables.
12338 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
12339 consolidated here. Recognize Qhollow setting.
12340 (set_frame_cursor_types): New function to set frame cursor types
12341 based on the frame parameters.
12342 (get_window_cursor_type): New function to calculate new cursor
12343 type and width for the specified window. Based on duplicated
12344 code consolidated here.
12345 Enhancements: cursor-in-non-selected-windows may be a cursor type,
12346 check buffer-local alternate-cursor-type and blink-cursor-alist
12347 before using built-in blink off methods.
12348
12349 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
12350
12351 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
12352 (get_specified_cursor_type, get_window_cursor_type)
12353 (set_frame_cursor_types): Added prototypes.
12354
12355 * macfns.c (x_specified_cursor_type): Removed.
12356 (x_set_cursor_type): Use set_frame_cursor_types.
12357 (Qbar, Qbox): Removed.
12358 (syms_of_macfns): Don't intern or staticpro them.
12359
12360 * macterm.c (x_specified_cursor_type): Remove prototype.
12361 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12362 (x_display_and_set_cursor): Use get_window_cursor_type.
12363 Remove unused local variables cursor_non_selected, active_cursor.
12364 Redraw cursor if hbar cursor width changes.
12365 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
12366
12367 * macterm.h (enum text_cursor_kinds): Removed.
12368 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
12369 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12370 (FRAME_DESIRED_CURSOR): Macro removed.
12371
12372 * w32fns.c (Vblink_cursor_alist): Removed.
12373 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12374 (syms_of_w32fns): Don't intern, staticpro, or define them.
12375 (x_specified_cursor_type): Removed.
12376 (x_set_cursor_type): Use set_frame_cursor_types.
12377
12378 * w32term.c (x_specified_cursor_type): Remove prototype.
12379 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12380 (x_display_and_set_cursor): Use get_window_cursor_type.
12381 Remove unused local variables cursor_off_state.
12382 Redraw cursor if hbar cursor width changes.
12383 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
12384
12385 * w32term.h (enum text_cursor_kinds): Removed.
12386 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
12387 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12388 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12389 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12390 (struct w32_display_info) <x_highlight_frame>: Renamed member from
12391 w32_highlight_frame.
12392
12393 * xfns.c (Vblink_cursor_alist): Removed.
12394 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12395 (syms_of_xfns): Don't intern, staticpro, or define them.
12396 (x_specified_cursor_type): Removed.
12397 (x_set_cursor_type): Use set_frame_cursor_types.
12398
12399 * xterm.c (x_specified_cursor_type): Remove prototype.
12400 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12401 (x_display_and_set_cursor): Use get_window_cursor_type.
12402 Remove unused local variables cursor_off_state.
12403 Redraw cursor if hbar cursor width changes.
12404
12405 * xterm.h (enum text_cursor_kinds): Removed.
12406 (struct output_x) <current_cursor, desired_cursor, cursor_width>
12407 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12408 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12409 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12410 (x_specified_cursor_type): Remove prototype.
12411
12412 2002-08-28 Richard M. Stallman <rms@gnu.org>
12413
12414 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12415 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12416 (Vblink_cursor_alist): New variable.
12417 (syms_of_w32fns): Initialize and defvar it.
12418 (x_specified_cursor_type): Recognize Qbox for filled box.
12419 Exceptions are hollow boxes.
12420 (Qbox, Qhollow): New variables.
12421 (syms_of_w32fns): Initialize and staticpro them.
12422
12423 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12424 New macros.
12425 (struct w32_output): New fields blink_off_cursor,
12426 blink_off_cursor_width.
12427 (FRAME_CURSOR_WIDTH): New macro.
12428
12429 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12430 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12431
12432 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12433 for bar cursor.
12434
12435 * w32term.c (expose_overlaps): New function.
12436 (expose_window): Use it to fix the display of overlapping rows.
12437
12438 2002-08-28 Simon Josefsson <jas@extundo.com>
12439
12440 * xfns.c (Fx_open_connection): Improve help when X connection
12441 fails, xhost is insecure and xauth is better.
12442
12443 2002-08-28 Juanma Barranquero <lektu@terra.es>
12444
12445 * makefile.w32-in: Add missing dependencies on w32term.h and
12446 composite.h.
12447
12448 * emacs.c (USAGE1): Add missing newline.
12449
12450 2002-08-27 Andrew Choi <akochoi@shaw.ca>
12451
12452 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
12453
12454 2002-08-27 Richard M. Stallman <rms@gnu.org>
12455
12456 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12457 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12458 (Vblink_cursor_alist): New variable.
12459 (syms_of_xfns): Initialize and defvar it.
12460 (x_specified_cursor_type): Recognize Qbox for filled box.
12461 Exceptions are hollow boxes.
12462 (Qbox, Qhollow): New variables.
12463 (syms_of_xfns): Initialize and staticpro them.
12464
12465 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12466 New macros.
12467 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
12468
12469 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12470 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12471
12472 * emacs.c (main): Handle --script.
12473 (USAGE1): Mention --script.
12474 (standard_args): Define sort order for --script.
12475
12476 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
12477
12478 * xdisp.c (redisplay_updating_p): Variable removed.
12479 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
12480 New variables.
12481 (init_iterator): Don't free realized faces if
12482 inhibit_free_realized_faces is set.
12483 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
12484 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
12485 initialize Qinhibit_free_realized_faces.
12486
12487 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
12488 when iterator is adding glyphs to a glyph matrix.
12489
12490 2002-08-27 Kenichi Handa <handa@etl.go.jp>
12491
12492 * xdisp.c (get_next_display_element): In unibyte case, don't use
12493 octal form for such eight-bit characters that can be converted to
12494 multibyte char.
12495
12496 2002-08-26 Kim F. Storm <storm@cua.dk>
12497
12498 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
12499 foreground and background colors. From Joe Buehler.
12500
12501 2002-08-26 Miles Bader <miles@gnu.org>
12502
12503 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
12504
12505 2002-08-25 Andrew Choi <akochoi@shaw.ca>
12506
12507 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
12508 defined instead of MAC_OSX.
12509
12510 * s/darwin.h (select): Define select to sys_select only if
12511 HAVE_CARBON is defined.
12512 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
12513 (DONT_REOPEN_PTY): #def it.
12514
12515 * macterm.c (XTread_socket): Remove code to call
12516 SendEventToEventTarget for keys with command modifiers when
12517 mac_command_key_is_meta is nil.
12518
12519 2002-08-24 Andreas Schwab <schwab@suse.de>
12520
12521 * eval.c (Fdefvar): Fix last change.
12522
12523 2002-08-23 Richard M. Stallman <rms@gnu.org>
12524
12525 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
12526 Record variables in load history as (defvar . VAR).
12527 (Fdefvar): Don't record in load history if no initial value.
12528 (Qdefvar): New variable.
12529 (syms_of_eval): Init and staticpro it.
12530
12531 * lread.c (syms_of_lread): Doc fix.
12532 (build_load_history): Use Fmember to see if a definition
12533 is already in the Vload_history element.
12534
12535 * process.c (Fstart_process): Remove /: from program name.
12536
12537 * emacs.c (decode_env_path): Don't add /: if file name handler
12538 has a `safe-magic' property.
12539
12540 * callproc.c (Fcall_process): Remove /: from program name.
12541
12542 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
12543
12544 * regex.c (PATFETCH): Remove the translating fetch.
12545 (PATFETCH_RAW): Rename to PATFETCH.
12546 (set_image_of_range): New fun.
12547 (SET_RANGE_TABLE_WORK_AREA): Use it.
12548 (regex_compile): Don't translate the pattern chars so eagerly.
12549 Only do it when inserting an `exactn' bytecode or when handling
12550 a char-range.
12551 (mutually_exclusive_p): Avoid empty statement.
12552
12553 2002-08-22 Kim F. Storm <storm@cua.dk>
12554
12555 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
12556 end up on a partially visible line; this reverts a specific part
12557 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
12558 display error which has been reported several times now.
12559 However it introduces the problem that changes was supposed to fix.
12560 See my comments in the source if you want to debug this further.
12561
12562 2002-08-20 Kenichi Handa <handa@etl.go.jp>
12563
12564 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12565
12566 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
12567
12568 * msdos.c (croak): Add `void' to definition.
12569
12570 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
12571 Don't define them, they are defined in msdos.c.
12572
12573 * mem-limits.h [MSDOS]: Declare etext.
12574
12575 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
12576 `const' since CORRECT_DIR_SEPS modifies its target.
12577
12578 2002-08-19 Kim F. Storm <storm@cua.dk>
12579
12580 * keyboard.c (Fclear_this_command_keys): Add optional arg
12581 KEEP-RECORD to avoid clearing lossage when we just want to clear
12582 the current key sequence (kmacro needs this).
12583
12584 2002-08-19 Kenichi Handa <handa@localhost>
12585
12586 * composite.c (run_composition_function): Call FUNC if it is fboundp.
12587
12588 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12589 cons, return Qnil.
12590
12591 2002-08-17 Richard M. Stallman <rms@gnu.org>
12592
12593 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12594
12595 * sysdep.c [!VMS]: Include sys/files.h.
12596
12597 * editfns.c (save_restriction_restore): Defend from unchained marker.
12598
12599 * buffer.c (overlays_at): Handle extending vec uniformly.
12600 (overlays_in): Handle extending vec from length 0 as in overlays_at.
12601
12602 2002-08-15 Andrew Choi <akochoi@shaw.ca>
12603
12604 * mac.c (init_mac_osx_environment): New function.
12605
12606 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12607
12608 2002-08-14 Kim F. Storm <storm@cua.dk>
12609
12610 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12611 executing macro before appending to it (when used from Lisp).
12612 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12613 which is called prior to each iteration of macro (for kmacro.el).
12614 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12615
12616 * lisp.h (Fexecute_kbd_macro): Update prototype.
12617
12618 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12619
12620 2002-08-14 Kenichi Handa <handa@etl.go.jp>
12621
12622 * xselect.c (QUTF8_STRING): New variable.
12623 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12624 (x_atom_to_symbol): Likewise.
12625 (x_get_local_selection): New argument local_request. If it is
12626 nonzero, call handler_fn with the second arg nil.
12627 (x_handle_selection_request): Call x_get_local_selection with
12628 local_request 0.
12629 (lisp_data_to_selection_data): Don't encode the string here.
12630 (Fx_get_selection_internal): Call x_get_local_selection with
12631 local_request 1.
12632 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12633
12634 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12635
12636 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12637
12638 2002-08-13 Richard M. Stallman <rms@gnu.org>
12639
12640 * minibuf.c (Fminibufferp): New function.
12641 (syms_of_minibuf): Defsubr it.
12642 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12643
12644 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
12645
12646 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12647
12648 2002-08-12 Richard M. Stallman <rms@gnu.org>
12649
12650 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12651 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12652 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
12653 already.
12654
12655 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
12656
12657 2002-08-11 Andrew Choi <akochoi@shaw.ca>
12658
12659 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
12660 (Vmac_pass_command_to_system): New variable.
12661 (Vmac_pass_control_to_system): New variable.
12662 (do_mouse_moved): Check wp with is_emacs_window.
12663 (XTread_socket): Check window_ptr with is_emacs_window.
12664 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
12665 events back to Mac Toolbox for processing, depending on values of
12666 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
12667 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
12668 Vmac_pass_control_to_system.
12669
12670 2002-08-10 Kenichi Handa <handa@etl.go.jp>
12671
12672 * coding.c (unencodable_char_position): New function.
12673 (Funencodable_char_position): New function.
12674 (syms_of_coding): Defsubr Funencodable_char_position.
12675
12676 2002-08-10 Andrew Choi <akochoi@shaw.ca>
12677
12678 * mac.c (sys_select) [MAC_OSX]: New function.
12679
12680 * macterm.c (MakeMeTheFrontProcess): New function.
12681 (mac_initialize): Call MakeMeTheFrontProcess.
12682
12683 * s/darwin.h: Define select to sys_select.
12684
12685 2002-08-09 Richard M. Stallman <rms@gnu.org>
12686
12687 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
12688
12689 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
12690
12691 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
12692 end of the buffer.
12693
12694 2002-08-08 Ken Raeburn <raeburn@mit.edu>
12695
12696 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
12697
12698 * puresize.h (BASE_PURESIZE): Increase to 910000.
12699
12700 2002-08-08 Kenichi Handa <handa@etl.go.jp>
12701
12702 * coding.c (Ffind_operation_coding_system): For write-region, if
12703 VISIT is a filename, make it the target.
12704
12705 2002-08-07 Richard M. Stallman <rms@gnu.org>
12706
12707 * alloc.c (mark_object): Detect long lists for debugging.
12708 (mark_object_loop_halt): New variable.
12709
12710 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
12711
12712 * data.c (Fmake_variable_frame_local): Doc fix.
12713
12714 2002-08-01 David Ponce <david@dponce.com>
12715
12716 * w32menu.c (local_heap, local_alloc, local_free): New macros.
12717 (malloc_widget_value, free_widget_value)
12718 (w32_free_submenu_strings): Use them.
12719
12720 (push_submenu_start, push_submenu_end, push_left_right_boundary)
12721 (push_menu_pane, push_menu_item, single_keymap_panes)
12722 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
12723 (single_submenu, set_frame_menubar)
12724 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
12725
12726 (Fx_popup_menu): Don't show pop up menu until preceding one is
12727 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
12728
12729 * w32menu.c: Changes adapted from xmenu.c
12730 (set_frame_menubar): First parse all submenus,
12731 then make widget_value trees from them.
12732 Don't allocate any widget_value objects
12733 until we are done with the parsing.
12734 (parse_single_submenu): New function.
12735 (digest_single_submenu): New function.
12736 (single_submenu): Function deleted, replaced by those two.
12737
12738 2002-08-04 Andrew Choi <akochoi@shaw.ca>
12739
12740 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
12741 returns a valid window pointer before proceeding for keyDown and
12742 autoKey events.
12743
12744 2002-08-03 Andrew Choi <akochoi@shaw.ca>
12745
12746 * macterm.c (USE_CARBON_EVENTS): New macro.
12747 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
12748 (x_iconify_frame): Call CollapseWindow.
12749 (Vmac_reverse_ctrl_meta): New variable.
12750 (Vmac_wheel_button_is_mouse_2): New variable.
12751 (init_mac_drag_n_drop): New function.
12752 (mac_do_receive_drag): New function.
12753 (mac_handle_service_event): New function.
12754 (init_service_handler): New function.
12755 (mac_to_emacs_modifiers): New function.
12756 (mac_event_to_emacs_modifiers): New function.
12757 (mac_get_mouse_btn): New function.
12758 (mac_convert_event_ref): New function.
12759 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
12760 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12761 mac_get_mouse_btn.
12762 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12763
12764 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12765 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12766 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12767 TOOL_BAR_EVENT for MAC_OS as well.
12768 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12769 as for WINDOWS_NT.
12770 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12771
12772 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12773
12774 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
12775
12776 * xdisp.c (forward_to_next_line_start): Fix a condition that
12777 lead to a newline being skipped.
12778
12779 2002-08-02 Andrew Choi <akochoi@shaw.ca>
12780
12781 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12782
12783 2002-08-01 Richard M. Stallman <rms@gnu.org>
12784
12785 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12786
12787 2002-07-31 Andrew Choi <akochoi@shaw.ca>
12788
12789 * macfns.c: #undef init_process before #define-ing it.
12790
12791 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12792 HAVE_CARBON is defined.
12793
12794 2002-07-31 Richard M. Stallman <rms@gnu.org>
12795
12796 * xmenu.c (set_frame_menubar): First parse all submenus,
12797 then make widget_value trees from them.
12798 Don't allocate any widget_value objects
12799 until we are done with the parsing.
12800 (parse_single_submenu): New function.
12801 (digest_single_submenu): New function.
12802 (single_submenu): Function deleted, replaced by those two.
12803
12804 2002-07-30 Juanma Barranquero <lektu@terra.es>
12805
12806 * w32proc.c (syms_of_ntproc): Fix docstring of
12807 `w32-get-true-file-attributes'.
12808
12809 2002-07-28 Richard M. Stallman <rms@gnu.org>
12810
12811 * s/hpux8.h (HPUX8): Define this before including hpux.h.
12812 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12813
12814 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12815
12816 * keyboard.c (make_lispy_event):
12817 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12818 Explicitly clear up_modifier in event->modifiers.
12819
12820 2002-07-27 Richard M. Stallman <rms@gnu.org>
12821
12822 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12823
12824 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12825 for bar cursor.
12826
12827 2002-07-26 Kenichi Handa <handa@etl.go.jp>
12828
12829 * coding.c (detect_coding_iso2022): While checking a byte sequence
12830 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12831 it in the normal loop.
12832
12833 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
12834
12835 * xterm.c (expose_overlaps): New function.
12836 (expose_window): Use it to fix the display of overlapping rows.
12837
12838 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12839
12840 2002-07-23 Ken Raeburn <raeburn@gnu.org>
12841
12842 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12843 since it only depends on XUINT.
12844
12845 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12846 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12847 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12848 Macros deleted.
12849
12850 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12851 its value over other approaches.
12852 * sysdep.c (start_of_data): Don't define the function if a macro
12853 form has been defined.
12854
12855 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
12856
12857 * xdisp.c (redisplay_updating_p): New variable.
12858 (init_iterator): Don't free realized faces when
12859 redisplay_updating_p is set.
12860 (redisplay_internal): Set redisplay_updating_p while updating
12861 the display.
12862
12863 2002-07-23 Richard M. Stallman <rms@gnu.org>
12864
12865 * editfns.c (Fmessage): Treat "" like nil.
12866
12867 2002-07-23 Kenichi Handa <handa@etl.go.jp>
12868
12869 * xdisp.c (face_before_or_after_it_pos):
12870 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12871
12872 2002-07-22 Juanma Barranquero <lektu@terra.es>
12873
12874 * callproc.c (init_callproc) [DOS_NT]:
12875 Initialize Vshared_game_score_directory to nil.
12876 (syms_of_callproc) [DOS_NT]: Likewise.
12877
12878 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
12879
12880 * xdisp.c (display_line): Replace an abort with xassert.
12881
12882 2002-07-21 Richard M. Stallman <rms@gnu.org>
12883
12884 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12885 and END_UNCHANGED when setting buffer_unchanged_p.
12886 Use current_matrix_up_to_date_p to decide whether to use
12887 try_cursor_movement.
12888
12889 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12890
12891 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12892
12893 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12894 Set to nil if dir does not exist.
12895 (syms_of_callproc): Init unconditionally and simply.
12896
12897 * buffer.c (Fbuffer_list): Doc fix.
12898
12899 2002-07-21 Ken Raeburn <raeburn@gnu.org>
12900
12901 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12902
12903 * buffer.c (mmap_realloc): When shrinking, make sure number of
12904 pages to unmap is rounded towards zero.
12905
12906 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12907 (XSETINT): Deleted.
12908
12909 * m/att3b.h (XINT): Don't define.
12910 (VALBITS, VALMASK, XTYPE): Deleted.
12911 (DATA_SEG_BITS): Define.
12912 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12913 ARRAY_MARK_FLAG): Deleted.
12914 (DATA_SEG_BITS): Define.
12915 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12916 (DATA_SEG_BITS): Define.
12917
12918 2002-07-20 Richard M. Stallman <rms@gnu.org>
12919
12920 * print.c (print_error_message): New args CONTEXT and CALLER.
12921 Calls changed.
12922
12923 * lisp.h (print_error_message): Declare new args.
12924
12925 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12926 and CONTEXT to print_error_message, don't print them here.
12927 For a Quit, don't use Vsignaling_function.
12928 Call message_log_maybe_newline.
12929
12930 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12931
12932 2002-07-20 Kim F. Storm <storm@cua.dk>
12933
12934 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12935
12936 2002-07-19 Ken Raeburn <raeburn@gnu.org>
12937
12938 * bytecode.c (struct byte_stack): Pointers into byte string now
12939 point to const.
12940 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12941 const.
12942 * charset.h (BCOPY_SHORT): Source pointer now points to const.
12943 * coding.c (encode_eol, detect_coding, detect_eol):
12944 (decode_coding, encode_coding, detect_coding_system):
12945 Source strings now treated as const.
12946 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12947 modify Lisp string contents.
12948 * coding.h (decode_coding, encode_coding, detect_coding,
12949 detect_eol): Declarations updated.
12950 * composite.c (compose_chars_in_text): Treat Lisp string contents
12951 as const.
12952 * dispnew.c (safe_bcopy): Source pointer now points to const.
12953 * lisp.h (STRING_COPYIN): New macro.
12954 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12955 (internal_with_output_to_temp_buffer): Declarations updated.
12956 * print.c (temp_output_buffer_setup):
12957 (internal_with_output_to_temp_buffer): Buffer name argument is now
12958 pointer to const.
12959 * sound.c (struct sound_device): Function pointer field "write"
12960 buffer argument now points to const.
12961 (vox_write): Buffer argument points to const.
12962 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12963 contents as const.
12964 * sysdep.c (emacs_write): Buffer pointer now const.
12965 * term.c (encode_terminal_code): Buffer pointer now const.
12966 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12967 (x_face_list_fonts, x_update_menu_appearance):
12968 (hash_string_case_insensitive): Treat Lisp string contents as const.
12969
12970 2002-07-19 Juanma Barranquero <lektu@terra.es>
12971
12972 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12973
12974 * fileio.c (syms_of_fileio): Likewise.
12975 (Ffile_name_as_directory): Fix argument name in docstring.
12976 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
12977
12978 2002-07-18 Richard M. Stallman <rms@gnu.org>
12979
12980 * data.c (Fdefalias): Doc fix.
12981
12982 2002-07-17 Dave Love <fx@gnu.org>
12983
12984 * intervals.h (text_property_stickiness): Use P_.
12985
12986 * ccl.c: Remove `emacs' conditionals.
12987 (ccl_backtrace_table): Fix size spec.
12988 (ccl_driver): Fix type errors.
12989
12990 2002-07-16 Ken Raeburn <raeburn@gnu.org>
12991
12992 * alloc.c (xstrdup, make_string, make_unibyte_string)
12993 (make_multibyte_string, build_string): String pointer args now
12994 point to const.
12995 * charset.c (find_charset_in_text, c_string_width):
12996 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12997 * fileio.c (report_file_error):
12998 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12999 (count_combining_before, count_combining_after, insert_1_both):
13000 (insert, insert_and_inherit, insert_string):
13001 (insert_before_markers, insert_before_markers_and_inherit):
13002 * lread.c (intern, oblookup, hash_string):
13003 * minibuf.c (temp_echo_area_glyphs):
13004 * search.c (fast_c_string_match_ignore_case):
13005 * sysdep.c (emacs_open, set_file_times):
13006 * xfaces.c (xstricmp):
13007 * xdisp.c (store_frame_title, string_char_and_length):
13008 (message_dolog, message2, message2_nolog, set_message): Likewise.
13009 (set_message_1): Cast message string argument to const pointer.
13010 * editfns.c (general_insert_function): Insertion function now
13011 takes pointer to const for input data.
13012 * charset.h (find_charset_in_text, c_string_width):
13013 (parse_str_as_multibyte): Declarations updated.
13014 * dispextern.h (xstricmp): Declaration updated.
13015 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
13016 (count_size_as_multibyte, count_combining_before):
13017 (count_combining_after, insert_1, insert_1_both, message_dolog):
13018 (insert, insert_and_inherit, insert_before_markers)
13019 (insert_before_markers_and_inherit, set_message, message2):
13020 (message2_dolog, build_string, make_string, make_unibyte_string):
13021 (make_multibyte_string, intern, oblookup, report_file_error):
13022 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
13023 (emacs_open, xstrdup): Declarations updated.
13024 * systime.h (set_file_times): Declaration updated.
13025
13026 * charset.c (find_charset_in_text, lisp_string_width): Use const
13027 for pointer to lisp string data.
13028 * charset.h (FETCH_STRING_CHAR_ADVANCE):
13029 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
13030 * coding.c (Ffind_coding_systems_region_interval):
13031 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
13032 (Fmake_directory_internal, Fdelete_directory):
13033 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
13034 * fontset.c (font_family_registry, fs_query_fontset):
13035 (list_fontsets):
13036 * frame.c (Fframe_parameter):
13037 * keyboard.c (cmd_error_internal):
13038 * keymap.c (Fdescribe_buffer_bindings):
13039 * lread.c (complete_filename_p, openp):
13040 * minibuf.c (Fminibuffer_complete_word):
13041 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
13042 (face_before_or_after_it_pos, next_element_from_string):
13043 (get_overlay_arrow_glyph_row, display_mode_element):
13044 (decode_mode_spec_coding):
13045 * xterm.c (same_x_server): Likewise.
13046
13047 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
13048 settings of non-existent fields.
13049
13050 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
13051 copy a lisp value.
13052
13053 * lread.c (Fintern_soft): Use string macros instead of
13054 Lisp_String fields.
13055 * keyboard.c (echo_char, parse_modifiers_uncached):
13056 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
13057 * textprop.c (validate_interval_range, interval_of): Likewise.
13058
13059 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
13060
13061 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13062 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
13063 XSTRING()->size_byte.
13064
13065 * lisp.h (SDATA, SREF): Produce rvalue.
13066 (SSET): New macro.
13067 * alloc.c (make_event_array): Use SSET for storing into a string.
13068 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
13069 a string.
13070 * casefiddle.c (casify_object): Use SSET.
13071 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13072 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
13073 address of string contents.
13074 * data.c (Faref): Use SDATA.
13075 (Faset): Use SDATA, SSET.
13076 * dired.c (directory_files_internal): Use SSET.
13077 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
13078 (Fread_file_name): Use SREF, SSET.
13079 * fns.c (concat): Use SSET.
13080 (concat, Fdelete): Use SDATA.
13081 * insdel.c (insert_from_string_1): Use SDATA.
13082 * keyboard.c (Fevent_convert_list): Use SREF.
13083 * lread.c (Fload): Use SDATA, SSET.
13084 * macfns.c (validate_x_resource_name): Use SSET.
13085 * process.c (status_message): Use SSET.
13086 * search.c (wordify): Use SDATA.
13087 (Freplace_match): Use SREF.
13088 * w32fns.c (validate_x_resource_name): Use SSET.
13089 * xfns.c (validate_x_resource_name): Use SSET.
13090 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
13091
13092 2002-07-16 Richard M. Stallman <rms@gnu.org>
13093
13094 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
13095
13096 * xdisp.c (reconsider_clip_changes):
13097 Don't test prevent_redisplay_optimizations_p.
13098 (redisplay_internal): Test prevent_redisplay_optimizations_p
13099 along with clip_changed in some cases.
13100 (try_window_id): Likewise.
13101 (redisplay_window): New local var buffer_unchanged_p.
13102
13103 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
13104
13105 * process.c (create_process): Test USG_SUBTTY_WORKS.
13106 (process_send_signal): Clean up handling of GID.
13107 Detect errors in ioctls meant to set GID.
13108
13109 * window.c (temp_output_buffer_show):
13110 Don't set prevent_redisplay_optimizations_p.
13111
13112 2002-07-15 Juanma Barranquero <lektu@terra.es>
13113
13114 * eval.c (Fdefvaralias): Add docstring argument.
13115
13116 2002-07-15 Ken Raeburn <raeburn@gnu.org>
13117
13118 * lisp.h (STRING_INTERVALS): Produce rvalue.
13119 (STRING_SET_INTERVALS): New macro.
13120 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
13121 * fns.c (Fstring_as_multibyte): Likewise.
13122 * intervals.c (balance_possible_root_interval, delete_interval)
13123 (create_root_interval, copy_intervals_to_string): Likewise.
13124 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
13125 instead of 0.
13126
13127 2002-07-14 Ken Raeburn <raeburn@gnu.org>
13128
13129 * lisp.h (STRING_SET_CHARS): New macro.
13130 (SCHARS, SBYTES): Produce rvalues.
13131 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
13132 * fns.c (concat): Likewise.
13133 * lread.c (read_vector): Likewise.
13134
13135 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
13136 (STRING_SET_UNIBYTE): New macro.
13137 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
13138 length of -1) changed to use STRING_SET_UNIBYTE.
13139 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13140 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
13141 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
13142 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
13143 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
13144 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
13145 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
13146 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
13147 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
13148 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
13149 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
13150 STRING_BYTES or indirection changed to SCHARS, SBYTES,
13151 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
13152 unchanged for now.
13153
13154 2002-07-13 Kim F. Storm <storm@cua.dk>
13155
13156 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
13157
13158 2002-07-12 Richard M. Stallman <rms@gnu.org>
13159
13160 * fileio.c (Fwrite_region): Doc fix.
13161
13162 * print.c (print_error_message): Don't handle Vsignaling_function here.
13163
13164 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
13165 (command_loop_1): Avoid certain actions after memory-full error.
13166
13167 * eval.c (Fsignal): Don't call cancel_hourglass.
13168 For a memory-full error, don't call Vsignal_hook_function
13169 and don't set Vsignaling_function.
13170
13171 * process.c (process_send_signal): Add abort call.
13172
13173 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
13174
13175 * keymap.c (Fkey_binding): Fix typo.
13176
13177 2002-07-11 Richard M. Stallman <rms@gnu.org>
13178
13179 * alloc.c (Vmemory_full): New variable.
13180 (Vmemory_signal_data): Rename from memory_signal_data.
13181 Uses changed.
13182 (syms_of_alloc): Defvar them.
13183 (memory_full, buffer_memory_full): Set Vmemory_full.
13184
13185 * lisp.h (Vmemory_full): Add declaration.
13186 (current_column, indented_beyond_p): Change declaration.
13187
13188 * indent.c (last_known_column): Declare as double, not float.
13189 (current_column, current_column_1, string_display_width)
13190 (position_indentation): Return `double'.
13191 (indented_beyond_p): Arg `column' is `double'. Callers changed.
13192
13193 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
13194 (back_to_previous_visible_line_start)
13195 (reseat_at_next_visible_line_start, next_element_from_buffer):
13196 Use `double', not `float', when calling indented_beyond_p.
13197
13198 * s/hpux11.h (BROKEN_SA_RESTART): Define.
13199
13200 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
13201
13202 2002-07-11 Juanma Barranquero <lektu@terra.es>
13203
13204 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
13205 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
13206 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
13207 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
13208 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
13209 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
13210
13211 2002-07-10 Juanma Barranquero <lektu@terra.es>
13212
13213 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
13214 All callers changed.
13215
13216 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
13217
13218 * data.c (Fdefalias): Add an optional `docstring' argument.
13219 (set_internal, Fsetq_default): Use XCAR/XCDR.
13220
13221 * composite.c (HASH_VALUE, HASH_KEY):
13222 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
13223
13224 2002-07-09 Kenichi Handa <handa@etl.go.jp>
13225
13226 * callproc.c (Fcall_process): Fix previous change.
13227
13228 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
13229
13230 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13231 Add support for hash-tables.
13232 (Ftry_completion): Return t even if the string appears multiple times.
13233
13234 * fns.c (Fnconc): Use XCDR.
13235 (Fprovide): Use CONSP and XCDR.
13236 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13237 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
13238 (Fmake_hash_table): Accept `:size nil'.
13239 (Fmakehash): Delete: moved to subr.el.
13240 (syms_of_fns): Don't defsubr makehash.
13241
13242 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13243 (HASH_TABLE_SIZE): Move from fns.c.
13244
13245 2002-07-07 Richard M. Stallman <rms@gnu.org>
13246
13247 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
13248 Instead just return 0 when there is something to be done.
13249 (try_scrolling): If make_cursor_line_fully_visible returns 0,
13250 retry scrolling as if cursor were off the bottom.
13251 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
13252 return CURSOR_MOVEMENT_MUST_SCROLL.
13253 (redisplay_window): If make_cursor_line_fully_visible returns 0,
13254 go to try_to_scroll.
13255
13256 * buffer.c (Fbuffer_local_value): Store current value into its binding
13257 so we get the up-to-date value for the binding that is loaded.
13258
13259 * eval.c (Fdefmacro): Doc fix.
13260
13261 2002-07-05 Dave Love <fx@gnu.org>
13262
13263 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
13264 correctly.
13265
13266 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
13267 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
13268 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
13269 CCL_LookupCharConstTbl.
13270 (syms_of_ccl): Defvar translation-hash-table-vector.
13271
13272 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13273
13274 * xdisp.c: Remove unused variable `face'.
13275
13276 2002-07-04 Juanma Barranquero <lektu@terra.es>
13277
13278 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
13279 obsolescence information.
13280
13281 2002-07-03 Andrew Choi <akochoi@shaw.ca>
13282
13283 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
13284 pattern. Search cache first.
13285 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
13286 for Japanese font.
13287 (XLoadQueryFont): Use it.
13288
13289 2002-07-02 Richard M. Stallman <rms@gnu.org>
13290
13291 * keymap.c (Fdefine_key): Doc fix.
13292
13293 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
13294
13295 2002-07-02 Juanma Barranquero <lektu@terra.es>
13296
13297 * keymap.c (syms_of_keymap): Fix typo.
13298
13299 2002-07-01 Andrew Choi <akochoi@shaw.ca>
13300
13301 * s/darwin.h: Define POSIX_SIGNALS.
13302
13303 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
13304 and FSRefMakePath to convert FSSpec returned with Apple Event to
13305 Posix pathname.
13306 (mac_initialize) [TARGET_API_MAC_CARBON]:
13307 Call init_required_apple_events and disable the `Quit' menu item
13308 provided automatically by the Carbon Toolbox.
13309
13310 2002-07-01 Dave Love <fx@gnu.org>
13311
13312 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13313 for K&R.
13314
13315 * xterm.c: Fix prototype for K&R.
13316
13317 * term.c (costs_set): Declare static, non-initialized for pcc.
13318
13319 2002-07-01 Richard M. Stallman <rms@gnu.org>
13320
13321 * keyboard.c (timer_last_idleness_start_time): New variable.
13322 (timer_start_idle): Set that.
13323 (read_key_sequence): Use that to reset timer_idleness_start_time
13324 to previous value.
13325
13326 * window.c (Frecenter): With arg, set optional_new_start.
13327
13328 * xdisp.c (redisplay_internal): Make optional_new_start really work.
13329
13330 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
13331 buffer for completion.
13332
13333 2002-06-29 Ken Raeburn <raeburn@gnu.org>
13334
13335 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
13336
13337 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13338
13339 * keyboard.c (readable_filtered_events): New function that filters
13340 FOCUS_IN_EVENT depending on parameter.
13341 (readable_events): Calls readable_filtered_events, not filtering
13342 FOCUS_IN_EVENT.
13343 (get_filtered_input_pending): New function, filtering parameter passed
13344 to readable_filtered_events.
13345 (get_input_pending): Calls get_filtered_input_pending, not filtering
13346 FOCUS_IN_EVENT.
13347 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
13348 FOCUS_IN_EVENT.
13349
13350 * xterm.h (struct x_output): Add focus_state.
13351
13352 * xterm.c (x_focus_changed): New function.
13353 (x_detect_focus_change): New function.
13354 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
13355 EnterNotify and LeaveNotify to track X focus changes.
13356
13357 2002-06-28 Andreas Schwab <schwab@suse.de>
13358
13359 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
13360
13361 2002-06-27 Kim F. Storm <storm@cua.dk>
13362
13363 * xdisp.c: (mode_line_string_list, mode_line_string_face)
13364 (mode_line_string_face_prop): New variables.
13365 (store_mode_line_string): New function.
13366 (display_mode_element): Use store_mode_line_string to
13367 add mode-line string elements to mode_line_string_list
13368 when mode_line_string_list is non-nil.
13369 (Fformat_mode_line): Now returns propertized string by
13370 default. New arg NO-PROPS to ignore properties.
13371 (decode_mode_spec): Only add two dashes for %- in propertized
13372 mode-line string.
13373 (syms_of_xdisp): Init and staticpro mode_line_string_list.
13374
13375 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
13376
13377 * minibuf.c (minibuffer_completion_contents): Add return type.
13378
13379 2002-06-27 Juanma Barranquero <lektu@terra.es>
13380
13381 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
13382
13383 2002-06-26 Juanma Barranquero <lektu@terra.es>
13384
13385 * fileio.c (read_file_name_cleanup): Add missing return.
13386
13387 2002-06-26 Richard M. Stallman <rms@gnu.org>
13388
13389 * window.c (Frecenter): Don't set force_start flag.
13390
13391 * minibuf.c (do_completion, Fminibuffer_complete_word)
13392 (Fminibuffer_completion_help): Complete just the text before point.
13393 (minibuffer_completion_contents): New function.
13394
13395 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
13396
13397 * frame.c (frames_bury_buffer): Function deleted.
13398
13399 2002-06-25 Miles Bader <miles@gnu.org>
13400
13401 * callint.c (Fcall_interactively): When checking to see if doprnt hit
13402 the end of callint_message, allow for a terminating '\0'.
13403
13404 2002-06-24 Juanma Barranquero <lektu@terra.es>
13405
13406 * w32select.c: Include composite.h
13407
13408 * w16select.c: Likewise.
13409
13410 2002-06-24 Kenichi Handa <handa@etl.go.jp>
13411
13412 * callproc.c (Fcall_process): If code detection is necessary,
13413 call detect_coding directly here.
13414
13415 * coding.c (detect_eol): Preserve coding->cmp_data.
13416
13417 * w16select.c (Fw16_get_clipboard_data):
13418 * w32fns.c (w32_to_x_font):
13419 * w32select.c (Fw32_get_clipboard_data):
13420 * xselect.c (selection_data_to_lisp_data):
13421 * xterm.c (XTread_socket): Disable composition handling.
13422
13423 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
13424
13425 * print.c (temp_output_buffer_setup): Kill all local variables.
13426
13427 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
13428
13429 * lread.c (Fread): Remove redundant and imprecise declaration.
13430
13431 * xfns.c (check_x_display_info): Use check_x_frame.
13432
13433 * .gdbinit (xprintsym): Use the new `xname' field.
13434 (xsymbol): Use it.
13435
13436 2002-06-22 Jason Rumney <jasonr@gnu.org>
13437
13438 * w32fns.c (file_dialog_callback): New function.
13439 (Fx_file_dialog): Allow selecting directories as well as files.
13440
13441 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13442
13443 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
13444 OpenBSD. Add support for mipseb-*-netbsd* machines.
13445
13446 2002-06-17 Andrew Choi <akochoi@shaw.ca>
13447
13448 * macterm.c (mac_scroll_area): Set foreground and backcolor to
13449 black and white before scrolling. Restore frame background and
13450 foreground color after scrolling.
13451 (do_window_update): Call XClearWindow before calling expose_frame.
13452 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
13453 FRAME_FOREGROUND_PIXEL of frame.
13454
13455 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13456 test Mac command key as <ALT> key.
13457
13458 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
13459
13460 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
13461
13462 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
13463 Lookup keys in function-key-map immediately so that key-translation-map
13464 can be applied earlier.
13465 Remove function_key_possible and key_translation_possible, replaced
13466 by checking `keytran_start < t'.
13467
13468 * .gdbinit (xsymbol): Use the new `xname' field.
13469
13470 2002-06-17 Andrew Choi <akochoi@shaw.ca>
13471
13472 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13473 test Mac command key as <ALT> key.
13474
13475 * mac.c (do_applescript): Call initialize_applescript if necessary
13476 when first called. Dispose of result_desc only when there is no error.
13477 (Fdo_applescript): Use %d format specifier instead of %ld.
13478
13479 2002-06-16 Andrew Choi <akochoi@shaw.ca>
13480
13481 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
13482 of FrontWindow for cases keyDown and autoKey.
13483
13484 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
13485 Vdefault_fontset to Monaco with mac-roman coding.
13486
13487 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
13488 init_process before and after inclusion of Carbon/Carbon.h, resp.
13489
13490 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
13491 cursor_gc.
13492 (add_font_name_table_entry): New function.
13493 (init_font_name_table): Use add_font_name_table_entry; add italic,
13494 bold, and bold-italic entries for truetype fonts.
13495
13496 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
13497 for Mac too.
13498 (try_font_list) [MAC_OS]: If no font matches given registry, try
13499 fonts with any registry matching face_family.
13500 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
13501
13502 * s/darwin.h: If autoconf detects the Ncurses library, define
13503 LIBS_TERMCAP to -lncurses to use it.
13504
13505 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
13506
13507 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
13508
13509 2002-06-15 Richard M. Stallman <rms@gnu.org>
13510
13511 * window.c (Fset_window_configuration): Explicitly preserve
13512 the point value that new_current_buffer had at the start.
13513
13514 2002-06-14 Juanma Barranquero <lektu@terra.es>
13515
13516 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
13517 Fix typos.
13518
13519 2002-06-14 Kim F. Storm <storm@cua.dk>
13520
13521 * insdel.c (insert_1_both, insert_from_string_1)
13522 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
13523 insert happened in the end_unchanged region. Otherwise, the
13524 redisplay may be confused and duplicate the last line in the
13525 buffer [seen after save-buffer when require-final-newline==t].
13526
13527 2002-06-13 Jason Rumney <jasonr@gnu.org>
13528
13529 * w32.c (init_environment): Remove EMACSLOCKDIR.
13530 (stat): Swap _S_IFDIR and _S_IFREG.
13531
13532 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13533
13534 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
13535 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
13536 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
13537 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
13538 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
13539 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
13540 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
13541 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
13542 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
13543 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
13544 SELECTION_REQUEST_EVENT, selection_clear_event to
13545 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
13546 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
13547 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
13548 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
13549 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
13550 no_event to NO_EVENT.
13551
13552 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13553
13554 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
13555
13556 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
13557
13558 * intervals.c (textget): Don't forget to `return'.
13559 (lookup_char_property): Use XCAR/XCDR.
13560
13561 2002-06-12 Juanma Barranquero <lektu@terra.es>
13562
13563 * xdisp.c (Fformat_mode_line): Fix typo.
13564
13565 2002-06-12 Kim F. Storm <storm@cua.dk>
13566
13567 * xdisp.c (Fformat_mode_line): New function.
13568 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
13569 (store_frame_title_char, store_frame_title): Use unconditionally.
13570 (init_xdisp): Defsubr Fformat_mode_line.
13571 Initialize frame_title_buf etc. unconditionally.
13572
13573 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
13574
13575 * keyboard.c (read_key_sequence):
13576 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
13577 things through those maps after downcasing events.
13578 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
13579 applies after function-key-map.
13580 Make sure that keytran can be done in the middle in the sequence.
13581 Be careful not to throw away events past the one we downcase.
13582
13583 * lread.c (read_integer): Remove unused var `tem'.
13584 (read1): Fix int/Lisp_Object mixup.
13585
13586 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13587
13588 2002-06-11 Richard M. Stallman <rms@gnu.org>
13589
13590 * keyboard.c (readable_events): Ignore any number of
13591 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13592
13593 2002-06-09 Miles Bader <miles@gnu.org>
13594
13595 * xfaces.c (Ftty_supports_face_attributes_p): New function.
13596 (parse_rgb_list, tty_lookup_color): New functions.
13597 (tty_defined_color): Use `tty_lookup_color' to do all the work.
13598 (color_distance, Fcolor_distance): New functions.
13599 (TTY_SAME_COLOR_THRESHOLD): New macro.
13600 (Qtty_color_standard_values): New variable.
13601 (syms_of_xfaces): Initialize new vars & functions.
13602
13603 2002-06-08 Colin Walters <walters@verbum.org>
13604
13605 * textprop.c (Vchar_property_alias_alist): New variable.
13606 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13607
13608 * intervals.c (lookup_char_property): New function for looking up
13609 overlay and text properties, created from textget.
13610 (textget): Use it.
13611
13612 * intervals.h (lookup_char_property): Declare.
13613 (Vchar_property_alias_alist): Declare.
13614
13615 * buffer.c (Foverlay_get): Use lookup_char_property.
13616
13617 2002-06-07 Sam Steingold <sds@gnu.org>
13618
13619 * xselect.c (lisp_data_to_selection_data): Fix last change:
13620 *data_ret is not a Lisp string, while unibyte_string is.
13621
13622 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
13623
13624 * xselect.c (lisp_data_to_selection_data): Fix last change:
13625 set size_ret.
13626
13627 2002-06-07 Andreas Schwab <schwab@suse.de>
13628
13629 * m/amdx86-64.h: New file.
13630
13631 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
13632
13633 * fns.c (Fstring_make_unibyte): Doc fix.
13634
13635 * xselect.c (lisp_data_to_selection_data): If the requested type
13636 is STRING, call string_make_unibyte to encode the selected text
13637 as a string.
13638
13639 * window.c (Fset_window_hscroll): Doc fix.
13640
13641 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13642
13643 * fileio.c (choose_write_coding_system):
13644 Call select-safe-coding-system properly.
13645
13646 2002-06-03 Richard M. Stallman <rms@gnu.org>
13647
13648 * xdisp.c (message_with_string): Error if STRING is not a string.
13649
13650 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13651
13652 * fileio.c (choose_write_coding_system): Pass FILE arg to
13653 Vselect_safe_coding_system_function.
13654
13655 2002-06-03 Ken Raeburn <raeburn@gnu.org>
13656
13657 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
13658
13659 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
13660
13661 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
13662 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
13663 * keymap.c (describe_command): Likewise.
13664 * minibuf.c (read_minibuf): Likewise.
13665
13666 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
13667 Cast `current_column' return value to int.
13668 (back_to_previous_visible_line_start)
13669 (reseat_at_next_visible_line_start, next_element_from_buffer):
13670 Cast `indented_beyond_p' 3rd arg to float.
13671
13672 * indent.c (last_known_column): Now a float.
13673 (current_column_1, position_indentation, current_column)
13674 (string_display_width): Return float.
13675 (Fcurrent_column): Cast `current_column' return value to int.
13676 (Fcurrent_indentation): Cast `position_indentation' retval to int.
13677 (indented_beyond_p): Third arg now a float.
13678 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
13679
13680 * lisp.h (current_column): Now returns float.
13681 (indented_beyond_p): 3rd arg now a float.
13682
13683 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
13684
13685 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
13686 is Qcompound_text_with_extensions.
13687
13688 * xselect.c (lisp_data_to_selection_data): Always set selection
13689 type as string if x_encode_text returns streingp non-NULL.
13690
13691 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
13692
13693 2002-05-30 Richard M. Stallman <rms@gnu.org>
13694
13695 * window.c (Fset_window_configuration): Correct the handling
13696 of point in current buffer, to work with multiple windows.
13697
13698 2002-05-29 Colin Walters <walters@verbum.org>
13699
13700 * lread.c (Fread_from_string): Don't depend on order of evaluation
13701 for C function parameters.
13702
13703 2002-05-28 Richard M. Stallman <rms@gnu.org>
13704
13705 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
13706 way for blinked-off state and for a nonselected window.
13707
13708 * window.c (window_scroll_pixel_based): Don't call Fbolp;
13709 instead, see if the new start pos is at beginning of line.
13710
13711 * fileio.c (Fwrite_region): If START is a string, don't
13712 make any annotations.
13713
13714 * eval.c (syms_of_eval): Doc fix.
13715
13716 2002-05-28 Colin Walters <walters@debian.org>
13717
13718 * emacs.c (USAGE1): Add --no-splash.
13719 (standard_args): Ditto.
13720
13721 2002-05-28 Colin Walters <walters@gnu.org>
13722
13723 * lread.c (readchar_count): New variable.
13724 (readchar): Increment it.
13725 (unreadchar): Decrement it.
13726 (read_multibyte): Decrement it.
13727 (Vread_with_symbol_positions): New variable.
13728 (Vread_symbol_positions_list): New variable.
13729 (read_internal_start): New function, created from Fread and
13730 Fread_from_string. Handle Vread_symbol_positions_list and
13731 Vread_with_symbol_positions.
13732 (readevalloop, Fread, Fread_from_string): Use it.
13733 (read1): Use readchar_count to add symbol positions to
13734 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
13735 (syms_of_lread): DEFVAR_LISP and initialize them.
13736
13737 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
13738 (substitute_object_recurse, substitute_object_in_subtree)
13739 (substitute_in_interval): Prototype.
13740 (read_multibyte): Return c if it's less than zero.
13741
13742 2002-05-28 Kim F. Storm <storm@cua.dk>
13743
13744 * fileio.c (Fread_file_name_internal): Added brute-force
13745 speed up for using predicate file-directory-p.
13746
13747 2002-05-28 Kim F. Storm <storm@cua.dk>
13748
13749 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
13750 New variables.
13751 (syms_of_fileio): DEFVAR_LISP them.
13752 (read_file_name_cleanup): New unwind function.
13753 (Fread_file_name_internal): Only return completions satifying
13754 Vread_file_name_predicate. Temporarily unwind protect and rebind
13755 default-directory while checking completions against the predicate.
13756 (Fread_file_name): Added PREDICATE argument. Specbind it to
13757 Vread_file_name_predicate during completion.
13758 Call Vread_file_name_function to read the file name if non-nil.
13759
13760 * lisp.h (Fread_file_name): Now has 6 args.
13761
13762 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13763 predicate for Fread_file_name when reading directory name.
13764 Supply Qnil for predicate in other calls to Fread_file_name.
13765
13766 2002-05-26 Miles Bader <miles@gnu.org>
13767
13768 * term.c (tty_capable_p): New function.
13769 * dispextern.h (tty_capable_p): New function declaration.
13770 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13771 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13772
13773 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
13774
13775 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13776 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13777 (Vwrite_region_annotate_functions): Docstring fix.
13778
13779 2002-05-23 Kim F. Storm <storm@cua.dk>
13780
13781 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13782 phys_cursor's hpos is overwritten. This is still not completely
13783 correct, as it doesn't really make sense to use hpos at all to
13784 get the cursor glyph (as that is relative to the width of the
13785 characters on the line, which may have changed during the update).
13786
13787 2002-05-22 Jason Rumney <jasonr@gnu.org>
13788
13789 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13790 Lisp_Object.
13791 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13792 Use modified enumfont_t struct.
13793
13794 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13795
13796 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13797 Handle the `hbar' cursor type.
13798 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13799
13800 * w32fns.c (Qhbar): New variable.
13801 (x_specified_cursor_type): Use it.
13802
13803 2002-05-21 Ken Raeburn <raeburn@gnu.org>
13804
13805 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13806 now, when the address is needed.
13807
13808 2002-05-21 Colin Walters <walters@gnu.org>
13809
13810 * Makefile.in (shortlisp): Add font-core.el.
13811
13812 2002-05-20 Richard M. Stallman <rms@gnu.org>
13813
13814 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13815
13816 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13817 equivalent key bindings here.
13818
13819 2002-05-20 Ken Raeburn <raeburn@gnu.org>
13820
13821 Change symbol structure to contain a lisp object for the symbol
13822 name:
13823 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13824 object field named "xname".
13825 (SYMBOL_NAME): New macro.
13826 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13827 name field.
13828 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13829 (mark_object, gc_sweep): Use symbol xname field and XSTRING
13830 instead of name field.
13831 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13832 SYMBOL_NAME instead of XSYMBOL and name field.
13833 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13834 instead of XSYMBOL and name field.
13835 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13836 and SYMBOL_NAME instead of XSYMBOL and name field.
13837 * coding.c (Fread_coding_system, code_convert_region1)
13838 (code_convert_string1, code_convert_string_norecord)
13839 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13840 XSYMBOL and name field.
13841 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13842 (Fmake_variable_buffer_local, Fmake_local_variable)
13843 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13844 of XSYMBOL and name field.
13845 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13846 XSYMBOL and name field.
13847 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13848 instead of XSYMBOL and name field.
13849 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13850 XSYMBOL and name field.
13851 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13852 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13853 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13854 instead of XSYMBOL and name field.
13855 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13856 (parse_modifiers, apply_modifiers, Fevent_convert_list)
13857 (parse_solitary_modifier, Fexecute_extended_command):
13858 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13859 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13860 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13861 of XSYMBOL and name field.
13862 (describe_command, describe_translation): Use SYMBOL_NAME and
13863 assignment instead of XSYMBOL and name field and XSETSTRING.
13864 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13865 instead of XSYMBOL and name field.
13866 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13867 name field and XSETSTRING.
13868 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13869 of XSYMBOL and name field.
13870 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13871 assignment instead of XSYMBOL and name field and XSETSTRING.
13872 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13873 XSTRING instead of XSYMBOL and name field.
13874 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13875 and XSTRING instead of XSYMBOL and name field.
13876 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13877 and XSTRING instead of XSYMBOL and name field.
13878 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13879 XSTRING instead of XSYMBOL and name field.
13880 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13881 of XSYMBOL and name field.
13882 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13883 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13884
13885 2002-05-19 Ken Raeburn <raeburn@gnu.org>
13886
13887 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13888 and XCDR real rvalues in most configurations.
13889
13890 * buffer.c (fix_overlays_in_range, fix_overlays_before):
13891 Don't take the address of the cdr part of a cons cell; instead, track
13892 the parent cell and call XSETCDR, or set the variable for the head
13893 of the list if we haven't started down the list yet.
13894
13895 2002-05-19 Richard M. Stallman <rms@gnu.org>
13896
13897 * doc.c (reread_doc_file): Don't ask for confirmation.
13898
13899 2002-05-18 Jason Rumney <jasonr@gnu.org>
13900
13901 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13902 (xbm_load_image): Use it.
13903 (xbm_load): Ditto.
13904 (xbm_read_bitmap_data): Reverted to xfns.c version.
13905 From David Ponce <david@dponce.com>.
13906
13907 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
13908
13909 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13910 2.02 and later.
13911
13912 2002-05-16 Juanma Barranquero <lektu@terra.es>
13913
13914 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13915
13916 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
13917
13918 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13919 meaningful test.
13920 (read_char_minibuf_menu_prompt): Fix typo.
13921
13922 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13923
13924 * eval.c (Fcommandp): Doc fix.
13925
13926 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
13927
13928 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13929 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13930 (Fset_keymap_parent): Gcpro a bit more.
13931 (access_keymap): Gcpro around meta_map call and around the main loop.
13932 (get_keyelt): Gcpro when following indirect references.
13933 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13934 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
13935 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13936 Remove useless ad-hoc remap code.
13937
13938 2002-05-13 Richard M. Stallman <rms@gnu.org>
13939
13940 * search.c (search_buffer): Give up boyer moore search if inverse
13941 translation change charset_base.
13942
13943 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
13944
13945 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13946 characters is carried over from the previous block of text, adjust
13947 coding->produced to account for the extra character.
13948
13949 2002-05-11 Andreas Schwab <schwab@suse.de>
13950
13951 * coding.c (intersection): Keep the elements of the returned list
13952 in the same order as in the first list.
13953
13954 2002-05-11 Kim F. Storm <storm@cua.dk>
13955
13956 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
13957 only update cmm_size if realloc actually succeeds.
13958 Testing with initial size of 2 elements revealed that using
13959 realloc on GNU/Linux would cause a random trap in xmalloc
13960 later on, so I rewrote the code to use malloc/bcopy/free instead
13961 of realloc.
13962
13963 2002-05-10 Jason Rumney <jasonr@gnu.org>
13964
13965 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13966
13967 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
13968
13969 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13970 parens, to ensure correct evaluation order.
13971
13972 2002-05-10 Kim F. Storm <storm@cua.dk>
13973
13974 * keymap.c (Vemulation_mode_map_alists): New variable.
13975 (syms_of_keymap): DEFVAR_LISP it.
13976 (current_minor_maps): Process keymap alists in that list before
13977 minor-mode-overriding-map-alist and minor-mode-map-alist.
13978
13979 2002-05-09 Richard M. Stallman <rms@gnu.org>
13980
13981 * search.c (Freplace_match): Doc fix.
13982
13983 2002-05-09 Kim F. Storm <storm@cua.dk>
13984
13985 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13986 Enlarge cursor rectangle drawn around image with non-zero relief.
13987
13988 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13989 Enlarge cursor rectangle drawn around image with non-zero relief.
13990
13991 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13992 Enlarge cursor rectangle drawn around image with non-zero relief.
13993
13994 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
13995
13996 * xselect.c (lisp_data_to_selection_data): Don't set selection
13997 type if comes from the Lisp object's car. If the selection
13998 contains a pure ASCII text, always return QSTRING as its type.
13999
14000 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14001
14002 * mac.c (mac-cut-function): Doc fix.
14003
14004 2002-05-05 Richard M. Stallman <rms@gnu.org>
14005
14006 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
14007
14008 2002-05-04 Jason Rumney <jasonr@gnu.org>
14009
14010 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
14011 for event-click-count.
14012
14013 * process.c (init_process): Only add server subfeature if we can
14014 use non-blocking I/O.
14015
14016 2002-05-04 Andrew Choi <akochoi@shaw.ca>
14017
14018 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
14019 repeatedly.
14020
14021 2002-05-03 Jason Rumney <jasonr@gnu.org>
14022
14023 * process.c (Fmake_network_process): Only support server sockets
14024 when we can make them non-blocking.
14025
14026 * s/ms-w32.h (HAVE_SELECT): Define.
14027
14028 * w32.h (FILE_NDELAY): New flag.
14029
14030 * w32.c (sys_getpeername, fcntl): New functions.
14031 (_sys_read_ahead): Temporarily block on non-blocking sockets.
14032
14033 * w32proc.c: include sys/file.h.
14034
14035 2002-05-03 Colin Walters <walters@verbum.org>
14036
14037 * callproc.c (Vgame_score_directory): Renamed to
14038 Vshared_game_score_directory.
14039
14040 2002-04-30 Richard M. Stallman <rms@gnu.org>
14041
14042 * s/gnu.h [emacs]: Include stdio.h.
14043 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
14044
14045 * eval.c (do_autoload): Error if called while preparing to dump.
14046
14047 * fns.c (Frequire): Error if need to load while preparing to dump.
14048
14049 2002-04-28 Colin Walters <walters@verbum.org>
14050
14051 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
14052 Default to "~/.emacs.d/games".
14053
14054 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
14055
14056 * lread.c (openp): Change arg exec_only to predicate.
14057 (build_load_history): Use XCAR/XCDR.
14058 (Flocate_file_internal): New fun.
14059 (syms_of_lread): Defsubr it.
14060 (Fload): Update call to openp.
14061
14062 * lisp.h (openp): Update prototype.
14063
14064 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
14065 * w32proc.c (sys_spawnve):
14066 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
14067 * w32.c (check_windows_init_file):
14068 * sound.c (Fplay_sound_internal):
14069 * process.c (Fstart_process):
14070 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
14071 * mac.c (run_mac_command):
14072 * emacs.c (init_cmdargs):
14073 * callproc.c (Fcall_process): Update call to openp.
14074
14075 * textprop.c (remove_properties): Don't use XCAR without CONSP.
14076
14077 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
14078
14079 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14080
14081 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
14082 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
14083
14084 2002-04-28 Richard M. Stallman <rms@gnu.org>
14085
14086 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
14087
14088 * eval.c (Fcommandp): New arg for_call_interactively.
14089 * lisp.h (Fcommandp): Declare new arg.
14090
14091 2002-04-28 Jason Rumney <jasonr@gnu.org>
14092
14093 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
14094
14095 * w32.c (stat, fstat): Use file index information to generate
14096 inodes for directories where available.
14097
14098 2002-04-26 Andrew Choi <akochoi@shaw.ca>
14099
14100 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
14101 [HAVE_CARBON]: Include Mac object files.
14102
14103 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
14104 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
14105 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
14106 MAC_OSX, and MAC_OS instead of macintosh.
14107
14108 * editfns.c [MAC_OS8]: Include stdio.h.
14109
14110 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
14111
14112 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
14113 Apple Monaco.
14114
14115 * process.c (QCfamily, QCfilte): Declare extern.
14116 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
14117 calling select.
14118
14119 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
14120
14121 * tparam.c [MAC_OSX]: Don't define BC and UP.
14122
14123 * config.in [HAVE_CARBON]: Add.
14124
14125 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
14126 Move here from mac/src and mac/inc.
14127
14128 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
14129
14130 2002-04-26 Gerd Moellmann <gerd@gnu.org>
14131
14132 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
14133 Compute phys_cursor_width from the x position returned
14134 by x_draw_glyhs, which is cheaper.
14135 (x_display_and_set_cursor): Compute the buffer-local value
14136 of `cursor-in-non-selected-windows' only when needed.
14137
14138 2002-04-25 Gerd Moellmann <gerd@gnu.org>
14139
14140 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
14141 cursor on a stretch glyph has a width that depends on
14142 x_stretch_cursor_p.
14143
14144 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14145
14146 * abbrev.c (abbrev-start-location): Doc fix.
14147
14148 * indent.c (Fvertical_motion): Fix last change.
14149
14150 2002-04-25 Gerd Moellmann <gerd@gnu.org>
14151
14152 * indent.c (Fvertical_motion): Move to the start of the line
14153 containing PT before moving up or down.
14154
14155 2002-04-24 Gerd Moellmann <gerd@gnu.org>
14156
14157 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
14158 case of writing a whole row, more or less analogous to the case of
14159 writing only parts of a row.
14160
14161 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
14162 0 for NO_CURSOR.
14163
14164 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
14165
14166 2002-04-23 Colin Walters <walters@verbum.org>
14167
14168 * buffer.c (syms_of_buffer): Doc fix.
14169
14170 2002-04-23 Gerd Moellmann <gerd@gnu.org>
14171
14172 * xterm.c (notice_overwritten_cursor): Handle the special case
14173 of the cursor being in the first blank non-text line at the
14174 end of a window.
14175
14176 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14177 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14178 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
14179 bar cursors only, to make phys_cursor_width contain what its name
14180 suggests.
14181 (notice_overwritten_cursor): Consider the cursor image erased if
14182 the output area intersects the cursor image in y-direction.
14183
14184 2002-04-23 Simon Marshall <simon@gnu.org>
14185
14186 * xfns.c (x_set_mouse_color): Change default for cross_cursor
14187 to XC_hand2.
14188
14189 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14190
14191 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
14192
14193 2002-04-22 Kim F. Storm <storm@cua.dk>
14194
14195 * textprop.c (remove_properties): Fixed trap for malformed plist.
14196
14197 2002-04-22 Richard M. Stallman <rms@gnu.org>
14198
14199 * cmds.c (Fend_of_line): Handle intangible text in mid line.
14200
14201 * window.c (make_window): Initialize height_fixed_p,
14202 last_cursor_off_p, and p->cursor_off_p slots.
14203
14204 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14205
14206 * fns.c (use-dialog-box): Doc fix.
14207
14208 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14209
14210 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
14211 variables `row', `i' and `area'.
14212 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
14213 toolkit library.
14214
14215 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
14216
14217 * xfaces.c (clear_font_table): Don't free the default font of
14218 a frame even if it's on another display.
14219 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
14220 that could be Qt.
14221
14222 2002-04-19 Juanma Barranquero <lektu@terra.es>
14223
14224 * indent.c (Fmove_to_column): Remove unused local variable
14225 `next_boundary_byte'.
14226 (current_column_1): Likewise.
14227
14228 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
14229
14230 * msdos.c (Qhbar): New variable.
14231 (syms_of_msdos): Intern and staticpro it.
14232 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
14233 cursor type.
14234
14235 2002-04-19 Dave Lambert <dlambert@acm.org>
14236
14237 Theses change implement an underscore-like (`hbar') cursor.
14238
14239 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14240
14241 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
14242 Handle the `hbar' cursor type.
14243 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14244
14245 * xfns.c (Qhbar): New variable.
14246 (syms_of_xfns): Intern and staticpro it.
14247 (x_specified_cursor_type): Handle `hbar' cursor.
14248
14249 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
14250 not defined.
14251
14252 2002-04-18 Richard M. Stallman <rms@gnu.org>
14253
14254 * textprop.c (remove_properties): New arg LIST allows scanning
14255 either a list or a plist.
14256 (interval_has_some_properties_list): New function, like
14257 interval_has_some_properties using list instead of plist.
14258 All callers changed.
14259 (Fremove_list_of_text_properties): New function.
14260 (syms_of_textprop): Defsubr it.
14261
14262 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14263
14264 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
14265
14266 2002-04-17 Juanma Barranquero <lektu@terra.es>
14267
14268 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
14269
14270 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14271
14272 * window.c (coordinates_in_window): Don't report on margin area
14273 if its width is zero.
14274
14275 2002-04-16 Jason Rumney <jasonr@gnu.org>
14276
14277 * w32fns.c (Fx_file_dialog): Decode file name before using.
14278
14279 * w32term.c (construct_drag_n_drop): Likewise.
14280
14281 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
14282
14283 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
14284 store load-history in pure space.
14285
14286 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
14287
14288 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
14289
14290 * xterm.c (Qlatin_1, Qutf_8): New vars.
14291 (syms_of_xterm): Initialize them.
14292 (XTread_socket): Eliminate incorrect optimization that tried to avoid
14293 decoding the output of X*LookupString.
14294 Always use latin-1 to decode the output of XLookupString.
14295 Try Xutf8LookupString if XmbLookupString failed.
14296
14297 * region-cache.c (new_region_cache): Use BEG.
14298
14299 2002-04-16 Gerd Moellmann <gerd@gnu.org>
14300
14301 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
14302 configuration files.
14303 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
14304 returns 0.
14305
14306 2002-04-15 Andreas Schwab <schwab@suse.de>
14307
14308 * config.in: Regenerated using autoheader.
14309
14310 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
14311 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
14312 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
14313 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
14314 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
14315 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
14316 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
14317 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
14318 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
14319 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
14320 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
14321 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
14322 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
14323 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
14324 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
14325 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
14326 STACK_DIRECTION, now set by autoconf.
14327
14328 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14329
14330 * dispnew.c (marginal_area_string): Sort arguments.
14331
14332 * dispextern.h (marginal_area_string): Add prototype.
14333
14334 2002-04-13 Richard M. Stallman <rms@gnu.org>
14335
14336 * fileio.c (Finsert_file_contents):
14337 Don't call temp_output_buffer_setup--do just part, by hand.
14338
14339 * coding.c (run_pre_post_conversion_on_str):
14340 Don't call temp_output_buffer_setup--do just part, by hand.
14341
14342 * keyboard.c (command_loop_1): Don't call start_hourglass
14343 or cancel_hourglass when executing a macro.
14344
14345 * marker.c (count_markers): New function.
14346
14347 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
14348 grow without limit. Move recently used elements to the front.
14349
14350 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14351
14352 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
14353
14354 2002-04-12 Gerd Moellmann <gerd@gnu.org>
14355
14356 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
14357 rows marginal areas.
14358 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
14359 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14360
14361 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
14362
14363 2002-04-12 Dave Love <fx@gnu.org>
14364
14365 * dispnew.c (marginal_area_string): New.
14366
14367 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
14368 (Qleft_margin, Qright_margin): Declare.
14369 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
14370
14371 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
14372 note_mode_line_highlight and extended.
14373
14374 * keyboard.c (Qleft_margin, Qright_margin): Declare.
14375 (make_lispy_event): Deal with mouse events in margins.
14376
14377 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
14378
14379 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
14380
14381 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
14382 than deactivating the mark if tmm is set to `lambda'.
14383 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
14384 Use a single event for HELP_EVENT.
14385 (Fexecute_extended_command): Save last_point_position.
14386
14387 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14388
14389 * lisp.h (Fpropertize): Add prototype.
14390
14391 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
14392
14393 2002-04-10 Colin Walters <walters@verbum.org>
14394
14395 * config.in: Add HAVE_SHARED_GAME_DIR.
14396
14397 * callproc.c: (Vgame_score_directory): New variable.
14398 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
14399
14400 2002-04-10 Richard M. Stallman <rms@gnu.org>
14401
14402 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
14403
14404 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
14405
14406 * minibuf.c (read_minibuf): Use empty_string.
14407 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
14408 Short-circuit the search as soon as it "failed".
14409 (Fall_completions): Allow lambda forms and lists of strings for alist.
14410 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
14411 when require_match is nil.
14412 (Ftest_completion): Rename from `test_completion' and export to elisp.
14413 Call the predicate also when alist is a list.
14414 Obey Vcompletion_regexp_list.
14415 (do_completion, Fminibuffer_complete_and_exit): Use it.
14416 (Fassoc_string): Rename from `assoc_for_completion'.
14417 Allow list of strings as well and export to elisp.
14418
14419 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
14420
14421 * puresize.h (BASE_PURESIZE): Increase to 900KB.
14422
14423 2002-04-08 Juanma Barranquero <lektu@terra.es>
14424
14425 * w32.c (sys_accept): Don't hide variable `s'.
14426
14427 2002-04-05 Gerd Moellmann <gerd@gnu.org>
14428
14429 * callint.c (Fcall_interactively): Use INTEGERP instead of
14430 NUMBERP for checking Vhistory_length.
14431
14432 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14433
14434 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
14435 Doc fix to reflect it.
14436
14437 2002-04-04 Richard M. Stallman <rms@gnu.org>
14438
14439 * xdisp.c (display_mode_element): New arg RISKY.
14440 Disregard text props found or specified within a variable
14441 that isn't marked risky-local-variable.
14442 (Qrisky_local_variable): New variable.
14443 (syms_of_xdisp): Init and staticpro it.
14444
14445 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
14446
14447 * undo.c (record_point): New fun.
14448 (record_delete, record_insert): Use it.
14449
14450 2002-04-03 Juanma Barranquero <lektu@terra.es>
14451
14452 * doc.c (Fdocumentation): Add missing parentheses.
14453 (Fdocumentation_property): Likewise.
14454
14455 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
14456
14457 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
14458 data is 0, just return nil.
14459
14460 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
14461
14462 * msdos.c (syms_of_msdos): Fix last change with
14463 mouse_autoselect_window.
14464
14465 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14466
14467 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
14468 mouse_autoselect_window.
14469
14470 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
14471
14472 * keyboard.c (make_lispy_event): Handle unknown keysyms together
14473 with system-specific keysyms. Use it also for unknown function keys.
14474
14475 * doc.c (reread_doc_file): Return whether reload was attempted.
14476 (Fdocumentation, Fdocumentation_property): Don't try to reload
14477 if the doc is 0 and only ask once.
14478
14479 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
14480
14481 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
14482
14483 * keyboard.c (read_char): If the event was Qselect_window,
14484 restore timer_idleness_start_time to its previous value.
14485
14486 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
14487
14488 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
14489
14490 * region-cache.c (new_region_cache): Use BEG.
14491
14492 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
14493 Use BEG and BEG_BYTE.
14494
14495 * doc.c (get_doc_string): Return nil if the location is wrong.
14496 (reread_doc_file): New fun.
14497 (Fdocumentation, Fdocumentation_property):
14498 Call it if get_doc_string fails.
14499 (Fsnarf_documentation): Make it work for a dumped Emacs.
14500
14501 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
14502 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
14503
14504 * charset.c (Fstring): Allow 0 arguments.
14505
14506 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
14507
14508 * process.c (DATAGRAM_CONN_P, list_processes_1)
14509 (Fprocess_datagram_address, Fset_process_datagram_address)
14510 (Fset_network_process_options, server_accept_connection):
14511 Fix some int/Lisp_Object confusions (thank you union types).
14512
14513 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14514
14515 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
14516
14517 * w32term.c: Likewise.
14518 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
14519
14520 * keyboard.c (Qselect_window): New symbol.
14521 (head_table): Use it.
14522 (keys_of_keyboard): Bound select-window event to handle-select-window.
14523 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
14524
14525 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
14526 (last_window): New variable.
14527 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
14528 (note_mouse_movement): Remove reimplemented code in #if 0.
14529 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
14530 Emacs windows.
14531
14532 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
14533
14534 2002-03-31 Gerd Moellmann <gerd@gnu.org>
14535
14536 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
14537 Callers changed.
14538
14539 2002-03-30 Richard M. Stallman <rms@gnu.org>
14540
14541 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
14542 loop whenever it stops making progress.
14543
14544 * widget.c (set_frame_size): Don't call change_frame_size.
14545
14546 2002-03-30 Gerd Moellmann <gerd@gnu.org>
14547
14548 * dispnew.c (direct_output_for_insert):
14549 Call mark_window_display_accurate.
14550
14551 2002-03-29 Jason Rumney <jasonr@gnu.org>
14552
14553 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
14554
14555 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
14556
14557 * Makefile.in (lread.o): Depend on coding.h.
14558
14559 * lread.c (openp, Fload): Encode the file name before passing it
14560 to `stat', `access', and `emacs_open'.
14561 (openp): GCPRO the encoded file name. Don't recompute Lisp
14562 strings unnecessarily.
14563
14564 2002-03-29 Kim F. Storm <storm@cua.dk>
14565
14566 * fns.c (Flax_plist_put): Doc fix.
14567
14568 2002-03-28 Miles Bader <miles@gnu.org>
14569
14570 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
14571
14572 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14573
14574 * process.c (set-network-process-options): Add usage.
14575 (make-network-process): Doc fix.
14576
14577 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
14578
14579 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
14580
14581 2002-03-26 Richard M. Stallman <rms@gnu.org>
14582
14583 * fns.c (Fsubstring_no_properties): New function.
14584 (Flax_plist_get, Flax_plist_put): New functions.
14585 (syms_of_fns): defsubr them.
14586
14587 * xdisp.c (update_menu_bar): Test only update_mode_lines;
14588 don't test or alter w->update_mode_line.
14589
14590 * window.c (Fdisplay_buffer): Doc fix.
14591
14592 2002-03-24 Richard M. Stallman <rms@gnu.org>
14593
14594 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14595
14596 2002-03-24 Gerd Moellmann <gerd@gnu.org>
14597
14598 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14599 (Fdefmacro): Handle `(declare ...)'.
14600 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14601 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14602
14603 2002-03-24 Jason Rumney <jasonr@gnu.org>
14604
14605 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14606 (xbm_file_p): Add prototypes.
14607 (xbm_format, xbm_image_p): Sync with xfns.c.
14608 (reflect_byte): New function.
14609 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14610 (xbm_load_image): Create bitmaps with a depth of 1.
14611 (init_xfns): Enable XBM images.
14612
14613 2002-03-23 Jason Rumney <jasonr@gnu.org>
14614
14615 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14616 correctly. Do not pass up_modifier to keyboard buffer.
14617
14618 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14619
14620 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
14621
14622 * Makefile.in (bootstrapclean): New target.
14623 (bootstrap-temacs, bootstrap-doc): Remove.
14624 (bootstrap-emacs): Use a bog-standard `temacs'.
14625 Don't bother to build a DOC file.
14626
14627 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14628
14629 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14630 in temacs even if !CANNOT_DUMP.
14631 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14632
14633 * alloc.c (check_pure_size): Only output a warning.
14634
14635 2002-03-22 Jason Rumney <jasonr@gnu.org>
14636
14637 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14638 supported.
14639
14640 * w32term.c (zv_bits): Declare as short, for word alignment.
14641 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14642 (syms_of_w32term): Define x-use-underline-position-properties.
14643
14644 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14645 (clear_image_cache): Block input, fix logic, clear matrices in
14646 all frames that share this cache.
14647
14648 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
14649
14650 * emacs.c (main): Update the Copyright year in the blurb printed
14651 by "emacs --version".
14652
14653 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
14654
14655 * xterm.c (XTread_socket): If XK_ISO_Lock and
14656 XK_ISO_Last_Group_Lock are defined, handle keysyms between
14657 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
14658
14659 2002-03-21 Kim F. Storm <storm@cua.dk>
14660
14661 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
14662 menu-bar bindings in keymap and local-map properties _are_ used.
14663 But try keymap property first in accordance with 2002-01-03 patch.
14664 Added comment describing why this is not always reliable.
14665 (tool_bar_items): Ditto for tool-bar.
14666
14667 2002-03-21 Jason Rumney <jasonr@gnu.org>
14668
14669 * w32fns.c (x_clear_image_1): Disable color table code.
14670
14671 2002-03-21 Kim F. Storm <storm@cua.dk>
14672
14673 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
14674 removed the wrong version of the DEFUN macro; fixed it.
14675
14676 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
14677 Fmember rather than Fmemq).
14678 (Fprovide): Check that subfeatures is a list.
14679
14680 * process.c (QCfeature, QCdatagram): Removed variables.
14681 (QCtype, Qdatagram): New variables.
14682 (network_process_featurep): Removed function.
14683 (Fmake_network_process): Removed :feature check.
14684 Use :type 'datagram instead of :datagram t to create a datagram
14685 socket. This allows us to add other connection types (e.g. raw
14686 sockets) later in a consistent manner.
14687 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
14688 supported subfeatures for feature make-network-process.
14689 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
14690 Intern and staticpro QCtype and Qdatagram.
14691 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
14692
14693 * xfns.c: (QCtype): Remove duplicate declaration and
14694 initialization (is now declared in process.c).
14695
14696 * w32fns.c: (QCtype): Remove duplicate declaration and
14697 initialization (is now declared in process.c).
14698
14699 2002-03-21 Richard M. Stallman <rms@gnu.org>
14700
14701 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
14702 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
14703 when jumping to `fail' to avoid undoing reg changes in the
14704 last iteration of the loop.
14705 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
14706
14707 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
14708 Depend on process.h.
14709
14710 2002-03-20 Jason Rumney <jasonr@gnu.org>
14711
14712 Most of the following changes are still conditional on HAVE_IMAGES
14713 which is not set by default on Windows.
14714
14715 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
14716
14717 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
14718 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
14719 (four_corners_best, x_clear_image_1, x_clear_image)
14720 (x_alloc_image_color, postprocess_image)
14721 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
14722 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
14723 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
14724
14725 * w32gui.h (struct XImage): Define.
14726
14727 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
14728 extract mouse co-ordinates.
14729
14730 2002-03-20 Jason Rumney <jasonr@gnu.org>
14731
14732 * w32.c (init_winsock): Dynamically load new server and UDP
14733 socket functions.
14734 (socket_to_fd): New function.
14735 (sys_socket): Use it.
14736 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
14737 (sys_recvfrom, sys_sendto): New wrapper functions.
14738
14739 * process.c (QCfamily, QCfilter): Remove duplicate declaration
14740 and initialization.
14741
14742 * makefile.w32-in (LIBS): Remove $(WSOCK32).
14743
14744 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
14745
14746 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
14747 Don't use "sun" as a variable, it's a predefined constant on Sun
14748 machines.
14749
14750 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14751
14752 * bytecode.c (Fbyte_code): Revert last change.
14753
14754 2002-03-19 Kim F. Storm <storm@cua.dk>
14755
14756 * makefile.w32-in (LIBS): Add $(WSOCK32).
14757 From David Ponce <dponce@voila.fr>.
14758
14759 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14760
14761 * process.c (wait_reading_process_input): Move variables `pname'
14762 and `pnamelen' down where they are used.
14763
14764 * bytecode.c (Fbyte_code): Discard unused computed value to
14765 prevent gcc warning.
14766
14767 * lisp.h (Fplist_member): Add prototype.
14768
14769 2002-03-18 Kim F. Storm <storm@cua.dk>
14770
14771 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14772 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14773
14774 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14775 Remove explicit GNU_LINUX settings for datagram support.
14776
14777 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14778
14779 * process.c (Fmake_network_process): Remove unused variable `sa'.
14780 Doc fix. Add usage:.
14781 (set_socket_options): Remove unused variables `optnum' and `opttype'.
14782
14783 2002-03-17 Richard M. Stallman <rms@gnu.org>
14784
14785 * xdisp.c (cursor_type_changed): New variable.
14786 (redisplay_internal): Redisplay all windows if cursor_type_changed.
14787 Clear it when clearing windows_or_buffers_changed.
14788 (try_cursor_movement, redisplay_window, try_window_id)
14789 (try_window_reusing_current_matrix): Test cursor_type_changed
14790 along with windows_or_buffers_changed.
14791
14792 * window.h (cursor_type_changed): New variable.
14793
14794 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14795 not update_mode_lines, and always set it to 1.
14796
14797 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14798 if no frames needed redrawing.
14799
14800 2002-03-17 Kim F. Storm <storm@cua.dk>
14801
14802 The following changes add support for network server processes,
14803 datagram connections, and local (unix) sockets.
14804
14805 * process.h (struct Lisp_Process): New member log.
14806 Doc fix: Member command used to indicate stopped network process.
14807 Doc fix: Member childp contains plist for network process.
14808 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14809
14810 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14811 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14812 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14813 New variables.
14814 (NETCONN1_P): New macro.
14815 (DATAGRAM_SOCKETS): New conditional symbol.
14816 (datagram_address): New array.
14817 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14818 (status_message): Use concat3.
14819 (Fprocess_status): Add `listen' status to doc string. Return `stop'
14820 for a stopped network process.
14821 (Fset_process_buffer): Update contact plist for network process.
14822 (Fset_process_filter): Ditto. Don't enable input for stopped
14823 network processes. Server must listen, even if filter is t.
14824 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14825 New functions.
14826 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
14827 (Fprocess_contact): Added KEY argument. Handle datagrams.
14828 (list_processes_1): Optionally show only processes with the query
14829 on exit flag set. Dynamically adjust column widths. Omit tty
14830 column if not needed. Report stopped network processes.
14831 Identify server and datagram network processes.
14832 (Flist_processes): New optional arg `query-only'.
14833 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14834 (conv_lisp_to_sockaddr, set_socket_options)
14835 (network_process_featurep, unwind_request_sigio): New helper functions.
14836 (Fprocess_datagram_address, Fset_process_datagram_address):
14837 (Fset_network_process_options): New lisp functions.
14838 (Fopen_network_stream): Removed. Now defined in simple.el.
14839 (Fmake_network_process): New lisp function. Code is based on previous
14840 Fopen_network_stream, but heavily reworked with new property list based
14841 argument list, support for datagrams, server processes, and local
14842 sockets in addition to old client-only functionality.
14843 (server_accept_connection): New function.
14844 (wait_reading_process_input): Use it to handle incoming connects.
14845 Do not enable input on a new connection if process is stopped.
14846 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
14847 (send_process): Handle datagram sockets.
14848 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
14849 network process is indicated by setting command field to t .
14850 (Fprocess_send_eof): No-op if datagram connection.
14851 (Fstatus_notify): Don't read input for a stream server socket or a
14852 stopped network process.
14853 (init_process): Initialize datagram_address array.
14854 (syms_of_process): Intern and staticpro new variables, defsubr new
14855 functions.
14856
14857 2002-03-16 Jason Rumney <jasonr@gnu.org>
14858
14859 * w32fns.c (w32_to_all_x_charsets): Return correct type in
14860 startup case.
14861
14862 2002-03-16 Richard M. Stallman <rms@gnu.org>
14863
14864 * xdisp.c (redisplay_internal, redisplay_windows):
14865 Use list_of_error to call internal_condition_case_1.
14866 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14867 so as to catch all errors with no possibility of debugger redisplay.
14868 (list_of_error): New variable.
14869 (syms_of_xdisp): Init and staticpro it.
14870
14871 * print.c (print_object): Delete `\ ' from printed rep of frame.
14872
14873 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
14874
14875 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14876 until its implementation is fixed.
14877
14878 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14879
14880 * xfns.c (png_load): Remove unused variable `gamma_str'.
14881
14882 2002-03-14 Richard M. Stallman <rms@gnu.org>
14883
14884 * xfns.c (x_real_positions): Handle failure in XQueryTree.
14885
14886 2002-03-14 Miles Bader <miles@gnu.org>
14887
14888 * intervals.c (adjust_for_invis_intang): New function.
14889 (set_point_both): Use `adjust_for_invis_intang' to do most of the
14890 work for dealing with invisible+intangible regions. Do so before
14891 and after both forward and backward movements, to handle both
14892 front-sticky and rear-sticky cases.
14893 * textprop.c (text_property_stickiness): Function moved here from
14894 `editfns.c'.
14895 * intervals.h (text_property_stickiness): New declaration.
14896 * editfns.c (char_property_eq): Function removed.
14897 (text_property_stickiness): Function moved to `textprop.c'.
14898
14899 2002-03-13 Jason Rumney <jasonr@gnu.org>
14900
14901 * config.in: Add STRFTIME_NO_POSIX2.
14902
14903 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14904 and %OX when underlying strftime does not.
14905
14906 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
14907
14908 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14909 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14910 line) to avoid annoying flicker.
14911 (xm_scroll_callback): Get rid of the now unnecessary kludge.
14912 (XTread_socket): Mark it static.
14913
14914 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14915
14916 2002-03-13 Kim F. Storm <storm@cua.dk>
14917
14918 * puresize.h (BASE_PURESIZE): Increase to 775000.
14919
14920 2002-03-12 Juanma Barranquero <lektu@terra.es>
14921
14922 * editfns.c (syms_of_editfns): Fix typo.
14923
14924 2002-03-12 Gerd Moellmann <gerd@gnu.org>
14925
14926 * xsmfns.c: Include stdio.h because termhooks.h needs it.
14927 Include termopt.h for interrupt_input.
14928
14929 2002-03-11 Andreas Schwab <schwab@suse.de>
14930
14931 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14932
14933 2002-03-11 Gerd Moellmann <gerd@gnu.org>
14934
14935 * xterm.c (note_mouse_movement): Put code for
14936 x_autoselect_window_p in #if 0.
14937
14938 * lread.c (Fload): Don't assume that message_with_string uses the
14939 string it is given like a C string.
14940
14941 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14942
14943 * xterm.h (x_session_check_input, x_session_initialize): Declare.
14944
14945 * xterm.c: (XTread_socket): Add call to x_session_check_input and
14946 x_session_have_connection.
14947 (x_initialize): Add call to x_session_initialize.
14948
14949 * termhooks.h (enum event_kind): Add save_session_event.
14950
14951 * keyboard.c: Add Emacs event save_session_event.
14952
14953 * emacs.c (main): Add call to syms_of_xsmfns.
14954
14955 * lisp.h (syms_of_xsmfns): Declare extern.
14956
14957 * config.in: Add HAVE_X_SM.
14958
14959 * Makefile.in (LIBXT): Add -lSM -lICE
14960 if HAVE_X_SM and not USE_X_TOOLKIT.
14961 (XOBJ): New file xsmfns.c added.
14962
14963 * xsmfns.c: New file for X session management.
14964
14965 2002-03-09 Jason Rumney <jasonr@gnu.org>
14966
14967 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14968 read-only when setting modified time.
14969
14970 2002-03-08 Gerd Moellmann <gerd@gnu.org>
14971
14972 * xdisp.c (move_it_vertically_backward): At the end of the function,
14973 when moving forward by lines, treat terminal frames specially.
14974
14975 * keyboard.c (echo_char): Make sure to add a separator between
14976 keys even if echo_dash hasn't been called.
14977
14978 * xdisp.c: Use new string macros.
14979 (update_echo_area): Pass number of bytes to message3 instead of
14980 number of chars.
14981 (set_message_1): Don't access a string's size_byte directly.
14982 (decode_mode_spec_coding): Use number of bytes of eoltype string
14983 instead number of chars.
14984
14985 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14986
14987 2002-03-08 Juanma Barranquero <lektu@terra.es>
14988
14989 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14990 24-bit.
14991
14992 2002-03-06 Jason Rumney <jasonr@gnu.org>
14993
14994 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14995
14996 2002-03-06 Gerd Moellmann <gerd@gnu.org>
14997
14998 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14999 (cancel_echoing, echo_length, echo_truncate): Changed to
15000 work with new kboard definition.
15001 (echo_now): Use message3_nolog instead of message2_nolog.
15002
15003 * alloc.c (mark_kboards): Mark echo_string.
15004
15005 * keyboard.h (ECHOBUFSIZE): Removed.
15006 (struct kboard): Member echoptr removed, member echobuf renamed
15007 to echo_string.
15008
15009 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
15010 message3 instead of message2 to display the message using STRING's
15011 text properties.
15012
15013 2002-03-05 Andreas Schwab <schwab@suse.de>
15014
15015 * xdisp.c (hscroll_margin): Change to EMACS_INT.
15016
15017 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
15018
15019 * frame.c (default-frame-alist): Explain that setting it doesn't
15020 affect existing frames.
15021
15022 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
15023
15024 * indent.c (skip_invisible): Fix my brain fart.
15025
15026 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
15027
15028 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
15029
15030 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
15031 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
15032 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
15033 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
15034 and variables to use EMACS_INT instead of just int.
15035
15036 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
15037
15038 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
15039
15040 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
15041 environment, pass it down with corrected value.
15042
15043 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15044
15045 * lread.c (read_filtered_event): Do not call start_hourglass
15046 before returning.
15047
15048 2002-03-04 Juanma Barranquero <lektu@terra.es>
15049
15050 * w32term.c (x_display_and_set_cursor): Fix typo.
15051
15052 2002-03-03 Richard M. Stallman <rms@gnu.org>
15053
15054 * fileio.c (Fmake_temp_name): Doc fix.
15055
15056 2002-03-03 Gary Wong <gtw@gnu.org>
15057
15058 * termcap.c [!emacs]: Replace ospeed for building standalone
15059 libtermcap, for binary compatibility.
15060
15061 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
15062
15063 2002-03-03 Richard M. Stallman <rms@gnu.org>
15064
15065 * xrdb.c (file_p): Rename arg `path' to `filename'.
15066
15067 * abbrev.c (Fexpand_abbrev): Increment plist as use count
15068 only if it is an integer.
15069
15070 * xfns.c (png_load): Set screen_gamma based on f->gamma.
15071 If png_get_sRGB gives an answer, call png_set_gamma
15072 using the default image gamma value.
15073
15074 * lread.c (read1): When reading from a file, default string to
15075 multibyte only if it has some multibyte characters.
15076
15077 * print.c (print_object): Output multibyte chars 128...255
15078 using \x even if ! print_escape_multibyte.
15079
15080 * xdisp.c (display_mode_element): Move the places where
15081 bytepos, charpos, this, and lisp_string are set.
15082 Use lisp_string to set bytepos.
15083
15084 * xdisp.c (redisplay_internal):
15085 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
15086
15087 * xdisp.c (display_mode_element): Merge properties specified with
15088 :propertize onto those that come with the string.
15089
15090 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
15091
15092 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
15093 automatic-hscrolling. Users changed.
15094 <hscroll-margin>: Renamed from automatic-hscroll-margin.
15095 Users changed.
15096 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
15097
15098 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15099
15100 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
15101
15102 2002-03-02 Kim F. Storm <storm@cua.dk>
15103
15104 * window.c (Fminibuffer_selected_window): New function.
15105 (syms_of_window): Defsubr it.
15106
15107 2002-03-01 Kim F. Storm <storm@cua.dk>
15108
15109 * window.h (struct window): New member phys_cursor_width.
15110
15111 * window.c (make_window, replace_window): Init phys_cursor_width.
15112
15113 * xterm.c (x_display_and_set_cursor): Blink box cursor using
15114 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15115
15116 * w32term.c (x_display_and_set_cursor): Blink box cursor using
15117 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15118
15119 * lisp.h (GCPRO6): New macro.
15120
15121 * process.c (Fopen_network_stream): Use GCPRO6.
15122
15123 2002-03-01 Kim F. Storm <storm@cua.dk>
15124
15125 * process.c (Qconnect, Qfailed): New variables.
15126 (syms_of_process): Intern and staticpro them.
15127 (Fprocess_status): Document connect and failed return values.
15128 [NON_BLOCKING_CONNECT]: New conditional.
15129 (connect_wait_mask, num_pending_connects): New variables.
15130 (status_message): Convert Qfailed status.
15131 (Fopen_network_stream): Added support for non-blocking connect.
15132 New optional args: filter, sentinel, non_blocking. Doc updated.
15133 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
15134 (deactivate_process): Handle pending non-blocking connect.
15135 (wait_reading_process_input): Poll for status of non-blocking
15136 connects. Exec sentinel directly when connect succeeds.
15137 (status_notify): Don't read process output if not yet connected.
15138
15139 2002-02-28 Kim F. Storm <storm@cua.dk>
15140
15141 * window.c: (minibuf_selected_window): Renamed from
15142 Vminibuf_selected_window. Users changed.
15143 (syms_of_window): Staticpro it.
15144
15145 2002-02-26 Kim F. Storm <storm@cua.dk>
15146
15147 The following changes add a new Vminibuf_selected_window variable
15148 which is similar to Vminibuf_scroll_window, but which is only set
15149 on entry to the minibuffer (from a non-minibuffer window):
15150
15151 * window.c: (Vminibuf_selected_window): New variable.
15152 (struct save_window_data): New member minibuf_selected_window.
15153 (Fset_window_configuration): Restore Vminibuf_selected_window.
15154 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
15155 Set minibuf_scroll_window member to nil if minibuf_level is 0.
15156 (compare_window_configurations): Compare minibuf_selected_window.
15157
15158 * window.h: (Vminibuf_selected_window): Declare extern.
15159
15160 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
15161 entry to minibuffer or on entry from a non-minibuffer window.
15162
15163 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
15164 Vminibuf_selected_window instead of Vminibuf_scroll_window.
15165
15166 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
15167 instead of Vminibuf_scroll_window when deciding in which window
15168 the region should be highlighted. Consequently, the region remains
15169 highlighteded even when a completion buffer is also displayed.
15170
15171 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
15172
15173 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
15174
15175 * xselect.c (Qcompound_text_with_extensions): Renamed from
15176 Qcompound_text_no_extensions.
15177 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
15178
15179 2002-02-26 Juanma Barranquero <lektu@terra.es>
15180
15181 * w32proc.c (syms_of_ntproc): Doc fix.
15182
15183 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15184
15185 * intervals.h: Include "dispextern.h" unconditionally.
15186
15187 2002-02-24 Jason Rumney <jasonr@gnu.org>
15188
15189 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
15190 and disp-table.elc.
15191 (lisp): Add emacs-lisp/backquote.elc.
15192
15193 2002-02-24 Kim F. Storm <storm@cua.dk>
15194
15195 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
15196 The validation of the event type was too strict as it didn't
15197 allow string events; buffer names are used in bindings for
15198 menu-bar-select-buffer (see `menu-bar-update-buffers').
15199
15200 2002-02-23 Kim F. Storm <storm@cua.dk>
15201
15202 The following changes rework my patch of 2002-02-06 which
15203 added command remapping by entering the commands directly into
15204 the keymaps. Now, command remapping uses an explicit `remap'
15205 prefix in the keymaps, i.e. [remap COMMAND].
15206
15207 * keymap.c (Qremap, remap_command_vector): New variables.
15208 (is_command_symbol): Remove function.
15209 (Fdefine_key): No longer accept a symbol for KEY.
15210 Added validation of [remap COMMAND] argument for KEY.
15211 The DEF is no longer required to be a symbol when remapping a command.
15212 (Fremap_command): New function to remap command through keymaps.
15213 (Flookup_key): Perform command remapping initiated by
15214 Fremap_command directly for speed.
15215 (Fkey_binding): Use Fremap_command for command remapping.
15216 (where_is_internal): Handle new command remapping representation.
15217 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
15218 staticpro them. Defsubr Fremap_command.
15219
15220 * keymap.h (Fremap_command): Declare extern.
15221 (is_command_symbol): Remove extern.
15222
15223 * keyboard.c (command_loop_1): Use Fremap_command for command
15224 remapping; now try command remapping for all symbols.
15225
15226 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15227
15228 * coding.h (run_pre_post_conversion_on_str): Add prototype.
15229
15230 2002-02-23 Jason Rumney <jasonr@gnu.org>
15231
15232 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
15233 on the string before encoding it.
15234 (Fw32_get_clipboard_data): Run post-read-conversion on the string
15235 after decoding it.
15236
15237 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
15238
15239 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15240
15241 * w32term.c (enter_timestamp): Remove unused static variable to
15242 prevent warning.
15243
15244 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
15245
15246 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15247
15248 * w16select.c (Fw16_get_clipboard_data): Fix last change.
15249
15250 * xselect.c (selection_data_to_lisp_data): Fix last change.
15251
15252 2002-02-22 Jason Rumney <jasonr@gnu.org>
15253
15254 * w32term.h (struct w32_output): New member menu_command_in_progress.
15255
15256 * w32menu.c (menubar_selection_callback): Free the menu and
15257 clear the menu_command_in_progress flag.
15258
15259 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
15260 (menu_free_timer): New variable.
15261 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
15262 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
15263 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
15264 menu command is in progress.
15265 <WM_COMMAND>: Set the menu_command_in_progress flag.
15266 Kill any menu_free_timer that is running.
15267
15268 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
15269 Call ExtTextOutA rather than ExtTextOut.
15270
15271 2002-02-22 Eli Zaretskii <eliz@gnu.org>
15272
15273 * puresize.h (BASE_PURESIZE): Increase to 755000.
15274
15275 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15276
15277 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
15278 on the string before encoding it.
15279 (Fw16_get_clipboard_data): Run post-read-conversion on the string
15280 after decoding it.
15281
15282 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15283
15284 Support for ICCCM Extended Segments in X selections:
15285
15286 * xselect.c <Qcompound_text_no_extensions>: New variable.
15287 (syms_of_xselect): Intern and staticpro it.
15288 (selection_data_to_lisp_data): Run post-read-conversion on decoded
15289 selection text.
15290 (lisp_data_to_selection_data): If next-selection-coding-system is
15291 compound-text-no-extensions, set the type of selection to be
15292 compound-text.
15293
15294 * xterm.h (x_encode_text): Update prototype.
15295
15296 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
15297 callers changed. If SELECTIONP is non-zero, run the
15298 pre-write-conversion function before encoding the selection text.
15299
15300 2002-02-21 Kim F. Storm <storm@cua.dk>
15301
15302 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15303
15304 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
15305 Correct composing of language-change event.
15306
15307 2002-02-20 Kim F. Storm <storm@cua.dk>
15308
15309 * keyboard.c (menu_bar_items): Don't include keymap or local-map
15310 bindings at PT when building menu (the menu is not updated often
15311 enough for this to work reliable).
15312 (tool_bar_items): Likewise.
15313 (current_active_maps): Removed unused (and buggy) function.
15314
15315 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15316
15317 * xfns.c (gif_load): Use correct width and height for GIF images.
15318
15319 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
15320
15321 * floatfns.c (Fatan): Accept an optional second arg and call
15322 atan2 if passed 2 args.
15323
15324 2002-02-18 Jason Rumney <jasonr@gnu.org>
15325
15326 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
15327
15328 2002-02-17 Jason Rumney <jasonr@gnu.org>
15329
15330 * w32term.c (x_autoselect_window_p): New variable.
15331 (syms_of_w32term): DEFVAR_BOOL and initialize it.
15332 (note_mouse_movement): Use it.
15333
15334 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
15335
15336 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
15337
15338 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15339 New variables.
15340 (syms_of_w32fns): Intern and staticpro them.
15341 (x_frame_parms) <"fullscreen">: New parameter.
15342 (x_fullscreen_move, x_set_fullscreen): New functions.
15343 (x_set_frame_parameters): Support Qfullscreen.
15344 (x_real_positions): Save x/y_pixels_diff frame params.
15345 (x_figure_window_size): Support full-screen frames.
15346 (Fx_create_frame): Default the fullscreen parameter.
15347
15348 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
15349 (x_fullscreen_adjust): New functions.
15350 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
15351 fullscreen. Call x_check_fullscreen_move, and set the
15352 want_fullscreen member of output_data.w32
15353 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
15354
15355 * w32term.h: New enum for FULLSCREEN_* constants.
15356 (struct w32_output): New members want_fullscreen, x_pixels_diff,
15357 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
15358 (x-fullscreen-adjust): New prototype.
15359
15360 2002-02-17 Kim F. Storm <storm@cua.dk>
15361
15362 * frame.c: (Vmouse_highlight): New variable.
15363 (syms_of_frame): DEFVAR_LISP it.
15364
15365 * frame.h: (Vmouse_highlight): Declare extern.
15366
15367 * xterm.h (struct x_display_info): Add mouse_face_hidden.
15368
15369 * xterm.c (disable_mouse_highlight): Removed variable.
15370 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15371 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15372 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
15373 and on after keyboard input.
15374 (x_term_init): Initialize mouse_face_hidden.
15375
15376 * msdos.h (struct display_info): Add mouse_face_hidden.
15377
15378 * msdos.c (disable_mouse_highlight): Removed variable.
15379 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15380 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15381 (internal_terminal_init): Initialize mouse_face_hidden.
15382 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
15383 and on after keyboard input.
15384
15385 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
15386
15387 * w32term.c (disable_mouse_highlight): Removed variable.
15388 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
15389 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15390 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
15391 and on after keyboard input.
15392 (w32_initialize_display_info): Initialize mouse_face_hidden.
15393
15394 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
15395
15396 * msdos.c (last_mouse_window): New variable.
15397 (dos_rawgetc): Fix last change--if the mouse is in the same window
15398 as recorded in last_mouse_window, don't select this window.
15399
15400 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
15401
15402 * msdos.c (x_autoselect_window_p): New variable.
15403 (syms_of_msdos): Defvar it.
15404 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
15405 which the last mouse movement occured, unless it is already selected.
15406
15407 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
15408 New variables.
15409 (syms_of_xdisp): DEVFAR them.
15410 (hscroll_window_tree): Use automatic_hscroll_margin and
15411 Vautomatic_hscroll_step to compute the amount of window scrolling.
15412
15413 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15414
15415 * xterm.c (x-autoselect-window): New variable.
15416 (note_mouse_movement): Use it.
15417
15418 * keyboard.c: Do not include "systime.h" twice.
15419
15420 2002-02-15 Andreas Schwab <schwab@suse.de>
15421
15422 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
15423
15424 * alloc.c (NSTATICS): Increase to 1280.
15425
15426 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
15427
15428 * alloc.c (NSTATICS): Bump to 1026.
15429
15430 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
15431 (Vx_super_keysym): New variables.
15432 (syms_of_xterm): DEFVAR_LISP them.
15433 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
15434 variables to determine which keys to use for the various modifiers.
15435
15436 2002-02-13 Kim F. Storm <storm@cua.dk>
15437
15438 * window.c: (Vmode_line_in_non_selected_windows): Removed.
15439 (mode_line_in_non_selected_windows): New variable.
15440 (syms_of_window): DEFVAR_BOOL it.
15441
15442 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
15443 Use mode_line_in_non_selected_windows.
15444 (mode_line_in_non_selected_windows): Declare extern.
15445 (Vmode_line_in_non_selected_windows): Removed extern.
15446
15447 2002-02-13 Richard M. Stallman <rms@gnu.org>
15448
15449 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
15450 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
15451 (Fclear_this_command_keys): Doc fixes.
15452
15453 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
15454 (update_face_from_frame_parameter): Increment face_change_count
15455 and windows_or_buffers_changed to force redisplay using changed faces.
15456
15457 * xdisp.c (QCpropertize): New variable.
15458 (mode_line_proptrans_alist): New variable.
15459 (display_mode_element): New arg PROPS; all calls changed.
15460 Implement this, for strings.
15461 Handle literal output of strings by sharing the
15462 main-line code for strings, using local var `literal'.
15463 Handle :propertize feature.
15464 (syms_of_xdisp): Initialze and staticpro QCpropertize and
15465 mode_line_proptrans_alist.
15466
15467 2002-02-11 Kim F. Storm <storm@cua.dk>
15468
15469 * window.c: (Vmode_line_in_non_selected_windows): New variable.
15470 (syms_of_window): DEFVAR_LISP it.
15471
15472 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
15473 (CURRENT_MODE_LINE_FACE_ID): Use it.
15474 (Vmode_line_in_non_selected_windows): Declare extern.
15475
15476 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
15477 to get mode line face.
15478
15479 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
15480
15481 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
15482 variables; cus-start.el doesn't need them anymore.
15483
15484 2002-02-09 Kim F. Storm <storm@cua.dk>
15485
15486 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
15487 reduction. This fixes a display problem where stray newlines were
15488 inserted in the window (corrected by C-l). Clarified code (IMHO).
15489
15490 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
15491
15492 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
15493
15494 * xdisp.c (display_mode_lines): Fix last change.
15495
15496 2002-02-09 Jason Rumney <jasonr@gnu.org>
15497
15498 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
15499 match each other.
15500 (w32_load_system_font): Prevent Cleartype fonts from loading.
15501 (Fx_show_tip): Ensure tip frames are above other topmost windows.
15502
15503 2002-02-09 Kim F. Storm <storm@cua.dk>
15504
15505 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
15506 (CURRENT_MODE_LINE_HEIGHT): Use it.
15507 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
15508
15509 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
15510 (pos_visible_p, handle_face_prop): Likewise.
15511 (display_mode_lines): Likewise, but for the real selected window.
15512 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
15513
15514 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
15515 in non-selected windows.
15516 (realize_basic_faces): Realize it.
15517 (syms_of_term): Intern and staticpro it.
15518
15519 2002-02-08 Kim F. Storm <storm@cua.dk>
15520
15521 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
15522 Changed mail addresses to emacs-devel@gnu.org.
15523
15524 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
15525
15526 * fileio.c (Fsubstitute_in_file_name): If the file name includes
15527 ~user, and there's no such user, don't discard everything before ~user.
15528
15529 * floatfns.c (Fround): Doc fix.
15530
15531 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15532
15533 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
15534
15535 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
15536
15537 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
15538
15539 2002-02-07 Kim F. Storm <storm@cua.dk>
15540
15541 * keymap.c (where_is_internal): Only check whether definition is
15542 remapped if it fulfills is_command_symbol.
15543
15544 2002-02-07 Andreas Schwab <schwab@suse.de>
15545
15546 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
15547
15548 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
15549
15550 2002-02-06 Kim F. Storm <storm@cua.dk>
15551
15552 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
15553 defining command remapping. Doc updated.
15554 (Flookup_key): Remap command through keymap if KEY is a symbol.
15555 (is_command_symbol): New function.
15556 (Fkey_binding): Use it. New optional argument NO-REMAP.
15557 Doc updated. Callers changed. Perform command remapping via
15558 recursive call unless that arg is non-nil.
15559 (where_is_internal): New argument no_remap. Callers changed.
15560 Call recursively to find original key bindings for a remapped
15561 comand unless that arg is non-nil.
15562 (Fwhere_is_internal): New optional argument NO-REMAP.
15563 Doc updated. Callers changed. Pass arg to where_is_internal.
15564
15565 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
15566 (is_command_symbol): Add prototype.
15567
15568 * keyboard.c (Vthis_original_command): New variable.
15569 (syms_of_keyboard): DEFVAR_LISP it.
15570 (command_loop_1): Set it, and perform command remapping.
15571
15572 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15573
15574 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
15575
15576 2002-02-06 Jason Rumney <jasonr@gnu.org>
15577
15578 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
15579
15580 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
15581
15582 * charset.c (get_charset_id): Use if-else instead of ?:.
15583
15584 2002-02-06 Richard M. Stallman <rms@gnu.org>
15585
15586 * filelock.c (S_ISLNK): Define if not defined.
15587
15588 2002-02-03 Richard M. Stallman <rms@gnu.org>
15589
15590 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
15591
15592 * lread.c (read1): Redesign strategy for force_multibyte and
15593 force_singlebyte. Now is_multibyte records whether read_buffer
15594 is multibyte. Encountering any multibyte character makes it so.
15595
15596 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
15597
15598 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15599 with the same sequence, map that sequence to f10 rather than f0.
15600
15601 2002-02-03 Andreas Schwab <schwab@suse.de>
15602
15603 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15604 latter never being defined on GNU/Linux.
15605
15606 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
15607
15608 * xfaces.c (realize_default_face): Don't set the weight and slant of
15609 the default face to Qnormal, unless these attributes are unspecified.
15610
15611 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15612
15613 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15614 Call cancel_hourglass unconditionally.
15615
15616 * eval.c (Fsignal): Remove duplicated declaration of
15617 the variable `display_hourglass_p'.
15618
15619 2002-01-31 Richard M. Stallman <rms@gnu.org>
15620
15621 * editfns.c (region_limit): Nicer error message.
15622
15623 * coding.c (decode_composition_emacs_mule):
15624 Give up if NCOMPONENT gets too large to index `component'.
15625
15626 * callint.c (check_mark): New arg to specify clearer error message.
15627 Callers changed.
15628
15629 2002-01-27 Richard M. Stallman <rms@gnu.org>
15630
15631 * minibuf.c (Fcompleting_read): Doc fix.
15632
15633 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15634
15635 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15636 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15637 Fix doc-strings.
15638
15639 2002-01-26 Richard M. Stallman <rms@gnu.org>
15640
15641 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
15642
15643 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15644 and scroll_up_aggressively.
15645
15646 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15647
15648 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
15649
15650 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
15651
15652 * textprop.c (Fnext_property_change, Fnext_single_property_change)
15653 (Fprevious_property_change, Fprevious_single_property_change):
15654 Stay within the narrowed-buffer boundaries.
15655
15656 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
15657
15658 * term.c (Ftty_display_color_cells): New function.
15659 (syms_of_term): Defsubr it.
15660 (Ftty_display_color_cells, Ftty_display_color_p): Change the
15661 argument name to DISPLAY. Doc fix.
15662
15663 * dispextern.h: Add prototype for set_tty_color_mode and
15664 tty_setup_colors.
15665
15666 2002-01-24 Jason Rumney <jasonr@gnu.org>
15667
15668 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
15669 If region left to draw is not what was expected, mark the frame as
15670 garbaged.
15671
15672 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
15673 Combine the regions returned by BeginPaint and GetUpdateRect.
15674
15675 2002-01-23 Jason Rumney <jasonr@gnu.org>
15676
15677 * w32term.c (x_update_window_begin): Only hide caret if
15678 w32_use_visible_system_caret is set.
15679 (x_update_window_end): Only show caret if
15680 w32_use_visible_system_caret is set.
15681 (syms_of_w32term): Handle SystemParametersInfo call failing.
15682
15683 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
15684
15685 2002-01-22 Richard M. Stallman <rms@gnu.org>
15686
15687 * unexelf.c (unexec): Define n so as to cause compilation error
15688 for the code where people have often written n instead of nn.
15689
15690 * .gdbinit (hookpost-run): Defined.
15691
15692 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15693
15694 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
15695
15696 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15697
15698 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
15699 if fullscreen is being set.
15700
15701 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15702
15703 * minibuf.c (Fminibuffer_contents)
15704 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
15705 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
15706
15707 2002-01-21 Richard M. Stallman <rms@gnu.org>
15708
15709 * window.c (check_frame_size): Fix minimum height calculation.
15710
15711 2002-01-20 Ken Raeburn <raeburn@gnu.org>
15712
15713 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
15714 height before comparison.
15715 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
15716
15717 2002-01-20 Jason Rumney <jasonr@gnu.org>
15718
15719 * w32term.c (w32_system_caret_width): Remove.
15720 (w32_use_visible_system_caret): New user flag.
15721 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
15722 Windows reports a screen reader running.
15723 (x_update_window_begin): Hide the system caret.
15724 (x_update_window_end): Show the system caret.
15725 (x_display_and_set_cursor): Don't draw a cursor when
15726 w32_use_visible_system_caret is set. Do not adjust width.
15727
15728 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
15729 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
15730 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
15731 the user requests it. Use system default width when creating.
15732 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
15733
15734 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
15735 New window messages.
15736
15737 2002-01-20 Richard M. Stallman <rms@gnu.org>
15738
15739 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
15740
15741 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15742
15743 * doprnt.c (doprnt1): Fix typos in error call.
15744
15745 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
15746
15747 * unexelf.c (unexec) [__sgi]: Support the .got sections.
15748
15749 2002-01-20 Jason Rumney <jasonr@gnu.org>
15750
15751 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
15752 that Windows returns. If a double check fails, try to guess how
15753 ExtTextOut is going to act.
15754
15755 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
15756 in place of stricmp.
15757 (w32_list_synthesized_fonts): Removed.
15758 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
15759 (struct enumfont_t): New element; list.
15760 (enum_font_cb2): List all style and charset variations of a font.
15761 (Fw32_select_font): New optional argument; include_proportional.
15762 Exclude vertical fonts. Exclude proportional fonts unless
15763 include_proportional is non-nil.
15764 (w32_enable_synthesized_fonts): Change to a boolean.
15765 (Fw32_send_sys_command): Doc fix.
15766
15767 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15768
15769 * dispnew.c (update_frame): Move the variable `tem' to the block
15770 where it is used.
15771
15772 2002-01-19 Jason Rumney <jasonr@gnu.org>
15773
15774 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15775 call to face-set-after-frame-default.
15776
15777 2002-01-18 Richard M. Stallman <rms@gnu.org>
15778
15779 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15780 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
15781
15782 2002-01-17 Richard M. Stallman <rms@gnu.org>
15783
15784 * window.c (enlarge_window): When exceeding size of parent,
15785 directly delete all the siblings instead of trying to resize it.
15786
15787 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15788
15789 * term.c (set_tty_color_mode): Remove unused variable `tem'.
15790
15791 2002-01-16 Henrik Enberg <henrik@enberg.org>
15792
15793 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
15794
15795 2002-01-16 Kim F. Storm <storm@cua.dk>
15796
15797 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15798 is invisible. This can happen if cursor is on top line of a
15799 window, and we switch to a buffer with a header line.
15800
15801 * w32term.c (x_erase_phys_cursor): Ditto.
15802
15803 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15804
15805 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15806 `dont_resize' only when used.
15807
15808 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
15809
15810 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
15811
15812 * xdisp.c (display_mode_element): When computing charpos, depend
15813 on multibyteness of elt, not the text in field.
15814
15815 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15816
15817 * buffer.c (Fkill_all_local_variables):
15818 Increment `update_mode_lines' only once.
15819
15820 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15821
15822 * lisp.h (adjust_after_replace_noundo)
15823 (Fupdate_coding_systems_internal): Add prototypes.
15824
15825 * sound.c (Fplay_sound): Initialize header_size also for :data case.
15826
15827 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
15828
15829 Support for the --color command-line argument and tty-color-mode
15830 frame parameter:
15831
15832 * term.c (tty_default_color_capabilities, tty_setup_colors)
15833 (set_tty_color_mode): New functions.
15834 (term_init): Call tty_default_color_capabilities.
15835 (Qtty_color_mode_alist): New variable.
15836 (syms_of_term): Intern and staticpro it.
15837
15838 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15839 frames.
15840 (do_switch_frame): For termcap frames, switch the tty
15841 color mode as specified by the frame's parameters.
15842 (Qtty_color_mode): New variable.
15843 (syms_of_frame): Intern and staticpro it.
15844
15845 * emacs.c (USAGE2): Add the --color option.
15846 (standard_args): Ditto.
15847
15848 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15849
15850 * xterm.h (struct x_output): New members want_fullscreen,
15851 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15852 y_pixels_outer_diff.
15853 New enum for FULLSCREEN_* constants.
15854 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15855 is NULL.
15856 (x_fullscreen_adjust): Add prototype.
15857
15858 * emacs.c (USAGE2): Add the new full-screen arguments.
15859 (standard_args): Ditto.
15860
15861 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15862 New variables.
15863 (syms_of_xfns): Intern and staticpro them.
15864 (x_frame_parms) <"fullscreen">: New parameter.
15865 (x_fullscreen_move, x_set_fullscreen): New functions.
15866 (x_set_frame_parameters): Support for Qfullscreen.
15867 (x_real_positions): More accurate computation of the frame position.
15868 (x_figure_window_size): Support full-screen frames.
15869 (Fx_create_frame): Default the fullscreen parameter.
15870
15871 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15872 (XTread_socket) <Expose>: Call x_check_fullscreen.
15873 <ConfigureNotify>: Don't resize to fullscreen.
15874 Call x_check_fullscreen_move, and set the want_fullscreen member of
15875 output_data.x.
15876
15877 2002-01-13 Jason Rumney <jasonr@gnu.org>
15878
15879 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15880 for mice with more than 3 buttons.
15881
15882 * w32term.c (parse_button): New parameter xbutton. Callers changed.
15883 (w32_read_socket): Handle new "XBUTTON" messages.
15884
15885 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15886 (syms_of_w32fns): DEFVAR_BOOL it.
15887 (w32_wnd_proc): Handle new "XBUTTON" messages.
15888
15889 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15890
15891 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
15892
15893 2002-01-13 Andreas Schwab <schwab@suse.de>
15894
15895 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
15896
15897 2002-01-12 Andreas Schwab <schwab@suse.de>
15898
15899 * .gdbinit (xbuffer): Remove address operator since data is now a
15900 pointer.
15901
15902 2002-01-11 Richard M. Stallman <rms@gnu.org>
15903
15904 * insdel.c (adjust_after_replace_noundo): New function.
15905
15906 * coding.c (code_convert_region): Don't copy old text if undo disabled.
15907
15908 2002-01-09 Jason Rumney <jasonr@gnu.org>
15909
15910 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15911 when checking for multiple frames.
15912
15913 2002-01-08 Richard M. Stallman <rms@gnu.org>
15914
15915 * window.c (delete_window): Rewrite the code for changing the
15916 selected window to handle the case where WINDOW is not a leaf.
15917
15918 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
15919
15920 * process.c (send_process): Set src_multibyte to 1 after the call
15921 top setup_coding_system, not before the call.
15922
15923 2002-01-07 Jason Rumney <jasonr@gnu.org>
15924
15925 * xmenu.c (set_frame_menubar, xmenu_show):
15926 (xdialog_show): Initialize wv->help to Qnil.
15927
15928 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15929 (w32_dialog_show): Initialize wv->help to Qnil.
15930
15931 2002-01-06 Jason Rumney <jasonr@gnu.org>
15932
15933 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
15934
15935 * w32menu.c (w32_menu_display_help): Revert last change.
15936
15937 * xmenu.c (menu_highlight_callback): Revert last change.
15938
15939 2002-01-06 Andreas Schwab <schwab@suse.de>
15940
15941 * insdel.c (make_gap_larger): Make sure buffer size does not
15942 overflow range of int.
15943
15944 2002-01-05 Jason Rumney <jasonr@gnu.org>
15945
15946 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15947 OVERLAPS_P.
15948
15949 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
15950
15951 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15952 to the left or to the right of the pointer, put it against
15953 the left screen edge.
15954 (x_frame_parms): Add missing braces around initializer.
15955
15956 * w32term.c (x_setup_relief_colors): Don't compute an image's
15957 background color if it doesn't have a Pixmap.
15958 (notice_overwritten_cursor): Don't depend on
15959 output_cursor and updated_area. Compare pixel coordinates with
15960 window's cursor pixel coordinates.
15961 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15962 Call notice_overwritten_cursor with new arg list.
15963 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15964 unconditionally.
15965 (x_draw_image_relief): Use predefined macro instead of
15966 constant when the value of `tool_bar_button_relief' is negative.
15967
15968 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
15969
15970 2002-01-04 Richard M. Stallman <rms@gnu.org>
15971
15972 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
15973
15974 2002-01-03 Richard M. Stallman <rms@gnu.org>
15975
15976 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15977 (Fkey_binding): Try the `keymap' property map first.
15978 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15979 minor mode bindings.
15980
15981 2002-01-03 Kim F. Storm <storm@cua.dk>
15982
15983 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
15984
15985 2002-01-02 Richard M. Stallman <rms@gnu.org>
15986
15987 * keyboard.c (read_key_sequence): Handle the keymap property
15988 before minor mode maps.
15989
15990 * editfns.c (Fformat): Update thissize from field_width
15991 based on the actual width, in the string case.
15992
15993 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15994
15995 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15996 when used as truth value to prevent gcc warnings.
15997
15998 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15999 * w32proc.c: Include <config.h>.
16000
16001 2002-01-01 Andreas Schwab <schwab@suse.de>
16002
16003 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
16004 not EMACS_INT, to make them compatible with DEFVAR_INT.
16005 * lisp.h (max_specpdl_size): Adjust declaration.
16006
16007 2002-01-01 Richard M. Stallman <rms@gnu.org>
16008
16009 * print.c (print_object): Test print_escape_nonascii only for
16010 unibyte strings.
16011 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
16012 when outputting to a multibyte buffer.
16013
16014 2001-12-29 Richard M. Stallman <rms@gnu.org>
16015
16016 * print.c (print_object): In multibyte string, use hex escapes.
16017 Use octal only for unibyte strings.
16018 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
16019
16020 * lread.c (read_escape): New arg BYTEREP for reporting whether
16021 escape forces unibyte or multibyte.
16022 (read1): When reading a string, take note of that info.
16023
16024 2001-12-29 Ken Raeburn <raeburn@gnu.org>
16025
16026 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
16027 comparison to test lisp value returned by Fget.
16028
16029 2001-12-29 Richard M. Stallman <rms@gnu.org>
16030
16031 * lisp.h (max_specpdl_size): Add declaration.
16032
16033 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
16034
16035 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
16036 Handle modifier bits. Correct typo in error message.
16037
16038 2001-12-28 Richard M. Stallman <rms@gnu.org>
16039
16040 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
16041 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
16042 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16043 Update calls to Fdefine_abbrev.
16044 (write_abbrev): Update for changed data format.
16045 Don't list "system" abbrevs.
16046 (Fexpand_abbrev): Update use count with new data format.
16047 (describe_abbrev): Update for changed data format.
16048 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
16049
16050 * config.in (HAVE_MBSINIT): Add #undef.
16051
16052 * strftime.c (mbsinit): Define as no-op if not available.
16053
16054 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
16055 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
16056
16057 * keymap.c (Flookup_key): Error message if key has wrong data type.
16058 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
16059 (exclude_key): New variable.
16060
16061 2001-12-28 Gerd Moellmann <gerd@gnu.org>
16062
16063 * xterm.c (x_setup_relief_colors): Don't compute an image's
16064 background color if it doesn't have a Pixmap.
16065
16066 * xterm.c (notice_overwritten_cursor): Don't depend on
16067 output_cursor and updated_area. Compare pixel coordinates with
16068 window's cursor pixel coordinates.
16069 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16070 Call notice_overwritten_cursor with new arg list.
16071 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16072 unconditionally.
16073
16074 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
16075 height of the cursor line to the amount to scroll.
16076
16077 2001-12-27 Richard M. Stallman <rms@gnu.org>
16078
16079 * intervals.c (set_point_both): The position after an invisible,
16080 intangible character is not an acceptable stopping point.
16081
16082 2001-12-27 Ken Raeburn <raeburn@gnu.org>
16083
16084 * window.c (enlarge_window): In new preserve_before code, convert
16085 CURBEG from lisp object to integer before doing arithmetic.
16086
16087 2001-12-27 Richard M. Stallman <rms@gnu.org>
16088
16089 * bytecode.c (Fbyte_code): Undo previous change.
16090
16091 2001-12-26 Kim F. Storm <storm@cua.dk>
16092
16093 * keyboard.c (record_char): Ignore duplicate help-echo events only
16094 separated by mouse-movement. When tracking mouse, only record
16095 first and last mouse-movement event in same window.
16096 Don't record mouse-movement events in keyboard macros.
16097
16098 2001-12-25 Richard M. Stallman <rms@gnu.org>
16099
16100 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
16101 (Fenlarge_window): New arg PRESERVE_BEFORE.
16102
16103 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
16104 instead of Fstring_as_unibyte.
16105
16106 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16107
16108 The following changes remove mocklisp support:
16109
16110 * mocklisp.h, mocklisp.c: Files removed.
16111
16112 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
16113 `Qmocklisp' and `Qmocklisp_arguments'.
16114 Remove prototype of syms_of_mocklisp.
16115
16116 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
16117
16118 * callint.c: Do not include mocklisp.h.
16119 (Fcall_interactively): Do not test for mocklisp case.
16120
16121 * eval.c: Remove variables `Qmocklisp_arguments',
16122 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
16123 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
16124 Do not test for mocklisp case.
16125 (Fwhile): Remove unused variable `tem'.
16126 (syms_of_eval): Remove variable `moclisp-arguments'.
16127
16128 * data.c (wrong_type_argument): Remove mocklisp case.
16129
16130 * doc.c (Fdocumentation): Remove mocklisp case.
16131
16132 * emacs.c (main): Do not call syms_of_mocklisp.
16133
16134 2001-12-21 Richard M. Stallman <rms@gnu.org>
16135
16136 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
16137 to the left or to the right of the pointer, put it against
16138 the left screen edge.
16139
16140 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
16141
16142 * Makefile.in (distclean): Remove .gdbinit if we are building
16143 outside the source tree.
16144
16145 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
16146
16147 * w32.c (emacs_root_dir): New function.
16148
16149 * msdos.c (emacs_root_dir): New function.
16150
16151 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
16152 of the current drive as the fallback for default_directory.
16153
16154 * dired.c (file_name_completion): Run the elements of
16155 completion-ignored-extensions through ENCODE_FILE.
16156
16157 * lisp.h (scmp): Remove prototype, since it's now a static
16158 function private to dired.c.
16159
16160 2001-12-18 Richard M. Stallman <rms@gnu.org>
16161
16162 * dired.c (scmp): Function moved from minibuf.c.
16163 Delete multibyte handling--used only on encoded strings.
16164
16165 * minibuf.c (scmp): Function moved to dired.c.
16166
16167 * fns.c (merge): Add QUIT call.
16168
16169 2001-12-18 Dave Love <fx@gnu.org>
16170
16171 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
16172 language/georgian.el.
16173
16174 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
16175
16176 * Makefile.in (lisp, shortlisp): Synchronize with changes to
16177 lisp/Makefile.in:DONTCOMPILE.
16178
16179 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16180
16181 * xdisp.c (window_box_height): Do not return negative values.
16182 From Gerd Moellmann <gerd@gnu.org>.
16183
16184 * keyboard.c (head_table): Add missing braces around initializer.
16185
16186 * term.c (keys): Likewise.
16187
16188 * xfns.c (x_frame_parms, visual_classes): Likewise.
16189
16190 2001-12-17 Sam Steingold <sds@gnu.org>
16191
16192 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
16193 patch (COMPOSING_P, not COMPOSING).
16194
16195 2001-12-17 Richard M. Stallman <rms@gnu.org>
16196
16197 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
16198
16199 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
16200 before calling decode_coding.
16201
16202 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
16203
16204 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
16205 instead of only for COMPOSITION_DISABLED.
16206
16207 2001-12-16 Richard M. Stallman <rms@gnu.org>
16208
16209 * alloc.c (pure_alloc): After overflow, allocate just a small block.
16210
16211 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
16212
16213 * buffer.h (struct buffer): New field `display_error_modiff'.
16214 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
16215
16216 * window.c (Frecenter): Clear display_error_modiff field.
16217
16218 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
16219 Call redisplay_window, but not if display_error_modiff field says no.
16220 (redisplay_window_error): New function.
16221 (displayed_buffer): New variable.
16222 (redisplay_internal, redisplay_windows): Call the new functions
16223 instead of redisplay_window directly.
16224
16225 2001-12-15 Richard M. Stallman <rms@gnu.org>
16226
16227 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
16228
16229 2001-12-14 Andrew Innes <andrewi@gnu.org>
16230
16231 * makefile.w32-in (EMACSLOADPATH): Define.
16232 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
16233 (bootstrap-temacs): Remove dependency on bootstrap-clean.
16234
16235 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
16236
16237 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
16238 parameter have a numeric value all the time.
16239
16240 * w32fns.c (x_report_frame_params): Likewise.
16241
16242 2001-12-12 Richard M. Stallman <rms@gnu.org>
16243
16244 * fileio.c (Fwrite_region): Doc fix.
16245
16246 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
16247 (redisplay_internal): Call clear_image_cache only for window terminals.
16248
16249 2001-12-12 Gerd Moellmann <gerd@gnu.org>
16250
16251 * xdisp.c (move_it_vertically_backward): Change heuristic
16252 for the case that we didn't move far enough initially.
16253
16254 * window.c (Frecenter): Simplify computation in the case of window
16255 system frames and ARG < 0; use window_box_height.
16256
16257 2001-12-11 Richard M. Stallman <rms@gnu.org>
16258
16259 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
16260 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
16261
16262 2001-12-11 Andrew Innes <andrewi@gnu.org>
16263
16264 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
16265 arg is negative.
16266
16267 2001-12-11 Richard M. Stallman <rms@gnu.org>
16268
16269 * m/hp800.h: Split the __hpux conditional into the parts
16270 that are right for GNU/Linux too and the parts that are not.
16271 Use the former if GNU_LINUX.
16272 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
16273
16274 * s/gnu-linux.h (GNU_LINUX): Defined.
16275
16276 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16277
16278 * macros.c, msdos.c, w16select.c: Change doc-string comments to
16279 `new style' [w/`doc:' keyword].
16280
16281 2001-12-10 Jason Rumney <jasonr@gnu.org>
16282
16283 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
16284 before using.
16285
16286 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16287
16288 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
16289 keyword].
16290
16291 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
16292
16293 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
16294
16295 * s/hpux10.h (srand48): Don't undefine.
16296
16297 2001-12-09 Jason Rumney <jasonr@gnu.org>
16298
16299 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
16300 Add comment to explain where the struct came from.
16301 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
16302 (add_menu_item): Process pop-up menus first to avoid memory leak.
16303 (add_menu_item, w32_menu_display_help): Use `help' field as
16304 Lisp_Object.
16305 (w32_free_submenu_strings): Only free owner-drawn strings.
16306
16307 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16308
16309 * COPYING: Moved back.
16310
16311 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
16312 Add parentheses around && within ||.
16313
16314 * indent.c (compute_motion): Likewise.
16315
16316 * intervals.c (merge_properties_sticky): Likewise.
16317
16318 * coding.c (setup_coding_system, shrink_encoding_region)
16319 (Fdecode_sjis_char): Likewise.
16320
16321 2001-12-07 Andreas Schwab <schwab@suse.de>
16322
16323 * xdisp.c (display_mode_element): Don't read past end of string if
16324 it ends with '%'.
16325
16326 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
16327 can hold.
16328
16329 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
16330 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
16331 type changed to Lisp_Object.
16332 (syms_of_data): DEFVAR_LISP them.
16333
16334 2001-12-07 Richard M. Stallman <rms@gnu.org>
16335
16336 * callproc.c (init_callproc): Set Vdata_directory based on the source
16337 location whenever Emacs was run uninstalled.
16338
16339 2001-12-06 Paul Eggert <eggert@twinsun.com>
16340
16341 * config.in (HAVE_WORKING_VFORK): New #undefs.
16342 * process.c (create_process):
16343 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
16344 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
16345 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
16346 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
16347 * m/intel386.h (HAVE_VFORK): Likewise.
16348 * m/mips-siemens.h (HAVE_VFORK): Likewise.
16349 * m/mips.h (HAVE_VFORK): Likewise.
16350 * s/freebsd.h (vfork): Remove #define.
16351 * s/lynxos.h (HAVE_VFORK): Remove #undef.
16352 * s/usg5-4-2.h: Fix comment about vfork.
16353
16354 2001-12-06 Richard M. Stallman <rms@gnu.org>
16355
16356 * s/hpux10.h (random): Add undef.
16357 (HAVE_RANDOM): Define it just once.
16358
16359 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
16360
16361 * eval.c: Undo last change: the standard syntax is not wanted.
16362
16363 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
16364
16365 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
16366 scroll bars of the frame before deleting the frame itself. If the
16367 frame has a widget, delete the frame with XtDestroyWidget, and do
16368 not call XDestroyWindow before that.
16369
16370 2001-12-06 Kim F. Storm <storm@cua.dk>
16371
16372 * xfns.c (x_report_frame_params): Return actual fringe widths.
16373
16374 * w32fns.c (x_report_frame_params): Return actual fringe widths.
16375
16376 2001-12-05 Andrew Innes <andrewi@gnu.org>
16377
16378 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
16379 excessively large.
16380
16381 * insdel.c (make_gap_larger): New function.
16382 (make_gap_smaller): New function.
16383 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
16384 Call make_gap_smaller if arg is negative.
16385
16386 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
16387
16388 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
16389 Pass a dummy argument when calling interrupt_signal.
16390 (parse_menu_item): Mark disabled items before checking for empty def.
16391 (read_char_minibuf_menu_prompt): Make safety more visible.
16392 (read_key_sequence): Add a `first_unbound' variable.
16393 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
16394 unbound prefix as soon as we can detect it.
16395
16396 * doc.c (Fsnarf_documentation): Add prototype.
16397 (get_doc_string): Handle negative arguments.
16398 (Fdocumentation): Use AREF and ASIZE.
16399 Move the calls to get_doc_string to a single place.
16400 Don't confuse an interactive-spec for a docstring reference.
16401 (Fdocumentation_property): Take advantage of the fact that
16402 get_doc_string now ignores the sign of the docstring position.
16403
16404 * eval.c: Use standard syntax for usage in docstrings.
16405
16406 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16407
16408 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
16409
16410 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16411
16412 * xterm.c (x_draw_image_relief): Use predefined macro instead of
16413 constant when the value of `tool_bar_button_relief' is negative.
16414
16415 2001-12-02 Richard M. Stallman <rms@gnu.org>
16416
16417 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
16418 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
16419
16420 * fileio.c (read_non_regular): Delete Fsignal call.
16421
16422 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
16423
16424 * lisp.h (run_hook_list_with_args): Undo last change.
16425
16426 2001-12-01 Gerd Moellmann <gerd@gnu.org>
16427
16428 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
16429
16430 2001-12-01 Jason Rumney <jasonr@gnu.org>
16431
16432 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
16433
16434 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
16435 [!WM_MOUSELEAVE]: Define.
16436
16437 * w32menu.c (current_popup_menu, get_menu_item_info):
16438 (set_menu_item_info): New vars.
16439 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
16440 (w32_menu_show): Set current_popup_menu.
16441 (add_menu_item): Allocate new strings for owner-drawn menu items
16442 and help strings.
16443 Use owner-draw for disabled menu items again.
16444 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
16445 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
16446
16447 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
16448 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
16449 <WM_EXITMENULOOP>: Free menu strings.
16450 <WM_MOUSELEAVE>: Stop tracking mouse.
16451 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
16452
16453 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
16454 and mouse face.
16455
16456 2001-12-01 Kim F. Storm <storm@cua.dk>
16457
16458 The following changes add left-fringe and right-fringe
16459 frame parameters to adjust fringe widths, or remove one or
16460 both fringes.
16461
16462 * frame.h (struct frame): Remove trunc_area_pixel_width and
16463 trunc_area_cols fields.
16464 (Qleft_fringe, Qright_fringe): Declare.
16465 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
16466
16467 * frame.c (Qleft_fringe, Qright_fringe): New vars.
16468 (syms_of_frame): Initialize them.
16469
16470 * window.c (coordinates_in_window): Handle separate left and right
16471 fringe widths.
16472
16473 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
16474 and fringe_cols fields.
16475 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
16476 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
16477 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
16478 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
16479 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
16480 (x_compute_fringe_widths): Add prototype.
16481
16482 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
16483 fill fringe evenly with small dashes.
16484 (x_draw_fringe_bitmap): Clear background if necessary. Align and
16485 clip the new ZV bitmap to avoid jitter between rows.
16486 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
16487 background. Don't draw fringe bitmaps if fringe width is zero.
16488 (x_compute_fringe_widths): New function.
16489 (x_new_font, x_set_window_size_1): Use it.
16490
16491 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
16492 (x_set_frame_parameters): Process `font' parameter before other
16493 parameters as fringe widths depend on it.
16494 (x_set_fringe_width): New function.
16495 (x_figure_window_size): Use x_compute_fringe_widths.
16496 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
16497 parameters.
16498
16499 * widget.c (set_frame_size): Use x_compute_fringe_widths.
16500 (EmacsFrameSetCharSize): Ditto.
16501
16502 * w32term.h: Merged changes from xterm.h.
16503 * w32term.c: Merged changes from xterm.c.
16504 * w32fns.c: Merged changes from xfns.c.
16505
16506 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16507
16508 * COPYING: Removed.
16509
16510 2001-11-29 Dave Love <fx@gnu.org>
16511
16512 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
16513 extra extra slot.
16514 (detect_coding_mask): Fix call of detect_coding_iso2022.
16515
16516 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16517
16518 * fileio.c (file-name-coding-system)
16519 (default-file-name-coding-system): Doc fix (links to referenced
16520 variables added).
16521
16522 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
16523
16524 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
16525 Add dummy uses of gcproN variables.
16526
16527 * category.c (describe_category, describe_category_1)
16528 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
16529 (syms_of_category): Don't defsubr Sdescribe_categories.
16530
16531 2001-11-28 Richard M. Stallman <rms@gnu.org>
16532
16533 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
16534
16535 * Makefile.in (lispdir): New variable, referring to build dir.
16536 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
16537
16538 2001-11-28 Andrew Innes <andrewi@gnu.org>
16539
16540 * w32menu.c (w32_menu_display_help): Actually add the new argument
16541 OWNER.
16542
16543 2001-11-28 Jason Rumney <jasonr@gnu.org>
16544
16545 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16546 menu items. From David Ponce <dponce@wanadoo.fr>.
16547 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
16548 conditionally.
16549 (w32_menu_display_help): New argument OWNER. Rewritten to store a
16550 help event in the owner frame's keyboard buffer.
16551
16552 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
16553 (Fx_show_tip): Don't subtract last width from row width.
16554
16555 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
16556 (w32_read_socket): Use EQ to compare frames.
16557
16558 2001-11-28 Gerd Moellmann <gerd@gnu.org>
16559
16560 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16561 OVERLAPS_P.
16562
16563 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16564
16565 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
16566 `gcpro3' and `gcpro4'.
16567
16568 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
16569
16570 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
16571
16572 * ccl.c: Use AREF and ASIZE.
16573
16574 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
16575
16576 * lisp.h (run_hook_list_with_args): Remove.
16577 (LIST_END_P): Fix call to wrong_type_argument.
16578 (make_fixnum_or_float): Use EMACS_INT rather than int.
16579
16580 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
16581
16582 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
16583 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
16584
16585 * eval.c: Use AREF and ASIZE.
16586 (Ffetch_bytecode): Add the file name to the error message.
16587
16588 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16589 which match the end of the file-name.
16590 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16591 is not a valid env var, but leave it as is instead.
16592
16593 * keymap.c (access_keymap): Handle t bindings like nil bindings.
16594 Make nil bindings in char-tables transparent.
16595 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
16596
16597 2001-11-26 Richard M. Stallman <rms@gnu.org>
16598
16599 * textprop.c (set_text_properties_1): Allow START, END in either order.
16600 Do nothing if range is empty.
16601
16602 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
16603
16604 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16605 (clean): Not here.
16606
16607 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16608
16609 * textprop.c (set_text_properties_1): Clearly mark that the
16610 interval should not be empty.
16611
16612 * intervals.c (graft_intervals_into_buffer):
16613 Don't call set_text_properties_1 on an empty interval.
16614
16615 2001-11-25 Richard M. Stallman <rms@gnu.org>
16616
16617 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
16618
16619 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16620 don't lose the data in it.
16621
16622 2001-11-25 Juanma Barranquero <lektu@terra.es>
16623
16624 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
16625
16626 * buffer.c (Fkill_buffer): Likewise.
16627
16628 * print.c (temp_output_buffer_setup): Likewise.
16629
16630 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
16631
16632 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
16633
16634 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
16635
16636 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
16637 Niemitalo <kon@iki.fi>.
16638
16639 2001-11-25 Jason Rumney <jasonr@gnu.org>
16640
16641 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
16642
16643 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16644 (Fx_show_tip): Block input during frame creation.
16645 (Fx_show_tip, Fx_hide_tip): Enable.
16646
16647 2001-11-24 Richard M. Stallman <rms@gnu.org>
16648
16649 * lread.c (Fload): Detect recursive load error for more than 3
16650 nestings of the same file.
16651 (Vrecursive_load_depth_limit): Variable deleted.
16652 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
16653
16654 2001-11-24 Jason Rumney <jasonr@gnu.org>
16655
16656 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
16657 mouse position if either left or top is not specified.
16658
16659 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
16660 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
16661 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
16662 (my_create_tip_window): Assign tip_window.
16663 (x_create_tip_frame): Use same defaults as X.
16664 (compute_tip_xy): Remove unused variable. Use full screen width.
16665 (Fx_show_tip): Do not double height. Call ShowWindow directly.
16666
16667 * w32term.c (x_after_update_window_line): Doc fix.
16668 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
16669 frames.
16670 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
16671
16672 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
16673 for all Windowed systems.
16674
16675 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
16676
16677 * msdos.c (IT_clear_screen): If the frame's faces are not yet
16678 realized, use the initial screen colors to clear the screen.
16679
16680 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16681
16682 * textprop.c (Fset_text_properties): Remove unused variables
16683 `unchanged', `prev_changed', `s' and `len'.
16684
16685 * search.c (Freplace_match): Remove unused variable `inslen'.
16686
16687 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
16688
16689 2001-11-22 Jason Rumney <jasonr@gnu.org>
16690
16691 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
16692 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
16693 (my_create_tip_window): New function.
16694 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
16695 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
16696
16697 2001-11-20 Jason Rumney <jasonr@gnu.org>
16698
16699 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
16700 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
16701
16702 * w32fns.c (Vw32_system_coding_system): Remove.
16703 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
16704
16705 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
16706
16707 * fileio.c (Fwrite_region): Move choose_write_coding_system to
16708 after build_annotations.
16709
16710 * syntax.c (describe_syntax): Add dummy arg.
16711 (describe_syntax_1): Update call to describe_vector.
16712
16713 * category.c (describe_category): Add dummy arg.
16714 (describe_category_1): Update call to describe_vector.
16715
16716 * keymap.c (Fdescribe_vector): Add `describer' parameter.
16717 (describe_command, describe_translation): Add dummy second param.
16718 (describe_map): Call elt_describer with two arguments.
16719 (describe_vector_princ): Add `fun' parameter.
16720 Call it instead of the hardcoded `princ'.
16721 (describe_vector): Add arg `args'.
16722 Pass it as a new second argument to elt_describer.
16723
16724 * keymap.h (describe_vector): Update prototype.
16725
16726 * frame.c: Don't include keymap.h any more.
16727 (keys_of_frame): Remove.
16728
16729 * lisp.h (keys_of_frame): Remove declaration.
16730
16731 * emacs.c (main): Don't call `keys_of_frame' any more.
16732
16733 2001-11-14 Andreas Schwab <schwab@suse.de>
16734
16735 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
16736 if defined, 0 otherwise.
16737 (MAP_FAILED): Define if not defined and use it to test mmap failure.
16738 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
16739
16740 2001-11-19 Richard M. Stallman <rms@gnu.org>
16741
16742 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
16743
16744 2001-11-18 Jason Rumney <jasonr@gnu.org>
16745
16746 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
16747 (x_draw_bar_cursor): If the background color of the glyph under
16748 the cursor equals the frame's cursor color, use the glyph's
16749 foreground color for drawing the bar cursor.
16750 (x_after_update_window_line): Clear internal border in different
16751 circumstances.
16752 (w32_set_vertical_scroll_bar): Check for width and height > 0.
16753 (w32_draw_relief_rect): Correct relief by 1 pixel.
16754 (x_set_glyph_string_background_width):
16755 Set extends_to_end_of_line_p if the row's fill_line_p is set and
16756 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
16757 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
16758 if cursor_in_non_selected_windows is false.
16759 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
16760 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16761 Notice if cursor gets overwritten.
16762 (notice_overwritten_cursor): Renamed from
16763 note_overwritten_text_cursor. Rewritten to take glyph widths
16764 into account, and to take X positions as parameters.
16765 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16766 around call to x_draw_glyphs.
16767 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16768 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16769 color to use for image glyph reliefs.
16770 (x_draw_image_relief): Accept zero tool_bar_button_relief.
16771 (glyph_rect): Remove unused variable `area'.
16772
16773 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16774 some items.
16775 (x_set_internal_border_width): Set frame garbaged when window
16776 doesn't exist yet.
16777 (Fx_create_frame): Accept zero tool_bar_button_relief.
16778 (x_clear_image_1, four_corners_best, image_background)
16779 (image_background_transparent): New functions.
16780 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16781 (gs_format): Add `:background' entry.
16782 (lookup_image): Set IMG's background color if specified.
16783 (pbm_load, xbm_load_image, png_load): Set IMG's background field
16784 when appropriate.
16785 (x_clear_image_1): Reset `background_valid' and
16786 `background_transparent_valid' fields.
16787 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16788 calculating it here. Set IMG's background_transparent field.
16789 (enum xpm_keyword_index): Add XPM_BACKGROUND.
16790 (enum png_keyword_index): Add PNG_BACKGROUND.
16791 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16792 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16793 (enum gif_keyword_index): Add GIF_BACKGROUND.
16794 (enum gs_keyword_index): Add GS_BACKGROUND.
16795 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16796 Pre-calculate image background color where necessary.
16797 (x_create_x_image_and_pixmap, xbm_load, gs_load):
16798 Use display info's n_cbits entry for screen depth.
16799 (Fx_show_tip): Remove unused variables `buffer', `top',
16800 `left', `max_width' and `max_height'.
16801
16802 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
16803
16804 2001-11-18 Gerd Moellmann <gerd@gnu.org>
16805
16806 * puresize.h (BASE_PURESIZE): Increase to 750000.
16807
16808 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16809
16810 * frame.c (Fframe_live_p): Doc fix.
16811
16812 2001-11-18 Richard M. Stallman <rms@gnu.org>
16813
16814 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16815 (message_dolog_marker3): New static variables hold three markers.
16816 (syms_of_xdisp): Initialize and staticpro them.
16817 (message_dolog): Use message_dolog_marker1..3 instead of
16818 allocating markers each time. Unchain them when done.
16819
16820 2001-11-17 Richard M. Stallman <rms@gnu.org>
16821
16822 * doc.c (Fsnarf_documentation): Doc fix.
16823
16824 2001-11-17 Andreas Schwab <schwab@suse.de>
16825
16826 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
16827
16828 2001-11-17 Richard M. Stallman <rms@gnu.org>
16829
16830 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
16831
16832 2001-11-17 Jason Rumney <jasonr@gnu.org>
16833
16834 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
16835
16836 2001-11-17 Gerd Moellmann <gerd@gnu.org>
16837
16838 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16839 with invalid position.
16840
16841 2001-11-16 Richard M. Stallman <rms@gnu.org>
16842
16843 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
16844
16845 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16846 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16847 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
16848
16849 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
16850
16851 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
16852
16853 * fileio.c (build_annotations): Split off the tail.
16854 (build_annotations_2): New fun. Extracted from build_annotations.
16855 (Fwrite_region): Split the call to build_annotations into two
16856 calls to build_annotations and build_annotations_2.
16857
16858 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16859
16860 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16861 clear_waiting_for_input with argument.
16862
16863 * xterm.h (x_update_cursor): Remove duplicated prototype.
16864
16865 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
16866
16867 * xterm.c (waiting_for_input): Remove unnecessary declaration.
16868
16869 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
16870
16871 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
16872
16873 * fileio.c (choose_write_coding_system): New fun, extracted
16874 from Fwrite_region.
16875 (Fwrite_region): Use it.
16876
16877 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16878 (funcall_lambda, run_hook_with_args): Make static and add prototype.
16879 (ml_apply, find_handler_clause): Add prototype.
16880
16881 2001-11-16 Eli Zaretskii <eliz@gnu.org>
16882
16883 * config.in: Add #undef HAVE_COFF_H.
16884
16885 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16886 Required for ISC 4.1.
16887
16888 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
16889
16890 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
16891 Andrew Wiseman <a.wiseman@btclick.com>.
16892
16893 2001-11-16 Kim F. Storm <storm@cua.dk>
16894
16895 The following changes are made to clean up the various internal
16896 references to the fringes to actually use the term `fringe' for
16897 them. Previously, they were called `flags areas', `bitmap areas',
16898 `left/right side of windows', or implicitly as `flags' or
16899 `bitmaps':
16900
16901 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
16902 Comments fixed. Use renamed symbols.
16903
16904 * dispnew.c: Comment fix. Use renamed symbols.
16905
16906 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16907 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16908 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
16909
16910 * msdos.c: Comment fix.
16911
16912 * w32fns.c: Use renamed symbols.
16913
16914 * w32term.c: Comment fixes. Use renamed symbols.
16915 (fringe_bitmap_type): Renamed from bitmap_type.
16916 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16917 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16918 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
16919
16920 * w32term.h: Comment fixes. Use renamed symbols.
16921 (fringes_extra): Renamed from flags_areas_extra.
16922 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16923 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16924 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16925 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16926 (FRAME_X_LEFT_FRINGE_WIDTH):
16927 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16928 (FRAME_X_RIGHT_FRINGE_WIDTH):
16929 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16930
16931 * widget.c: Use renamed symbols.
16932
16933 * window.c: Comment fixes. Use renamed symbols.
16934 (coordinates-in-window-p): Doc fix.
16935
16936 * xdisp.c: Comment fixes. Use renamed symbols.
16937
16938 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
16939
16940 * xfns.c: Use renamed symbols.
16941
16942 * xterm.c: Comment fixes. Use renamed symbols.
16943 (fringe_bitmap_type): Renamed from bitmap_type.
16944 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16945 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16946 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
16947
16948 * xterm.h: Comment fixes. Use renamed symbols.
16949 (fringes_extra): Renamed from flags_areas_extra.
16950 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16951 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16952 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16953 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16954 (FRAME_X_LEFT_FRINGE_WIDTH):
16955 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16956 (FRAME_X_RIGHT_FRINGE_WIDTH):
16957 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16958
16959 2001-11-15 Jason Rumney <jasonr@gnu.org>
16960
16961 * w32menu.c (add-menu-item): Make help_echo and radio buttons
16962 work for most menu items. From David Ponce
16963 <david.ponce@wanadoo.fr>.
16964
16965 2001-11-15 Gerd Moellmann <gerd@gnu.org>
16966
16967 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16968 Some x_set_* function expect to be called even if old and new
16969 value are equal.
16970
16971 * xdisp.c (build_desired_tool_bar_string): Accept zero
16972 tool_bar_button_relief.
16973
16974 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16975
16976 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16977
16978 * xterm.c (x_draw_bar_cursor): If the background color of the
16979 glyph under the cursor equals the frame's cursor color, use
16980 the glyph's foreground color for drawing the bar cursor.
16981
16982 * dispnew.c (direct_output_forward_char): Fix character/byte
16983 position comparison.
16984
16985 2001-11-15 Miles Bader <miles@gnu.org>
16986
16987 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16988 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16989 Update arguments to find_field.
16990 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16991 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16992 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16993 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
16994
16995 2001-11-14 Richard M. Stallman <rms@gnu.org>
16996
16997 * editfns.c (Fpropertize): Allow call with 1 arg.
16998
16999 * dispextern.h (image_background, image_background_transparent):
17000 Conditionalize on HAVE_X_WINDOWS.
17001
17002 2001-11-13 Richard M. Stallman <rms@gnu.org>
17003
17004 * print.c (Fprin1_to_string): Doc fix.
17005
17006 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
17007
17008 * floatfns.c (Fceiling, Ffloor): Doc fixes.
17009
17010 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
17011
17012 * fileio.c (Ffile_accessible_directory_p): Doc fix.
17013
17014 * eval.c (syms_of_eval): Doc fix.
17015
17016 * coding.c (syms_of_coding): Doc fix.
17017
17018 * doc.c (Fsnarf_documentation): Doc fix.
17019
17020 * dispnew.c (syms_of_display): Doc fix.
17021
17022 * category.c (Fget_unused_category): Doc fix.
17023
17024 * buffer.c (syms_of_buffer): Doc fixes.
17025
17026 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
17027
17028 * print.c (prin1, print): Doc fix.
17029
17030 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17031
17032 * fontset.h: Remove declarations of variables
17033 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
17034
17035 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
17036 `Vclip_large_size_font'.
17037
17038 2001-11-13 Jason Rumney <jasonr@gnu.org>
17039
17040 * w32fns.c: Doc fix.
17041
17042 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17043
17044 * xfaces.c (Fface_attributes_as_vector): Doc fix.
17045
17046 * fns.c: Doc fix.
17047
17048 * emacs.c: Doc fix.
17049
17050 * coding.c: Doc fix.
17051
17052 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
17053 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
17054 `new style' [w/`doc:' keyword].
17055
17056 2001-11-12 Richard M. Stallman <rms@gnu.org>
17057
17058 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
17059 LeaveNotify events. Only FocusIn and FocusOut do that now.
17060 (x_display_and_set_cursor): Do display hollow cursors in active
17061 minibuffer windows when they are not selected.
17062
17063 2001-11-12 Jason Rumney <jasonr@gnu.org>
17064
17065 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17066 * w32term.c: Change doc-string comments to `new style'
17067 [w/`doc:' keyword]. Doc fixes.
17068
17069 * w32fns.c: Don't define max.
17070 (Fx_open_connection): Only execute once.
17071
17072 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17073
17074 * ccl.c: Change macros to use do-while block instead of if-else.
17075 Use braces to follow GNU Coding Standards.
17076
17077 2001-11-11 Richard M. Stallman <rms@gnu.org>
17078
17079 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
17080
17081 * lread.c (read_escape): Use end_of_file_error for reporting eof.
17082
17083 * insdel.c (replace_range): Use adjust_markers_for_replace
17084 instead of adjust_markers_for_delete and adjust_markers_for_insert.
17085
17086 * intervals.h (set_text_properties, set_text_properties_1): Declare.
17087
17088 * textprop.c (set_text_properties_1): New subroutine
17089 broken out of set_text_properties.
17090 (set_text_properties): Use set_text_properties_1.
17091
17092 * intervals.c (graft_intervals_into_buffer):
17093 Use set_text_properties_1 to clear out properties.
17094
17095 * search.c (Freplace_match): Use replace_range to insert
17096 and delete. Don't request property inheritance from
17097 surrounding text.
17098
17099 2001-11-10 Jason Rumney <jasonr@gnu.org>
17100
17101 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
17102 vertical fonts. Allow them if face name is explicitly specified.
17103 Do not give up if we find a font that cannot be converted to an xlfd.
17104
17105 2001-11-10 Gerd Moellmann <gerd@gnu.org>
17106
17107 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
17108 instead of malloc/free.
17109
17110 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17111
17112 * xfaces.c (merge_face_vectors): Use braces to follow GNU
17113 Coding Standards.
17114 (Finternal_set_lisp_face_attribute): Likewise.
17115
17116 * buffer.c (Fbury_buffer): Likewise.
17117
17118 * indent.c (current_column_1): Remove unused variable `prev_col'.
17119
17120 * coding.c (encode_coding): Use precomputed value of `src'.
17121 (encode_coding): Remove unused variable `src_end'.
17122 (code_convert_region): Remove unused variables `count'.
17123
17124 2001-11-07 Jason Rumney <jasonr@gnu.org>
17125
17126 * w32term.c (x_display_and_set_cursor): Do not move system caret
17127 if cursor_glyph is NULL.
17128
17129 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17130
17131 * keymap.c (access_keymap): Fix compilation error.
17132
17133 2001-11-07 Miles Bader <miles@gnu.org>
17134
17135 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
17136
17137 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17138
17139 * intervals.c (graft_intervals_into_buffer):
17140 Remove #ifdef'd-out code.
17141 (graft_intervals_into_buffer): Remove unused variable `middle'.
17142
17143 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
17144 code (eval-current-buffer).
17145 Change doc-string comments to `new style' [w/`doc:' keyword].
17146
17147 2001-11-06 Richard M. Stallman <rms@gnu.org>
17148
17149 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
17150
17151 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
17152
17153 * lread.c (read1): Fix behavior with nested backquoting.
17154
17155 * keyboard.c (make_lispy_event): Check integerness and fix
17156 Lisp_Object/int mixup.
17157
17158 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17159
17160 * fns.c (copy_hash_table): Remove unused variable `v'.
17161
17162 * fontset.c (fontset_font_pattern): Remove unused variable
17163 `family_registry'.
17164
17165 * indent.c (current_column_1): Remove unused variable `prev_col'.
17166
17167 2001-11-05 Richard M. Stallman <rms@gnu.org>
17168
17169 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
17170
17171 * buffer.c (Fkill_buffer): Don't delete auto save file
17172 if buffer is modified.
17173
17174 2001-11-05 Andrew Innes <andrewi@gnu.org>
17175
17176 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
17177 CHECK_NUMBER_CDR.
17178
17179 2001-11-05 Richard M. Stallman <rms@gnu.org>
17180
17181 * unexelf.c (unexec): Minor changes; clean up comments.
17182
17183 2001-11-05 Sam Steingold <sds@gnu.org>
17184
17185 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
17186
17187 2001-11-05 Andreas Schwab <schwab@suse.de>
17188
17189 * sound.c (sound_perror): Save errno from being clobbered.
17190
17191 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
17192
17193 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
17194 the program image directly.
17195
17196 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17197
17198 * buffer.h (Fbuffer_local_value): Add prototype.
17199
17200 2001-11-04 Richard M. Stallman <rms@gnu.org>
17201
17202 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
17203 and CHECK_BUFFER.
17204
17205 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
17206 (record_char): Likewise.
17207
17208 * keyboard.c (make_lispy_event): Don't insist a drag event must
17209 move to a different buffer position. Instead, check for moving at
17210 least double_click_fuzz.
17211
17212 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
17213
17214 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
17215
17216 * indent.c (current_column_1, Fmove_to_column): Separate the code
17217 for display-table glyphs from the code for buffer text, to fix
17218 bugs in the former.
17219
17220 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
17221
17222 * buffer.c (Fbuffer_local_value): New function.
17223 (syms_of_buffer): Defsubr it.
17224
17225 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
17226 value of `cursor-in-non-selected-windows'.
17227
17228 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
17229 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
17230 (syms_of_xdisp): Initialize it.
17231
17232 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17233
17234 * xfns.c (Fx_create_frame): Doc fix.
17235
17236 * coding.c: Change doc-string comments to `new style' [w/`doc:'
17237 keyword].
17238
17239 * eval.c (top_level_value, top_level_set): Remove commented and
17240 #ifdef'd-out code.
17241 (Fdefvar): Fix usage in doc-string.
17242
17243 2001-11-03 Richard M. Stallman <rms@gnu.org>
17244
17245 * xfns.c: Include unistd.h, if it exists.
17246
17247 * editfns.c: Move the include of ctype.h after unistd.h.
17248
17249 * gmalloc.c: Test BROKEN_PROTOTYPES.
17250
17251 2001-11-03 Ken Raeburn <raeburn@gnu.org>
17252
17253 * lisp.h (CHECK_STRING_CAR): New macro.
17254 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
17255 treating XCAR and XCDR as lvalues.
17256 (openp): Use CHECK_STRING_CAR.
17257 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
17258
17259 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
17260
17261 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
17262 (SIGMASKTYPE): Define.
17263
17264 * syssignal.h (sigunblock): Don't define if already defined.
17265
17266 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17267
17268 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
17269 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
17270 Fix typos in comments.
17271
17272 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
17273 and #ifdef'd-out code.
17274 Fix and reindent comments.
17275
17276 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
17277
17278 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
17279 argument `i' in macros.
17280
17281 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
17282 `i' in macros.
17283
17284 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
17285 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
17286 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
17287 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
17288 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
17289 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
17290 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
17291 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
17292 in macros.
17293
17294 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17295 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
17296 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
17297 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
17298 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
17299 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
17300 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
17301 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
17302 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
17303 (remove unused second argument).
17304
17305 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
17306
17307 * syntax.c (describe_syntax): New wrapper.
17308 (Finternal_describe_syntax_value): Rename from describe_syntax.
17309 Don't insert space at front and \n at the end.
17310 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
17311
17312 * regex.c (re_wctype): Try to fix some warnings.
17313 (regcomp, regexec): Don't forget the __restrict.
17314
17315 2001-11-02 Richard M. Stallman <rms@gnu.org>
17316
17317 * textprop.c (Fget_char_property): Doc fix.
17318
17319 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17320
17321 * process.c (Fstart_process): Add usage to doc-string.
17322
17323 * data.c (Fsetq_default): Ditto.
17324
17325 * callint.c (Finteractive): Ditto.
17326
17327 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
17328
17329 * macros.c: Don't include keymap.h any more.
17330
17331 2001-11-01 Richard M. Stallman <rms@gnu.org>
17332
17333 * data.c (Fmake_local_variable): Doc fix.
17334
17335 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
17336 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
17337
17338 * keymap.c (Fdescribe_buffer_bindings): Print character property
17339 bindings along with or instead of the buffer local map.
17340 Make the overriding maps override what they should.
17341
17342 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17343
17344 * window.c (grow_mini_window): Fix typo in comment.
17345
17346 2001-11-01 Gerd Moellmann <gerd@gnu.org>
17347
17348 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
17349 (XTset_vertical_scroll_bar): Likewise.
17350
17351 * xfns.c (x_build_heuristic_mask): Use four_corners_best
17352 instead of IMAGE_BACKGROUND.
17353
17354 * xfns.c (four_corners_best): Reindent.
17355
17356 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
17357 Handle :box so that it is possible to specify sexprs.
17358
17359 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
17360
17361 * s/hpux11.h: New file.
17362
17363 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17364
17365 * emacs.c (USAGE1): Show command line option --no-window-system
17366 instead of --no-windows in usage.
17367 (standard_args): Rename --no-windows to --no-window-system.
17368 (bug_reporting_address): Follow Emacs coding conventions.
17369
17370 * eval.c (Fcommandp): Doc fix.
17371 Change doc-string comments to `new style' [w/`doc:' keyword].
17372
17373 * frame.c (Fframe_live_p): Doc fix.
17374
17375 * buffer.c (selective-display-ellipses): Doc fix.
17376
17377 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17378
17379 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
17380
17381 * xfaces.c (realize_x_face): If C is not a single-byte character,
17382 set the face's colors_copied_bitwise_p instead of the defaulted_p
17383 members which have a different meaning.
17384 (free_face_colors): Do nothing for a face whose colors have been
17385 copied bitwise.
17386
17387 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
17388
17389 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17390
17391 * marker.c, mocklisp.c: Change doc-string comments to `new style'
17392 [w/`doc:' keyword].
17393
17394 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17395
17396 * fns.c (require_unwind): Return Lisp_Object.
17397
17398 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17399
17400 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
17401 (last-input-char): Revert doc-string to be the same as the
17402 doc-string of `last-input-event'.
17403
17404 * xdisp.c: Fix typos in comments.
17405
17406 2001-10-31 Gerd Moellmann <gerd@gnu.org>
17407
17408 * window.c (grow_mini_window): Handle case that the root
17409 window is already smaller than the nominal mininum height.
17410
17411 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
17412
17413 * emacs.c (main): Don't call keys_of_macros any more.
17414
17415 * lisp.h (keys_of_macros): Remove.
17416
17417 * macros.c (keys_of_macros): Remove.
17418
17419 * xfaces.c (Fface_attribute_relative_p): Declare args.
17420
17421 2001-10-30 Jason Rumney <jasonr@gnu.org>
17422
17423 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
17424 (enum_font_cb2): Ignore fonts with vertical orientation.
17425
17426 2001-10-30 Richard M. Stallman <rms@gnu.org>
17427
17428 * keyboard.c (Finput_pending_p): Doc fix.
17429
17430 2001-10-30 Gerd Moellmann <gerd@gnu.org>
17431
17432 * xterm.c (x_after_update_window_line): Don't run the code
17433 clearing in borders for rows whose visible height is 0.
17434
17435 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
17436 resized_p flag is set. If not set, use the much less flickering
17437 method previously used.
17438
17439 * dispnew.c (change_frame_size_1): Set frame's resized_p.
17440
17441 * frame.h (struct frame) <resized_p>: New member.
17442
17443 * lread.c (to_multibyte): Ensure read_buffer is at least twice
17444 as large as the number of bytes to convert.
17445
17446 * lread.c (to_multibyte): New function.
17447 (read1): Use it.
17448
17449 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
17450
17451 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
17452
17453 2001-10-30 Gerd Moellmann <gerd@gnu.org>
17454
17455 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
17456 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
17457 if the row's fill_line_p is set and drawing the last glyph with
17458 DRAW_IMAGE_{RAISED,SUNKEN}.
17459
17460 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
17461
17462 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
17463
17464 * xmenu.c: Include coding.h and charset.h.
17465 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
17466 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
17467 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
17468 Explicitly set wv->help. Use `TRUE' rather than `True'.
17469 (menu_help_callback): Use empty_string.
17470
17471 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
17472 (Fx_popup_dialog): Explicitly init f.
17473 (w32_menu_display_help): Use empty_string.
17474
17475 2001-10-29 Richard M. Stallman <rms@gnu.org>
17476
17477 * fns.c (Frequire): Detect recursive try to require the same
17478 feature 3 or more levels deep, and get error.
17479 (require_unwind): New subroutine.
17480 (require_nesting_list): New variable.
17481 (syms_of_fns): Init and staticpro it.
17482
17483 * print.c (print_object): Clarify indication of insertion type.
17484
17485 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
17486
17487 * coding.c (syms_of_coding): Document that locale-coding-system is
17488 used for decoding input on X.
17489
17490 * window.c (Fscroll_left, Fscroll_right): Doc fix.
17491
17492 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17493
17494 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
17495 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
17496
17497 2001-10-29 Gerd Moellmann <gerd@gnu.org>
17498
17499 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
17500 use NO_CURSOR if cursor_in_non_selected_windows is false.
17501
17502 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
17503 the slant attribute if FRAME is t.
17504
17505 * xfns.c (x_set_internal_border_width): Set frame garbaged
17506 when X window doesn't exist yet.
17507
17508 * xterm.c (x_after_update_window_line): Clear internal border
17509 in different circumstances.
17510
17511 * xterm.c (XTread_socket) <KeyPress>: Don't use
17512 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
17513 <handa@etl.go.jp>.
17514
17515 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
17516
17517 * m/ibms390.h: New file. From Adam Thornton
17518 <athornton@sinenomine.net>.
17519
17520 2001-10-28 Gerd Moellmann <gerd@gnu.org>
17521
17522 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
17523
17524 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
17525 a loop counter.
17526
17527 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17528
17529 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
17530
17531 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
17532 keyword].
17533 Fix typos in comments.
17534
17535 * emacs.c (bug_reporting_address): New function.
17536 Use it when displaying usage message.
17537
17538 * minibuf.c (read_minibuf): Remove unused external declaration of
17539 variable `Qread_only'.
17540
17541 * keymap.c (access_keymap): Remove unused variable `charset'.
17542
17543 2001-10-28 Miles Bader <miles@gnu.org>
17544
17545 * xfaces.c (merge_face_heights): Handle TO being relative as well.
17546 Remove #ifdef'd-out code.
17547 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
17548 (syms_of_xfaces): Initialize them.
17549
17550 2001-10-27 Jason Rumney <jasonr@gnu.org>
17551
17552 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
17553 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
17554 position using the system caret.
17555
17556 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
17557 (w32_system_caret_height, w32_system_caret_x)
17558 (w32_system_caret_y): New variables for tracking system caret.
17559 (w32_initialize): Initialize them.
17560 (x_display_and_set_cursor): Make system caret follow the active cursor.
17561
17562 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
17563 New messages types.
17564
17565 * w32term.c (note_mouse_highlight): Clear old help_echo.
17566
17567 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17568
17569 * xterm.c: Fix typo in a comment.
17570
17571 * emacs.c: Fix typos in comments.
17572 Remove unnecessary spaces.
17573 Change doc-string comments to `new style' [w/`doc:' keyword].
17574 (USAGE2): Fix typos in usage string.
17575
17576 * xterm.c: Fix typo in a comment.
17577
17578 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
17579 emacs.c.
17580
17581 2001-10-27 Gerd Moellmann <gerd@gnu.org>
17582
17583 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
17584 instead of 1/2 line_height in the heuristic for skipping
17585 farther backward when target_y was not reached.
17586
17587 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17588 Display errno only if non-zero.
17589 (sound_warning): New function.
17590 (vox_configure): Don't treat failing to set sample rate as error.
17591 (various places): Improve error messages.
17592
17593 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
17594
17595 * fileio.c (Faccess_file): Run the argument filename through
17596 Fexpand_file_name, before using it.
17597
17598 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17599 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17600
17601 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17602
17603 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17604
17605 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17606 Fix clearing in the case of scroll bars on the right.
17607
17608 2001-10-26 Juanma Barranquero <lektu@terra.es>
17609
17610 * w32gui.h (XImage): Add a dummy typedef.
17611
17612 2001-10-26 Gerd Moellmann <gerd@gnu.org>
17613
17614 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
17615
17616 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17617
17618 * frame.c (Fframe_parameter): Fix last change.
17619
17620 * fileio.c: Revert last change (which removed old commented-out
17621 version of expand-file-name). Add a comment that explains why
17622 this old version should not be removed.
17623
17624 2001-10-25 Gerd Moellmann <gerd@gnu.org>
17625
17626 * frame.c (Fframe_parameter): Fix a bug whereby some
17627 ``artificial'' frame parameters, like `minibuffer' were not
17628 obtained by calling Fframe_parameters.
17629
17630 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
17631 cursor differently.
17632
17633 * xdisp.c (move_it_vertically_backward): Compute line height
17634 differently. Add heuristic to try to be more compatible to 20.x.
17635
17636 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
17637
17638 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17639
17640 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17641 boolean.
17642
17643 2001-10-25 Miles Bader <miles@gnu.org>
17644
17645 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17646 BG is a pointer to a structure, not a structure.
17647 (gif_format, png_format): Add missing commas.
17648
17649 2001-10-24 Richard M. Stallman <rms@gnu.org>
17650
17651 * xfaces.c (Fface_attributes_as_vector): New function.
17652 (syms_of_xfaces): Defsubr it.
17653
17654 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17655
17656 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
17657 variable `area'.
17658
17659 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17660
17661 * search.c (scan_newline): Remove unused variable `selective_display'.
17662
17663 2001-10-25 Miles Bader <miles@gnu.org>
17664
17665 * dispextern.h (struct image): Add `background',
17666 `background_valid', and `background_transparent' fields.
17667 (image_background, image_background_transparent): New declarations.
17668 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
17669 * xfns.c (image_background, image_background_transparent)
17670 (four_corners_best): New functions.
17671 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17672 (gs_format): Add `:background' entry.
17673 (lookup_image): Set IMG's background color if specified.
17674 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17675 when appropriate.
17676 (x_clear_image_1): Reset `background_valid' and
17677 `background_transparent_valid' fields.
17678 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17679 calculating it here. Set IMG's background_transparent field.
17680 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17681 (enum png_keyword_index): Add PNG_BACKGROUND.
17682 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17683 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17684 (enum gif_keyword_index): Add GIF_BACKGROUND.
17685 (enum gs_keyword_index): Add GS_BACKGROUND.
17686 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17687 Pre-calculate image background color where necessary.
17688 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17689 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17690 color to use for image glyph reliefs.
17691
17692 2001-10-24 Gerd Moellmann <gerd@gnu.org>
17693
17694 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
17695 in full-width rows.
17696
17697 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17698 Fix clearing of area not covered by scroll bar.
17699
17700 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17701
17702 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
17703 and `real_start'.
17704 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
17705 (glyph_rect): Remove unused variable `area'.
17706
17707 2001-10-24 Gerd Moellmann <gerd@gnu.org>
17708
17709 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
17710
17711 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
17712 (row_containing_pos): Take additional argument DY.
17713 Treat rows ending in middle of char differently.
17714 (display_line): Handle tabs on window systems differently.
17715
17716 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
17717 with additional argument.
17718
17719 * dispextern.h (row_containing_pos): Adjust prototype.
17720
17721 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
17722 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
17723 (try_window_id, try_window_reusing_current_matrix)
17724 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
17725 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
17726
17727 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17728
17729 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
17730 gnuemacs).
17731 (HAVE_BOXES): Fix typo in comment.
17732 (push_menu_pane): Fix typo in comment.
17733
17734 * xdisp.c: (display_prop_string_p): Remove unused local declaration
17735 of `Qwhen'.
17736 (single_display_prop_string_p): Remove unused local declarations
17737 of `Qwhen' and `Qmargin'.
17738 (string_buffer_position): Remove unused variable `around'.
17739 (store_frame_title): Remove unused variable `width'.
17740
17741 * window.c: Don't define max.
17742 (coordinates_in_window): Remove unused variable `uy'.
17743
17744 * widget.c: Don't define max.
17745
17746 * process.c: Don't define max.
17747 (create_process): Remove unused variable `buffer'.
17748
17749 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17750
17751 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
17752
17753 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
17754
17755 * xfaces.c (Finternal_set_lisp_face_attribute)
17756 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
17757 frame is on a windowed display.
17758
17759 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17760
17761 * dispnew.c (sync_window_with_frame_matrix_rows):
17762 Fix handling of windows which aren't full-width, fix handling
17763 of marginal areas.
17764
17765 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
17766
17767 2001-10-23 Andreas Schwab <schwab@suse.de>
17768
17769 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17770 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17771
17772 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17773
17774 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
17775 REAL_END. Notice if cursor gets overwritten.
17776 (notice_overwritten_cursor): Take X positions as parameters.
17777 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17778 around call to x_draw_glyphs.
17779
17780 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17781
17782 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17783 instead of C) and usage.
17784
17785 * editfns.c (char-to-string): Fix argument names (use CHAR instead
17786 of C) and usage.
17787
17788 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17789 `left', `max_width' and `max_height'.
17790
17791 2001-10-23 Gerd Moellmann <gerd@gnu.org>
17792
17793 * xdisp.c (display_line): For a tab continued to the next line,
17794 set row's ends_in_middle_of_char_p.
17795
17796 2001-10-22 Gerd Moellmann <gerd@gnu.org>
17797
17798 * xdisp.c (display_line): Fix computation of continuation lines
17799 width for TABs.
17800
17801 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17802
17803 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17804 `Qlaplace'.
17805
17806 * fileio.c: Remove unused code.
17807
17808 2001-10-22 Miles Bader <miles@gnu.org>
17809
17810 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17811 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17812 Remove `DOC_STRINGS_IN_COMMENTS' cases.
17813
17814 2001-10-21 Jason Rumney <jasonr@gnu.org>
17815
17816 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17817
17818 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
17819
17820 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17821 (Finsert_string): Avoid the multi-line string literals warning.
17822
17823 2001-10-22 Miles Bader <miles@gnu.org>
17824
17825 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17826 (Fdocumentation): Don't use it.
17827 (syms_of_doc): Don't initialize it.
17828
17829 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17830 * print.c (Fwith_output_to_temp_buffer): Likewise.
17831 * window.c (Fsave_window_excursion): Likewise.
17832 * editfns.c (Fsave_excursion, Fsave_current_buffer)
17833 (Fsave_restriction): Likewise.
17834 * eval.c (Frun_hooks, Frun_hook_with_args)
17835 (Frun_hook_with_args_until_failure)
17836 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17837 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17838 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
17839 (Funwind_protect, Fcondition_case): Likewise.
17840 * coding.c (Ffind_operation_coding_system): Likewise.
17841 * keyboard.c (Ftrack_mouse): Likewise.
17842
17843 2001-10-21 Miles Bader <miles@gnu.org>
17844
17845 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
17846 (Fmake_hash_table): Add usage: string to doc string.
17847 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
17848 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
17849 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17850 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17851 (Fml_prefix_argument_loop): Likewise.
17852
17853 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17854
17855 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
17856
17857 * sysdep.c (init_sys_modes): Change doc-string comments to `new
17858 style' [w/`doc:' keyword].
17859
17860 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17861 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17862 comments to `new style' [w/`doc:' keyword].
17863
17864 2001-10-21 Jason Rumney <jasonr@gnu.org>
17865
17866 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17867
17868 * w32term.c (remember_mouse_glyph): New function.
17869 (w32_mouse_position): Use it.
17870 (note_mouse_movement): If the mouse moved off the glyph, remember
17871 its new position.
17872
17873 * w32term.h (struct w32_output): Correct spelling of x_compatible.
17874 (w32_display_info): Add mouse_face_overlay.
17875
17876 * w32term.c (notice_overwritten_cursor): Renamed from
17877 note_overwritten_text_cursor. Rewritten to take glyph widths into
17878 account.
17879 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17880 (fast_find_string_pos): New function.
17881 (fast_find_position): Return the correct vpos. Add parameter
17882 STOP. In the final row, stop before glyphs having STOP as object.
17883 Don't consider glyphs that are not from a buffer.
17884 (fast_find_position) [0]: Add a presumably more correct version
17885 for after 21.1.
17886 (expose_window_tree, expose_frame): Don't compute intersections here.
17887 (expose_window): Do it here instead.
17888 (expose_window_tree, expose_window, expose_line): Return 1 when
17889 overwriting mouse-face.
17890 (expose_window): If W is the window currently being updated, mark
17891 the frame garbaged.
17892 (expose_frame): If mouse-face was overwritten, redo it.
17893 (x_use_underline_position_properties): New variable.
17894 (syms_of_xterm): DEFVAR_BOOL it.
17895 (x_draw_glyph_string): Add comment to use it in future.
17896 (x_draw_glyph_string): Restore clipping after drawing box.
17897 Fix a computation of the underline position.
17898 (w32_get_glyph_string_clip_rect): Minor cleanup.
17899 (x_fill_stretch_glyph_string): Remove an assertion.
17900 (x_produce_glyphs): Don't convert multibyte characters
17901 to unibyte characters in unibyte buffers.
17902 (cursor_in_mouse_face_p): New function.
17903 (x_draw_stretch_glyph_string): Use it to choose a different GC
17904 when drawing a cursor within highlighted text. Don't draw
17905 background again if it has already been drawn.
17906 (x_draw_glyph_string_box): Don't draw a full-width
17907 box just because the glyph row's full_width_p flag is set.
17908 (x_draw_glyphs): Fix computation of rightmost x for
17909 full-width rows.
17910 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17911 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
17912 change bottom shadow accordingly. Some cleanup.
17913 (x_update_window_end): Handle overwritten mouse face
17914 also for tool bar windows.
17915 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17916 DRAW is DRAW_IMAGE_RAISED.
17917 (clear_mouse_face): Return 1 if text with mouse face was
17918 actually redrawn. Make the function static.
17919 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
17920 optimize away highlighting if we pass over that same overlay again.
17921 (note_mouse_highlight): Call mouse_face_overlay_overlaps
17922 to detect a case where we have to highlight a different region
17923 despite not having left the currently highlighted region.
17924 Set mouse_face_overlay in the x_display_info. Avoid changing the
17925 mouse pointer shape when show_mouse_face has already done it, or
17926 there is no need. Handle mouse-face and help-echo in strings.
17927 (glyph_rect): New function.
17928 (w32_mouse_position): Use it to raise the threshold for mouse
17929 movement event generation.
17930 (w32_initialize_display_info): Initialize the x_display_info's
17931 mouse_face_overlay.
17932 (w32_set_vertical_scroll_bar): Don't clear a zero height
17933 or width area.
17934 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17935 a widget to zero height.
17936
17937 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
17938 Protect unibyte strings created by replacing their multibyte
17939 equivalents in menu_items.
17940 (w32_menu_show): Don't overwrite an item's name with its key
17941 description in case the description is a multibyte string.
17942 (single_submenu): Some cleanup.
17943
17944 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17945 (postprocess_image): New function.
17946 (lookup_image): Call it for all image types except PostScript.
17947 (x_kill_gs_process): Call postprocess_image.
17948 (tiff_error_handler, tiff_warning_handler): New functions.
17949 (tiff_load): Install them as handlers.
17950 (x_kill_gs_process): Recognize if someone has cleared the image
17951 cache under us.
17952 (valid_image_p): Protect better against invalid image
17953 specifications. Previous code could signal an error.
17954 (Fx_hide_tip, Fshow_tip): Doc fix.
17955 (Fv_max_tooltip_size): New variable.
17956 (syns_of_xfns): DEFVAR_LISP it.
17957 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
17958 window buffer to *tip* right after creating the frame. Set frame's
17959 window_width. Use a maximum tooltip size specified by
17960 Vx_max_tooltip_size, if that has valid contents.
17961 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17962 Make sure the tooltip is completely visible.
17963 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17964 (Fx_create_frame): Adjust the frame's height for presence
17965 of the tool bar before calling x_figure_window_size.
17966 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17967 when the window gets smaller.
17968 (x_set_foreground_color): Set frame's cursor_pixel.
17969 (x_set_foreground_color, x_set_background_color): Cleaned up.
17970 (x_set_font): Handle case of x_new_fontset returning the same name
17971 as before, although there was a change in fontsets.
17972
17973 2001-10-21 Miles Bader <miles@gnu.org>
17974
17975 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
17976 (Flogxor): Add usage: string to doc string.
17977 * charset.c (Fstring): Likewise.
17978 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17979 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17980
17981 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17982
17983 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17984
17985 * alloc.c: Reindent DEFUNs with doc: keywords.
17986
17987 * abbrev.c (Finsert_abbrev_table_description): Reindent.
17988
17989 * frame.c: Change doc-string comments to `new style' [w/`doc:'
17990 keyword].
17991
17992 See ChangeLog.9 for earlier changes.
17993
17994 ;; Local Variables:
17995 ;; coding: iso-2022-7bit
17996 ;; End:
17997
17998 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
17999 Copying and distribution of this file, with or without modification,
18000 are permitted provided the copyright notice and this notice are preserved.
18001
18002 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4