]> code.delx.au - gnu-emacs/blob - src/ChangeLog
* gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
[gnu-emacs] / src / ChangeLog
1 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
4 value of x-gtk-whole-detached-tool-bar.
5 (xg_tool_bar_attach_callback): Set show-arrow to FALSE.
6
7 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
8
9 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10
11 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
12
13 * xterm.h: Declare x_x_to_emacs_modifiers.
14
15 * gtkutil.c (xg_tool_bar_button_cb): New function.
16 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
17 store modifiers in event.
18 (update_frame_tool_bar): Connect button-release-event to
19 xg_tool_bar_button_cb.
20
21 2006-02-13 Richard M. Stallman <rms@gnu.org>
22
23 * .gdbinit (xwindow): Update the code to show the window box.
24
25 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26
27 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
28
29 2006-02-12 Richard M. Stallman <rms@gnu.org>
30
31 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
32
33 2006-02-11 Eli Zaretskii <eliz@gnu.org>
34
35 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
36 (syms_of_keyboard): DEVFAR_LISP and initialize it.
37 (parse_tool_bar_item, parse_menu_item): If that variable is
38 non-nil, don't disable menu items and tool-bar buttons.
39
40 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
41
42 * doc.c (Fsubstitute_command_keys): Doc fix.
43
44 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
45
46 * data.c (Findirect_function): Rewrite docstring.
47 Fix omission bug: Declare new arg NOERROR.
48
49 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50
51 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
52 if window_desc is not set yet.
53 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
54 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
55 parameter `visibility' is `icon'.
56 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
57 instead of "fontset-mac".
58 (Fx_focus_frame): New defun.
59 (syms_of_macfns): Defsubr it.
60
61 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
62 for unfocused frame.
63 (x_raise_frame): Call BringToFront instead of SelectWindow.
64 (x_lower_frame): Use NULL instead of nil.
65 (x_make_frame_visible): Don't call SelectWindow.
66 (XTread_socket): Increment handling_signal at the start, decrement
67 it at the end.
68 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
69 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
70
71 2006-02-10 Kim F. Storm <storm@cua.dk>
72
73 * data.c (Findirect_function): Add NOERROR arg. All callers changed
74 to pass Qnil for NOERROR.
75
76 * keymap.c (current_minor_maps_error): Remove.
77 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
78 instead of using internal_condition_case_1+current_minor_maps_error.
79
80 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81
82 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
83 frames for GTK, in that case it is the tool bar. This is so that
84 highlighted text get reset properly.
85
86 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
87
88 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
89
90 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
91
92 * window.c (adjust_window_trailing_edge): Check that shrinking
93 does not set a window to size zero or less.
94
95 2006-02-08 Miles Bader <miles@gnu.org>
96
97 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
98 of Fget_text_property (other field functions work with overlays as
99 well as text-properties).
100
101 2006-02-07 Kenichi Handa <handa@m17n.org>
102
103 * dispextern.h (unibyte_display_via_language_environment): Extern it.
104
105 * xterm.h (unibyte_display_via_language_environment):
106 * w32term.h (unibyte_display_via_language_environment):
107 * macterm.h (unibyte_display_via_language_environment): Delete extern.
108
109 2006-02-07 Kenichi Handa <handa@m17n.org>
110
111 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
112 (produce_glyphs): Set the character to print in
113 it->char_to_display. Handle unibyte-display-via-language-environment.
114 (produce_stretch_glyph): Set character to print in it->char_to_display.
115
116 2006-02-06 Kenichi Handa <handa@m17n.org>
117
118 * lread.c (openp): Initialize encoded_fn before GCPRO it.
119
120 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
121
122 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
123
124 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
125 Cast bitfield value to EMACS_INT, to suppress gcc warning.
126
127 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
128 defining.
129
130 2006-02-03 Kim F. Storm <storm@cua.dk>
131
132 * xdisp.c: Cache last merged escape glyph face.
133 (last_escape_glyph_frame, last_escape_glyph_face_id)
134 (last_escape_glyph_merged_face_id): New variables.
135 (get_next_display_element): Use/update them.
136 (redisplay_internal): Reset them before redisplay.
137
138 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
139 Only recheck faces after displaying ellipsis.
140
141 2006-02-02 Kenichi Handa <handa@m17n.org>
142
143 * coding.c (decode_composition_emacs_mule): Fix handling of
144 incorrect format data.
145
146 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
147
148 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
149 (gtk_toolbar_insert) so we can have tool bars of different sizes.
150
151 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
152
153 * data.c (Flistp): Doc fix.
154
155 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
156
157 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
158 Fix typos in docstrings.
159
160 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
161
162 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
163
164 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
165
166 * alloc.c (make_interval, allocate_string)
167 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
168 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
169 global variables.
170
171 2006-01-27 Eli Zaretskii <eliz@gnu.org>
172
173 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
174 the MSDOS definition.
175
176 2006-01-26 Richard M. Stallman <rms@gnu.org>
177
178 * alloc.c (check_pure_size): Make overflow message an "error message".
179
180 * keymap.c (Fmap_keymap): Doc fix.
181
182 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
183 unless they were cleared out.
184
185 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
186
187 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
188
189 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
190 (find_field): Set before_field to after_field when pos is at BEGV.
191 (Fline_beginning_position, Fline_end_position): Clarify
192 confusing doc string.
193
194 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
195 string.
196
197 2006-01-26 Kenichi Handa <handa@m17n.org>
198
199 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
200 current_dir, and error_file. On reporting an error, decode them
201 back.
202
203 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
204
205 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
206 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
207 Don't check for quit, since any loop will go through fail or jump.
208
209 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
210
211 * alloc.c (allocate_string_data): Update next_free immediately, to
212 reduce risk of memory clobberage.
213
214 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
215
216 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
217 display when point moves across an ellipsis. If there are
218 adjacent invisible texts, don't lose the second one's ellipsis.
219 (x_produce_glyphs): Doc fix.
220
221 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
222
223 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
224
225 2006-01-23 Kim F. Storm <storm@cua.dk>
226
227 * xdisp.c (handle_single_display_spec): Fix handling of space
228 property on char from string: set *position rather than
229 it->current.pos.
230 (produce_stretch_glyph): Reduce width of stretch glyphs so they
231 don't get wider than the window (unless truncate-lines is on).
232
233 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
234
235 * xterm.c: Avoid allocating Lisp data from a signal handler.
236 (x_error_message): New var to replace x_error_message_string.
237 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
238 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
239 (syms_of_xterm): Use it instead of x_error_message_string.
240
241 * alloc.c (lisp_align_free): Add an assertion.
242 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
243 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
244 a signal handler.
245
246 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
247
248 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
249
250 2006-01-21 Romain Francoise <romain@orebokech.com>
251
252 * xdisp.c (get_window_cursor_type): Fix last change.
253 Update copyright year.
254
255 2006-01-20 Eli Zaretskii <eliz@gnu.org>
256
257 * lread.c (Fload): Don't leak the file descriptor returned by
258 openp if we are going to signal an error.
259
260 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
261 directly to _close.
262 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
263 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
264 to _read.
265 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
266 directly to _write.
267
268 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
269 if it is NULL.
270
271 2006-01-20 Kenichi Handa <handa@m17n.org>
272
273 * puresize.h (BASE_PURESIZE): Increment to 1190000.
274
275 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
276
277 * xdisp.c (get_window_cursor_type): Use cursor type specified by
278 the selected buffer for the echo area too.
279
280 2006-01-19 Richard M. Stallman <rms@gnu.org>
281
282 * keymap.c (Fmap_keymap): Doc fix.
283
284 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
285
286 * keyboard.c (echo_char): Don't omit the space between first two
287 echoed chars.
288
289 * minibuf.c (read_minibuf): Fix previous change.
290
291 2006-01-19 Kenichi Handa <handa@m17n.org>
292
293 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
294
295 2006-01-17 Richard M. Stallman <rms@gnu.org>
296
297 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
298 value in f->param_alist.
299
300 2006-01-15 Andreas Schwab <schwab@suse.de>
301
302 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
303
304 2006-01-13 Richard M. Stallman <rms@gnu.org>
305
306 * Makefile.in: Define new macro WINDOW_SUPPORT.
307 (lisp): Use it.
308 (SOME_MACHINE_LISP): Add conditionally loaded files.
309
310 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
311
312 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
313 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
314 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
315 decomposed form.
316
317 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
318 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
319 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
320 macro. Also try member ifr_addr when getting netmask.
321
322 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
323
324 * fileio.c (Fexpand_file_name): Remove redundant tests.
325 Fix elimination of // so that it doesn't prevent elimination of an
326 immediately following /. or /..
327
328 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
329
330 * gtkutil.c (xg_toggle_notify_cb): New function.
331 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
332 xg_toggle_notify_cb.
333 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
334 parameter value changes so the toggle button gets updated.
335
336 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
337
338 * .gdbinit: Fix typo.
339
340 2006-01-05 Eli Zaretskii <eliz@gnu.org>
341
342 * .gdbinit: Fix last change.
343
344 2006-01-05 Kim F. Storm <storm@cua.dk>
345
346 * process.c (Fmake_network_process): Use AF_INET instead of
347 AF_UNSPEC when AF_INET6 is not defined.
348
349 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
350
351 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
352 Don't check that the other type is known file-related one.
353
354 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
355 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
356 OS X 10.4 and later.
357
358 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
359
360 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
361 let GTK do all image processing. Importing Emacs own pixmaps to GTK
362 looks bad for inactive tool bar items with some Gnome themes.
363
364 2006-01-04 Eli Zaretskii <eliz@gnu.org>
365
366 * .gdbinit: Avoid a warning message when x_error_quitter is not
367 compiled in.
368
369 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
370 for w32.
371
372 2006-01-04 Kim F. Storm <storm@cua.dk>
373
374 * process.c: Add IPv6 support.
375 (Qipv4, Qipv6): New vars.
376 (syms_of_process): Intern and staticpro them.
377 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
378 with or without port number. Handle 4 element vector as IPv4 address
379 without port number.
380 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
381 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
382 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
383 request that address family only. :family nil or omitted means to
384 determine address family from the specified :host and :service.
385 (ifflag_table): Add missing OpenBSD IFF_ flags.
386 (server_accept_connection): Handle IPv6 addresses.
387 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
388
389 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
390 determine which breakpoints to set.
391
392 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
393
394 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
395
396 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
397
398 2006-01-03 Romain Francoise <romain@orebokech.com>
399
400 * emacs.c (main): Update copyright year.
401
402 2006-01-03 Ken Raeburn <raeburn@gnu.org>
403
404 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
405 nil for the call to internal_delete_file.
406
407 2006-01-01 Ken Raeburn <raeburn@gnu.org>
408
409 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
410 to nil for the call to Fwrite_region.
411
412 2005-12-31 Richard M. Stallman <rms@gnu.org>
413
414 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
415
416 2005-12-31 Eli Zaretskii <eliz@gnu.org>
417
418 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
419
420 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
421
422 * textprop.c (set_text_properties): Reword description of return value.
423 Return Qnil if caller wants to remove all text properties from a
424 string and the string already has no intervals.
425
426 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
427
428 * term.c (visible_cursor): New boolean var.
429 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
430 visible_cursor.
431 (syms_of_term): Export the new var as "visible-cursor".
432
433 2005-12-30 Eli Zaretskii <eliz@gnu.org>
434
435 * .gdbinit: Tell users not to worry about GDB warnings that some
436 functions do not exist in the binary.
437
438 2005-12-30 Andreas Schwab <schwab@suse.de>
439
440 * process.c (Fnetwork_interface_info): Correctly terminate the
441 loop over ifflag_table.
442
443 2005-12-29 Richard M. Stallman <rms@gnu.org>
444
445 * lread.c (readevalloop): Test for reading a whole buffer
446 before actually reading anything. Handle all cases, including
447 START = END = nil and an already-narrowed buffer.
448 Convert END to a marker if it is a number.
449
450 * keymap.c (describe_map): Put sparse map elements into an array,
451 sort them, then output a sequence of identical bindings on one line.
452 (struct describe_map_elt): New data type.
453 (describe_map_compare): New function.
454
455 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
456
457 * gtkutil.c (xg_get_file_with_chooser): Change message shown
458 in file chooser.
459
460 2005-12-27 Richard M. Stallman <rms@gnu.org>
461
462 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
463 not the current one.
464
465 * minibuf.c (Fminibuffer_message): Doc fix.
466 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
467
468 * eval.c (do_autoload): Ignore elements of Vautoload_queue
469 where car is not symbol.
470
471 2005-12-27 Kenichi Handa <handa@m17n.org>
472
473 * charset.c (lisp_string_width): Check multibyteness of STRING.
474
475 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
476
477 * xfns.c: x_show_hidden_files, new variable.
478 (syms_of_xfns): Defvar it.
479
480 * gtkutil.c (xg_toggle_visibility_cb): New function.
481 (xg_get_file_with_chooser): Add toggle hidden files and a message
482 to the new file chooser dialog. Show hidden files if
483 x_show_hidden_files is non-zero.
484
485 2005-12-26 Richard M. Stallman <rms@gnu.org>
486
487 * keyboard.h: Undo previous change.
488
489 * Makefile.in (undo.o): Undo previous change.
490
491 * undo.c: Undo previous change.
492
493 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
494
495 * keyboard.h: extern last_point_position_window.
496
497 * undo.c: include keyboard.h.
498
499 * Makefile.in (undo.o): Depend on keyboard.h.
500
501 2005-12-26 Richard M. Stallman <rms@gnu.org>
502
503 * commands.h (last_point_position_window): Declare.
504
505 * undo.c: Depend on window.h.
506 (record_point): Save old point from the correct window.
507
508 * keyboard.c (last_point_position_window): New variable.
509 (command_loop_1): Set last_point_position_window.
510 (syms_of_keyboard): Init it.
511
512 * Makefile.in (undo.o): Depend on window.h.
513
514 2005-12-25 Richard M. Stallman <rms@gnu.org>
515
516 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
517 to undo a `provide'.
518
519 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
520
521 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
522
523 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
524 define for FreeBSD on this platform.
525
526 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
527
528 * macterm.h (TYPE_FILE_NAME): New define.
529 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
530
531 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
532 Add prototypes. Make static.
533 (mac_aedesc_to_lisp): Initialize err to noErr.
534 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
535 (init_coercion_handler): New functions.
536 (Fmac_coerce_ae_data): Use coercion of Apple event data for
537 translation from/to file names.
538
539 * macterm.c: Don't include sys/param.h.
540 (init_coercion_handler): Add extern.
541 [MAC_OS8] (main): Call init_coercion_handler.
542 (mac_initialize) [MAC_OSX]: Likewise.
543 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
544 Apple event data for translation from/to file names.
545
546 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
547
548 * image.c [MAC_OS] (find_image_fsspec): Likewise.
549
550 2005-12-23 Martin Rudalics <rudalics@gmx.at> (tiny change)
551
552 * insdel.c (insert, insert_and_inherit, insert_before_markers)
553 (insert_before_markers_and_inherit): Make sure FROM is correct
554 when `after-change-functions' are called.
555
556 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
557
558 * xfns.c (Fx_uses_old_gtk_dialog): New function.
559
560 * gtkutil.c (xg_uses_old_file_dialog): New function.
561 (xg_get_file_name): Use xg_uses_old_file_dialog.
562
563 * gtkutil.h: Declare xg_uses_old_file_dialog.
564
565 2005-12-22 Richard M. Stallman <rms@gnu.org>
566
567 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
568
569 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
570
571 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
572
573 * macgui.h (XCharStruct): Remove member `valid_p'.
574 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
575 (XCharStructRow): New typedef.
576 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
577 New macros.
578 (struct MacFontStruct): Add member `bounds'. Remove member
579 `per_char'. All uses for QuichDraw Text fonts are changed to
580 `bounds.per_char'. ATSUI font bounds are represented as an array
581 `bounds.rows' of XCharStructRow's, each of which consists of a
582 bitmap of valid entries and an array of char bounds.
583
584 * macterm.c (mac_per_char_metric): Add prototype.
585 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
586 (mac_query_char_extents): New function.
587 (x_per_char_metric): Use it.
588 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
589 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
590 Use mac_per_char_metric instead of x_per_char_metric.
591 (mac_text_extents_16): New function.
592 (mac_compute_glyph_string_overhangs): Use it.
593 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
594
595 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
596
597 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
598 (Fminibuffer_completion_help): Remove duplicates before display.
599
600 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
601
602 * print.c (print_preprocess): Don't lose print_depth levels while
603 iterating.
604
605 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
606
607 * macmenu.c (Qmac_apple_event): Add extern.
608 (set_frame_menubar, mac_menu_show keymp_panes)
609 (single_keymap_panes, list_of_panes, list_of_item)
610 (single_menu_item): Add argument types to prototypes.
611 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
612 (struct skp): New struct (from xmenu.c).
613 (single_keymap_panes, single_menu_item, list_of_panes)
614 (list_of_item): Sync with xmenu.c.
615 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
616 POSITION if it is mac-apple-event event.
617 (menubar_selection_callback): Don't use menu_command_in_progress.
618 (set_frame_menubar): First parse all submenus, then make
619 widget_value trees from them. Don't allocate any widget_value
620 objects until we are done with the parsing.
621 (parse_single_submenu, digest_single_submenu): New functions.
622 (single_submenu): Function deleted, replaced by those two.
623 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
624 create or dispose of EventHandlerUPP. Install hander to all submenus.
625 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
626 instead of ENCODE_SYSTEM.
627 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
628 integer values.
629 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
630 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
631 format menu item string. Don't use NULL for integer value.
632
633 * macterm.h (struct mac_output): Remove unused member
634 menu_command_in_progress.
635
636 2005-12-20 Juri Linkov <juri@jurta.org>
637
638 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
639 position is non-nil, else set it to nil.
640
641 * macmenu.c (Fx_popup_menu): Add `else' to set
642 Vmenu_updating_frame to nil only if position is nil.
643
644 * w32menu.c (Fx_popup_menu): Add `else' to set
645 Vmenu_updating_frame to nil only if position is nil.
646
647 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
648
649 * keyboard.c (make_lispy_event): Drag-and-drop items are now
650 stored in member `args' of struct input_event.
651
652 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
653
654 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
655 stored in member `args' of struct input_event.
656
657 * w32term.c (construct_drag_n_drop): Likewise.
658
659 * macterm.c (mac_do_receive_drag): Likewise.
660 (x_use_underline_position_properties): Undo 2005-07-13 change.
661 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
662 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
663 (mac_pass_command_to_system, mac_pass_control_to_system):
664 New boolean variables renamed from Lisp_Object ones
665 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
666 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
667 All uses changed.
668 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
669 Make them user options.
670 (mac_handle_command_event, mac_store_services_event):
671 Call create_apple_event_from_event_ref without 5th argument.
672 (backtranslate_modified_keycode): Mask off modifier keys that are
673 mapped to some Emacs modifiers before passing it to KeyTranslate.
674 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
675 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
676 Fix docstrings of `mac-*-modifier'.
677
678 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
679 (do_applescript): Change argument types to Lisp_Object.
680 All uses changed.
681
682 * macterm.h (create_apple_event_from_event_ref): Remove 5th
683 argument from extern.
684
685 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
686
687 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
688 the answer, return `lambda', not nil.
689
690 2005-12-17 Eli Zaretskii <eliz@gnu.org>
691
692 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
693 enclosed in $(ARGQUOTE)s should not be split between two lines, as
694 that will break with GNU Make >3.80, when sh.exe is used and
695 arg quoting is with '..'.
696
697 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
698
699 * print.c (print_preprocess): Just signal an error if print_depth
700 is exceeded.
701
702 2005-12-17 Eli Zaretskii <eliz@gnu.org>
703
704 * .gdbinit: Set a breakpoint on w32_abort.
705
706 2005-12-16 Juri Linkov <juri@jurta.org>
707
708 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
709 created from minibuffer_completion_contents.
710 (minibuffer_completion_contents): Remove.
711 (do_completion, Fminibuffer_complete_word)
712 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
713 with Fminibuffer_completion_contents.
714 (syms_of_minibuf): Add Sminibuffer_completion_contents.
715 (Fdisplay_completion_list): Doc fix.
716 (display_completion_list_1): Use `nil' for second arg of
717 `Fdisplay_completion_list'.
718
719 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
720
721 * xfns.c (compute_tip_xy): Handle negative dx and dy.
722
723 * w32fns.c (compute_tip_xy): Ditto.
724
725 * macfns.c (compute_tip_xy): Ditto.
726
727 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
728
729 * print.c (print_preprocess): Go to a deeper print_depth to avoid
730 print_object loop.
731
732 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
733
734 * coding.c (code_convert_region_unwind): GCPRO arg.
735
736 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
737
738 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
739 i.e. dy is offset from top of frame instead of bottom.
740
741 * macfns.c (compute_tip_xy): Ditto.
742
743 * w32fns.c (compute_tip_xy): Ditto.
744
745 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
746 (xg_get_image_for_pixmap, xg_create_frame_widgets)
747 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
748
749 * xmenu.c (menubar_selection_callback): Do nothing if the callback
750 is for an unselected radio menu item.
751
752 2005-12-11 Richard M. Stallman <rms@gnu.org>
753
754 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
755
756 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
757
758 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
759 (Flookup_key): Doc fix.
760 (syms_of_keymap) <function-key-map>: Doc fix.
761
762 * fns.c (Frequire): Treat evaluating from a source file
763 like loading the file.
764
765 * floatfns.c (Flog): Doc fix.
766
767 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
768 when we change the buffer.
769
770 2005-12-11 Juri Linkov <juri@jurta.org>
771
772 * minibuf.c (display_completion_list_1):
773 Call `minibuffer_completion_contents' instead of using `nil' as
774 second arg of `Fdisplay_completion_list'.
775 (keys_of_minibuf): Unbind SPC in
776 Vminibuffer_local_filename_completion_map (see also related
777 change on 2005-12-06).
778
779 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
780
781 * emacs.c (main) [MAC_OS8]: Undo previous change.
782
783 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
784 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
785
786 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
787
788 * Makefile.in (macselect.o): Depend on keymap.h.
789
790 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
791 syms_of_macselect.
792
793 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
794 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
795
796 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
797 (syms_of_keyboard) [MAC_OS]: Initialize it.
798 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
799
800 * mac.c (Qundecoded_file_name): New variable.
801 (syms_of_mac): Initialize it.
802 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
803 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
804 (Fmac_coerce_ae_data): New defun.
805 (syms_of_mac): Defsubr it.
806
807 * macselect.c: Include keymap.h.
808 (mac_ready_for_apple_events): New variable.
809 (Vmac_apple_event_map, Qmac_apple_event_class)
810 (Qmac_apple_event_id): New variables.
811 (syms_of_macselect): Initialize them.
812 (Qundefined, mac_store_apple_event): Add externs.
813 (struct apple_event_binding): New struct.
814 (find_event_binding_fun, find_event_binding)
815 (mac_find_apple_event_spec, defer_apple_events)
816 (mac_handle_apple_event, init_apple_event_handler)
817 (copy_scrap_flavor_data): New functions.
818 (Fmac_process_deferred_apple_events): New defun.
819 (syms_of_macselect): Defsubr it.
820 (mac_store_services_event): Fix extern.
821 (mac_handle_service_event): Don't allocate Lisp objects during
822 asynchronous input processing. Use mac_store_services_event
823 instead of mac_store_application_menu_event.
824
825 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
826 (Qpreferences): Remove variables.
827 (syms_of_macterm) : Don't initialize them.
828 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
829 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
830 (init_required_apple_events, do_ae_open_application)
831 (do_ae_print_documents, do_ae_open_documents)
832 (do_ae_quit_application): Remove functions and prototypes.
833 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
834 (mac_find_apple_event_spec): Add externs.
835 (mac_store_application_menu_event): Remove function.
836 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
837 (mac_handle_command_event): Create Apple event from Carbon event.
838 Use mac_store_apple_event instead of mac_store_application_menu_event.
839 [MAC_OSX] (mac_store_services_event): Likewise.
840 (struct SelectionRange, SelectionRange): Remove struct and typedef.
841 [MAC_OS8] (main): Call init_apple_event_handler instead of
842 init_required_apple_events.
843 (mac_initialize) [MAC_OSX]: Likewise.
844 [!USE_CARBON_EVENTS] (mac_wait_next_event):
845 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
846
847 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
848 Add externs.
849 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
850 (Fmac_get_preference): Add EXFUN.
851
852 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
853 event.
854
855 2005-12-09 Richard M. Stallman <rms@gnu.org>
856
857 * xfns.c (Fx_create_frame): Reinstate previous change.
858
859 2005-12-09 Eli Zaretskii <eliz@gnu.org>
860
861 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
862 GDB to the abort dialog.
863
864 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
865
866 * indent.c (Fvertical_motion): Force move if starting on
867 stretch glyph.
868
869 2005-12-08 Richard M. Stallman <rms@gnu.org>
870
871 * lread.c (read_escape) <\s>: Don't treat strings specially.
872
873 * xfns.c (Fx_create_frame): Comment out previous change.
874
875 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
876
877 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
878 when needed.
879
880 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
881
882 * minibuf.c (keys_of_minibuf): Just unbind SPC in
883 Vminibuffer_local_filename_completion_map rather than forcing it
884 explicitly to the same binding as the global map.
885
886 2005-12-06 Ken Raeburn <raeburn@gnu.org>
887
888 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
889 * bytecode.c (Fbyte_code): Likewise.
890 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
891 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
892 * undo.c (truncate_undo_list): Likewise.
893
894 2005-12-05 Richard M. Stallman <rms@gnu.org>
895
896 * window.c (enlarge_window): Eliminate arg preserve_before.
897 Assume it is 0. All callers changed.
898 (Fenlarge_window, Fshrink_window): Likewise.
899
900 2005-12-02 Eli Zaretskii <eliz@gnu.org>
901
902 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
903 fit below.
904
905 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
906
907 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
908
909 * xfns.c (x_real_positions): int ign => unsigned int.
910 (xg_set_icon_from_xpm_data): Remove unused variable err.
911 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
912 to remove compiler warning.
913 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
914
915 2005-12-02 David Reitter <david.reitter@gmail.com>
916
917 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
918 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
919 and Vminibuffer_local_must_match_filename_map keymaps.
920 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
921
922 * keymap.c (Vminibuffer_local_filename_completion_map)
923 (Vminibuffer_local_must_match_filename_map): New variables.
924 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
925 parent to be Vminibuffer_local_completion_map and
926 Vminibuffer_local_must_match_map, respectively.
927
928 * commands.h (Vminibuffer_local_filename_completion_map)
929 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
930
931 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
932
933 * window.c (Fset_window_configuration): Don't accidentally copy the
934 window-point of one window to another.
935
936 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
937
938 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
939
940 2005-11-30 Kim F. Storm <storm@cua.dk>
941
942 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
943 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
944 passing it to `emacs_write'.
945
946 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
947
948 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
949
950 2005-11-27 Richard M. Stallman <rms@gnu.org>
951
952 * window.c (adjust_window_trailing_edge): New function.
953 (Fadjust_window_trailing_edge): New function.
954 (syms_of_window): Defsubr it.
955 (window_deletion_count): New variable.
956 (delete_window): Update window_deletion_count.
957
958 2005-11-26 Eli Zaretskii <eliz@gnu.org>
959
960 * minibuf.c (syms_of_minibuf): Mention the extension of
961 `completion-auto-help's meaning by complete.el.
962
963 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
964
965 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
966 Handle :inherit property as a lisp expression.
967
968 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
969
970 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
971 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
972 Qsuper, and Qmodifier_value.
973 (Vmac_control_modifier, Vmac_option_modifier)
974 (Vmac_command_modifier, Vmac_function_modifier)
975 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
976 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
977 (Vmac_charset_info_alist): Doc fixes.
978
979 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
980
981 * emacs.c (main) [MAC_OSX]: Change working directory to home
982 directory if `-psn_*' option is specified.
983
984 * mac.c (DECODE_UTF_8): Remove macro.
985 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
986 created from cfstring_to_lisp.
987 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
988 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
989
990 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
991 Add prototype.
992
993 2005-11-21 Ken Raeburn <raeburn@gnu.org>
994
995 * keymap.c (shadow_lookup): Use make_number to pass a number to
996 Fsubstring.
997
998 2005-11-21 Juri Linkov <juri@jurta.org>
999
1000 * puresize.h (BASE_PURESIZE): Increment to 1180000.
1001
1002 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
1003
1004 * xfaces.c (Finternal_set_lisp_face_attribute):
1005 Use :ignore-defface for new frame defaults when `unspecified' is
1006 supplied.
1007 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
1008 (merge_face_vectors): Don't do :ignore-defface overwriting here.
1009 (Finternal_merge_in_global_face): Do it here.
1010
1011 2005-11-20 Juri Linkov <juri@jurta.org>
1012
1013 * charset.c (invalid_character): Use Lisp-readable syntax
1014 for octal and hex. Reorder decimal, octal and hex values.
1015
1016 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
1017
1018 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
1019 this type is recognised when debugging.
1020
1021 2005-11-19 Andreas Schwab <schwab@suse.de>
1022
1023 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
1024 Lisp_Cons and Lisp_Float.
1025
1026 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1027
1028 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
1029 New variable.
1030 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
1031 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
1032 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
1033 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
1034
1035 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
1036
1037 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
1038
1039 * xfaces.c (Qignore_defface): New variable.
1040 (syms_of_xfaces): Provide `:ignore-defface'.
1041 (IGNORE_DEFFACE_P): New macro.
1042 (check_lface_attrs, lface_fully_specified_p)
1043 (Finternal_set_lisp_face_attribute)
1044 (Fface_attribute_relative_p, Fmerge_face_attribute):
1045 Handle Qignore_defface as a possible value.
1046 (merge_face_vectors): The merged face is `unspecified' if the
1047 mergee specifies `:ignore-defface'.
1048
1049 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1050
1051 * lread.c (readevalloop): Add missing GCPROs.
1052
1053 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
1054
1055 * xfns.c (xg_set_icon_from_xpm_data): New function.
1056
1057 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
1058 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
1059
1060 * xterm.c (x_bitmap_icon): Use the xpm if available.
1061
1062 * image.c (x_create_bitmap_from_xpm_data): New function.
1063 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
1064
1065 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
1066
1067 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
1068
1069 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
1070
1071 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
1072
1073 2005-11-15 Andreas Schwab <schwab@suse.de>
1074
1075 * lisp.h (struct Lisp_Cons): Make cdr a union.
1076 (XCDR_AS_LVALUE): Adjust.
1077 (struct Lisp_Float): Make data a union.
1078 (XFLOAT_DATA): Adjust.
1079
1080 * alloc.c (free_float): Make free list chaining aliasing-safe.
1081 (make_float): Likewise.
1082 (free_cons): Likewise.
1083 (Fcons): Likewise.
1084 (check_cons_list): Likewise.
1085 (Fmake_symbol): Likewise.
1086 (allocate_misc): Likewise.
1087 (free_misc): Likewise.
1088 (gc_sweep): Likewise.
1089
1090 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1091
1092 * mac.c (HASHKEY_QUERY_CACHE): New define.
1093 (xrm_create_database, xrm_q_put_resource): Empty query cache.
1094 (xrm_get_resource): Use query cache.
1095
1096 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
1097 inhibit_window_system is set.
1098
1099 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1100
1101 * macgui.h (USE_CG_TEXT_DRAWING): New define.
1102 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
1103 and cg_glyphs.
1104
1105 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
1106 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
1107 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
1108 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
1109 not used and font substitution never occurs for ASCII and Latin-1
1110 characters.
1111 (XLoadQueryFont): Maximum and minimum metrics are now those among
1112 ASCII characters.
1113 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
1114 height adjustments for Courier, Helvetica, and Times.
1115
1116 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
1117
1118 2005-11-11 David Reitter <david.reitter@gmail.com>
1119
1120 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
1121 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
1122 Vmac_control_modifier / mac-control-modifier,
1123 Vmac_option_modifier / mac-option-modifier,
1124 Vmac_command_modifier / mac-command-modifier.
1125 (mac_to_emacs_modifiers): Use the new style modifier
1126 variables. Return UInt32 (modifiers are longs now.)
1127 (backtranslate_modified_keycode): New function (refactoring).
1128 (XTread_socket): Use new modifier variables and refactored function.
1129 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
1130 no dedicated meta key. Not in use anyway.)
1131 (convert_fn_keycode): Map Fn-keys to their original keycode
1132 using a table (english keyboard only).
1133
1134 2005-11-11 Kim F. Storm <storm@cua.dk>
1135
1136 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
1137 Add post hook to "backtrace" to always dump lisp call stack to
1138 increase chance of people sending it to us when reporting bugs.
1139
1140 * doc.c (Fsubstitute_command_keys): Doc fix.
1141
1142 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
1143
1144 * xdisp.c (handle_stop): Skip overlay string handling if
1145 ignore_overlay_strings_at_pos_p is set.
1146 (set_iterator_to_next): At end of display vector, set
1147 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
1148 string, so we skip those overlay strings at current pos.
1149
1150 2005-11-10 Lars Hansen <larsh@soem.dk>
1151
1152 * fileio.c (file-regular-p): Doc fix.
1153
1154 2005-11-10 Kim F. Storm <storm@cua.dk>
1155
1156 * alloc.c (valid_lisp_object_p): New function to validate that
1157 an object is really a valid Lisp_Object.
1158
1159 * lisp.h (valid_lisp_object_p): Add prototype.
1160
1161 * print.c (safe_debug_print): New function to be called from gdb
1162 to print Lisp objects; use valid_lisp_object_p to avoid crashing
1163 if user tries to print something which is not a Lisp object.
1164
1165 * .gdbinit (pp, pp1): Use safe_debug_print.
1166 (pv, pv1): New commands to print value of a lisp variable.
1167
1168 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
1169
1170 * .gdbinit (pp1): New user-defined function.
1171
1172 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1173
1174 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
1175
1176 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
1177 related variables for dumped executable.
1178
1179 * unexmacosx.c (unexec_write_zero): New function.
1180 (copy_data_segment): Clear uninitialized local variables in
1181 statically linked libraries.
1182
1183 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
1184
1185 2005-11-09 Juri Linkov <juri@jurta.org>
1186
1187 * keymap.c (shadow_lookup): If Flookup_key returns a number,
1188 call it again with a sub-key-sequence, and if its return value
1189 is non-nil (sub-key is bound), return nil.
1190
1191 2005-11-08 Kim F. Storm <storm@cua.dk>
1192
1193 * process.c (Fsignal_process): Recognize signal names with and
1194 without SIG prefix, e.g. SIGHUP and HUP.
1195
1196 * search.c (search_buffer): No need to initialize base_pat.
1197
1198 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
1199
1200 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
1201 Don't abuse the `mini' arg. Use the `obj' arg instead.
1202
1203 2005-11-04 Kim F. Storm <storm@cua.dk>
1204
1205 * xdisp.c (show_mouse_face): Clear mouse face to eol.
1206
1207 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
1208
1209 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
1210 font-lock.elc and jit-lock.elc.
1211
1212 2005-11-03 Richard M. Stallman <rms@gnu.org>
1213
1214 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
1215 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
1216 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
1217
1218 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
1219
1220 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
1221
1222 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1223
1224 * window.c (Fdisplay_buffer): Fix last change to not use
1225 a dedicated window.
1226
1227 2005-11-01 Kim F. Storm <storm@cua.dk>
1228
1229 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
1230 Instead, rotate the bottom angle bitmap 180 degrees to indicate
1231 that the bottom row does not end in a newline.
1232
1233 2005-11-01 Andreas Schwab <schwab@suse.de>
1234
1235 * unexelf.c (unexec): Handle .plt section in BSS segment.
1236
1237 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
1240
1241 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
1242 determine whether to consider dedicated windows as well.
1243 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
1244 (Fdisplay_buffer): Do consider dedicated windows in those cases where
1245 we will split the window rather than reuse it.
1246 Don't try to use windows on other displays.
1247
1248 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
1249
1250 * puresize.h (BASE_PURESIZE): Increment to 1170000.
1251
1252 2005-10-31 Romain Francoise <romain@orebokech.com>
1253
1254 * macfns.c: Update copyright year.
1255 * m/gould.h: Likewise.
1256
1257 2005-10-30 Kim F. Storm <storm@cua.dk>
1258
1259 * xdisp.c (display_line): Restore it->current_x and call
1260 extend_face_to_end_of_line when last glyph doesn't fit on line.
1261 (set_glyph_string_background_width): Remove specific tests here
1262 to see if face background should extend to end of line. Simplify.
1263
1264 2005-10-30 Richard M. Stallman <rms@gnu.org>
1265
1266 * alloc.c (BYTES_USED): Use uordblks, not arena.
1267 (bytes_used_when_reconsidered): New variable.
1268 (emacs_blocked_free): Set that.
1269
1270 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
1271
1272 * alloc.c (emacs_blocked_free): Fix typo.
1273
1274 2005-10-29 Richard M. Stallman <rms@gnu.org>
1275
1276 * data.c (Fmake_variable_frame_local): Doc fix.
1277
1278 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
1279 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
1280 controls whether to save and restore mode_line_proptrans_alist.
1281 Callers changed.
1282 (unwind_format_mode_line): Work with that feature.
1283 (redisplay_internal): Don't call prepare_menu_bars if memory full.
1284 (move_elt_to_front): New function.
1285 (display_mode_element): Use move_elt_to_front.
1286 Don't bother munging text props on a null string.
1287 Delete obsolete elts from mode_line_proptrans_alist.
1288 (decode_mode_spec): Test Vmemory_full, not spare_memory.
1289 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
1290
1291 * lisp.h (memory_full_cons_threshold): Declare.
1292 (internal_lisp_condition_case): Declare.
1293
1294 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
1295 (Fmemory_full_p): Function deleted.
1296 (syms_of_alloc): Don't defsubr it.
1297 (memory_full_cons_threshold): New variable.
1298 (spare_memory): Now a vector of 7 elts.
1299 (buffer_memory_full): Don't set Vmemory_full here.
1300 (xfree): Don't try to refill here.
1301 (emacs_blocked_free): Record BYTES_USED in local var.
1302 (memory_full): Now free all the slots in spare_memory.
1303 (refill_memory_reserve): Allocate each slot in spare_memory.
1304 (init_alloc_once): Call refill_memory_reserve.
1305
1306 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
1307
1308 * eval.c (internal_lisp_condition_case): New function.
1309 (Fcondition_case): Use internal_lisp_condition_case.
1310 (Feval): Test Vmemory_full and memory_full_cons_threshold.
1311 (Ffuncall): Likewise.
1312
1313 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
1314
1315 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
1316
1317 * syntax.c (Fparse_partial_sexp): Fix docstring.
1318
1319 2005-10-28 Romain Francoise <romain@orebokech.com>
1320
1321 * puresize.h (BASE_PURESIZE): Increment to 1130000.
1322
1323 2005-10-28 Richard M. Stallman <rms@gnu.org>
1324
1325 * xfns.c (syms_of_xfns): Provide `x' as feature.
1326
1327 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
1328
1329 * editfns.c (Fformat): Don't include string padding
1330 between info[n].start and info[n].end.
1331
1332 * alloc.c (spare_memory): No longer static.
1333 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
1334
1335 * puresize.h (BASE_PURESIZE): Increment to 1120000.
1336
1337 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
1338
1339 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
1340
1341 * fringe.c (update_window_fringes): Handle case where buffer ends
1342 with a newline.
1343
1344 2005-10-27 Kenichi Handa <handa@m17n.org>
1345
1346 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
1347
1348 2005-10-24 Kenichi Handa <handa@m17n.org>
1349
1350 * charset.h (charset_mule_unicode_0100_24ff)
1351 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
1352 Extern them.
1353
1354 * charset.c (charset_mule_unicode_0100_24ff)
1355 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
1356 New variables.
1357 (Fsetup_special_charsets): Initialize them.
1358
1359 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
1360 supported Unicode characters.
1361
1362 2005-10-25 Jason Rumney <jasonr@gnu.org>
1363
1364 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
1365
1366 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1367
1368 * image.c [MAC_OS] (image_load_qt_1): Check image size.
1369 Use GraphicsImportGetImageDescription instead of
1370 GraphicsImportGetNaturalBounds.
1371 [MAC_OSX] (image_load_quartz2d): Check image size.
1372 [MAC_OS] (xpm_load_image): Likewise.
1373
1374 * macterm.c (last_mouse_glyph_frame): New var.
1375 (note_mouse_movement): Say mouse moved if current frame differs
1376 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1377 (XTmouse_position): Set last_mouse_glyph_frame.
1378 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
1379 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
1380 Use EndianU16_BtoN.
1381 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
1382 (x_per_char_metric, XLoadQueryFont)
1383 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
1384 glyph bounds.
1385 (mac_to_x_fontname, mac_do_list_fonts)
1386 (mac_initialize_display_info): Change screen resolutions to 72dpi.
1387
1388 2005-10-25 Masatake YAMATO <jet@gyve.org>
1389
1390 * minibuf.c (Fdisplay_completion_list): Small doc fix.
1391
1392 2005-10-24 Kim F. Storm <storm@cua.dk>
1393
1394 * xterm.c: Undo 2005-10-23 change.
1395 (last_mouse_glyph_frame): New var.
1396 (note_mouse_movement): Say mouse moved if current frame differs
1397 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1398 (XTmouse_position): Set last_mouse_glyph_frame.
1399 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
1400 last_mouse_glyph] on mouse up/down event.
1401
1402 * editfns.c (Fcompare_buffer_substrings): Fix last change.
1403
1404 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1405
1406 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
1407
1408 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1409
1410 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
1411 so tool tips don't interfere with press on tool bar button.
1412
1413 2005-10-23 Richard M. Stallman <rms@gnu.org>
1414
1415 * casetab.c (Fset_case_table): Doc fix.
1416
1417 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
1418 (readevalloop): Compute ENTIRE properly.
1419 (syms_of_lread) <load-history>: Doc fix.
1420
1421 2005-10-21 Richard M. Stallman <rms@gnu.org>
1422
1423 * lread.c (Fload): Simplify gcpro structure.
1424 Gcpro FOUND as well as FILE, but not EFOUND.
1425 Unless preloading, record FOUND instead of FILE in Vload_history.
1426 Rename repeat local FILE to MSG_FILE.
1427 (syms_of_lread) <load-history>: Doc fix.
1428
1429 2005-10-21 Kenichi Handa <handa@m17n.org>
1430
1431 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
1432
1433 2005-10-20 Kim F. Storm <storm@cua.dk>
1434
1435 * buffer.c (clone_per_buffer_values): Remove unused var tem.
1436 (init_buffer): Remove unused vars dotstat, pwdstat.
1437
1438 * ccl.c (check_ccl_update): Remove unused var vp.
1439
1440 * fileio.c (auto_save_error): Call SAFE_FREE.
1441
1442 * fns.c (Fchar_table_range): Remove unused var i.
1443
1444 * minibuf.c (display_completion_list_1): New wrapper function
1445 for Fdisplay_completion_list.
1446 (Fminibuffer_completion_help): Use it.
1447
1448 * term.c (encode_terminal_code): Remove unused var src_start.
1449
1450 * window.c (Fwindow_tree): Remove unused var alist.
1451
1452 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
1453
1454 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
1455
1456 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
1457
1458 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
1459
1460 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
1461
1462 2005-10-20 Andreas Schwab <schwab@suse.de>
1463
1464 * minibuf.c (Fdisplay_completion_list): Doc fix.
1465
1466 2005-10-19 Kim F. Storm <storm@cua.dk>
1467
1468 * image.c (check_image_size): Handle integer Vmax_image_size value
1469 directly as max pixel value. Use default frame size for null frame.
1470 (syms_of_image) <max-image-size>: Describe integer value.
1471
1472 2005-10-19 Romain Francoise <romain@orebokech.com>
1473
1474 * emacs.c (main): Update copyright year.
1475
1476 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
1477
1478 * image.c (Vmax_image_size): New variable.
1479 (check_image_size): New function.
1480 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
1481 (gif_load, gs_load): Use it.
1482 (lookup_image): Try loading again if previous load failed.
1483 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
1484 to display in, NULL if none.
1485 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
1486 argument.
1487
1488 2005-10-18 Richard M. Stallman <rms@gnu.org>
1489
1490 * search.c (Fstring_match): Doc fix.
1491
1492 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1493
1494 * macterm.c (note_mouse_movement): Use PtInRect.
1495 (XTread_socket): Also ignore mouse motion just before a button
1496 release event. Don't process button release event when mouse is
1497 not grabbed.
1498
1499 2005-10-16 Masatake YAMATO <jet@gyve.org>
1500
1501 * minibuf.c (Fdisplay_completion_list): Add new optional
1502 argument COMMON_SUBSTRING. Bind `completion-common-substring'
1503 to the optional argument during running `completion-setup-hook'.
1504
1505 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1506
1507 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
1508 Allow nil as argument.
1509 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
1510 for encoding arguments as UTF-16 in native byte order, no BOM.
1511
1512 * macfns.c (Fx_create_frame): Add debugging code.
1513 (Fx_show_tip): Set frame pixel width and height.
1514
1515 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
1516 (FRAME_NORMAL_GC): New macro.
1517 (mac_draw_line, mac_clear_area, mac_clear_window)
1518 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
1519 (mac_draw_image_string, mac_draw_image_string_16): Rename from
1520 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
1521 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
1522 All uses changed.
1523 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
1524 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
1525 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
1526 (mac_draw_string_16, mac_draw_image_string)
1527 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
1528 (mac_scroll_area): Drawing functions now take frame as destination.
1529 All uses changed.
1530 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
1531 (x_draw_fringe_bitmap): Set clipping area in face->gc.
1532
1533 * macterm.h (mac_clear_area): Add extern.
1534
1535 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1536
1537 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
1538 changes for xterm.c.
1539
1540 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
1541
1542 2005-10-14 Kenichi Handa <handa@m17n.org>
1543
1544 * search.c (search_buffer): Give up BM search on case-fold-search
1545 if one of a target character has a case-equivalence of different
1546 charset even if that target charcter is an ASCII.
1547
1548 * casefiddle.c (casify_object): Fix for the case that case
1549 conversion change the byte length.
1550
1551 2005-10-14 Kim F. Storm <storm@cua.dk>
1552
1553 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
1554 (handle_one_xevent): Only clear help_echo_string; restore it if
1555 note_mouse_movement didn't record any mouse movement.
1556
1557 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
1558 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
1559
1560 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
1561 (Fposn_at_x_y): Fix calculation of x coordinate.
1562 (Fposn_at_point): Return nil if point is hscrolled out of view.
1563
1564 2005-10-13 Andreas Schwab <schwab@suse.de>
1565
1566 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
1567 non-interactive mode.
1568
1569 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1570
1571 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
1572
1573 2005-10-12 Kim F. Storm <storm@cua.dk>
1574
1575 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
1576
1577 2005-10-12 Romain Francoise <romain@orebokech.com>
1578
1579 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
1580
1581 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1582
1583 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
1584 get end of text rows. Obtain header-line/mode-line rows directly.
1585
1586 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
1587 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
1588
1589 2005-10-12 Kim F. Storm <storm@cua.dk>
1590
1591 * xdisp.c (remember_mouse_glyph): New generic version based on
1592 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
1593 properly handle all different window areas.
1594
1595 * dispextern.h (remember_mouse_glyph): Add prototype.
1596
1597 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
1598 (note_mouse_movement, XTmouse_position): Use generic
1599 remember_mouse_glyph, add last_mouse_glyph arg.
1600
1601 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
1602 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
1603 (note_mouse_movement, w32_mouse_position): Use generic
1604 remember_mouse_glyph, add last_mouse_glyph arg.
1605
1606 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
1607 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
1608 (XTmouse_position): Adapt to use generic remember_mouse_glyph
1609 instead of pixel_to_glyph_coords.
1610
1611 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
1612 Fix x position for ON_TEXT when left margin width > 0.
1613
1614 2005-10-11 Kim F. Storm <storm@cua.dk>
1615
1616 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
1617
1618 * keyboard.c (make_lispy_position): Fix buffer calculations for
1619 mouse click or movement in right fringe and the margins.
1620
1621 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
1622
1623 * image.c (fn_jpeg_stdio_src): Don't define it.
1624 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
1625 (our_common_init_source): Rename from `our_init_source'.
1626 (our_common_term_source): Rename from `our_term_source'.
1627 (our_memory_fill_input_buffer): Rename from
1628 `our_fill_input_buffer'.
1629 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
1630 (jpeg_memory_src): Use the new names.
1631 (struct jpeg_stdio_mgr): New struct.
1632 (JPEG_STDIO_BUFFER_SIZE): New constant.
1633 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
1634 (jpeg_file_src): New functions.
1635 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
1636
1637 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1638
1639 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
1640 (fm_font_family_alist): New variable.
1641 (syms_of_macterm): Initialize and staticpro it.
1642 (decode_mac_font_name): Replace '-' in family name with '_' if it
1643 occurs just once. Lower family name.
1644 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
1645 All uses changed. Remove argument MF and code conversion for it.
1646 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
1647 to CHARSET. Parse font size. Lower family name. Return integer
1648 value for status of parsing.
1649 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
1650 Don't use Fdowncase because family name is already lowered by
1651 decode_mac_font_name.
1652 (init_font_name_table): Always call decode_mac_font_name.
1653 Add pair of family name and its reference to fm_font_family_alist.
1654 (mac_clear_font_name_table): Clear fm_font_family_alist.
1655 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
1656 Lookup fm_font_family_alist to get font family reference.
1657 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
1658 name is already lowered by parse_x_font_name.
1659
1660 2005-10-11 Kim F. Storm <storm@cua.dk>
1661
1662 * xterm.c (glyph_rect): Return 0 if position is outside text area.
1663
1664 * keyboard.c (make_lispy_position): Fix buffer position calculation for
1665 mouse click or movement in fringe.
1666
1667 2005-10-10 Jason Rumney <jasonr@gnu.org>
1668
1669 * xterm.c (remember_mouse_glyph): New function.
1670 (note_mouse_movement): Use it to remember the current glyph if changed.
1671 (XTmouse_position): Fix calculation of fake glyph under mouse.
1672 Move code to calculate glyph under mouse into remember_mouse_glyph.
1673
1674 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1675
1676 * emacs.c (USAGE3, standard_args): -nb => -nbi.
1677
1678 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
1679
1680 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
1681 (next_frame, prev_frame, set_term_frame_name): Make static.
1682
1683 * window.c (Fwindow_tree): Fix spelling.
1684
1685 2005-10-09 Romain Francoise <romain@orebokech.com>
1686
1687 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
1688
1689 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1690
1691 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
1692 Add options -nb, --no-bitmap-icon.
1693
1694 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
1695
1696 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1697
1698 * macgui.h (MAX_CLIP_RECTS): New define.
1699 (struct _XGC): New member clip_region.
1700 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
1701 clip_rects.
1702
1703 * macterm.c (GC_CLIP_REGION): New macro.
1704 (saved_port_clip_region): New variable.
1705 (mac_begin_clip, mac_end_clip): New functions.
1706 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
1707 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
1708 (mac_copy_area_with_mask, mac_scroll_area): Use them.
1709 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
1710 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
1711 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
1712 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
1713 rectangles stored in gc.
1714 (XFreeGC): Dispose of clipping region.
1715 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
1716 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
1717 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
1718 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
1719 (x_draw_bar_cursor): Use them.
1720 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
1721 get multiple clipping rectangles.
1722
1723 * macterm.h (mac_term_init): Add types to extern.
1724 (struct mac_output): Remove members mWP and pending_menu_activation.
1725 Put members scroll_bar_foreground_pixel and
1726 scroll_bar_background_pixel in #if 0.
1727 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
1728
1729 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
1730 Add debugging code.
1731
1732 2005-10-08 Kim F. Storm <storm@cua.dk>
1733
1734 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
1735
1736 2005-10-07 Kim F. Storm <storm@cua.dk>
1737
1738 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
1739 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
1740 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
1741
1742 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1743
1744 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
1745 to for_overlaps. Now occupy 3 bits.
1746 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
1747 (OVERLAPS_ERASED_CURSOR): New defines.
1748 (struct redisplay_interface): Add new OVERLAPS arg to member
1749 fix_overlapping_area.
1750 (x_fix_overlapping_area): Add new OVERLAPS arg.
1751 (get_glyph_string_clip_rects): Add extern.
1752
1753 * dispnew.c (redraw_overlapping_rows):
1754 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
1755
1756 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
1757 for_overlaps.
1758 (get_glyph_string_clip_rects): New function created from
1759 get_glyph_string_clip_rect. Set clipping rectangles according to the
1760 value of for_overlaps. Enable to store multiple clipping rectangles.
1761 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
1762 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
1763 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
1764 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
1765 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
1766 calculating clipping rectangles later. Call x_fix_overlapping_area
1767 with new OVERLAPS arg to draw only erased cursor area.
1768 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
1769 to draw overlaps in both preceding and succeeding rows.
1770
1771 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
1772 struct glyph_string to for_overlaps.
1773
1774 2005-10-04 Richard M. Stallman <rms@gnu.org>
1775
1776 * alloc.c (refill_memory_reserve): Conditionalize the body,
1777 not the function's existence.
1778
1779 2005-10-04 Kim F. Storm <storm@cua.dk>
1780
1781 * window.c (window_split_tree): New function.
1782 (Fwindow_split_tree): New defun.
1783 (syms_of_window): Defsubr it.
1784
1785 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1786
1787 * macterm.c (mac_invert_rectangle): New function.
1788 (XTflash): Use it.
1789
1790 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
1791
1792 * regex.h (re_char): Don't expose it in the interface.
1793 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
1794
1795 * regex.c (re_char): Move it back here.
1796 (re_set_whitespace_regexp): Change the arg's type to not use it.
1797
1798 * keyboard.c (make_lispy_event): If point has moved between down and up
1799 event, make it a drag, not a click, to mirror what
1800 mouse-drag-region expects.
1801
1802 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
1803
1804 * lisp.h (fatal): Undo previous change.
1805 * term.c (fatal): Undo previous change.
1806
1807 2005-10-01 Richard M. Stallman <rms@gnu.org>
1808
1809 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
1810
1811 2005-10-01 Kim F. Storm <storm@cua.dk>
1812
1813 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
1814
1815 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1816
1817 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
1818
1819 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
1820 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
1821 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
1822 Try ATSUI-compatible 12pt Monaco font first.
1823
1824 * macgui.h (struct _XCharStruct): New member valid_p.
1825 (STORE_XCHARSTRUCT): Set valid_p.
1826 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
1827
1828 * macterm.c (mac_draw_string_common, x_per_char_metric)
1829 (mac_compute_glyph_string_overhangs, init_font_name_table)
1830 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
1831 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
1832 (x_draw_glyph_string_background)
1833 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
1834 XDrawImageString. Always draw background and foreground separately.
1835 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
1836 functions for one-byte chars when using ATSUI-compatible fonts.
1837 (atsu_font_id_hash) [USE_ATSUI]: New variable.
1838 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
1839 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
1840 max_char_or_byte2 more in detail.
1841 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
1842
1843 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1844
1845 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
1846 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
1847
1848 * unexelf.c (fatal): Fix prototype.
1849
1850 * term.c (fatal): Implement using varargs.
1851
1852 * regex.c (re_char): Move typedef ...
1853 * regex.h (re_char): ... here.
1854 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
1855
1856 * emacs.c (malloc_set_state): Fix return type.
1857 (endif): Fix type.
1858
1859 * lisp.h (fatal): Add argument types.
1860
1861 * dispextern.h (fatal): Delete prototype.
1862
1863 * systime.h (make_time): Prototype moved from ...
1864 * editfns.c (make_time): ... here.
1865
1866 * editfns.c: Move systime.h include after lisp.h.
1867 * dired.c:
1868 * xsmfns.c:
1869 * process.c: Likewise.
1870
1871 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
1872 Add parameter types.
1873 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
1874 (emacs_blocked_free): Change definition to match __free_hook.
1875 (emacs_blocked_malloc): Change definition to match __malloc_hook.
1876 (emacs_blocked_realloc): Change definition to match __realloc_hook.
1877
1878 2005-09-30 Romain Francoise <romain@orebokech.com>
1879
1880 * minibuf.c (Fread_buffer): Follow convention for reading from the
1881 minibuffer with a default value. Doc fix.
1882
1883 2005-09-29 Juri Linkov <juri@jurta.org>
1884
1885 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
1886 Rename argument name `string' to `format-string'.
1887 (Fformat): Doc fix.
1888
1889 2005-09-28 Kim F. Storm <storm@cua.dk>
1890
1891 * image.c (gif_load): Fix size of allocated image buffer
1892 for images where a sub-image may be larger than the image's
1893 total height/width specifications.
1894
1895 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1896
1897 * macgui.h (struct _XCharStruct): Each member now takes short value.
1898
1899 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
1900
1901 * xfaces.c (lookup_derived_face): Add parameter type.
1902
1903 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
1904
1905 * marker.c (verify_bytepos): Add parameter type.
1906
1907 * process.c (get_operating_system_release): Move prototype ...
1908
1909 * systime.h (get_operating_system_release): ... here.
1910
1911 * xterm.c (handle_one_xevent): Refer to union field to match the
1912 type required by the function definition.
1913 (set_vertical_scroll_bar): Move prototype ...
1914
1915 * xterm.h: ... here.
1916
1917 * fns.c (internal_equal, seed_random): Fix prototypes.
1918 (internal_equal): Add missing parameter.
1919
1920 2005-09-25 Richard M. Stallman <rms@gnu.org>
1921
1922 * keyboard.c (update_menu_bindings): Variable deleted.
1923 (syms_of_keyboard): Don't defvar it.
1924 (parse_menu_item): Don't test it.
1925
1926 2005-09-23 Richard M. Stallman <rms@gnu.org>
1927
1928 * editfns.c (Fformat): Explicitly test for end of format string
1929 and don't use `index'.
1930
1931 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
1932
1933 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
1934 Define BROKEN_GET_CURRENT_DIR_NAME.
1935
1936 * sysdep.c (get_current_dir_name): Also define if
1937 BROKEN_GET_CURRENT_DIR_NAME.
1938
1939 * m/ibmrs6000.h: Test for USG5, not USG5_4.
1940
1941 2005-09-22 Kim F. Storm <storm@cua.dk>
1942
1943 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
1944 (message2): Fix commentary. Ok to use alloca'ed memory.
1945 Still not ok to use Lisp string data (because of GC).
1946 (set_message): Add comment why GC cannot happen.
1947
1948 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1949
1950 * macterm.c (xlfdpat_block_match_1): Fix assertion.
1951 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
1952 variants for a scalable font multiple times.
1953
1954 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1955
1956 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
1957 Setup slave tty options before forking.
1958
1959 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1960
1961 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
1962 positions have been set for the frame (as is done for frames in
1963 special-display-buffer-names).
1964
1965 2005-09-19 Kim F. Storm <storm@cua.dk>
1966
1967 * editfns.c (Fformat): Don't scan past end of format string that
1968 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
1969
1970 2005-09-18 Andreas Schwab <schwab@suse.de>
1971
1972 * window.h (struct window): Remove height_fixed_p, no longer set.
1973
1974 * window.c (make_window): Don't initialize height_fixed_p.
1975 (window_fixed_size_p): Don't use it.
1976
1977 2005-09-18 John Paul Wallington <jpw@pobox.com>
1978
1979 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
1980
1981 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1982
1983 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
1984
1985 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
1986 New variables.
1987 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
1988 file selection.
1989
1990 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
1991
1992 2005-09-17 Eli Zaretskii <eliz@gnu.org>
1993
1994 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
1995 (obj): Use XMENU_OBJ, not a literal xmenu.o.
1996
1997 2005-09-16 Romain Francoise <romain@orebokech.com>
1998
1999 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
2000
2001 2005-09-15 Richard M. Stallman <rms@gnu.org>
2002
2003 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
2004 (display_mode_element): Instead of `lisp_string' and `this',
2005 record `offset' and increment that.
2006 `last_offset' replaces `last'.
2007
2008 * Makefile.in (XMENU_OBJ): Variable deleted.
2009 (obj): Use xmenu.o unconditionally.
2010 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
2011
2012 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
2013
2014 2005-09-15 Kim F. Storm <storm@cua.dk>
2015
2016 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
2017 (reseat_at_next_visible_line_start): Likewise (in xassert).
2018
2019 2005-09-14 Romain Francoise <romain@orebokech.com>
2020
2021 * fileio.c (write_region_inhibit_fsync): New variable.
2022 (Fwrite_region): Use it to skip call to fsync.
2023 (syms_of_fileio): Initialize it.
2024
2025 2005-09-14 Kenichi Handa <handa@m17n.org>
2026
2027 * coding.c (code_convert_region_unwind): Argument format changed.
2028 (run_pre_post_conversion_on_str): If pre-write-conversion function
2029 changed the current buffer, delete the new buffer.
2030 (run_pre_write_conversin_on_c_str): Likewise.
2031
2032 * fileio.c (Fexpand_file_name): Check multibyteness of
2033 default_directory.
2034
2035 2005-09-13 Kenichi Handa <handa@m17n.org>
2036
2037 * composite.c (compose_chars_in_text): Delete it.
2038
2039 * composite.h (compose_chars_in_text): Delete extern.
2040
2041 2005-09-13 Kim F. Storm <storm@cua.dk>
2042
2043 * print.c (print_error_message): Fix last change.
2044
2045 2005-09-12 Kim F. Storm <storm@cua.dk>
2046
2047 * composite.c (compose_chars_in_text): Fix setup of `pend'.
2048 Unconditionally reload `ptr' and `pend' after eval.
2049
2050 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
2051
2052 * print.c (print_error_message): Pass copy of caller name to
2053 message_dolog.
2054
2055 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
2056
2057 2005-09-12 Kenichi Handa <handa@m17n.org>
2058
2059 * xdisp.c (display_mode_element): Be sure to make variables THIS
2060 and LISP_STRING point into a string data of ELT.
2061
2062 2005-09-12 Kim F. Storm <storm@cua.dk>
2063
2064 * editfns.c (Ftranslate_region_internal): Reload `tt' after
2065 signal_after_change that may have GC'ed.
2066 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
2067
2068 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
2069 after insert while runs signal_after_change.
2070
2071 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
2072 declaration to where it is used.
2073
2074 * w32.c (check_windows_init_file): Fix allocation of error buffer.
2075
2076 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
2077 (x_set_name_internal): Call x_encode_text with new FREEP arg to
2078 know if xfree is needed instead of guessing.
2079
2080 * xterm.h (x_encode_text): Remove prototype.
2081
2082 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
2083
2084 * w32term.c (x_bitmap_icon): Load small icons too.
2085
2086 2005-09-10 Romain Francoise <romain@orebokech.com>
2087
2088 * buffer.c (init_buffer): Grow buffer to add directory separator
2089 and terminal zero. Fix typos.
2090
2091 2005-09-10 Eli Zaretskii <eliz@gnu.org>
2092
2093 * buffer.c (init_buffer): Fix error message for failed call to
2094 get_current_dir_name.
2095 (get_current_dir_name): Remove prototype.
2096
2097 * xsmfns.c (get_current_dir_name): Remove prototype.
2098
2099 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
2100 Add prototype.
2101
2102 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
2103 Don't #undef NULL after including blockinput.h.
2104
2105 * config.in: Regenerated.
2106
2107 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
2108
2109 Remove the MAXPATHLEN limitations:
2110
2111 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
2112 New function.
2113
2114 * buffer.c (init_buffer): Use it.
2115
2116 * xsmfns.c (smc_save_yourself_CB): Ditto.
2117
2118 2005-09-09 Kim F. Storm <storm@cua.dk>
2119
2120 * doc.c (Fsubstitute_command_keys): Lookup key binding for
2121 commands that are remapped from some other command.
2122
2123 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
2124 flag in disabled rows below the window.
2125
2126 * frame.h (struct frame): New member updated_p.
2127
2128 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
2129 member. Remove local `updated' array and associated variables.
2130
2131 2005-09-07 Kim F. Storm <storm@cua.dk>
2132
2133 * xdisp.c (handle_display_prop): Respect overlay window property.
2134
2135 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
2136 Fixes crash reported by YAMAMOTO Mitsuharu.
2137
2138 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2139
2140 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
2141 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
2142 (xlfdpat_block_match_1, xlfdpat_match): New functions.
2143 (xlfdpat_block_match): New macro.
2144 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
2145 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
2146 (add_font_name_table_entry): Increase font_name_table_size more
2147 rapidly.
2148 (mac_c_string_match): Remove function.
2149 (mac_do_list_fonts): Use XLFD pattern match instead of regular
2150 expression match.
2151
2152 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
2153
2154 2005-09-03 Richard M. Stallman <rms@gnu.org>
2155
2156 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
2157 (move_it_in_display_line_to): Stop after last char on line even
2158 on a windowing terminal, if that's the specified stop position.
2159
2160 * fns.c (Fsort): Doc fix.
2161
2162 * editfns.c (Fpropertize): Don't insist that properties be symbols.
2163
2164 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
2165
2166 * dired.c (directory_files_internal_unwind, directory_files_internal)
2167 (file_name_completion): Use a Save_Value object rather than a cons of
2168 two 16bit ints to store the DIR*.
2169 (directory_files_internal, file_name_completion): Handle both EINTR and
2170 EAGAIN consistently after `readdir'.
2171
2172 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
2173
2174 * intervals.c (update_interval): Add position info in error.
2175
2176 * dispnew.c (window_to_frame_hpos, update_window):
2177 Avoid gcc warning about unused variable `f'.
2178
2179 2005-08-31 Jason Rumney <jasonr@gnu.org>
2180
2181 * w32menu.c (add_menu_item): If unicode_append_menu returns an
2182 error, revert to using AppendMenu.
2183
2184 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2185
2186 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
2187 All uses changed.
2188 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
2189 cases.
2190 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
2191 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
2192 Use posix_pathname_to_fsspec.
2193 [MAC_OS] (xpm_load_image): Fill in background_transparent field
2194 while we have mask.
2195
2196 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
2197
2198 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
2199
2200 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2201
2202 * syntax.c (update_syntax_table): Properly reproduce the special +1
2203 setting of e_property at the end of the buffer when bumping into the
2204 INTERVALS_AT_ONCE limit.
2205
2206 2005-08-27 Eli Zaretskii <eliz@gnu.org>
2207
2208 * emacs.c (USAGE1): Fix the description of the -Q option.
2209
2210 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
2211
2212 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
2213
2214 2005-08-26 Kim F. Storm <storm@cua.dk>
2215
2216 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
2217 Don't move PT to new window start.
2218
2219 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2220
2221 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
2222 ICONIFY/DEICONIFY_EVENT.
2223
2224 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
2225 Restore background color.
2226 (mac_handle_visibility_change): New function.
2227 (x_make_frame_invisible, x_iconify_frame)
2228 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
2229 [USE_CARBON_EVENTS] (mac_handle_window_event)
2230 (install_window_handler): Handle visibility change events.
2231 (x_make_frame_visible): Don't reposition window if it is iconified
2232 or asked for visible before. Select and uncollapse window when it
2233 is made visible.
2234 (x_make_frame_invisible): Don't reset x_highlight_frame.
2235 (x_iconify_frame): Likewise. Make invisible frame visible before
2236 it is iconified.
2237 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
2238 (do_window_update): Don't change visibility of invisible frame.
2239
2240 2005-08-22 Juri Linkov <juri@jurta.org>
2241
2242 * term.c (turn_on_face): Check for TS_set_foreground and
2243 TS_set_background depending on standout_mode. Simplify.
2244
2245 2005-08-21 Kim F. Storm <storm@cua.dk>
2246
2247 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
2248 bitmaps on fully visible rows.
2249
2250 * fringe.c (update_window_fringes): Replace FORCE_P arg with
2251 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
2252 and return 0.
2253
2254 * xdisp.c (redisplay_window): Call update_window_fringes with
2255 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
2256
2257 2005-08-20 Richard M. Stallman <rms@gnu.org>
2258
2259 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
2260 (resize_mini_window): Set w->start, and PT, so as to display the tail
2261 end of the buffer, if it doesn't all fit.
2262
2263 2005-08-18 Kim F. Storm <storm@cua.dk>
2264
2265 * xdisp.c (calc_pixel_width_or_height): Use actual display
2266 resolution when available instead of Vdisplay_pixels_per_inch.
2267
2268 2005-08-17 Kim F. Storm <storm@cua.dk>
2269
2270 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
2271
2272 * dispnew.c (buffer_posn_from_coords): Check that target row is
2273 within matrix.
2274
2275 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2276
2277 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
2278 xg_set_frame_icon and call it.
2279
2280 * gtkutil.c (xg_set_frame_icon): New function.
2281
2282 * gtkutil.h (xg_set_frame_icon): Declare it.
2283
2284 2005-08-16 Kim F. Storm <storm@cua.dk>
2285
2286 * dispnew.c (increment_row_positions): Skip non-enabled rows.
2287
2288 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
2289 (Fcurrent_window_configuration): Use VECSIZE macro instead.
2290
2291 2005-08-15 Richard M. Stallman <rms@gnu.org>
2292
2293 * xdisp.c (message3_nolog): Clear echo_message_buffer.
2294
2295 2005-08-15 Kim F. Storm <storm@cua.dk>
2296
2297 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
2298
2299 * process.c (deactivate_process, status_notify, read_process_output)
2300 (update_status, status_convert, decode_status, allocate_pty)
2301 (make_process, remove_process, list_processes_1)
2302 (create_process_1, unwind_request_sigio, read_process_output)
2303 (send_process, keyboard_bit_set): Declare static.
2304 (Fdelete_process): Simplify. Pass process to status_notify, so we
2305 don't try to read output from it.
2306 (status_notify): New arg deleting_process--don't try to read
2307 output from that process.
2308
2309 * lisp.h (deactivate_process, status_notify, read_process_output):
2310 Remove prototypes.
2311
2312 2005-08-14 Richard M. Stallman <rms@gnu.org>
2313
2314 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
2315 define_image_type.
2316
2317 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2318
2319 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
2320 (xg_get_image_for_pixmap): Move some code to
2321 xg_get_pixbuf_from_pix_and_mask, and call it.
2322
2323 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
2324
2325 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
2326 to get an GTK icon and set it with GTK functions to avoid having GTK
2327 override an icon set with just X functions.
2328
2329 2005-08-11 Richard M. Stallman <rms@gnu.org>
2330
2331 * image.c (syms_of_image): Init image_types here, and call
2332 define_image_type.
2333 (init_image): Not here.
2334
2335 2005-08-09 Richard M. Stallman <rms@gnu.org>
2336
2337 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
2338
2339 * lisp.h (QUIT): Throw t to Vthrow_on_input.
2340
2341 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
2342
2343 * floatfns.c (Fexpt): Use floats for negative exponent.
2344
2345 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2346
2347 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
2348 should not be there, causing menu display errors with GTK 2.6.9.
2349
2350 2005-08-07 Richard M. Stallman <rms@gnu.org>
2351
2352 * floatfns.c (Fexpt): Undo previous change.
2353
2354 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
2355 so it can be used with various state vectors.
2356
2357 * emacs.c (endif): Convert -script into -scriptload.
2358 (standard_args): Add -scriptload. Allow -basic-display with one dash.
2359
2360 * fns.c (syms_of_fns): Add `emacs' to features.
2361
2362 * term.c (set_terminal_modes): If no TS_termcap_modes string,
2363 output newlines to scroll the old screen contents off the screen.
2364
2365 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
2366
2367 * floatfns.c (Fexpt): Use floats for negative exponent.
2368 Reported by D Goel.
2369
2370 2005-08-02 Richard M. Stallman <rms@gnu.org>
2371
2372 * frame.c (Fframe_char_width): Doc fix.
2373
2374 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
2375
2376 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
2377 Defvar it.
2378
2379 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
2380
2381 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
2382 (my_create_window, my_create_tip_window): Make static.
2383
2384 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
2385 (my_set_foreground_window, my_destroy_window): Make static.
2386
2387 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
2388
2389 Merge gnulib getopt implementation into Emacs.
2390
2391 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
2392 now part of lib-src.
2393
2394 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
2395
2396 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
2397
2398 2005-07-25 Jason Rumney <jasonr@gnu.org>
2399
2400 * w32menu.c (w32_menu_display_help): Suppress tooltip when
2401 navigating menus with the keyboard.
2402
2403 2005-07-23 Richard M. Stallman <rms@gnu.org>
2404
2405 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
2406
2407 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
2408 gc_relative_threshold, one by one.
2409
2410 * keyboard.c (read_char): Test gc_cons_threshold.
2411 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
2412
2413 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
2414 gc_relative_threshold, one by one.
2415
2416 * alloc.c (gc_cons_threshold): Not static.
2417 (gc_cons_combined_threshold): Var deleted.
2418 (gc_relative_threshold): New variable.
2419 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
2420 instead of gc_cons_combined_threshold.
2421
2422 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
2423 (gc_cons_combined_threshold): Declaration deleted.
2424
2425 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2426
2427 * mac.c: Don't include stdlib.h or string.h.
2428 (Fdo_applescript, Fmac_file_name_to_posix)
2429 (Fmac_file_name_to_posix): Doc fixes.
2430 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
2431 (Fmac_code_convert_string): Likewise.
2432 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
2433 if the executable is not contained in a bundle.
2434
2435 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
2436 (gray_width, gray_height): Remove defines.
2437 (gray_bits, gray_bitmap_width, gray_bitmap_height)
2438 (gray_bitmap_bits): Remove variables.
2439 (lispy_function_keys): Remove extern.
2440 (free_frame_menubar): Add extern.
2441 (x_window_to_frame): Remove function.
2442 (unwind_create_tip_frame): Add declaration.
2443 (x_set_name_internal): New function.
2444 (x_set_name, x_set_title): Use it.
2445 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
2446 (Fx_display_pixel_height, Fx_display_planes)
2447 (Fx_display_color_cells, Fx_server_max_request_size)
2448 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2449 (Fx_display_mm_height, Fx_display_mm_width)
2450 (Fx_display_backing_store, Fx_display_visual_class)
2451 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
2452
2453 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2454
2455 * macselect.c (Fx_own_selection_internal): Follow error conventions.
2456 (Fx_get_selection_internal, Fx_selection_owner_p)
2457 (Fx_selection_exists_p): Doc fixes.
2458 (syms_of_macselect) <selection-converter-alist>: Likewise.
2459
2460 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
2461
2462 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2463
2464 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
2465 (Fccl_execute_on_string): Likewise; add usage info.
2466
2467 * composite.c (Fcompose_region_internal)
2468 (Fcompose_string_internal):
2469 Improve argument/docstring consistency.
2470
2471 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
2472 Fix typos in docstrings.
2473
2474 * textprop.c (Fnext_char_property_change)
2475 (Fprevious_char_property_change): Doc fixes.
2476
2477 * window.c (Fset_window_margins, Fset_window_fringes):
2478 Improve argument/docstring consistency.
2479
2480 * xfaces.c (Finternal_lisp_face_p): Doc fix.
2481
2482 2005-07-21 Andreas Schwab <schwab@suse.de>
2483
2484 * eval.c (restore_stack_limits): Return a value.
2485
2486 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
2487
2488 * eval.c (Fdefvar): Doc fix.
2489
2490 2005-07-20 Kim F. Storm <storm@cua.dk>
2491
2492 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
2493 Use make_save_value to unwind protect stream.
2494
2495 * lread.c (Fload, load_unwind):
2496 Use make_save_value to unwind protect stream.
2497
2498 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
2499
2500 * eval.c (Fprog2, Fcalled_interactively_p),
2501 (syms_of_eval) <debug-on-quit>: Doc fixes.
2502 (syms_of_eval) <max-specpdl-size>:
2503 (Finteractive_p): Fix typos in docstrings.
2504
2505 2005-07-19 Kim F. Storm <storm@cua.dk>
2506
2507 * w32fns.c (Vx_hand_shape): Variable removed.
2508 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
2509
2510 2005-07-19 Kenichi Handa <handa@m17n.org>
2511
2512 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
2513
2514 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
2515
2516 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
2517
2518 2005-07-18 Kim F. Storm <storm@cua.dk>
2519
2520 * frame.h (struct frame): New member already_hscrolled_p.
2521
2522 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
2523 to avoid redisplay looping hscrolling back and forth ad infinitum.
2524
2525 2005-07-18 Juri Linkov <juri@jurta.org>
2526
2527 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
2528 * keymap.c (Fminor_mode_key_binding):
2529 * macterm.c (mac-emulate-three-button-mouse):
2530 Delete duplicate duplicate words.
2531
2532 2005-07-18 Ken Raeburn <raeburn@gnu.org>
2533
2534 * minibuf.c (Ftest_completion): Fix odd syntax in test.
2535
2536 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2537
2538 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
2539
2540 * macgui.h (struct _XGC): New struct.
2541 (GC): Use it.
2542 (GCForeground, GCBackground, GCFont): Use X11 mask values.
2543 (XCreateGC, XParseGeometry): Move externs to macterm.h.
2544
2545 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
2546 (XSetFont): Add declaration.
2547 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
2548 Remove functions.
2549 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
2550 New defines.
2551 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
2552 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
2553 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
2554 Use them.
2555 (mac_erase_rectangle): New function.
2556 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
2557 (x_draw_stretch_glyph_string): Use it.
2558 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
2559 (XSetBackground, XSetFont): Adjust for new GC implementation.
2560 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
2561 (XTset_vertical_scroll_bar): Clear area under scroll bar.
2562
2563 * macterm.h (struct mac_display_info): Change types of
2564 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
2565 (XCreateGC, XParseGeometry): Move externs from macgui.h.
2566
2567 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
2568
2569 2005-07-16 Richard M. Stallman <rms@gnu.org>
2570
2571 * buffer.c (Fmake_overlay): Doc fix.
2572
2573 2005-07-16 Eli Zaretskii <eliz@gnu.org>
2574
2575 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
2576 Vw32_valid_locale_ids, and Vw32_valid_codepages.
2577
2578 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2579
2580 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
2581 Use Fstring_as_unibyte instead of string_make_unibyte.
2582
2583 2005-07-15 Richard M. Stallman <rms@gnu.org>
2584
2585 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
2586
2587 2005-07-15 Kim F. Storm <storm@cua.dk>
2588
2589 * xdisp.c: Fix redisplay loop in last change.
2590 (IT_POS_VALID_AFTER_MOVE_P): New macro.
2591 (move_it_vertically_backward, move_it_by_lines): Use it.
2592
2593 2005-07-14 Jason Rumney <jasonr@gnu.org>
2594
2595 * w32.c (init_environment): Default HOME directory to user's
2596 appdata directory if possible.
2597
2598 2005-07-14 Kim F. Storm <storm@cua.dk>
2599
2600 * .gdbinit (pitx): Fix output format. Print string charpos.
2601
2602 * lread.c (syms_of_lread): Initialize seen_list.
2603
2604 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
2605
2606 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
2607 Staticpro re_match_object.
2608
2609 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2610
2611 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
2612 dereference.
2613
2614 * macterm.c (mac_window_to_frame): Remove duplicate define.
2615
2616 2005-07-14 Kenichi Handa <handa@m17n.org>
2617
2618 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
2619 (code_convert_region): Adjust for the above change.
2620 (set_conversion_work_buffer): If the work buffer is already in
2621 use, generate a new buffer and return it. Otherwise return Qnil.
2622 (run_pre_post_conversion_on_str): Adjust for the above change.
2623 (run_pre_write_conversin_on_c_str): Likewise.
2624
2625 2005-07-13 Kim F. Storm <storm@cua.dk>
2626
2627 * xdisp.c (start_display): Don't reseat to next visible line start
2628 if current start position is in a string or image.
2629 (move_it_vertically_backward): Be sure to move out of strings and
2630 images when moving it2 forward.
2631 (move_it_by_lines): When moving forward, move to next buffer
2632 position if we end up in a string or image. When moving backward,
2633 count rows moved over when moving to start of current row in case
2634 row starts in middle of a string or image. Also move further
2635 backward if we end up in a string or image.
2636 (try_cursor_movement): If overlay string spans multiple lines,
2637 move backward to set cursor on start of an overlay string.
2638 (cursor_row_p): Row is ok if cursor is at newline from string, but
2639 string starts on this line (so we always position cursor at start
2640 of string).
2641
2642 * indent.c (Fvertical_motion): If start position is on an image,
2643 don't move back if we move too far (that's almost certain to happen).
2644
2645 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
2646 row in minibuffer windows.
2647 (try_window): Don't check margins in minibuffer windows.
2648
2649 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2650
2651 * macterm.c: Don't include stdlib.h or composite.h.
2652 (x_use_underline_position_properties, last_mouse_press_frame)
2653 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
2654 (syms_of_macterm, mac_initialize): Don't initialize them.
2655 (waiting_for_input, initial_argv, initial_argc)
2656 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
2657 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
2658 (extra_keyboard_modifiers): Fix type in extern.
2659 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
2660 (x_scroll_bar_report_motion): Add argument types to declaration.
2661 (mac_compute_glyph_string_overhangs): Add declaration.
2662 (disable_mouse_highlight): Remove unused variable.
2663 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
2664 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
2665 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
2666 All callers changed.
2667 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
2668 timestamp.
2669 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
2670 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
2671 only when its width is less than the height.
2672 (XTredeem_scroll_bar): Sync with xterm.c.
2673 (font_name_table, font_name_table_size, font_name_count):
2674 Make static.
2675 (drag_and_drop_file_list): Remove variable. Previous use is now
2676 local to function.
2677 (do_ae_open_documents): Move DRAG_N_DROP event construction part
2678 from XTread_socket.
2679 (XTread_socket): Consolidate setting of event timestamp.
2680 Move DRAG_N_DROP event construction part to do_ae_open_documents.
2681 Support extra_keyboard_modifiers.
2682
2683 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
2684 beginning with that for ASCII.
2685
2686 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
2687
2688 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
2689 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
2690 (syms_of_alloc): Declare gc-cons-percentage.
2691
2692 * eval.c (Feval, Ffuncall):
2693 * keyboard.c (read_char):
2694 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
2695
2696 * lisp.h (gc_cons_combined_threshold): Declare.
2697
2698 2005-07-12 Kim F. Storm <storm@cua.dk>
2699
2700 * coding.c (Qprocess_argument):
2701 * coding.h (Qprocess_argument): Remove unused var.
2702
2703 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
2704
2705 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2706
2707 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
2708 Endian.h.
2709 [!MAC_OSX] (fchmod, fchown): New functions.
2710 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
2711 Use SBYTES and EndianU32_BtoN.
2712 (mac_get_object_from_code): Return 4 byte string even if argument
2713 is 0. Use make_unibyte_string and EndianU32_NtoB.
2714 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2715 (Fmac_set_file_type): Fix documents and argument declarations.
2716 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
2717
2718 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2719
2720 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
2721
2722 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2723
2724 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
2725 Lucid if X_I18N, font otherwise.
2726
2727 2005-07-10 Steven Tamm <steventamm@mac.com>
2728
2729 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
2730 (Fmac_set_file_type, Fmac_set_file_creator): Add.
2731 (mac_get_object_from_code, mac_get_code_from_arg): Add.
2732
2733 2005-07-10 Richard M. Stallman <rms@gnu.org>
2734
2735 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
2736 (syms_of_lread): Set up eval-buffer-list.
2737 (Feval_buffer, Feval_region): Bind eval-buffer-list.
2738
2739 2005-07-08 Richard M. Stallman <rms@gnu.org>
2740
2741 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
2742
2743 2005-07-08 Kim F. Storm <storm@cua.dk>
2744
2745 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
2746 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
2747
2748 2005-07-07 Kim F. Storm <storm@cua.dk>
2749
2750 * window.c (Frecenter): Fix last change (set iarg before use).
2751
2752 2005-07-06 Richard M. Stallman <rms@gnu.org>
2753
2754 * window.c (Frecenter): When arg is inside the scroll margin,
2755 move it out of the margin.
2756
2757 2005-07-06 Jason Rumney <jasonr@gnu.org>
2758
2759 * w32console.c (initialize_w32_display): Detect when the console
2760 dimensions are insane, and default to 80x25 instead.
2761 (w32_use_full_screen_buffer): Default to NIL.
2762
2763 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2764
2765 * macterm.c (mac_draw_vertical_window_border): Use foreground of
2766 VERTICAL_BORDER_FACE_ID for vertical border line.
2767 (mac_encode_char): Call check_ccl_update in advance.
2768 (mac_to_x_fontname, x_font_name_to_mac_font_name)
2769 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
2770 Don't assume that font family length is less than 32.
2771 (x_compute_min_glyph_bounds): Make static.
2772 (x_load_font): Never set fonts_changed_p to zero.
2773
2774 2005-07-04 Lute Kamstra <lute@gnu.org>
2775
2776 * Update FSF's address in GPL notices.
2777
2778 2005-07-03 Richard M. Stallman <rms@gnu.org>
2779
2780 * xdisp.c (try_window): Fix previous change in how it handles
2781 a partially-visible line or one only partly past the margin.
2782
2783 * window.c (window_scroll_pixel_based): Take account
2784 of this_scroll_margin when finding point when scrolling up.
2785
2786 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
2787
2788 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2789 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
2790 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2791
2792 2005-07-02 Juri Linkov <juri@jurta.org>
2793
2794 * w32term.c (w32_draw_vertical_window_border): Use foreground of
2795 VERTICAL_BORDER_FACE_ID for vertical border line.
2796
2797 2005-07-02 Eli Zaretskii <eliz@gnu.org>
2798
2799 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
2800 fchmod so that chmod doesn't get called on MSDOS before the file
2801 is closed.
2802
2803 2005-07-01 Jason Rumney <jasonr@gnu.org>
2804
2805 * w32term.c (cleartype_active): New flag for enabling sub-pixel
2806 workaround.
2807 (w32_initialize): Initialize it.
2808 (w32_native_per_char_metric): Allow a couple of extra pixels when
2809 Cleartype is active.
2810
2811 * w32term.c (w32_initialize): Move check for screen reader here
2812 from syms_of_w32term.
2813
2814 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2815
2816 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
2817 is not zero.
2818
2819 2005-07-01 Masatake YAMATO <jet@gyve.org>
2820
2821 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
2822
2823 2005-06-30 Juri Linkov <juri@jurta.org>
2824
2825 * xdisp.c (x_draw_vertical_border): If left fringe is not present
2826 decrease x coord of vertical border by 1 pixel to not occupy text
2827 area of the right window.
2828
2829 * xterm.c (x_draw_vertical_window_border): Use foreground of
2830 VERTICAL_BORDER_FACE_ID for vertical border line.
2831
2832 * term.c (turn_on_face): In standout mode apply specified
2833 fg to bg, and specified bg to fg (this makes the logic of
2834 inversion on terminal consistent with X).
2835
2836 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
2837
2838 * eval.c (user_variable_p_eh): New function.
2839 (Fuser_variable_p): Use it. Clarify docstring.
2840 Return t for aliases of user options, nil for alias loops.
2841
2842 2005-06-27 Richard M. Stallman <rms@gnu.org>
2843
2844 * eval.c (Fdefvar): Improve error message.
2845
2846 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2847
2848 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
2849 change.
2850
2851 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
2852
2853 * eval.c (Fdefvar): Don't try to set constant symbols.
2854
2855 2005-06-25 Richard M. Stallman <rms@gnu.org>
2856
2857 * macfns.c (Fx_show_tip): Pass new arg to try_window.
2858
2859 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
2860
2861 * xfns.c (Fx_show_tip): Pass new arg to try_window.
2862
2863 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
2864 (redisplay_window): Handle try_window reporting point in scroll margin.
2865
2866 * dispextern.h (try_window): Declare new arg.
2867
2868 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
2869 Use fchmod to copy the file modes.
2870 (Frename_file): Don't copy UID and GID here;
2871 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
2872
2873 * eval.c (call_debugger): Take full care of extending stack limits
2874 to make space for the debugger, and restore the change afterward.
2875 Bind debug-on-error to nil.
2876 (restore_stack_limits): New subroutine.
2877 (Fsignal): Extend specpdl bound along with eval depth bound,
2878 for calling edebug. Don't do either one, for calling debugger.
2879 (find_handler_clause): Don't bind debug-on-error here.
2880 Don't unbind anything either.
2881 Temporarily advance max_specpdl_size for calling
2882 internal_with_output_to_temp_buffer.
2883 (grow_specpdl): Don't alter max_specpdl_size before signaling
2884 an error.
2885 (syms_of_eval) <max-specpdl-size>: Doc fix.
2886
2887 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
2888
2889 2005-06-24 Eli Zaretskii <eliz@gnu.org>
2890
2891 * fileio.c (Frename_file): Undo last change: no need to ifdef away
2892 chown on DOS_NT platforms.
2893
2894 * w32.c (sys_chown): New function.
2895
2896 * s/ms-w32.h (chown): New; define to sys_chown.
2897
2898 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
2899
2900 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
2901 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
2902
2903 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
2904
2905 2005-06-23 Richard M. Stallman <rms@gnu.org>
2906
2907 * xdisp.c (get_next_display_element): Finish reversing the tests of
2908 Vnobreak_char_display.
2909
2910 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
2911 All uses changed.
2912 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
2913 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
2914
2915 * fileio.c (Frename_file): Preserve owner and group, if possible,
2916 when copying.
2917
2918 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
2919
2920 * abbrev.c (Funexpand_abbrev):
2921 * category.c (Fmake_category_set):
2922 * dispnew.c (Fsleep_for, Fsit_for):
2923 * editfns.c (Fsubst_char_in_region):
2924 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
2925 * frame.c (make_frame_without_minibuffer):
2926 * lread.c (read_vector):
2927 * macfns.c (check_x_frame):
2928 * process.c (Fstop_process, Fcontinue_process):
2929 * search.c (Freplace_match):
2930 * syntax.c (Fstring_to_syntax):
2931 * w32fns.c (check_x_frame, check_x_display_info):
2932 * xfaces.c (x_supports_face_attributes_p):
2933 * xselect.c (Fx_own_selection_internal): Follow error conventions.
2934
2935 * image.c (fn_png_init_io): Don't define it.
2936 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
2937 (png_read_from_file): New function, based on png_read_from_memory.
2938 (png_load): Use it, instead of fn_png_init_io.
2939
2940 2005-06-23 Kim F. Storm <storm@cua.dk>
2941
2942 * search.c (Fmatch_data): Remove evaporate option.
2943 (Fset_match_data): Do not mention evaporate option in doc string.
2944 Add commentary explaining evaporate arg (for internal use only).
2945 (unwind_set_match_data): Add comment on evaporate use.
2946
2947 2005-06-22 Miles Bader <miles@gnu.org>
2948
2949 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
2950 (realize_basic_faces, syms_of_xfaces): Update references to it.
2951 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
2952 to `VERTICAL_BORDER_FACE_ID'.
2953 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
2954
2955 2005-06-21 Juri Linkov <juri@jurta.org>
2956
2957 * dispextern.h: Add extern Qframe_set_background_mode.
2958
2959 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
2960 Qframe_set_background_mode.
2961
2962 * frame.c (Fmodify_frame_parameters):
2963 Call frame-set-background-mode after changing the background color
2964 on non-window non-dos branch.
2965
2966 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
2967
2968 * fns.c (Fchar_table_range):
2969 * process.c (Fmake_network_process): Fix spellings.
2970
2971 2005-06-20 Kim F. Storm <storm@cua.dk>
2972
2973 * fns.c (Fsort): Doc fix.
2974
2975 2005-06-20 Miles Bader <miles@gnu.org>
2976
2977 * xfaces.c (Qvertical_divider): New variable.
2978 (realize_basic_faces): Realize its face.
2979 (syms_of_xfaces): Initialize it.
2980
2981 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
2982
2983 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
2984 window-separator on ttys using `vertical-divider' face by default.
2985
2986 2005-06-17 Richard M. Stallman <rms@gnu.org>
2987
2988 * xdisp.c (get_next_display_element):
2989 Reverse test of Vshow_nonbreak_escape.
2990
2991 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
2992 (Ftty_no_underline): New function.
2993 (syms_of_term): defsubr it.
2994
2995 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
2996
2997 * dispnew.c (spec_glyph_lookup_face): New function.
2998 (build_frame_matrix_from_leaf_window): Use it.
2999
3000 * dispextern.h (spec_glyph_lookup_face): Add declaration.
3001
3002 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3003
3004 2005-06-12 Richard M. Stallman <rms@gnu.org>
3005
3006 * keyboard.c (read_char): After catching a longjmp,
3007 call restore_getcjmp.
3008
3009 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
3010
3011 * xselect.c (lisp_data_to_selection_data): Fix spelling.
3012
3013 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3014
3015 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
3016 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
3017 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
3018 events.
3019 (XTread_socket): Don't pass keyboard events with the option
3020 modifier to the system when Vmac_command_key_is_meta is nil or
3021 Vmac_option_modifier is non-nil.
3022 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
3023 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
3024 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
3025 handler function.
3026 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
3027 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
3028 handler part to mac_handle_mouse_event.
3029
3030 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
3031
3032 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
3033 NEW-ALIAS and BASE-VARIABLE, respectively.
3034
3035 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
3036
3037 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
3038 (get_phys_cursor_geometry, format_mode_line_unwind_data)
3039 (get_line_height_property, x_produce_glyphs): Remove unused vars.
3040
3041 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
3042
3043 2005-06-13 Eli Zaretskii <eliz@gnu.org>
3044
3045 * w32term.c (x_use_underline_position_properties): New variable.
3046 (x_draw_glyph_string): Remind in a comment to change doc string of
3047 x-use-underline-position-properties if/when underline positioning
3048 is implemented.
3049 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
3050 and initialize it to nil.
3051
3052 2005-06-12 Jason Rumney <jasonr@gnu.org>
3053
3054 * w32fns.c (NEWOPENFILENAME): New struct.
3055 (Fx_file_dialog): Use it to trick the system into giving us up to
3056 date dialogs on systems that are documented to support it.
3057 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
3058
3059 2005-06-12 Eli Zaretskii <eliz@gnu.org>
3060
3061 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
3062 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
3063
3064 2005-06-11 Eli Zaretskii <eliz@gnu.org>
3065
3066 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
3067 to CreateDIBSection to avoid a compiler warning.
3068 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
3069 warning.
3070 (png_load): Cast return values of fn_png_create_read_struct and
3071 fn_png_create_info_struct, to avoid compiler warnings on W32.
3072 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
3073 to avoid compiler warnings.
3074 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
3075 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
3076 avoid a compiler warning.
3077 (tiff_load): Cast return values of fn_TIFFOpen and
3078 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
3079 to IMAGE_BACKGROUND to avoid a compiler warning.
3080 (gif_load): Cast return values of fn_DGifOpenFileName and
3081 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
3082 IMAGE_BACKGROUND to avoid a compiler warning.
3083 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
3084 before redefining.
3085
3086 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
3087 the call to CreateDIBSection, to avoid a compiler warning.
3088
3089 2005-06-11 Jason Rumney <jasonr@gnu.org>
3090
3091 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
3092 minibuffer.
3093 * macfns.c (Fx_file_dialog): Likewise.
3094
3095 2005-06-10 Eli Zaretskii <eliz@gnu.org>
3096
3097 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
3098
3099 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
3100
3101 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
3102 * w32fns.c (syms_of_w32fns): Fix spellings.
3103
3104 2005-06-10 Eli Zaretskii <eliz@gnu.org>
3105
3106 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
3107 `verbose'; print diagnostic messages only if it is non-zero.
3108 All callers changed to pass a zero value unless DEBUG_DUMP is defined
3109 in the environment.
3110 (copy_executable_and_dump_data): Print section names with %.8s.
3111
3112 2005-06-10 Masatake YAMATO <jet@gyve.org>
3113
3114 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
3115 when mouse_face is not given.
3116
3117 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
3118
3119 * window.c (Fselect_window): Adapt call to Fselect_frame.
3120
3121 * lisp.h: Update EXFUN of Fselect_frame.
3122
3123 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
3124
3125 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
3126 no_enter.
3127 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
3128 Adapt to above change.
3129
3130 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
3131
3132 * fns.c (Fmemq, Fmaphash): Doc fixes.
3133
3134 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
3135
3136 * xfaces.c (Fdisplay_supports_face_attributes_p):
3137 Fix typo in docstring.
3138
3139 2005-06-08 Steven Tamm <steventamm@mac.com>
3140
3141 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
3142 used by gcc4 on intel mac.
3143
3144 2005-06-09 Kim F. Storm <storm@cua.dk>
3145
3146 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
3147 in REUSE list if non-nil; free them if equal to evaporate.
3148 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
3149 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
3150 (restore_search_regs): Rename from restore_match_data. Uses changed.
3151 (unwind_set_match_data): New function.
3152 (record_unwind_save_match_data): New function like save-match-data.
3153
3154 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
3155 (record_unwind_save_match_data): Add prototype.
3156 (restore_search_regs): Rename from restore_match_data.
3157
3158 * composite.c (compose_chars_in_text):
3159 * eval.c (do_autoload):
3160 * macmenu.c (set_frame_menubar):
3161 * process.c (read_process_output, exec_sentinel):
3162 * xmenu.c (set_frame_menubar):
3163 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
3164 * w32menu.c (set_frame_menubar):
3165 Use record_unwind_save_match_data.
3166
3167 2005-06-08 Richard M. Stallman <rms@gnu.org>
3168
3169 * xdisp.c (get_next_display_element): Alter previous change:
3170 Distinguish Vshow_nonbreak_escape = t or not t.
3171 For t, use escape_glyph once again, as before previous change.
3172 Use space or hyphen for display, instead of the non-ASCII char.
3173 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
3174
3175 * process.c (Fstart_process): Don't touch command_channel_p slot.
3176
3177 * process.h (struct process): Delete command_channel_p.
3178
3179 2005-06-07 Masatake YAMATO <jet@gyve.org>
3180
3181 * xdisp.c (note_mode_line_or_margin_highlight):
3182 Check the overlapping of re-rendering area to avoid flickering.
3183 (note_mouse_highlight): Call clear_mouse_face if PART
3184 is not ON_MODE_LINE nor ON_HEADER_LINE.
3185
3186 2005-06-07 Kim F. Storm <storm@cua.dk>
3187
3188 * process.c: Improve commentary for adaptive read buffering.
3189
3190 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
3191
3192 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
3193 if available.
3194
3195 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3196
3197 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
3198 New functions for popping down menus on C-g.
3199 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
3200
3201 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
3202 non-static.
3203
3204 * config.in: Add HAVE_CANCELMENUTRACKING.
3205
3206 2005-06-06 Eli Zaretskii <eliz@gnu.org>
3207
3208 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
3209
3210 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
3211
3212 * w32proc.c (RVA_TO_PTR): New macro.
3213
3214 * w32heap.c (RVA_TO_PTR): No need to #undef now.
3215
3216 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
3217 Depend on w32heap.h.
3218
3219 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
3220
3221 * keyboard.c (command_loop_1): Update Vthis_original_command.
3222
3223 2005-06-06 Richard M. Stallman <rms@gnu.org>
3224
3225 * xmenu.c (popup_get_selection): Undo previous change.
3226
3227 2005-06-06 Juri Linkov <juri@jurta.org>
3228
3229 * xdisp.c (Qno_break_space): New variable.
3230 (syms_of_xdisp): Initialize it.
3231 (get_next_display_element): Add no-break space and soft hypen
3232 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
3233 Use `no-break-space' face for no-break spaces.
3234
3235 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3236
3237 * window.c (delete_window): Handle the case where a h/vchild has
3238 a h/vchild.
3239
3240 2005-06-05 Eli Zaretskii <eliz@gnu.org>
3241
3242 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
3243 call to pfn_setsockopt, cast optval to `const char *'.
3244
3245 2005-06-04 Eli Zaretskii <eliz@gnu.org>
3246
3247 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
3248 (open_unc_volume): Cast return value of map_w32_filename, to avoid
3249 compiler warnings.
3250
3251 * s/ms-w32.h (fileno): Don't define if already defined.
3252
3253 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
3254
3255 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
3256
3257 2005-06-04 Richard M. Stallman <rms@gnu.org>
3258
3259 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
3260
3261 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3262
3263 * macmenu.c (cleanup_popup_menu): New function.
3264 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
3265 mac_menu_show Quit:s.
3266 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
3267 a dialog).
3268
3269 2005-06-04 Kim F. Storm <storm@cua.dk>
3270
3271 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
3272
3273 * callproc.c (Fcall_process): Don't use alloca to gradually
3274 increase size of buf, as it effectively uses twice the necessary
3275 space on the stack. Instead, pre-allocate buf of full size, and
3276 gradually increase the read size.
3277
3278 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
3279
3280 * eval.c (unbind_to): Preserve value of Vquit_flag.
3281
3282 * xterm.c (handle_one_xevent): Also ignore mouse motion just
3283 before a button release event.
3284
3285 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
3286
3287 * xfaces.c (Finternal_lisp_face_equal_p): Really report
3288 on faces in a frame, if the argument FRAME is non-nil.
3289 Improve argument/docstring consistency.
3290
3291 2005-06-02 Kim F. Storm <storm@cua.dk>
3292
3293 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
3294 (x_consider_frame_title, Fformat_mode_line): Save offset into
3295 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
3296
3297 2005-06-01 Kim F. Storm <storm@cua.dk>
3298
3299 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
3300
3301 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3302
3303 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
3304 resolution fields for scalable fonts to 0.
3305
3306 * xfaces.c (build_scalable_font_name): Round pixel size to the
3307 nearest integer.
3308
3309 2005-06-01 Kim F. Storm <storm@cua.dk>
3310
3311 * xdisp.c (display_mode_line): Support nested calls to redisplay
3312 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
3313
3314 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3315
3316 * fileio.c (Finsert_file_contents):
3317 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
3318
3319 2005-05-31 Kim F. Storm <storm@cua.dk>
3320
3321 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
3322 (mode_line_noprop_ptr): Rename from frame_title_*.
3323 (store_mode_line_noprop_char): Rename from store_frame_title_char.
3324 (store_mode_line_noprop): Rename from store_frame_title.
3325 (mode_line_target): New enum to specify current output target
3326 for mode line formatting.
3327 (display_mode_element): Test it rather than frame_title_ptr and
3328 mode_line_string_list to determine where output should go.
3329 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
3330 (Vmode_line_unwind_vector): New variable.
3331 (format_mode_line_unwind_data, unwind_format_mode_line):
3332 New functions for unwind protection in mode line formatting.
3333 (x_consider_frame_title): Use them and new local var 'title_start'
3334 to support nested calls to format-mode-line and redisplay.
3335 Set mode_line_target to MODE_LINE_TITLE.
3336 (Fformat_mode_line): Use them and new local var 'string_start' to
3337 support nested calls to format-mode-line and redisplay.
3338 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
3339 Don't trim trailing dashes.
3340 (decode_mode_spec): Don't make infinite number of trailing dashes
3341 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
3342 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
3343 mode_line_string_face_prop, and Vmode_line_unwind_vector.
3344 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
3345 Initialize mode_line_target to MODE_LINE_DISPLAY.
3346
3347 2005-05-29 Richard M. Stallman <rms@gnu.org>
3348
3349 * buffer.c (Fbuffer_local_value): Call indirect_variable.
3350
3351 2005-05-28 Masatake YAMATO <jet@gyve.org>
3352
3353 * xdisp.c (note_mode_line_or_margin_highlight): Change the
3354 pointer to a hand cursor when hoovering over a mouse-face.
3355
3356 2005-05-27 Kenichi Handa <handa@m17n.org>
3357
3358 * xterm.c (x_encode_char): Call check_ccl_update in advance.
3359
3360 * ccl.c: Now an element of Vccl_program_table is a vector of
3361 length 4, not 3.
3362 (ccl_get_compiled_code): New arg idx. Caller changed.
3363 Adjust for the change of Vccl_program_table.
3364 (setup_ccl_program): Adjust for the change of Vccl_program_table.
3365 (check_ccl_update): New function.
3366 (Fregister_ccl_program): Use ASET to set an element of a vector.
3367 Adjusted for the change of Vccl_program_table.
3368
3369 * ccl.h (struct ccl_program): New member idx.
3370 (check_ccl_update): Extern it.
3371
3372 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
3373
3374 * image.c (Vimage_library_alist): Move from image.el.
3375 (syms_of_image): Defvar it.
3376 (lookup_image_type): Use it.
3377
3378 * buffer.c (Fbuffer_local_value): Make argument name match its use
3379 in docstring.
3380
3381 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
3382
3383 * keyboard.c (Frecursive_edit): Fix typo in docstring.
3384 (Fposn_at_x_y): Make argument name match its use in docstring.
3385
3386 2005-05-26 Lute Kamstra <lute@gnu.org>
3387
3388 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
3389
3390 2005-05-24 Masatake YAMATO <jet@gyve.org>
3391
3392 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
3393 as loop sentinels.
3394
3395 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
3396
3397 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
3398 select frame title ("Question"/"Information").
3399 (xdialog_show): Use it.
3400
3401 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
3402
3403 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
3404
3405 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
3406 a third argument (Qnil).
3407
3408 * lisp.h: x-popup-dialog can have three arguments.
3409
3410 * editfns.c (Fmessage_box): Use "Information" for frame title.
3411
3412 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
3413
3414 * termcap.c [VMS]: Include <starlet.h>.
3415
3416 2005-05-23 Masatake YAMATO <jet@gyve.org>
3417
3418 * xdisp.c (note_mode_line_or_margin_highlight): Add code
3419 for mouse-face. Change the type of the first argument from `window'
3420 to `Lisp_Object'.
3421 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
3422 window instead of w.
3423
3424 2005-05-22 Andreas Schwab <schwab@suse.de>
3425
3426 * process.c (send_process): Move misplaced volatile.
3427
3428 2005-05-21 Richard M. Stallman <rms@gnu.org>
3429
3430 * xdisp.c (display_mode_element): If we're processing a list and
3431 padding is specified, put it after the last element.
3432
3433 2005-05-21 Eli Zaretskii <eliz@gnu.org>
3434
3435 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
3436 "superroot" on DOS_NT systems.
3437
3438 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
3439
3440 * process.c (send_process): Restore the SIGPIPE handler if we
3441 catch a SIGPIPE.
3442
3443 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
3444
3445 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
3446 misleading comments).
3447 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
3448
3449 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3450
3451 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
3452 Correct the right value.
3453
3454 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
3455
3456 * keyboard.c (syms_of_keyboard): Remove Lisp variables
3457 post-command-idle-hook and post-command-idle-delay.
3458 (command_loop_1): Don't try to execute post-command-idle-hook.
3459
3460 2005-05-16 Kim F. Storm <storm@cua.dk>
3461
3462 * xdisp.c (handle_display_prop): Handle empty replacement.
3463 (handle_single_display_spec): Return -1 for empty replacement.
3464
3465 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
3466
3467 * .gdbinit (pitx): Print more info about iterator.
3468
3469 2005-05-16 Andreas Schwab <schwab@suse.de>
3470
3471 * unexmacosx.c (unexec_realloc): Move declarations before statements.
3472
3473 2005-05-14 Richard M. Stallman <rms@gnu.org>
3474
3475 * xdisp.c (message3): Call cancel_echoing.
3476
3477 * alloc.c (Fmemory_full_p): New function.
3478 (syms_of_alloc): defsubr it.
3479
3480 * process.c (send_process_trap): Unblock SIGPIPE.
3481 (send_process): Reset SIGPIPE handler before reporting error.
3482
3483 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
3484
3485 * emacs.c (syms_of_emacs): Fix doc string for system-type.
3486
3487 2005-05-13 Richard M. Stallman <rms@gnu.org>
3488
3489 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
3490 (Finsert_file_contents): If we read 0 bytes from a special file,
3491 unlock the visited file if we locked it.
3492 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
3493 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
3494
3495 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3496
3497 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
3498
3499 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
3500 Regard toolkit scroll bar thumb drag events as squeezable and prevent
3501 redisplay from being paused by them.
3502
3503 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
3504 [!MAC_OSX] (target_ticks): Remove variable.
3505 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
3506 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
3507 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3508 event occurs before timeout, behave as if the function were interrupted.
3509 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
3510 handling using Time Manager routines.
3511 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
3512 New variables.
3513 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
3514 (setitimer): New functions.
3515
3516 * macfns.c, macmenu.c: Don't include signal.h.
3517
3518 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
3519 Rename from get_control_part_bound. All callers changed.
3520 (x_scroll_bar_clear): New function.
3521 (x_clear_frame): Use it.
3522 (XTset_vertical_scroll_bar): Don't call Draw1Control.
3523 (x_scroll_bar_handle_click): Change type of second argument from
3524 int to ControlPartCode.
3525 (check_alarm): Remove declaration.
3526 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
3527 (XTread_socket): Use ControlPartCode instead of SInt16.
3528
3529 2005-05-13 Nozomu Ando <nand@mac.com>
3530
3531 * unexmacosx.c: Include assert.h.
3532 (MACOSX_MALLOC_MULT16): New define.
3533 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
3534 ptr is in unexec regions by checking it is multiple of 16.
3535 (unexec_malloc_header_t): New typedef.
3536 (unexec_malloc, unexec_realloc, unexec_free): Store and use
3537 allocated size information in unexec_malloc_header.
3538
3539 2005-05-10 Richard M. Stallman <rms@gnu.org>
3540
3541 * xterm.c (noinclude): Add #undef.
3542
3543 * image.c, xfns.c, xmenu.c: Don't include signal.h.
3544
3545 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
3546
3547 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
3548 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
3549 Doc fixes.
3550
3551 * dired.c (Ffile_name_completion): Make argument name
3552 match its use in docstring.
3553
3554 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
3555
3556 * eval.c (Fdefvaralias): Remove any pre-existing
3557 variable-documentation property of the alias.
3558
3559 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
3560
3561 * xfns.c (start_hourglass): Do nothing when running on a tty.
3562
3563 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
3564
3565 * fns.c (Fchar_table_range): Fix typos in docstring.
3566
3567 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3568
3569 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
3570
3571 2005-05-06 Eli Zaretskii <eliz@gnu.org>
3572
3573 * lread.c (Flocate_file_internal): Doc fix.
3574
3575 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
3576
3577 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3578
3579 * macselect.c (x_own_selection): Accept Lisp string as result of
3580 selection converter function.
3581 (x_clear_frame_selections): Don't call x-lost-selection-functions
3582 if Emacs is not owner of the selection.
3583 (Vmac_services_selection): Put variable and initialization in
3584 #ifdef MAC_OSX.
3585 (syms_of_macselect) [MAC_OSX]: Set default value of
3586 Vmac_services_selection to PRIMARY.
3587
3588 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
3589 (mac_handle_tool_bar_click): Remove unused function and declaration.
3590 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
3591 (install_scroll_bar_timer, set_scroll_bar_timer)
3592 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
3593 (get_control_part_bound, x_scroll_bar_handle_press)
3594 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
3595 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
3596 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
3597 (scroll_bar_timer_event_posted_p): New variables.
3598 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
3599 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
3600 (x_scroll_bar_create): Set control reference with NewControl.
3601 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
3602 Initialize track_top and track_height to nil.
3603 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
3604 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
3605 (XTset_vertical_scroll_bar): Don't make space between scroll bar
3606 and associated window.
3607 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
3608 from window config.
3609 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3610 Set track_top and track_height to nil when scroll bar size is changed.
3611 Recalculate them if they are nil.
3612 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
3613 clicked control is a scroll bar.
3614 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
3615 event handler functions. Don't add modifiers to scroll bar click
3616 events. Call scroll bar release handler when window is deactivated.
3617 (mac_initialize): Remove unused code for X toolkit.
3618 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
3619 Initialize Vx_toolkit_scroll_bars to nil.
3620
3621 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3622 New members track_top and track_height.
3623
3624 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
3625 init_process when including sys/select.h.
3626
3627 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
3628
3629 * eval.c (Fdefvaralias): Doc fix.
3630
3631 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3632
3633 2005-05-05 Kim F. Storm <storm@cua.dk>
3634
3635 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
3636 default value.
3637 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
3638 Fix type of cursor-in-non-selected-windows.
3639
3640 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3641
3642 * mac.c: #undef init_process so not to conflict with system headers.
3643
3644 2005-05-02 Richard M. Stallman <rms@gnu.org>
3645
3646 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
3647
3648 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
3649
3650 * xdisp.c (Vcursor_in_non_selected_windows)
3651 (Qcursor_in_non_selected_windows): Vars deleted.
3652 (syms_of_xdisp): Don't initialize them.
3653 (get_window_cursor_type): Use cursor_in_non_selected_windows
3654 buffer slot.
3655
3656 2005-05-02 Kim F. Storm <storm@cua.dk>
3657
3658 * macros.c (executing_kbd_macro_index): Rename from
3659 executing_macro_index. All uses changed.
3660 (executing_kbd_macro_iterations): Rename from
3661 executing_macro_iterations. All uses changed.
3662 (executing_kbd_macro): Rename from executing_macro.
3663 All uses changed.
3664 (syms_of_macros): Rename Lisp var executing-macro-index to
3665 executing-kbd-macro-index.
3666
3667 * xdisp.c (move_it_in_display_line_to): Fix last change.
3668
3669 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
3670
3671 * xmenu.c (Fx_popup_menu): Doc fix.
3672
3673 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
3674
3675 2005-05-02 Jason Rumney <jasonr@gnu.org>
3676
3677 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
3678
3679 2005-05-02 Nozomu Ando <nand@mac.com>
3680
3681 * sysselect.h: Fix typo.
3682
3683 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
3684
3685 * charset.c (Fchars_in_region): Remove as obsolete.
3686
3687 2005-05-01 Kim F. Storm <storm@cua.dk>
3688
3689 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
3690 TO_CHARPOS. This may happen if last glyphs was an image or stretch
3691 glyph.
3692
3693 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
3694
3695 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
3696
3697 2005-05-01 Richard M. Stallman <rms@gnu.org>
3698
3699 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
3700 If user cancels the menu, quit unless FOR_CLICK.
3701
3702 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
3703 All uses changed.
3704 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
3705 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
3706 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
3707 * commands.h (Vexecuting_kbd_macro): Likewise.
3708
3709 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
3710
3711 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
3712
3713 2005-04-30 Richard M. Stallman <rms@gnu.org>
3714
3715 * fileio.c (Ffind_file_name_handler): Handle the `operations'
3716 property of the file name handler.
3717 (Qoperations): New variable.
3718 (syms_of_fileio): Initialize and staticpro it.
3719
3720 * xdisp.c (set_message_1): Delete xassert.
3721
3722 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3723
3724 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
3725
3726 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
3727
3728 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
3729 before/after including Carbon.h if there is a working mktime.
3730
3731 2005-04-28 Kim F. Storm <storm@cua.dk>
3732
3733 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
3734 Fix cyclic alias check. If alias loop is detected, signal
3735 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
3736
3737 2005-04-28 Lute Kamstra <lute@gnu.org>
3738
3739 * eval.c (do_autoload): Record only autoloads in the autoload
3740 property of symbols.
3741
3742 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
3743
3744 * emacs.c (USAGE1): Add --basic-display and --quick options.
3745
3746 2005-04-27 Kim F. Storm <storm@cua.dk>
3747
3748 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
3749
3750 2005-04-26 Richard M. Stallman <rms@gnu.org>
3751
3752 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
3753 (syms_of_window): Doc fixes.
3754
3755 * indent.c (Fvertical_motion): Undo previous change.
3756
3757 2005-04-26 Kenichi Handa <handa@m17n.org>
3758
3759 * fns.c (char_table_range): New function.
3760 (Fchar_table_range): Signal an error if characters in the range
3761 have inconsistent values. Don't check the parent.
3762
3763 2005-04-25 Kenichi Handa <handa@m17n.org>
3764
3765 * fontset.c (fontset_set): Fix previous change.
3766
3767 2005-04-24 Richard M. Stallman <rms@gnu.org>
3768
3769 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
3770
3771 2005-04-24 Eli Zaretskii <eliz@gnu.org>
3772
3773 * regex.c (re_search_2, re_match_2_internal): Convert second arg
3774 of RE_TRANSLATE to int, to shut up GCC warnings.
3775
3776 * fileio.c (Fcopy_file): Doc fix.
3777 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
3778 not needed.
3779
3780 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3781
3782 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
3783 (SOME_MACHINE_OBJECTS): Likewise.
3784 (mac.o): Depend on ccl.h.
3785 (macselect.o): New target.
3786
3787 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
3788 Call syms_of_macselect.
3789
3790 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
3791
3792 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
3793 (QCLIPBOARD): Remove variable.
3794 (syms_of_mac): Don't initialize it.
3795 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
3796 Remove functions.
3797 (syms_of_mac): Don't defsubr them.
3798 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
3799 (QHFS_plus_D, QHFS_plus_C): New variables.
3800 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3801 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
3802 (cfstring_create_normalized): New functions.
3803 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
3804 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3805
3806 * macterm.c (handling_window_update, terminate_flag):
3807 Remove variables.
3808 (do_window_update, do_ae_quit_application, XTread_socket):
3809 Don't use them.
3810 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
3811 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
3812 (init_service_handler): Move to macselect.c. Remove declarations.
3813 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
3814 (Qapplication, Qabout): New variables.
3815 (syms_of_mac): Initialize them.
3816 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
3817 (Qperform): New variables.
3818 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
3819 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
3820 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
3821 (mac_store_application_menu_event, init_menu_bar): New functions.
3822 [USE_CARBON_EVENTS] (mac_handle_command_event)
3823 (init_command_handler): New functions.
3824 (mac_handle_window_event): Return noErr on window update event.
3825 (do_ae_quit_application): Call mac_store_application_menu_event.
3826 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
3827 and init_menu_bar.
3828
3829 * macterm.h (x_clear_frame_selections): Add extern.
3830
3831 * macselect.c: New file for selection processing on Mac OS.
3832
3833 2005-04-23 Richard M. Stallman <rms@gnu.org>
3834
3835 * fileio.c (Fcopy_file): New arg MUSTBENEW.
3836 (Frename_file): Pass new arg to Fcopy_file.
3837
3838 * window.c (window_size_fixed): Variable deleted.
3839 (syms_of_window): Initialize window-size-fixed to nil.
3840 But don't DEFVAR window_size_fixed.
3841
3842 2005-04-23 Andreas Schwab <schwab@suse.de>
3843
3844 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
3845 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
3846 use lib64 instead of lib.
3847 (_LP64) [_ARCH_PPC64]: Define if not defined.
3848
3849 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
3850
3851 * s/ms-w32.h (HAVE_PWD_H): Define.
3852
3853 2005-04-22 Kenichi Handa <handa@m17n.org>
3854
3855 * fns.c (copy_sub_char_table): Explicitly copy the default value
3856 of the sub-chartable.
3857
3858 * fontset.c (fontset_set): When a sub-chartable is created,
3859 explicitly sets the defalt value.
3860
3861 2005-04-22 Kim F. Storm <storm@cua.dk>
3862
3863 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
3864 (Fsafe_plist_get): Rename to Fplist_get.
3865 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
3866 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
3867
3868 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
3869
3870 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
3871 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3872 Use Fplist_get instead of Fsafe_plist_get.
3873
3874 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
3875
3876 2005-04-21 Miles Bader <miles@gnu.org>
3877
3878 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
3879
3880 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
3881
3882 * sysdep.c: Remove reference to defunct vms-pwd.h.
3883 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
3884 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
3885
3886 * config.in: Regenerate.
3887
3888 2005-04-20 Kenichi Handa <handa@m17n.org>
3889
3890 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
3891 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
3892 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
3893
3894 * alloc.c (make_sub_char_table): Argument changed to initial
3895 value of the slots.
3896
3897 * data.c (Faref): Handle special slots used as default values of
3898 ascii, eight-bit-control, eight-bit-control. Don't ignore a
3899 default value set for a group of characters.
3900 (Faset): Signal an error if IDXVAL is not a valid character code.
3901 Make a sub-chartable with correct initial value.
3902
3903 * fns.c (Fset_char_table_range): Don't set slots used as default
3904 values for ascii, eight-bit-control, eight-bit-graphic.
3905 Don't call Faref with charset-id.
3906 (Fset_char_table_default): Document how to treat normal character
3907 argument. Handle special slots used as default values of ascii,
3908 eight-bit-control, eight-bit-control. Make a sub chartable if
3909 necessary.
3910
3911 2005-04-20 Kenichi Handa <handa@m17n.org>
3912
3913 * search.c (boyer_moore): Fix previous change.
3914
3915 2005-04-19 Kim F. Storm <storm@cua.dk>
3916
3917 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
3918 face unless last visible char and first invisible char have the
3919 same face. Also use default face if saved_face_id is undefined.
3920
3921 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3922
3923 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
3924 `full_name'.
3925 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
3926 mac_scriptcode member.
3927
3928 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
3929 (syms_of_mac): Don't initialize them.
3930 (Vmac_charset_info_alist): New variable.
3931 (syms_of_mac): Defvar it.
3932 (create_text_encoding_info_alist): New function.
3933 (decode_mac_font_name, mac_to_x_fontname)
3934 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
3935 code the correspondence among XLFD charsets, Mac script codes, and
3936 Emacs coding systems. Use Vmac_charset_info_alist and result of
3937 create_text_encoding_info_alist instead.
3938 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
3939 routines also on Mac OS Classic.
3940 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
3941 Use add_font_name_table_entry.
3942 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
3943 specified. Derive unspecified scalable fields from specified one.
3944 (x_list_fonts): Consider Valternate_fontname_alist.
3945 (kDefaultFontSize): Change value from 9 to 12.
3946 (XLoadQueryFont): Get decoded font family, font face, and charset
3947 from x_font_name_to_mac_font_name. Set full name of loaded font.
3948 (mac_unload_font): Free `full_name' member.
3949 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
3950 NULL. Copy full_name member of struct MacFontStruct to that of
3951 struct font_info.
3952
3953 2005-04-19 Kim F. Storm <storm@cua.dk>
3954
3955 * xdisp.c (handle_stop): Set saved_face_id to current face if
3956 selective_display_ellipsis_p so ellipsis will be shown in same
3957 face as preceding text.
3958 (setup_for_ellipsis): Don't set saved_face_id here.
3959 (next_element_from_display_vector): Default to saved_face_id.
3960
3961 * fns.c (Fsafe_get): New function.
3962 (syms_of_fns): Defsubr it.
3963
3964 * lisp.h (Fsafe_get): EXFUN it.
3965
3966 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
3967 loops in case of bad face property lists. Limit number of face
3968 alias lookups to 10 (in case of face alias loops).
3969
3970 2005-04-18 Kim F. Storm <storm@cua.dk>
3971
3972 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
3973 It replaces the corresponding member from struct window, as a
3974 window may now show multiple overlay arrows.
3975 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
3976
3977 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
3978 Compare overlay_arrow_bitmap than overlay_arrow_p members.
3979
3980 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
3981 rather than from window.
3982 (update_window_fringes): Compare overlay_arrow_bitmap rather than
3983 overlay_arrow_p members.
3984 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
3985 if not default.
3986
3987 * window.h (struct window): Remove member overlay_arrow_bitmap.
3988
3989 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
3990
3991 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
3992 Calls changed. Don't check for overlay-arrow-bitmap property here.
3993 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
3994 fringe is present, return Lisp integer for bitmap (or -1 for default).
3995 Fix value of overlay-arrow-bitmap property to be a symbol, use
3996 lookup_fringe_bitmap to parse it.
3997 (display_line): Change call to overlay_arrow_at_row. Store integer
3998 return value as overlay bitmap in row rather than window.
3999 Only show overlay arrow if row displays text, or if no other overlay
4000 arrow is seen in window (if overlay marker is at point-max).
4001
4002 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
4003
4004 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
4005
4006 2005-04-18 Lute Kamstra <lute@gnu.org>
4007
4008 * lread.c (Vloads_in_progress): Static.
4009 * fns.c (Vloads_in_progress): Remove extern.
4010 (load_in_progress): Add extern.
4011 (Frequire): Use load_in_progress instead of Vloads_in_progress.
4012
4013 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
4014
4015 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
4016
4017 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4018
4019 * macterm.c (XTread_socket): Don't beep on keyboard input even if
4020 no frame is visible.
4021
4022 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4023
4024 * term.c (struct keys): Add support for shifted keys.
4025
4026 2005-04-16 Richard M. Stallman <rms@gnu.org>
4027
4028 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
4029 (set_message): Call with_echo_area_buffer with WHICH = 0.
4030 (set_message_1): Erase the echo area buffer first thing.
4031 (echo_area_display): Don't clear echo_message_buffer.
4032
4033 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4034
4035 * Makefile.in (mac.o): Depend on charset.h and coding.h.
4036
4037 * mac.c: Include charset.h and coding.h.
4038 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
4039 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
4040 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
4041
4042 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
4043
4044 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
4045
4046 * macterm.c (x_autoselect_window_p): Remove variable.
4047 (last_window): New variable.
4048 (XTreassert_line_highlight, x_change_line_highlight):
4049 Remove declarations.
4050 (mac_focus_changed, x_detect_focus_change): New functions and
4051 declarations.
4052 (XTextExtents16, front_emacs_window): Remove function.
4053 (mac_focus_frame): New function.
4054 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
4055 (mac_check_for_quit_char): Use it instead of front_emacs_window.
4056 (x_scroll_bar_report_motion): Obtain window from control owner.
4057 (x_make_frame_invisible): Set window manager size hint.
4058 (do_mouse_moved): Remove function.
4059 (XTread_socket): Move its contents here. Generate select-window
4060 event on mouse movement if needed. Use x_detect_focus_change on
4061 activate/deactivate events. Don't deiconify frame or invalidate
4062 window rectangle when dnd items are dropped.
4063 Don't activate/deactivate root control.
4064 (frame_highlight, frame_unhighlight): Activate/deactivate root
4065 control here.
4066 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
4067
4068 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
4069 New extern.
4070
4071 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
4072
4073 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
4074 (lisp): Use it.
4075 (SOME_MACHINE_LISP): Add tooltip.
4076
4077 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4078
4079 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
4080 Don't include TextEncodingConverter.h.
4081 (mac_system_script_code, Vmac_system_locale): New variables.
4082 (syms_of_mac): Defvar them.
4083 (mac_get_system_locale): New function.
4084
4085 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
4086 Use ENCODE_SYSTEM to encode title bar string.
4087 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
4088 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
4089 Use CFStringGetSystemEncoding to get system default string encoding.
4090
4091 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
4092 TextEncodingConverter.h.
4093
4094 2005-04-13 Steven Tamm <steventamm@mac.com>
4095
4096 * macterm.c (syms_of_macterm): Remove redundant definition of
4097 mac-pass-control-to-system.
4098
4099 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4100
4101 * window.c (Fset_window_configuration): Be careful when you choose
4102 among several possible points for the new_current_buffer.
4103
4104 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4105
4106 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
4107 poll_for_input_1. Set interrupt_input_pending to 1 instead.
4108 (Qlanguage_change) [MAC_OS]: New variable.
4109 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
4110 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
4111
4112 * macterm.c (mac_keyboard_text_encoding)
4113 (current_mac_keyboard_text_encoding): Remove variables.
4114 (XTread_socket): Store language-change event if keyboard script change
4115 is detected. Don't convert input to `mac_keyboard_text_encoding'.
4116 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
4117
4118 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
4119
4120 2005-04-10 Richard M. Stallman <rms@gnu.org>
4121
4122 * emacs.c (standard_args): Rename --bare-bones to --quick.
4123 Add -D aka --basic-display.
4124
4125 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
4126
4127 2005-04-09 Richard M. Stallman <rms@gnu.org>
4128
4129 * keymap.c (where_is_internal): Convert a string used as event type
4130 into "(any string)".
4131
4132 * lread.c (Vloads_in_progress): Not static.
4133 * fns.c (Vloads_in_progress): Add extern.
4134 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
4135
4136 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
4137
4138 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
4139
4140 2005-04-09 Lute Kamstra <lute@gnu.org>
4141
4142 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
4143 within the accessible part of the buffer.
4144
4145 2005-04-09 Kim F. Storm <storm@cua.dk>
4146
4147 * lread.c (readevalloop): Add args START and END as region in
4148 current buffer to read. Callers changed.
4149 When specified, narrow to this region only when reading,
4150 not during eval. Track next point to read from during eval.
4151 Also restore point to "real" buffer position before eval.
4152 (Feval_region): Don't save excursion and restriction here, and
4153 don't narrow to region. Just pass region to readevalloop.
4154 Note: Point is now preserved even when PRINTFLAG is nil.
4155
4156 2005-04-08 Kim F. Storm <storm@cua.dk>
4157
4158 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
4159
4160 2005-04-06 Kim F. Storm <storm@cua.dk>
4161
4162 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
4163
4164 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4165
4166 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
4167 (Fmac_get_preference): Doc fix.
4168
4169 * macfns.c (Fx_create_frame, x_create_tip_frame):
4170 Add "fontset-mac" to fallback font/fontsets.
4171
4172 2005-04-04 Kim F. Storm <storm@cua.dk>
4173
4174 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
4175
4176 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
4177 Call it again after autoload.
4178
4179 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4180
4181 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
4182 mallopt.
4183
4184 * ralloc.c (r_alloc_init): Ditto.
4185
4186 2005-04-01 Kenichi Handa <handa@m17n.org>
4187
4188 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
4189 (Vascii_eqv_table): Extern them.
4190
4191 * casetab.c (set_case_table): If standard is nonzero, setup
4192 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
4193
4194 * search.c (looking_at_1): Use current_buffer->case_canon_table,
4195 not DOWNCASE_TABLE.
4196 (string_match_1): Likewise.
4197 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
4198 Vascii_downcase_table.
4199 (fast_string_match_ignore_case): Likewise.
4200 (search_buffer): Fix checking of boyer-moore usability.
4201 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
4202 No need of tranlating characters in PAT. Fix calculation of
4203 simple_translate.
4204
4205 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4206
4207 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
4208 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
4209 Use XtNtopShadowPixel and XtNbottomShadowPixel.
4210 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
4211 really work and that breaks with some versions of Xaw3d.
4212
4213 2005-03-31 Kenichi Handa <handa@m17n.org>
4214
4215 * coding.c (syms_of_coding): Fix previous change.
4216
4217 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
4218
4219 * fileio.c (search_embedded_absfilename): Fix last change.
4220
4221 2005-03-25 Kenichi Handa <handa@m17n.org>
4222
4223 * coding.c (syms_of_coding): Suggest to use set-coding-category in
4224 the docstring of coding-category-list.
4225
4226 2005-03-31 Kim F. Storm <storm@cua.dk>
4227
4228 * keyboard.c (Qmouse_fixup_help_message): New var.
4229 (syms_of_keyboard): Intern and staticpro it.
4230 (show_help_echo): Apply mouse-fixup-help-message to help string.
4231
4232 2005-03-30 Kim F. Storm <storm@cua.dk>
4233
4234 * xdisp.c (display_line): Allow multiple overlay arrows in window.
4235
4236 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4237
4238 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
4239 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
4240 (Ffile_name_absolute_p): Use it.
4241 (search_embedded_absfilename): New fun, extracted from
4242 Fsubstitute_in_file_name. Use file_name_absolute_p.
4243 Free the pw data after use.
4244 (Fsubstitute_in_file_name): Use it.
4245 After cutting a prefix, re-check file-name-handler.
4246
4247 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
4248
4249 * w32term.h (x_output): Add focus_state.
4250
4251 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
4252 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
4253
4254 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4255
4256 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
4257 Use Fexit_minibuffer.
4258 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
4259
4260 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4261
4262 * dired.c (Ffile_attributes): Add a missing gcpro.
4263
4264 * alloc.c (make_number): The arg can be bigger than `int'.
4265 * lisp.h (make_number): Make prototype more precise.
4266
4267 * process.c, dired.c (Vfile_name_coding_system)
4268 (Vdefault_file_name_coding_system):
4269 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
4270 (Vdefault_file_name_coding_system): Remove unused declarations.
4271
4272 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4273
4274 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
4275 if it failed to pop up (Gnome "show pointer on ctrl" option makes
4276 menus fail to pop up).
4277
4278 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4279
4280 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
4281 Just prepend a backslash without replacing the NBSP by an SPC.
4282
4283 2005-03-22 Kim F. Storm <storm@cua.dk>
4284
4285 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
4286 * dispextern.h (lookup_derived_face): Fix prototype.
4287 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
4288
4289 * xdisp.c (handle_single_display_spec): Derive left-fringe and
4290 right-fringe face from fringe face.
4291
4292 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
4293 Derive face from fringe face.
4294
4295 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4296
4297 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
4298
4299 2005-03-22 David Kastrup <dak@gnu.org>
4300
4301 * textprop.c (Fnext_char_property_change)
4302 (Fprevious_char_property_change): Allow marker as limit.
4303 (Fnext_single_char_property_change)
4304 (Fprevious_single_char_property_change): Check that limit is a
4305 number in strings.
4306 (Fnext_single_char_property_change): Coerce position to integer.
4307 (Fprevious_single_char_property_change): Same here.
4308
4309 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
4310
4311 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
4312
4313 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4314
4315 * frame.c (Fignore_event): Remove.
4316 (syms_of_frame): Don't defsubr it.
4317
4318 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
4319 redundant `ignore-event'.
4320
4321 2005-03-19 Eli Zaretskii <eliz@gnu.org>
4322
4323 * unexec.c (write_segment, unexec): Move these functions to avoid
4324 forward references (which cause errors with "gcc -gcoff").
4325
4326 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4327
4328 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
4329 that it doesn't become "tooltip". The specbind is enough.
4330
4331 * xrdb.c (x_load_resources): Use different char *helv when I18N
4332 is present.
4333
4334 2005-03-17 Kenichi Handa <handa@m17n.org>
4335
4336 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
4337
4338 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4339
4340 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
4341 Use xic_create_fontsetname even for non-Motif menus.
4342 Don't forget to free the fontsetname.
4343
4344 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
4345
4346 2005-03-17 Richard M. Stallman <rms@gnu.org>
4347
4348 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
4349
4350 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
4351 (Fmake_symbolic_link): Use G to read the new file name.
4352
4353 * callint.c (Finteractive): Document G option.
4354 (Fcall_interactively): Implement G option.
4355
4356 * buffer.c (buffer_lisp_local_variables): New function,
4357 broken out from Fbuffer_local_variables.
4358 (clone_per_buffer_values): Use buffer_lisp_local_variables.
4359
4360 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4361
4362 * xfns.c (xic_create_fontsetname): Add `motif' argument.
4363 Always return a freshly allocated string.
4364 (xic_create_xfontset): Adjust call.
4365
4366 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
4367 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
4368 (dump_realized_face): Fix warning.
4369
4370 * emacs.c (Fkill_emacs): YAILOM.
4371
4372 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
4373
4374 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4375
4376 * mac.c (HASHKEY_TERMINAL): Remove.
4377 (HASHKEY_MAX_NID): New macro.
4378 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
4379 argument.
4380 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
4381 (xrm_create_database, xrm_q_put_resource)
4382 (xrm_merge_string_database, xrm_q_get_resource_1)
4383 (xrm_q_get_resource): Change resource database representation so
4384 that it may not use multiple hash tables for a single database.
4385 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
4386
4387 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
4388
4389 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
4390
4391 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
4392 locale-coding-system, as was already done for WINDOWSNT.
4393
4394 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
4395 translation for chars in the 0-255 range.
4396
4397 2005-03-16 Lute Kamstra <lute@gnu.org>
4398
4399 * floatfns.c (Ffloor): Doc fix.
4400
4401 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4402
4403 * mac.c: Include macterm.h instead of directly including Carbon.h.
4404 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
4405 (Qarray, Qdictionary): New variables.
4406 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
4407 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
4408 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
4409 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
4410 in callback for CFDictionaryApplyFunction.
4411 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4412 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4413 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
4414 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
4415 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
4416 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4417 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
4418 (skip_white_space, parse_comment, parse_include_file)
4419 (parse_binding, parse_component, parse_resource_name, parse_value)
4420 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
4421 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
4422 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
4423 New functions.
4424
4425 * macfns.c (mac_get_rdb_resource): Remove function.
4426 (x_get_string_resource): Use xrm_get_resource.
4427
4428 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
4429
4430 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
4431 name_list_element.
4432 (mac_make_rdb): Create resource database from preferences and
4433 argument string.
4434 (mac_term_init): Save resource database to cddr part of
4435 name_list_element.
4436
4437 * macterm.h (xrm_merge_string_database, xrm_get_resource)
4438 (xrm_get_preference_database): Add externs.
4439 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4440 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4441 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
4442
4443 * process.c (init_process): Change `#ifdef DARWIN' to `#if
4444 defined (DARWIN) || defined (MAC_OSX)'
4445
4446 * s/darwin.h (DARWIN): Don't define.
4447
4448 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4449
4450 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
4451 Remove unused variables.
4452 (syms_of_macfns): Don't initialize them. Likewise for
4453 Qface_set_after_frame_default. Defvar and initialize
4454 Vx_window_horizontal_drag_shape.
4455 (x_set_mouse_color): Change mouse pointer shape.
4456 (mac_window) [!MAC_OSX]: Create root control.
4457 (Fx_create_frame): Remove initializations of mouse pointer shapes.
4458 (hourglass_started): New function (from xfns.c).
4459 (start_hourglass, cancel_hourglass): Put function body in #ifdef
4460 MAC_OSX.
4461 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
4462 indicator for each non-tooltip frame if needed, and show it.
4463 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
4464
4465 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
4466 Controls.h. Use ThemeCursor instead of CursHandle.
4467
4468 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
4469 Remove functions and declarations.
4470 (mac_set_colors): Take argument for saving background color.
4471 All callers changed.
4472 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
4473 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
4474 background color.
4475 (x_update_end, mac_do_track_drag): Don't reset background color.
4476 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
4477 Use SetThemeCursor.
4478 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
4479 indicator control to the upper-right corner of the window.
4480 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
4481 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
4482 (do_window_update): Update controls after updating content area.
4483 (mac_handle_window_event): Remove unused extern.
4484 (XTread_socket): Check both control handle and control part code
4485 to determine whether a scroll bar is clicked. Activate/deactivate
4486 root control instead of contained scroll bar controls.
4487 (make_mac_terminal_frame): Use ThemeCursor constants.
4488
4489 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
4490 New member hourglass_control.
4491 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
4492 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
4493
4494 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4495
4496 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
4497 coincides with that in Apple X11 except `clear', `enter' on
4498 laptops, and fn + `enter' on laptops.
4499
4500 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4501
4502 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
4503 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
4504 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
4505
4506 * xfns.c (xic_defaut_fontset): New constant.
4507 (xic_create_fontsetname): New function.
4508 Extracted from create_frame_xic. Try to generate a slightly
4509 better fontset.
4510 (xic_create_xfontset): Use it.
4511 (create_frame_xic): Simplify.
4512
4513 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
4514
4515 * fileio.c (Fmake_symbolic_link): Fix last change.
4516
4517 2005-03-11 Richard M. Stallman <rms@gnu.org>
4518
4519 * fileio.c (Frename_file, Fadd_name_to_file)
4520 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
4521 expand the basename of FILE relative to it.
4522
4523 2005-03-11 Kenichi Handa <handa@m17n.org>
4524
4525 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
4526 before calling setup_coding_system so that autoloading of a coding
4527 system work.
4528
4529 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4530
4531 * xfns.c (hourglass_started): New function.
4532
4533 * dispextern.h: Declare hourglass_started.
4534
4535 * keyboard.c (Fexecute_extended_command): Restart hourglass
4536 after call to Fcompleting_read if already started.
4537
4538 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
4539 GTK main loop is entered in xterm.c, thus doing the redraw.
4540
4541 2005-03-10 Kim F. Storm <storm@cua.dk>
4542
4543 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
4544
4545 2005-03-08 Kenichi Handa <handa@m17n.org>
4546
4547 * frame.c (x_set_font): Call set_default_ascii_font if an
4548 available font is found.
4549
4550 * fontset.c (set_default_ascii_font): New function.
4551 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
4552
4553 * fontset.h (set_default_ascii_font): Extern it.
4554
4555 2005-03-07 Kim F. Storm <storm@cua.dk>
4556
4557 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
4558 (clear_image_cache_count): New var.
4559 (redisplay_internal): Don't clear face and image caches in the
4560 middle of redisplay; do it afterwards.
4561
4562 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
4563
4564 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
4565 is valid. If not, clear phys_cursor_on_p and return.
4566
4567 2005-03-07 Andreas Schwab <schwab@suse.de>
4568
4569 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
4570
4571 2005-03-06 Richard M. Stallman <rms@gnu.org>
4572
4573 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
4574
4575 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
4576 (Feval, Ffuncall): Use CHECK_CONS_LIST.
4577
4578 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
4579
4580 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
4581 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
4582
4583 2005-03-05 Juri Linkov <juri@jurta.org>
4584
4585 * emacs.c (USAGE1): Replace Info node name "command arguments"
4586 with "emacs invocation".
4587 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
4588 allow arguments `--color' and `MODE' to be separated by space.
4589 Add --no-blinking-cursor, -nbc.
4590 (standard_args): Add -nbc, --no-blinking-cursor.
4591
4592 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4593
4594 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
4595 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
4596 * fileio.c (Fexpand_file_name) [VMS]:
4597 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
4598 * doc.c (munge_doc_file_name) [VMS]: Likewise.
4599 (Fsnarf_documentation): Call munge_doc_file_name.
4600
4601 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4602
4603 * s/vms.h (FILE_SYSTEM_CASE): New macro.
4604 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
4605 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
4606
4607 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4608
4609 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
4610 defined (MAC_OSX) && defined (HAVE_CARBON)'.
4611
4612 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
4613
4614 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4615 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
4616 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
4617 (mac_clear_font_name_table): Move extern to macterm.h.
4618
4619 * macfns.c (install_window_handler): Move extern to macterm.h.
4620 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
4621 valid. Don't check !NILP (dir) because it is already checked with
4622 CHECK_STRING.
4623 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
4624 specifying the default location and obtaining the selected filename.
4625
4626 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4627
4628 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
4629 are included via Carbon.h.
4630
4631 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
4632 Define USE_CARBON_EVENTS to 1.
4633 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
4634 (x_free_frame_resources): Call remove_window_handler for
4635 non-tooltip windows.
4636 [TARGET_API_MAC_CARBON]: Don't include headers that are included
4637 via Carbon.h.
4638 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4639 (mac_do_receive_dragUPP): New variables.
4640 (mac_handle_service_event, init_service_handler): Put declarations
4641 and definitions in #ifdef MAC_OSX.
4642 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
4643 drag-and-drop handler functions and register them.
4644 (remove_window_handler): New function.
4645 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
4646 Use fsspec_to_posix_pathname.
4647 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
4648 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
4649 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
4650 Set default cursors.
4651 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
4652 init_service_handler or init_quit_char_handler.
4653 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
4654
4655 * macterm.h (install_window_handler, remove_window_handler)
4656 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
4657 (mac_clear_font_name_table): New externs.
4658
4659 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
4660
4661 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
4662 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
4663 (Fexpand_file_name): Likewise.
4664
4665 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
4666
4667 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
4668 no longer special-case VMS. Add bogus return value.
4669
4670 2005-03-02 Kim F. Storm <storm@cua.dk>
4671
4672 * dispextern.h (XASSERTS): Define to 0 if not already defined.
4673 (xassert) [!XASSERTS]: Define dummy version.
4674
4675 2005-03-02 Kim F. Storm <storm@cua.dk>
4676
4677 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
4678 Reported by David Kastrup.
4679
4680 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
4681
4682 * xdisp.c (get_next_display_element): Fix control and escape
4683 glyph from display vector.
4684
4685 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
4686
4687 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
4688
4689 2005-02-27 Richard M. Stallman <rms@gnu.org>
4690
4691 * xdisp.c (fast_find_position): Rename END to BEG.
4692 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
4693
4694 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4695
4696 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
4697 gtk_window_resize and x_wm_set_size_hint.
4698
4699 2005-02-25 Kim F. Storm <storm@cua.dk>
4700
4701 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
4702
4703 * xdisp.c (init_from_display_pos): Don't read past end of
4704 it->overlay_strings array.
4705
4706 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
4707
4708 * buffer.c (syms_of_buffer): Fix typo.
4709
4710 2005-02-23 Lute Kamstra <lute@gnu.org>
4711
4712 * buffer.c (Foverlay_buffer): Doc fix.
4713
4714 2005-02-22 Kim F. Storm <storm@cua.dk>
4715
4716 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
4717 and symbol keys in alists and hash tables.
4718
4719 * xdisp.c (fast_find_position): Fix search for start of overlay.
4720
4721 2005-02-21 Kim F. Storm <storm@cua.dk>
4722
4723 * window.c (window_scroll_pixel_based): When scrolling backwards,
4724 handle partial visible line at end of window even when we hit PT.
4725
4726 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4727
4728 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
4729
4730 2005-02-21 Kim F. Storm <storm@cua.dk>
4731
4732 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
4733 I think those asserts are bogus if buffer contains invisible text
4734 or images.
4735
4736 2005-02-21 David Kastrup <dak@gnu.org>
4737
4738 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
4739
4740 2005-02-20 Kim F. Storm <storm@cua.dk>
4741
4742 * xdisp.c (pos_visible_p): Be sure to move to the specified
4743 position. Always get the full ascent / descent of the
4744 corresponding row, to return reliable rtop and rbot values.
4745 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
4746 Must look one character back, as back_to_previous_line_start
4747 returns position after the newline.
4748 (move_it_vertically_backward): Fix heuristic for when to move further
4749 back in case line_height * 2/3 is larger than window height.
4750 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
4751 as it does not do anything anymore. Add arg current_matrix_p to
4752 use current matrix rather than desired matrix when set.
4753 (try_cursor_movement): Don't scroll to make cursor row fully
4754 visible if cursor didn't move. This avoids unexpected recentering
4755 in case of blinking cursor or accepting process output.
4756 Use current matrix to check cursor row visibility.
4757 (redisplay_window): Fix whether to recenter or move to top in case
4758 cursor line is taller than window height.
4759 (find_first_unchanged_at_end_row): Stop search if we reach a row
4760 which not enabled (instead of abort).
4761
4762 2005-02-18 Kim F. Storm <storm@cua.dk>
4763
4764 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
4765 to be nil in a :box attribute value list; customize prints that
4766 as lisp value when no box color is specified.
4767
4768 * .gdbinit (pitx, pit): Pretty print display iterator.
4769 (prowx, prow): Pretty print glyph row.
4770 (pcursorx, pcursor): Pretty print a window cursor.
4771 (pwinx, pwin): Pretty print struct window.
4772
4773 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4774
4775 * alloc.c (BLOCK_BYTES): Harmless typo.
4776
4777 2005-02-17 Andreas Schwab <schwab@suse.de>
4778
4779 * xfns.c (hack_wm_protocols): Use correct type for last parameter
4780 of XGetWindowProperty to avoid aliasing issues.
4781 (Fx_window_property): Likewise.
4782
4783 * xselect.c (Fx_disown_selection_internal): Use union of struct
4784 input_event and struct selection_input_event to avoid aliasing issues.
4785
4786 * xterm.c (handle_one_xevent): Use union of struct input_event and
4787 struct selection_input_event to avoid aliasing issues.
4788 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
4789
4790 2005-02-17 Kim F. Storm <storm@cua.dk>
4791
4792 * dispextern.h (enum it_method): New enum.
4793 (GET_FROM_*): Its members.
4794 (struct it): Change member method from function pointer to enum.
4795
4796 * xdisp.c (check_it, init_from_display_pos, handle_stop)
4797 (setup_for_ellipsis, handle_single_display_spec)
4798 (handle_composition_prop, next_overlay_string)
4799 (get_overlay_strings, reseat_1, reseat_to_string)
4800 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
4801 (in_display_vector_p, display_line, get_next_display_element):
4802 Change it->method from function pointer to enum.
4803 (get_next_element): New array to map it->method to function.
4804 (get_next_display_element): Use it.
4805 (set_iterator_to_next): Use switch instead of if/else chain.
4806
4807 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
4808
4809 * w32select.c: Summary: Thorough rework to implement Unicode
4810 clipboard operations and delayed rendering.
4811
4812 Drop last_clipboard_text and related code, keep track of
4813 ownership via clipboard_owner instead. Drop old #if0 sections.
4814
4815 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
4816 (clipboard_owner, modifying_clipboard, cfg_coding_system)
4817 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
4818 (current_coding_system, current_requires_encoding)
4819 (current_num_nls, current_clipboard_type, current_lcid):
4820 New static variables.
4821
4822 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
4823 (render, render_all, run_protected, lisp_error_handler)
4824 (owner_callback, create_owner, setup_config)
4825 (enum_locale_callback, cp_from_locale, coding_from_cp):
4826 New local functions.
4827
4828 (term_w32select, globals_of_w32select): New global functions.
4829
4830 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
4831 clipboard_owner instead. Use delayed rendering and provide
4832 all text formats. Provide CF_LOCALE if necessary.
4833
4834 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
4835 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
4836 available. Force DOS line-ends for decoding.
4837
4838 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
4839
4840 (syms_of_w32select): Init and register new variables.
4841
4842 * w32.h: Add prototypes for globals_of_w32select and
4843 term_w32select. Make the neighboring K&R declarations into
4844 prototypes, too.
4845
4846 * emacs.c: Include w32.h to get function prototypes.
4847 (main): Call globals_of_w32select.
4848
4849 * w32.c (term_ntproc): Call term_w32select.
4850
4851 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
4852
4853 2005-02-16 Kim F. Storm <storm@cua.dk>
4854
4855 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
4856 at end of display vector.
4857
4858 2005-02-15 Richard M. Stallman <rms@gnu.org>
4859
4860 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
4861 for mode and header lines.
4862
4863 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
4864
4865 * keymap.h (describe_map_tree): Change decl.
4866
4867 * keyboard.c (command_loop_1): Always use safe_run_hooks
4868 to run Qdeferred_action_function.
4869
4870 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
4871 (describe_map, describe_vector): Likewise. When it's 1,
4872 don't omit shadowed bindings, instead mark them as shadowed.
4873
4874 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
4875 for describe_map_tree. Pass 1 for MENTION_SHADOW.
4876
4877 * data.c (Fsetq_default): Allow no arg case.
4878
4879 2005-02-14 Kenichi Handa <handa@m17n.org>
4880
4881 * coding.c (encode_coding_string): Always return a unibyte string.
4882 If NOCOPY is nonzero and there's no need of encoding, make STR
4883 unibyte directly.
4884
4885 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
4886 multibyte string, signal an error instead of aborting.
4887
4888 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
4889
4890 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
4891
4892 2005-02-12 Kim F. Storm <storm@cua.dk>
4893
4894 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
4895
4896 2005-02-10 Kim F. Storm <storm@cua.dk>
4897
4898 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
4899 if it moves outside window or it doesn't display text.
4900
4901 2005-02-09 Kim F. Storm <storm@cua.dk>
4902
4903 * undo.c (Fprimitive_undo): Check that undo function does not
4904 switch buffer.
4905
4906 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4907
4908 * xselect.c (selection_data_to_lisp_data): For the special case
4909 type == XA_ATOM, data contains array of int, not array of Atom.
4910 (x_property_data_to_lisp, selection_data_to_lisp_data):
4911 Comment update: data must be array of int for format == 32.
4912
4913 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4914
4915 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
4916
4917 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4918
4919 * xfns.c (Fx_change_window_property): Use long array when format is 32.
4920 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
4921 convert long array returned from XGetWindowProperty to an int array.
4922 (x_set_tool_bar_lines): Check that width and height is greater than
4923 zero before clearing area.
4924
4925 * xselect.c (x_reply_selection_request): Pass long array to
4926 XChangeProperty so that 64 bit longs are handeled correctly.
4927 (x_get_window_property): If format is 32 and long is bigger than 32
4928 bits convert data from XGetWindowProperty from long array to int array.
4929 (lisp_data_to_selection_data): When the input is a vector and the
4930 format is 32, allocate a long array even if long is bigger than 32 bits.
4931 (x_fill_property_data): Use char, short and long as the man page
4932 for XChangeProperty specifies. This way the data returned is OK for
4933 both 32 and 64 bit machines.
4934 (x_handle_dnd_message): Calculate size correctly even for 64 bit
4935 machines.
4936 (Fx_send_client_event): Undo change from 2005-02-05,
4937 x_fill_property_data now handles that case.
4938
4939 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
4940 reason for the approach in the code.
4941
4942 2005-02-07 Kim F. Storm <storm@cua.dk>
4943
4944 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
4945
4946 2005-02-06 Richard M. Stallman <rms@gnu.org>
4947
4948 * eval.c (Frun_hook_with_args)
4949 (Frun_hook_with_args_until_success)
4950 (Frun_hook_with_args_until_failure): Doc fixes.
4951
4952 2005-02-05 Andreas Schwab <schwab@suse.de>
4953
4954 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
4955
4956 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4957
4958 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
4959 the longs in a XClientMessageEvent correctly when long is 64 bits.
4960
4961 2005-02-05 Eli Zaretskii <eliz@gnu.org>
4962
4963 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
4964 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
4965
4966 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4967
4968 * xmenu.c (menubar_selection_callback): Force out GTK buffered
4969 events so the menu event comes after them. This is to prevent sit-for
4970 from exiting on buffered events directly after a menu selection,
4971 lisp code for Help => About Emacs uses sit-for.
4972
4973 * gtkutil.c (create_menus): Connect selection-done event instead of
4974 the deactivate event to deactivate_cb. This will make the last
4975 leave event come before the call to deactivate_cb, so the leave
4976 event does not make sit-for exit after a menu selection.
4977
4978 2005-02-03 Kim F. Storm <storm@cua.dk>
4979
4980 * dispnew.c (build_frame_matrix_from_leaf_window)
4981 [!GLYPH_DEBUG]: Fix xassert.
4982
4983 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
4984
4985 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4986
4987 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4988
4989 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
4990 the compiling OS version.
4991
4992 * macfns.c (x_create_tip_frame): Likewise.
4993
4994 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
4995
4996 2005-02-03 Richard M. Stallman <rms@gnu.org>
4997
4998 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
4999
5000 * xdisp.c (echo_area_display): Clear echo_message_buffer.
5001
5002 * buffer.c (Fbury_buffer): Doc fix.
5003
5004 2005-02-02 Steven Tamm <steventamm@mac.com>
5005
5006 * macfns.c (unwind_create_frame): Fix compile error due to
5007 xassert being uncondition, but predicate is.
5008 * dispnew.c (update_window): Fix compile error due to
5009 xassert being uncondition, but predicate is.
5010
5011 2005-02-02 Miles Bader <miles@gnu.org>
5012
5013 * dispextern.h (xassert): Enable unconditionally.
5014
5015 2005-02-02 Kim F. Storm <storm@cua.dk>
5016
5017 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
5018
5019 2005-02-02 Kenichi Handa <handa@m17n.org>
5020
5021 * casefiddle.c (casify_object): Enable changing characters of
5022 different byte length.
5023 (casify_region): Fix loop condition, args to replace_range_2, and
5024 update opoint_byte.
5025
5026 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
5027
5028 2005-02-01 Kim F. Storm <storm@cua.dk>
5029
5030 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
5031 stack before calling handle_display_prop.
5032
5033 2005-01-31 Kim F. Storm <storm@cua.dk>
5034
5035 * undo.c (Qapply): New lisp var.
5036 (syms_of_undo): Intern and staticpro it.
5037 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
5038 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
5039
5040 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
5041
5042 2005-01-30 Jesper Harder <harder@phys.au.dk>
5043
5044 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
5045 <mac-emulate-three-button-mouse>: Fix docstring indentation.
5046
5047 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
5048
5049 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
5050 Increase value to 3 Meg.
5051
5052 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5053
5054 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
5055 button events are not received otherwise.
5056
5057 2005-01-29 Richard M. Stallman <rms@gnu.org>
5058
5059 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
5060
5061 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
5062
5063 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
5064
5065 * keymap.c (access_keymap): YAILOM.
5066
5067 2005-01-27 Kim F. Storm <storm@cua.dk>
5068
5069 * xdisp.c (get_phys_cursor_geometry): New function to calculate
5070 phys cursor position and size for hollow cursor. Position is
5071 aligned with get_glyph_string_clip_rect and ensures that a hollow
5072 cursor is shown, even when the actual glyph is not visible.
5073
5074 * dispextern.h (get_phys_cursor_geometry): Add prototype.
5075
5076 * xterm.c (x_clip_to_row): Ensure y >= 0.
5077 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5078
5079 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5080
5081 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5082
5083 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
5084
5085 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
5086
5087 2005-01-27 Kim F. Storm <storm@cua.dk>
5088
5089 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
5090 glyph, even when row is only partially visible and actual cursor
5091 position is not visible.
5092
5093 2005-01-24 Richard M. Stallman <rms@gnu.org>
5094
5095 * xterm.c (x_error_quitter): No longer static, and moved after
5096 x_error_handler.
5097
5098 2005-01-24 Kim F. Storm <storm@cua.dk>
5099
5100 * xdisp.c (move_it_by_lines): If we move forward after going too
5101 far back, cancel move if end position is same as start position.
5102
5103 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5104
5105 * dispextern.h (struct glyph_string): New members clip_head and
5106 clip_tail.
5107
5108 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
5109 region to the area between clip_head and clip_tail.
5110 (draw_glyphs): Record the area that need to be actually redrawn to
5111 the new variables clip_head and clip_tail when there are
5112 overhangs. Set values of these variables to the corresponding
5113 members in struct glyph_string. Refine x coordinates for
5114 notice_overwritten_cursor using clip_head and clip_tail.
5115
5116 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
5117
5118 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
5119 QDTextBounds.
5120 (x_draw_glyph_string): Don't fill the background of the successor
5121 of a glyph with a right overhang if the successor will draw a cursor.
5122 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
5123 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
5124
5125 2005-01-24 Kim F. Storm <storm@cua.dk>
5126
5127 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
5128 direction if window height was smaller than next-screen-context-lines.
5129 Now always scroll at least one line in the requested direction.
5130 Ensure that we actually do scroll backwards when requested to do so.
5131
5132 * xdisp.c (redisplay_window): Only try to make cursor line fully
5133 visible once (to avoid redisplay loop).
5134
5135 2005-01-23 Kim F. Storm <storm@cua.dk>
5136
5137 * window.c (Fpos_visible_in_window_p): Simplify return value for
5138 partially visible rows.
5139 (window_scroll_pixel_based): Adapt to that change.
5140
5141 * window.c (window_scroll_pixel_based): Force moving to next line
5142 if scrolling doesn't move start point, e.g. if looking at tall image.
5143
5144 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5145 Clear last_height before calling line_bottom_y to get real height.
5146 Fix calculation of y.
5147
5148 2005-01-22 Steven Tamm <steventamm@mac.com>
5149
5150 * s/darwin.h: Removed PTY_ITERATION from here.
5151 (DARWIN): Define.
5152
5153 * process.c (init_process): Default process-connection-type to
5154 nil on darwin 6 or less, t if it is 7 or higher. This way the
5155 broken pty behavior is still allowed on darwin 6 for interactive
5156 processes for people that know what they are doing.
5157
5158 2005-01-22 Kim F. Storm <storm@cua.dk>
5159
5160 * window.c (auto_window_vscroll_p): New boolean.
5161 (syms_of_window): DEFVAR_BOOL it.
5162 (Fpos_visible_in_window_p): Extend return value to include RTOP
5163 and RBOT values if FULLY is nil.
5164 (window_scroll_pixel_based): Adjust vscroll for partially visible
5165 rows if auto_window_vscroll_p is set.
5166 (Fset_window_vscroll): Do nothing if vscroll is not modified.
5167
5168 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
5169 to return number of partially invisible pixels at top and bottom
5170 of the dislay row at POS.
5171
5172 * lisp.h (pos_visible_p): Fix prototype.
5173
5174 2005-01-21 Richard M. Stallman <rms@gnu.org>
5175
5176 * fileio.c (Fcopy_file): Doc fix.
5177
5178 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5179
5180 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
5181 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
5182 start of function for older compilers.
5183
5184 2005-01-20 Richard M. Stallman <rms@gnu.org>
5185
5186 * editfns.c (Fmessage): If arg is "", return "" (as before).
5187
5188 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
5189
5190 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
5191 variable.
5192
5193 2005-01-20 Steven Tamm <steventamm@mac.com>
5194
5195 * editfns.c (Voperating_system_release): Add.
5196 (init_editfns): Assign new variable operating-system-release
5197 based on call to uname if available.
5198 (get_operating_system_release): Add function to
5199 allow c-level access to operating system release.
5200
5201 * config.h: Regenerated.
5202
5203 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
5204 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
5205 using ptys as '7'.
5206
5207 2005-01-20 Kim F. Storm <storm@cua.dk>
5208
5209 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
5210
5211 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
5212 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
5213
5214 * macterm.c (x_draw_glyph_string_box): Likewise.
5215
5216 * w32term.c (x_draw_glyph_string_box): Likewise.
5217
5218 * indent.c (Fvertical_motion): Temporarily disable selective display.
5219
5220 2005-01-19 Kim F. Storm <storm@cua.dk>
5221
5222 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
5223 image property.
5224
5225 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
5226
5227 2005-01-18 Kim F. Storm <storm@cua.dk>
5228
5229 * xdisp.c (fast_find_position): Backtrack to find first row if
5230 charpos is inside a display overlay that spans multiple lines.
5231
5232 2005-01-18 Kenichi Handa <handa@m17n.org>
5233
5234 * coding.c (decode_coding_iso2022): Translate invalid codes if
5235 translation-table is specified.
5236
5237 2005-01-18 Kim F. Storm <storm@cua.dk>
5238
5239 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
5240 change. If handle_display_prop indicates newline is replaced by
5241 image or text, move back to start of relevant overlay or interval
5242 and continue scan from there. Simplify.
5243
5244 2005-01-17 Kim F. Storm <storm@cua.dk>
5245
5246 * dispnew.c (mode_line_string, marginal_area_string):
5247 Fix off-by-one error in search for glyph.
5248
5249 2005-01-16 Kim F. Storm <storm@cua.dk>
5250
5251 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
5252
5253 2005-01-16 Steven Tamm <steventamm@mac.com>
5254
5255 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5256
5257 2005-01-16 Andreas Schwab <schwab@suse.de>
5258
5259 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
5260
5261 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5262
5263 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
5264 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
5265
5266 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5267
5268 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
5269 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
5270 New flags for readable_events.
5271 (get_filtered_input_pending, readable_filtered_events): Remove.
5272 (tracking_off): Call readable_events and get_input_pending with
5273 flag READABLE_EVENTS_DO_TIMERS_NOW.
5274 (readable_events): Move code from old readable_filtered_events here,
5275 but check new READABLE_EVENTS_* in argument flags instead of previous
5276 two boolean arguments do_timers_now and filter_events.
5277 If we are doing mouse tracking and the mouse moved, return only if
5278 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
5279 (swallow_events): Call get_input_pending with flag
5280 READABLE_EVENTS_DO_TIMERS_NOW.
5281 (get_input_pending): Move code from old get_filtered_input_pending
5282 here. Replace boolean arguments do_timers_now, filter_events with
5283 flags, and pass flags to readable_events. Document new
5284 READABLE_EVENTS_* flags.
5285 (detect_input_pending_ignore_squeezables): New function.
5286 (detect_input_pending_run_timers): Call get_input_pending with flag
5287 READABLE_EVENTS_DO_TIMERS_NOW.
5288 (Finput_pending_p): Call get_input_pending with flags
5289 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
5290
5291 * dispnew.c (update_window, update_frame_1): Replace calls to
5292 detect_input_pending with detect_input_pending_ignore_squeezables
5293 so that redisplay is not paused if the event queue contains only
5294 mouse movements.
5295
5296 * lisp.h: Declare detect_input_pending_ignore_squeezables.
5297
5298 2005-01-15 Steven Tamm <steventamm@mac.com>
5299
5300 * macterm.c (Vmac_use_core_graphics): Declare variable for
5301 mac-allow-anti-aliasing.
5302 (syms_of_macterm): DEFVAR_LISP and initialize it.
5303 (mac_draw_string_common): Use core graphics text rendering if
5304 mac-allow-anti-aliasing is enabled.
5305
5306 * macfns.c (Fx_file_dialog): Save As dialog includes only the
5307 file name in the text box.
5308
5309 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5310
5311 * macfns.c (x_set_foreground_color, x_set_background_color):
5312 Sync with xfns.c.
5313 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
5314 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
5315 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
5316
5317 2005-01-14 Kim F. Storm <storm@cua.dk>
5318
5319 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
5320
5321 2005-01-13 Richard M. Stallman <rms@gnu.org>
5322
5323 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
5324 if Voverriding_terminal_local_map is non-nil.
5325
5326 * keyboard.c (syms_of_keyboard): Doc fix.
5327
5328 2005-01-13 Kim F. Storm <storm@cua.dk>
5329
5330 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
5331 (specify 0 for FACE instead). Reorder arg list. Doc fix.
5332
5333 2005-01-12 Richard M. Stallman <rms@gnu.org>
5334
5335 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
5336 face property for characters that don't specify one.
5337
5338 * fns.c (Frequire): Record in load-history unconditionally.
5339
5340 2005-01-10 Kim F. Storm <storm@cua.dk>
5341
5342 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
5343
5344 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
5345 Callers changed.
5346 Add support to merge with lisp face id too (if face_name is t).
5347
5348 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5349 Don't lookup lface_id from display table glyphs here; instead use
5350 merge_faces to merge the lisp face id into current face.
5351
5352 2005-01-09 Kim F. Storm <storm@cua.dk>
5353
5354 * dispextern.h (struct it): New member dpvec_face_id.
5355 (merge_into_realized_face): Add prototype.
5356
5357 * xfaces.c (merge_into_realized_face): New function. Used to
5358 merge escape-glyph face or face from display table into current face.
5359
5360 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
5361 (syms_of_xdisp): DEFVAR_LISP it.
5362 (escape_glyph_face): Remove var.
5363 (redisplay_window): Don't initialize it.
5364 (setup_for_ellipsis, get_next_display_element):
5365 Set it->dpvec_face_id to -1.
5366 (get_next_display_element): Test Vshow_nonbreak_escape.
5367 Do not setup escape_glyph_face.
5368 Properly merge escape-glyph face or face from display table with
5369 current face for escape and control characters.
5370 Set it->dpvec_face_id to relevant face id instead of adding it to each
5371 element of display vector.
5372 (next_element_from_display_vector): If it->dpvec_face_id is set,
5373 use that instead of lface_id from glyph itself.
5374
5375 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5376
5377 * xterm.h (struct x_output): New member, toolbar_detached.
5378
5379 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
5380 38.
5381 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
5382 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
5383 (xg_create_tool_bar): Initialize toolbar_detached.
5384 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
5385 toolbar_detached is zero.
5386
5387 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5388
5389 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
5390 gtk_menu_popup if not for_click, so callbacks for the menu are called.
5391
5392 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
5393 (xg_tool_bar_callback, xg_tool_bar_help_callback)
5394 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
5395
5396 * xselect.c (x_get_foreign_selection, x_fill_property_data)
5397 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
5398 XFLOAT_DATA to get extract number from Lisp object.
5399
5400 2005-01-07 Kim F. Storm <storm@cua.dk>
5401
5402 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
5403 Set stop_charpos to current charpos instead of 0.
5404
5405 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
5406
5407 * xdisp.c (Fformat_mode_line): First arg now required.
5408
5409 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5410
5411 * macterm.c (XLoadQueryFont): Correctly handle 0 size
5412 font widths that are returned from some Japanese fonts.
5413
5414 2005-01-06 Kim F. Storm <storm@cua.dk>
5415
5416 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
5417 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
5418 (destroy_fringe_bitmap): Set fringe_faces element to nil.
5419 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
5420 fringe_faces array and init elements to nil.
5421 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
5422 non-persistent face id.
5423 (mark_fringe_data): New function for GC.
5424
5425 * alloc.c (mark_fringe_data): Declare extern.
5426 (Fgarbage_collect): Call mark_fringe_data.
5427
5428 * alloc.c (overrun_check_free): Invalidate freed memory if
5429 XMALLOC_CLEAR_FREE_MEMORY is defined.
5430
5431 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5432
5433 * macfns.c: Include sys/param.h.
5434 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
5435 and function.
5436 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
5437 of filename string. Set event callback function when creating
5438 dialog boxes. Add code conversions for filenames. Don't dispose
5439 of apple event descriptor record if failed to create it.
5440
5441 * macterm.c: Include sys/param.h.
5442 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
5443 kEventWindowUpdate.
5444 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
5445 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
5446 of FSSpec from apple event descriptor record.
5447 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
5448 size of filename string.
5449 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
5450 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
5451 file dialog is in action.
5452 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
5453 Reject only when there are no filename items. Set background color
5454 before (un)highlighting the window below the dragged items.
5455 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
5456
5457 2005-01-05 Romain Francoise <romain@orebokech.com>
5458
5459 * term.c (encode_terminal_code): Fix buffer size computation.
5460
5461 2005-01-04 Richard M. Stallman <rms@gnu.org>
5462
5463 * xdisp.c (Fformat_mode_line): Doc fix.
5464
5465 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5466
5467 * alloc.c (refill_memory_reserve): Move.
5468 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
5469 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
5470
5471 2005-01-03 Richard M. Stallman <rms@gnu.org>
5472
5473 * window.c (window_scroll_pixel_based): Don't correct preserve_y
5474 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
5475
5476 2005-01-03 Jason Rumney <jasonr@gnu.org>
5477
5478 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
5479 fontp->space_width to FONT_WIDTH so they are valid.
5480
5481 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
5482 average width. Set fontp->average_width and fontp->space_width to
5483 their appropriate values.
5484
5485 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5486 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
5487 fontp->space_width.
5488
5489 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5490
5491 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
5492 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
5493 metrics for max and min bounds.
5494 (x_load_font): Correctly calculate average font width metrics.
5495
5496 2005-01-02 Richard M. Stallman <rms@gnu.org>
5497
5498 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
5499
5500 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5501
5502 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
5503
5504 2004-12-31 Richard M. Stallman <rms@gnu.org>
5505
5506 * xdisp.c (setup_for_ellipsis, get_next_display_element):
5507 Set it->ellipsis_p to 1 or 0.
5508 (display_line): Record whether row ends in mid-ellipsis.
5509 (set_cursor_from_row): If ends in ellipsis, find start of it.
5510 (cursor_row_p): If PT's at the end of the ellipsis the row
5511 ends within, don't display cursor on this row.
5512
5513 * dispextern.h (struct it): New element ellipsis_p.
5514 (struct glyph_row): New element ends_in_ellipsis_p.
5515
5516 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
5517 position if we're reading from something other than the buffer.
5518
5519 * window.c (window_scroll_pixel_based): Only look at
5520 Vscroll_preserve_screen_position if the old PT can't be kept.
5521 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5522
5523 2004-12-30 Kim F. Storm <storm@cua.dk>
5524
5525 * xdisp.c (get_line_height_property): New function extracted from
5526 original calc_line_height_property.
5527 (calc_line_height_property): Rework. Handle t and (nil . ratio).
5528 (x_produce_glyphs): Use them to handle line-height and
5529 line-spacing according to new height spec.
5530 (Qtotal): Remove.
5531 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
5532
5533 2004-12-30 Kenichi Handa <handa@m17n.org>
5534
5535 * fileio.c (Finsert_file_contents): Don't use
5536 current_buffer->buffer_file_coding_system even if REPLACE is
5537 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
5538
5539 * fontset.h (struct font_info): New members space_width and
5540 average_width.
5541
5542 * frame.h (struct frame): New member space_width.
5543 (FRAME_SPACE_WIDTH): New macro.
5544
5545 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
5546
5547 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5548 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
5549 fontp->space_width.
5550 (x_load_font): Calculate fontp->space_width and fontp->average_width.
5551 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
5552
5553 * xdisp.c (x_produce_glyphs): Calculate tab width by
5554 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
5555
5556 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
5557
5558 * macterm.c (SelectionRange): Add Xcode position apple event struct.
5559 (do_ae_open_documents): Handle Xcode-style file position open events.
5560
5561 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
5562
5563 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
5564
5565 2004-12-29 Richard M. Stallman <rms@gnu.org>
5566
5567 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
5568
5569 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5570
5571 * macfns.c (install_window_handler): Modify extern to return OSErr
5572 value.
5573 (mac_window): Handle return value of install_window_handler.
5574
5575 * macterm.c (reflect_byte): Remove function.
5576 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
5577 Lookup table instead.
5578 (mac_do_font_lists): Simplify calculation of the longest
5579 nonspecial string.
5580 (init_mac_drag_n_drop): Remove function and declaration.
5581 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
5582 init_mac_drag_n_drop.
5583 (mac_do_track_drag): New function and declaration.
5584 (install_window_handler): Return OSErr value.
5585 (install_window_handler) [TARGET_API_MAC_CARBON]:
5586 Register handlers for tracking/receiving drag-and-drop items.
5587 (do_ae_open_documents): Generate unibyte strings for filenames.
5588 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
5589 Reject only non-filename items. Set event modifiers, and return value.
5590
5591 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5592
5593 * coding.c (decode_coding): Fix previous change.
5594
5595 2004-12-28 Richard M. Stallman <rms@gnu.org>
5596
5597 * xdisp.c (back_to_previous_visible_line_start):
5598 Don't call handle_display_prop.
5599
5600 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5601
5602 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
5603 (decode_coding_emacs_mule, encode_coding_emacs_mule)
5604 (decode_coding_iso2022, encode_designation_at_bol)
5605 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
5606 (decode_coding): Constify arguments and local vars.
5607
5608 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5609
5610 * xmenu.c (popup_get_selection): Only pop down dialogs
5611 on C-g and Escape.
5612 (popup_get_selection): Remove parameter down_on_keypress.
5613 (create_and_show_popup_menu, create_and_show_dialog):
5614 Remove parameter down_on_keypress to popup_get_selection.
5615
5616 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5617
5618 * dispextern.h: Change HAVE_CARBON to MAC_OS.
5619 (struct glyph_string): Likewise.
5620
5621 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
5622 mac_initialize.
5623
5624 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
5625 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
5626
5627 * fns.c (vector): Change MAC_OSX to MAC_OS.
5628
5629 * frame.c (x_set_frame_parameters, x_report_frame_params)
5630 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
5631 (x_set_border_width, Vdefault_frame_scroll_bars):
5632 Change HAVE_CARBON to MAC_OS.
5633
5634 * image.c [MAC_OS]: Include sys/stat.h.
5635 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
5636 QuickTimeComponents.h.
5637
5638 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
5639 [!MAC_OSX] (select): Use mac_wait_next_event.
5640 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
5641 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
5642 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5643 (mac_clear_font_name_table): Add extern.
5644 (Fmac_clear_font_name_table): New defun.
5645 (syms_of_mac): Defsubr it.
5646 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
5647 [MAC_OSX] (select_and_poll_event): New function.
5648 [MAC_OSX] (sys_select): Use it.
5649 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
5650 [MAC_OSX && SELECT_USE_CFSOCKET]
5651 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
5652 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
5653 RunLoop for simultaneously monitoring two kinds of inputs, window
5654 events and process outputs, without periodically polling.
5655
5656 * macfns.c (mac_initialized): Remove extern.
5657 (stricmp): Put in #if 0. All callers changed to use xstricmp in
5658 xfaces.c.
5659 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
5660 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
5661 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
5662 (mac_get_rdb_resource): New function (from w32reg.c).
5663 (x_get_string_resource): Use it.
5664 (install_window_handler): Add extern.
5665 (mac_window): New function.
5666 (Fx_create_frame): Use it instead of make_mac_frame.
5667 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
5668 (Fx_open_connection, Fx_close_connection): New defuns.
5669 (syms_of_macfns): Defsubr them.
5670 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
5671 Add kWindowNoUpdatesAttribute to the window attribute.
5672 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
5673 (x_create_tip_frame): Don't call ShowWindow.
5674 (Fx_show_tip): Call ShowWindow.
5675 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
5676 TARGET_API_MAC_CARBON'.
5677 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
5678 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
5679
5680 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
5681 (Window): Typedef to WindowPtr and move outside `#if
5682 TARGET_API_MAC_CARBON'.
5683 (XSizeHints): New struct.
5684
5685 * macterm.c (x_update_begin, x_update_end)
5686 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
5687 frame.
5688 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5689 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
5690 (construct_mouse_click): Put in #if 0.
5691 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
5692 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
5693 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5694 (activate_scroll_bars, deactivate_scroll_bars)
5695 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
5696 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
5697 if the position is neither user-specified nor program-specified.
5698 (x_free_frame_resources): Free size_hints.
5699 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
5700 (mac_clear_font_name_table): New function.
5701 (mac_do_list_fonts): Initialize font_name_table if needed.
5702 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
5703 around mac_do_list_fonts.
5704 (mac_unload_font): New function.
5705 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
5706 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
5707 and definitions with #if TARGET_API_MAC_CARBON.
5708 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
5709 (install_window_handler): Add decl.
5710 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
5711 window. Use UpdateControls. Get the rectangle that should be
5712 updated and restrict the target of expose_frame to it.
5713 (do_grow_window): Set minimum height/width according to size_hints.
5714 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
5715 (do_zoom_window): Don't use x_set_window_size.
5716 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
5717 (install_window_handler): New function.
5718 [!USE_CARBON_EVENTS] (mouse_region): New variable.
5719 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
5720 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
5721 GetEventDispatcherTarget inside BLOCK_INPUT.
5722 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
5723 Update mouse_region when mouse is moved.
5724 (make_mac_frame): Remove.
5725 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
5726 Initialize mouse pointer shapes. Change values of f->left_pos and
5727 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
5728 Don't call ShowWindow.
5729 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
5730 Vinvocation_name and Vsystem_name.
5731 (mac_make_rdb): New function (from w32term.c).
5732 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
5733 already been opened. Don't pass argument to
5734 mac_initialize_display_info. Don't set dpyinfo->height/width.
5735 Add entries to x_display_list and x_display_name_list.
5736 (x_delete_display): New function.
5737 (mac_initialize): Don't call mac_initialize_display_info.
5738 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
5739
5740 * macterm.h (check_mac): Add extern.
5741 (struct mac_output): New member size_hints.
5742 (FRAME_SIZE_HINTS): New macro.
5743 (mac_unload_font): Add extern.
5744
5745 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
5746
5747 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
5748
5749 2004-12-27 Richard M. Stallman <rms@gnu.org>
5750
5751 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
5752 (syms_of_buffer): Don't defsubr it.
5753
5754 * process.c (list_processes_1): Set undo_list instead
5755 of calling Fbuffer_disable_undo.
5756
5757 * xdisp.c (single_display_spec_string_p): Rename from
5758 single_display_prop_string_p.
5759 (single_display_spec_intangible_p): Rename from
5760 single_display_prop_intangible_p.
5761 (handle_single_display_spec): Rename from handle_single_display_prop.
5762 Rewritten to be easier to understand.
5763
5764 Change in load-history format. Functions now get (defun . NAME),
5765 and variables get just NAME.
5766
5767 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5768
5769 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5770 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
5771 (Qdefvar): Var deleted.
5772 (syms_of_eval): Don't initialze it.
5773
5774 * lread.c (syms_of_lread) <load-history>: Doc fix.
5775
5776 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5777
5778 * xmenu.c (popup_get_selection): Pop down on C-g.
5779 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
5780 pops down menu on C-g.
5781 (xdialog_show): If dialog popped down and no button in the dialog was
5782 pushed, call Fsignal to quit.
5783 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
5784 Fsignal to quit.
5785
5786 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
5787
5788 * gtkutil.c (xg_initialize): Install bindings for C-g so that
5789 dialogs and menus pop down.
5790
5791 2004-12-27 Kenichi Handa <handa@m17n.org>
5792
5793 * coding.c (code_convert_region): Fix calculation of `ratio'.
5794
5795 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5796
5797 * gtkutil.c (update_frame_tool_bar): Make the value of
5798 tool-bar-button-margin control margins of images in tool bar.
5799
5800 * alloc.c (check_depth): New variable.
5801 (overrun_check_malloc, overrun_check_realloc): Only add
5802 overhead and write check pattern if check_depth is 1 (to handle
5803 recursive calls). Increase/decrease check_depth in entry/exit.
5804 (overrun_check_free): Only check for overhead if check_depth is 1.
5805 Increase/decrease check_depth in entry/exit.
5806
5807 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5808
5809 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
5810 before touching input_available_clear_time, to avoid accessing it
5811 from multiple threads.
5812
5813 2004-12-23 Jason Rumney <jasonr@gnu.org>
5814
5815 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
5816 of JPEG library.
5817
5818 2004-12-22 Richard M. Stallman <rms@gnu.org>
5819
5820 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
5821
5822 * lisp.h (Vundo_outer_limit): Fix decl.
5823
5824 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
5825 Uses changed.
5826 (syms_of_undo): Initialize appropriately.
5827 (truncate_undo_list): If it's nil, there's no limit.
5828
5829 2004-12-22 Kenichi Handa <handa@m17n.org>
5830
5831 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
5832
5833 2004-12-21 Richard M. Stallman <rms@gnu.org>
5834
5835 * eval.c (unwind_to_catch): Clear immediate_quit.
5836
5837 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
5838 specially as `\ ' and `\-'.
5839
5840 * keyboard.c (kbd_buffer_store_event_hold):
5841 In the code for while-no-input, handle immediate_quit.
5842
5843 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
5844 Call that at the very start.
5845 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
5846 (syms_of_alloc): Don't define undo-limit,
5847 undo-strong-limit and undo-outer-limit here.
5848
5849 * undo.c (truncate_undo_list): Return void.
5850 Take just one argument, the buffer.
5851 Make it current, and inhibit recursive GC.
5852 Access and update the undo list directly; return void.
5853 Refer to the undo...limit variables directly.
5854 Test undo_outer_limit only after counting the whole current command.
5855 When it's exceeded, call the function in undo-outer-limit-function.
5856 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
5857 (Vundo_outer_limit_function): New variable.
5858 (syms_of_undo): Define undo-limit, undo-strong-limit
5859 and undo-outer-limit here, and undo-outer-limit-function.
5860 Doc fixes.
5861
5862 * lisp.h (truncate_undo_list): Update decl.
5863
5864 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
5865
5866 * fileio.c (Fread_file_name): Delete duplicates in
5867 file-name-history when history_delete_duplicates is true.
5868
5869 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5870
5871 * macterm.c (mac_do_list_fonts): Fix memory leak
5872
5873 2004-12-20 Richard M. Stallman <rms@gnu.org>
5874
5875 * regex.c (re_match_2_internal) <symend, wordend>:
5876 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
5877
5878 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5879
5880 * macterm.c (endif, x_font_name_to_mac_font_name):
5881 Use maccentraleurroman instead of maccentraleuropean
5882 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
5883 quickly finding a specific font without needing regexps.
5884
5885 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5886
5887 * syssignal.h: Declare main_thread.
5888 (SIGNAL_THREAD_CHECK): New macro.
5889
5890 * keyboard.c (input_available_signal): Move thread checking code
5891 to macro SIGNAL_THREAD_CHECK and call that macro.
5892 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
5893
5894 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
5895
5896 * emacs.c: Define main_thread.
5897 (main): Initialize main_thread.
5898 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
5899 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
5900
5901 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
5902
5903 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
5904
5905 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
5906
5907 * process.c (send_process_trap, sigchld_handler):
5908 Call SIGNAL_THREAD_CHECK.
5909
5910 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
5911
5912 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
5913
5914 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
5915 returning when xg_ignore_gtk_scrollbar is true.
5916
5917 2004-12-14 Kim F. Storm <storm@cua.dk>
5918
5919 * keyboard.c (read_char): Save and restore echo_string when
5920 handling input method.
5921
5922 2004-12-13 Richard M. Stallman <rms@gnu.org>
5923
5924 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
5925
5926 * keyboard.c (Vthrow_on_input): New variable.
5927 (syms_of_keyboard): Defvar and initialize it.
5928 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
5929
5930 * lisp.h (QUIT): Check for Vthrow_on_input.
5931 (Vthrow_on_input): Declare it.
5932
5933 2004-12-13 Kim F. Storm <storm@cua.dk>
5934
5935 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
5936 vector.
5937
5938 2004-12-12 Richard M. Stallman <rms@gnu.org>
5939
5940 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
5941
5942 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
5943 (Ftry_completion): Really use outer `zero'; eliminate inner one.
5944
5945 2004-12-12 Kenichi Handa <handa@m17n.org>
5946
5947 * term.c (encode_terminal_code): Fix previous change.
5948
5949 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
5950
5951 * keyboard.c (handle_async_input): Remove pthread mutex handling.
5952 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
5953
5954 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
5955 in macro arguments.
5956
5957 * minibuf.c (Ftry_completion, Fall_completions): Don't use
5958 XFASTINT blindly.
5959
5960 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
5961
5962 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5963
5964 * w32term.c (x_calc_absolute_position): Remove calculation of
5965 difference between inner and outer window. Don't subtract difference
5966 for left and top calculations.
5967
5968 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
5969 for left and top calculations. Remove call to x_real_positions.
5970 [Bug report by Drew Adams in November]
5971 (x_check_expected_move): Do not set change_gravity to 1 when calling
5972 x_set_offset.
5973
5974 2004-12-08 Richard M. Stallman <rms@gnu.org>
5975
5976 * xdisp.c (get_next_display_element): Use `escape-glyph' for
5977 control chars and escaped octal codes.
5978 (Qescape_glyph): New variable.
5979 (syms_of_xdisp): Initialize it.
5980 (escape_glyph_face): New variable.
5981 (redisplay_window): Initialize it.
5982
5983 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
5984
5985 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
5986 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
5987
5988 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5989
5990 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
5991 reset_malloc_hooks.
5992
5993 * keyboard.c (handle_async_input, input_available_signal):
5994 Add ! defined (SYSTEM_MALLOC) around thread code.
5995
5996 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
5997
5998 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
5999
6000 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
6001
6002 * config.in: Regenerate.
6003
6004 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6005
6006 * xmenu.c (Fx_popup_menu): Correct documentation about position.
6007 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
6008 if not given by a mouse click to correspond with x-popup-menu
6009 documentation.
6010
6011 * config.in: Regenerate.
6012
6013 * gtkutil.c: Include signal.h and syssignal.h.
6014 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
6015
6016 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
6017 new variables main_thread and alloc_mutex,
6018 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
6019 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
6020 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
6021 (UN)BLOCK_INPUT.
6022 (emacs_blocked_free, emacs_blocked_malloc)
6023 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
6024 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
6025 (reset_malloc_hooks): New function.
6026
6027 * lisp.h: Declare reset_malloc_hooks.
6028
6029 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
6030
6031 * keyboard.c: Conditionally include pthread.h
6032 (handle_async_input, input_available_signalt): If not in the main
6033 thread, block signal, send signal to main thread and return.
6034
6035 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6036 Set current folder in file chooser if default_filename is a directory.
6037
6038 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
6039
6040 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
6041 Remove redundant correctness checks.
6042 (regex_compile): Fix up error codes for \{..\} expressions.
6043
6044 2004-12-05 Richard M. Stallman <rms@gnu.org>
6045
6046 * regex.c (regex_compile): Fix end-of-pattern case for space.
6047
6048 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6049
6050 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
6051 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
6052 crashes with invalid characters.
6053 * macmenu.c (add_menu_item): Use it.
6054 * image.c (image_load_quartz2d): Likewise.
6055 * macfns.c (x_set_name, x_set_title): Likewise.
6056 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
6057 creating them each time for labels.
6058
6059 2004-12-02 Richard M. Stallman <rms@gnu.org>
6060
6061 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
6062 don't use it here.
6063
6064 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
6065 (interactive_p): Skip Scalled_interactively_p frames
6066 like Sinteractive_p frames.
6067 (unwind_to_catch): Clear handling_signal.
6068
6069 * data.c (Fmake_variable_buffer_local): Doc fix.
6070 (Fmake_local_variable): Doc fix.
6071
6072 * insdel.c (insert_from_string_before_markers)
6073 (insert_from_string): Don't modify buffer on empty insertion.
6074
6075 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
6076
6077 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6078
6079 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
6080 menu text as UTF8 fails.
6081
6082 2004-12-01 Kim F. Storm <storm@cua.dk>
6083
6084 * alloc.c: Add commentary for last change.
6085 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
6086 sizeof(size_t) != 4.
6087 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
6088 Use them. Also clear header and trailer of freed memory.
6089 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
6090 (string_overrun_cookie): Rename from string_overrun_pattern.
6091 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
6092
6093 2004-12-01 Andreas Schwab <schwab@suse.de>
6094
6095 * lisp.h: Declare string_to_multibyte.
6096
6097 2004-12-01 Kenichi Handa <handa@m17n.org>
6098
6099 * w32console.c (w32con_write_glyphs): Decide coding here.
6100 Adjusted for the change of encode_terminal_code.
6101
6102 * term.c (encode_terminal_code): Don't make it "static".
6103
6104 2004-11-30 Kenichi Handa <handa@m17n.org>
6105
6106 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
6107 (encode_terminal_code): Argument changed. Encode all
6108 characters at once, and return a pointer to the result of encoding.
6109 (write_glyphs): Decide coding here. Adjusted for the above change.
6110 (insert_glyphs): Likewise.
6111 (term_init): Initialize encode_terminal_bufsize to 0.
6112
6113 * coding.c (Vcode_conversion_workbuf_name): New variable.
6114 (syms_of_coding): Initialize and staticpro it.
6115 (set_conversion_work_buffer): New function.
6116 (run_pre_post_conversion_on_str): Use it.
6117 (run_pre_write_conversin_on_c_str): New function.
6118
6119 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
6120
6121 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6122
6123 * keyboard.c: Don't undef SIGIO
6124 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
6125 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
6126 (macfns.o): Don't depend on ccl.h.
6127 * macfns.c (mac_frame_parm_handlers): Set handlers for
6128 Qleft_fringe and Qright_fringe.
6129 * macterm.c (mac_fill_rectangle_to_pixmap)
6130 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
6131 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
6132 Put in #if 0.
6133 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
6134 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
6135 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
6136 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6137 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
6138 XDrawImageString. Always draw background and foreground separately.
6139 (x_draw_image_foreground): Use clipping instead of computing the
6140 intersection rectangle.
6141 (x_draw_image_glyph_string): Don't draw an image with mask to a
6142 pixmap.
6143 (x_redisplay_interface): Set flush_display_optional member to 0.
6144 (XTread_socket): Correctly reset the TEConverter
6145 object.
6146
6147 2004-11-30 Kim F. Storm <storm@cua.dk>
6148
6149 * lisp.h: New defines to enable buffer overrun checking.
6150 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
6151 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
6152
6153 * alloc.c: Add more checks for buffer overruns.
6154 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
6155 xmalloc_overrun_check_trailer, overrun_check_malloc)
6156 overrun_check_realloc, overrun_check_free): Add.
6157 (GC_STRING_EXTRA, string_overrun_pattern): Add.
6158 (check_sblock, allocate_string_data, compact_small_strings):
6159 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
6160 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
6161 (check_string_free_list): Add.
6162 (allocate_string, sweep_strings): Call check_string_free_list.
6163
6164 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
6165 XMALLOC_OVERRUN_CHECK to avoid crash during load.
6166
6167 2004-11-29 Kim F. Storm <storm@cua.dk>
6168
6169 * fns.c (concat): Use SAFE_ALLOCA.
6170
6171 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
6172
6173 * sysdep.c (emacs_write): Don't use QUIT.
6174
6175 2004-11-29 Kenichi Handa <handa@m17n.org>
6176
6177 * buffer.c (init_buffer): Set current_buffer->directory to a
6178 multibyte string made by string_to_multibyte.
6179
6180 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
6181
6182 2004-11-27 Andreas Schwab <schwab@suse.de>
6183
6184 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
6185
6186 * s/gnu-linux.h: Enable no-op gcpros on ia64.
6187 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
6188
6189 * filelock.c (lock_file_1): Call get_boot_time early.
6190 Increase buffer size.
6191
6192 2004-11-27 Eli Zaretskii <eliz@gnu.org>
6193
6194 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
6195 is not defined.
6196
6197 2004-11-27 Kim F. Storm <storm@cua.dk>
6198
6199 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
6200 marker out of doc string.
6201
6202 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
6203
6204 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
6205 which was not mentioned in the log.
6206
6207 2004-11-26 Kim F. Storm <storm@cua.dk>
6208
6209 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
6210 angle bitmaps at top/bottom line.
6211
6212 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
6213 set it when it->method is set to next_element_from_display_vector.
6214 (setup_for_ellipsis): Add LEN argument. Callers changed.
6215 Set it->saved_face_id.
6216 (get_next_display_element): Use loop instead of recursion.
6217 Set it->saved_face_id. Combine duplicate code for ctr chars.
6218 (next_element_from_display_vector): Do not set it->saved_face_id.
6219 (next_element_from_ellipsis): Use setup_for_ellipsis.
6220
6221 2004-11-26 Eli Zaretskii <eliz@gnu.org>
6222
6223 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
6224 prevent compiler warnings.
6225
6226 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
6227
6228 * keyboard.c (command_loop_1): Print a message describing the key
6229 the user just pressed when this key has no binding.
6230
6231 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
6232 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
6233
6234 * lread.c (readchar): Check QUIT when `getc' is interrupted.
6235
6236 2004-11-24 Richard M. Stallman <rms@gnu.org>
6237
6238 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
6239
6240 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
6241
6242 2004-11-24 Kim F. Storm <storm@cua.dk>
6243
6244 * xdisp.c (move_it_in_display_line_to, display_line):
6245 Restore saved_face_id also when truncate-lines or hscrolled.
6246
6247 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6248
6249 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
6250 x-use-old-gtk-file-dialog.
6251
6252 * xfns.c: Define x_use_old_gtk_file_dialog.
6253 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
6254 outside ifdef USE_GTK.
6255
6256 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
6257
6258 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
6259 Don't use XFASTINT blindly.
6260
6261 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
6262
6263 * indent.c (skip_invisible): Avoid non-idempotent side-effects
6264 in macro arguments.
6265
6266 * keymap.c (Flookup_key): Check INTEGERP before XINT.
6267
6268 * lread.c (oblookup): Don't use XFASTINT blindly.
6269
6270 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
6271 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
6272
6273 2004-11-23 Kim F. Storm <storm@cua.dk>
6274
6275 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
6276 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
6277
6278 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
6279 signal_p is zero and face name is unknown.
6280 (Fx_list_fonts): Don't signal error in lookup_named_face.
6281 (Fface_font): Signal error in lookup_named_face.
6282 (ascii_face_of_lisp_face): Likewise.
6283
6284 * dispextern.h (lookup_named_face): Fix prototype.
6285
6286 * xdisp.c (handle_single_display_prop): Don't signal error in
6287 lookup_named_face for unknown fringe face name.
6288 (highlight_trailing_whitespace): Don't signal error in
6289 lookup_named_face if trailing-whitespace face unknown.
6290 (calc_line_height_property): Don't signal error in
6291 lookup_named_face if specified face name is unknown.
6292
6293 * fringe.c (update_window_fringes): Show top row indicator if
6294 window has header-line. Don't show arrow at bob and eob
6295 if the boundary indicators are not used.
6296 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
6297
6298 * window.c (set_window_buffer): Clear display_error_modiff.
6299
6300 2004-11-22 Kim F. Storm <storm@cua.dk>
6301
6302 * fringe.c (update_window_fringes): Provide sensible fall-back
6303 value for non-nil indicate-buffer-boundaries setting.
6304
6305 2004-11-22 Markus Rost <rost@ias.edu>
6306
6307 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
6308
6309 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
6310
6311 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
6312
6313 2004-11-21 Kim F. Storm <storm@cua.dk>
6314
6315 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
6316
6317 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
6318 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6319
6320 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
6321 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6322
6323 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
6324 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6325
6326 * xdisp.c (move_it_in_display_line_to, display_line):
6327 Restore saved_face_id if overflow-newline-into-fringe is enabled and
6328 line is continued before or in middle of element from display vector.
6329
6330 * indent.c (Fvertical_motion): Fix last change. Use another
6331 method to detect if iterator moved too far ahead after reseat.
6332
6333 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
6334 expand matrix width for overflow in zero-width area.
6335 (append_glyph, append_composite_glyph, produce_image_glyph)
6336 (append_stretch_glyph): Use it to avoid loop in redisplay.
6337 (note_mode_line_or_margin_highlight): Don't let help-echo from
6338 string override help-echo from image map.
6339
6340 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
6341
6342 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
6343 * callint.c (Fcall_interactively): Ditto.
6344
6345 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
6346
6347 * minibuf.c (Fminibuffer_complete_and_exit):
6348 Fixup the case of the completed value, for case-indep completion.
6349
6350 2004-11-20 Richard M. Stallman <rms@gnu.org>
6351
6352 * lisp.h (Fread_from_minibuffer): Add arg in decl.
6353
6354 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
6355 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
6356
6357 * search.c (Vsearch_spaces_regexp):
6358 Rename from Vsearch_whitespace_regexp. All uses changed.
6359
6360 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
6361
6362 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
6363
6364 2004-11-19 Richard M. Stallman <rms@gnu.org>
6365
6366 * search.c (Vsearch_whitespace_regexp): New variable.
6367 (syms_of_search): Defvar it.
6368 (compile_pattern_1): Call re_set_whitespace_regexp with it.
6369 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
6370 is non-nil.
6371 (struct regexp_cache): New element whitespace_regexp.
6372 (syms_of_search): Initialize whitespace_regexp elements.
6373 (compile_pattern): Compare whitespace_regexp elements.
6374 (compile_pattern_1): Set whitespace_regexp elements.
6375
6376 * regex.c (regex_compile): Substitute whitespace_regexp
6377 for spaces, if it is nonzero.
6378 (whitespace_regexp): New variable.
6379 (re_set_whitespace_regexp): New function.
6380
6381 2004-11-19 Kim F. Storm <storm@cua.dk>
6382
6383 * indent.c (Fvertical_motion): Fix last change.
6384
6385 2004-11-18 Kim F. Storm <storm@cua.dk>
6386
6387 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
6388 Instead, move back again if reseating moves too far ahead.
6389
6390 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
6391
6392 * xdisp.c (message3): Call clear_message.
6393
6394 2004-11-17 Kim F. Storm <storm@cua.dk>
6395
6396 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
6397
6398 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6399
6400 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
6401
6402 * xmenu.c (x_menu_in_use): Remove.
6403 (x_menu_set_in_use): Also set popup_activated_flag.
6404
6405 * xfns.c (Fx_file_dialog): Call popup_activated instead of
6406 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
6407
6408 * xterm.h (x_menu_in_use): Remove.
6409
6410 2004-11-16 Richard M. Stallman <rms@gnu.org>
6411
6412 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
6413 Use map-keymap-internal to implement that.
6414
6415 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
6416
6417 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
6418
6419 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
6420 a window before using XWINDOW.
6421
6422 * window.c (make_window, Fselect_window, make_dummy_parent)
6423 (save_window_save):
6424 * frame.c (make_frame):
6425 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
6426
6427 * lisp.h (NILP): Use EQ rather than XFASTINT.
6428
6429 2004-11-16 Kim F. Storm <storm@cua.dk>
6430
6431 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
6432
6433 * indent.c (Fvertical_motion): Fix last change. Only reseat when
6434 moving backwards.
6435
6436 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
6437
6438 * dispextern.h: Extern reseat_at_previous_visible_line_start.
6439
6440 2004-11-16 Kenichi Handa <handa@m17n.org>
6441
6442 * xdisp.c (display_mode_element): Fix previous change (calculate
6443 end position of substring to display correctly).
6444
6445 2004-11-16 Kim F. Storm <storm@cua.dk>
6446
6447 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
6448 Reported by Andrew M. Scott.
6449
6450 2004-11-15 Kim F. Storm <storm@cua.dk>
6451
6452 * fns.c (Fsafe_plist_get): New defun.
6453 (syms_of_fns): Defsubr it.
6454
6455 * lisp.h (Fsafe_plist_get): Add EXFUN.
6456
6457 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
6458 Use Fsafe_plist_get.
6459 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6460 Fix image map element parsing. Use Fsafe_plist_get.
6461
6462 2004-11-15 Richard M. Stallman <rms@gnu.org>
6463
6464 * xdisp.c (get_next_display_element): Fix previous change.
6465
6466 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6467
6468 * window.c (shrink_windows): Handle special case of one window left
6469 when trying to shrink the final reminder. Grow windows if
6470 total_removed is less than total_shrink.
6471
6472 * xmenu.c (pop_down_menu): Remove global variable current_menu,
6473 extract pointer from arg with XSAVE_VALUE.
6474 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
6475 Construct arg to record_unwind_protect with make_save_value.
6476
6477 2004-11-13 Richard M. Stallman <rms@gnu.org>
6478
6479 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
6480 (get_next_display_element): Fix previous change to apply only to \n.
6481
6482 * indent.c (Fvertical_motion): Scan to PT from start of line to
6483 make iterator consistent.
6484
6485 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6486
6487 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6488
6489 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
6490
6491 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
6492 Record unwind with clean_up_file_dialog.
6493
6494 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
6495 Declare.
6496
6497 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
6498
6499 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6500
6501 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6502 (xg_file_sel_destroy): Remove.
6503 (xg_file_response_cb, pop_down_file_dialog)
6504 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
6505 New functions.
6506 (xg_get_file_with_chooser, xg_get_file_with_selection):
6507 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
6508 Move common code to xg_get_file_name. Return widget created.
6509 (xg_get_file_name): Set name, transient for, modal and destroy
6510 with parent here. Connect response signal to xg_file_response_cb,
6511 connect delete-event to gtk_true. Record pop_down_file_dialog
6512 for unwind. Do event loop and call x_menu_wait_for_event in loop.
6513 (xg_create_widget): Make dialogs modal.
6514
6515 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
6516 Lisp_Object.
6517 (popup_get_selection): Move unwind protect ...
6518 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6519 Move destroy of widget to pop_down_menu.
6520 (popup_widget_loop): Move unwind protect ...
6521 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6522 Move destroy of widget to pop_down_menu.
6523 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6524 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
6525 x_mouse_leave and grabbed = 0 to pop_down_menu.
6526
6527 2004-11-13 Kim F. Storm <storm@cua.dk>
6528
6529 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
6530 (syms_of_xdisp): DEFVAR_BOOL it.
6531 (make_cursor_line_fully_visible, try_cursor_movement)
6532 (try_window_id): Use it.
6533
6534 2004-11-12 Kim F. Storm <storm@cua.dk>
6535
6536 * dispextern.h (struct glyph_row): New member extra_line_spacing.
6537 (struct it): New member max_extra_line_spacing.
6538 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
6539 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
6540 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
6541 part of last line is only extra line spacing (so the text on the
6542 line is fully visible). Use helper macros.
6543 Add W arg (to use them). All callers changed.
6544 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
6545 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
6546
6547 * window.c (window_scroll_pixel_based, Frecenter):
6548 Use move_it_vertically_backward directly.
6549 (Frecenter): Fix calculation of new start pos for negative arg.
6550 Before, the new start pos was sometimes chosen too far back, so
6551 the last line became only partially visible, and thus would be
6552 either only semi-visible or automatically scrolled to the middle
6553 of the window by redisplay.
6554
6555 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
6556 (move_it_vertically_backward): Don't recure to move further back.
6557 (move_it_vertically): Remove superfluous condition.
6558 (move_it_by_lines): Clear last_height when moved 0 lines.
6559 (resize_mini_window): Use it.max_extra_line_spacing.
6560 (display_tool_bar_line): Clear row->extra_line_spacing.
6561 (try_scrolling): Use move_it_vertically_backward directly.
6562 (redisplay_window): Likewise.
6563 (compute_line_metrics): Set row->extra_line_spacing.
6564 (display_line, display_string): Likewise.
6565 (x_produce_glyphs): Update it->max_extra_line_spacing.
6566
6567 * xmenu.c (pop_down_menu): Return nil.
6568
6569 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6570
6571 * xmenu.c (x_menu_wait_for_event): New function.
6572 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
6573 to handle timers.
6574 (popup_widget_loop): Add argument do_timers.
6575 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
6576 do_timers to popup_widget_loop.
6577 (xmenu_show): Call XMenuActivateSetWaitFunction so that
6578 x_menu_wait_for_event is called by XMenuActivate.
6579 (create_and_show_popup_menu): Pass 1 for do_timers to
6580 popup_get_selection.
6581 (pop_down_menu): New function.
6582 (popup_get_selection, popup_widget_loop): Unwind protect to
6583 pop_down_menu.
6584 (popup_widget_loop): Add argument widget.
6585 (create_and_show_popup_menu, create_and_show_dialog): Pass new
6586 argument widget to popup_widget_loop.
6587
6588 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6589
6590 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
6591
6592 2004-11-09 Kim F. Storm <storm@cua.dk>
6593
6594 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
6595 Fix various comments referring to XEvents instead of input events.
6596 (x_queue_event): Fix format strings.
6597 (x_stop_queuing_selection_requests): Likewise.
6598
6599 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
6600 (pint2hrstr): Add extra braces to silence compiler.
6601
6602 * print.c (print_object): Fix format string.
6603
6604 * lread.c (read1): Fix next_char matching.
6605
6606 * lisp.h (Fdelete): Add EXFUN.
6607 (replace_range_2): Add prototype.
6608
6609 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
6610
6611 * intervals.h (NULL_INTERVAL_P): Add separate version when
6612 ENABLE_CHECKING is not defined to silence compiler.
6613 (compare_string_intervals): Add prototype.
6614
6615 * fringe.c (destroy_fringe_bitmap): Fix return type.
6616 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
6617
6618 * emacs.c (Fdump_emacs): Fix format string.
6619
6620 * doc.c: Include <ctype.h>.
6621 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
6622
6623 * data.c (store_symval_forwarding): Remove unused variables.
6624
6625 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
6626
6627 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6628
6629 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
6630 to ${OLDXMENU}.
6631
6632 2004-11-09 Kim F. Storm <storm@cua.dk>
6633
6634 * process.c (Fmake_network_process): Remove kludge for interrupted
6635 connects on BSD. If connect is interrupted, just close socket and
6636 start over rather than sleeping and retry with same socket.
6637
6638 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6639
6640 * .cvsignore: Add buildobj.lst.
6641
6642 * doc.c: New variable Vbuild_files.
6643 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
6644 file names from buildobj.lst. Only attach docstrings from files
6645 that are in Vbuild_files.
6646 (syms_of_doc): Defvar Vbuild_files.
6647
6648 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
6649 and w32*.o.
6650 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6651 (mostlyclean): Rm buildobj.lst
6652
6653 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
6654 is linked.
6655
6656 2004-11-09 Kim F. Storm <storm@cua.dk>
6657
6658 * fringe.c (update_window_fringes): Update fringe bitmaps if
6659 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
6660 also update previous row to get rid of misc. artifacts.
6661
6662 2004-11-08 Kim F. Storm <storm@cua.dk>
6663
6664 * xdisp.c (fast_find_position): Fix start pos if header line present.
6665 (note_mouse_highlight): Clear mouse face if we move out of text area.
6666
6667 2004-11-08 Eli Zaretskii <eliz@gnu.org>
6668
6669 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
6670 Don't include <sys/time.h> explicitly.
6671 Include <stdio.h> unconditionally, not just on MacOS.
6672
6673 2004-11-08 Kenichi Handa <handa@m17n.org>
6674
6675 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
6676 don't pay attention to '\' before '*'.
6677 (fontset_pattern_regexp): Change the meaning of the second arg.
6678 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
6679 (check_fontset_name): Try NAME as literal at first, and if it
6680 failes, try NAME as pattern.
6681
6682 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6683
6684 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
6685
6686 2004-11-07 Andreas Schwab <schwab@suse.de>
6687
6688 * lisp.h (Fmsdos_downcase_filename): Declare.
6689 * dired.c (Fmsdos_downcase_filename): Don't declare here.
6690 * fileio.c: Likewise.
6691
6692 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6693
6694 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
6695 comparisons with integers instead of Lisp_Object address.
6696 (Fmsdos_set_keyboard): Declare argument allkeys.
6697
6698 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
6699
6700 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
6701 int/Lisp_Object mixup.
6702
6703 * fileio.c: Ditto.
6704
6705 2004-11-06 Steven Tamm <steventamm@mac.com>
6706
6707 * editfns.c: Need to include sys/time.h before resource.h on darwin.
6708
6709 2004-11-06 Richard M. Stallman <rms@gnu.org>
6710
6711 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
6712
6713 * xfaces.c (merge_named_face): GCPRO the face_name in the
6714 named_merge_point struct that we make.
6715 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
6716
6717 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
6718 before deciding whether to inactivate mark.
6719
6720 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
6721
6722 * config.in: Regenerate (add HAVE_GETRUSAGE).
6723 * editfns.c (Fget_internal_run_time): New function.
6724 (syms_of_data): Defsubr it.
6725 * fns.c (sxhash): As far as possible, merge calculation of
6726 hash code for symbols and strings.
6727
6728 2004-11-06 Eli Zaretskii <eliz@gnu.org>
6729
6730 * frame.c (syms_of_frame): Fix the example in the doc string.
6731
6732 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6733
6734 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
6735
6736 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
6737 (create_and_show_dialog): Revert change from 2004-10-31.
6738
6739 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
6740
6741 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
6742
6743 2004-11-05 Kim F. Storm <storm@cua.dk>
6744
6745 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
6746
6747 * fileio.c (Ffile_modes): Doc fix.
6748 (auto_save_1): Check for Ffile_modes nil value.
6749
6750 2004-11-05 Kim F. Storm <storm@cua.dk>
6751
6752 * xselect.c (struct selection_event_queue, selection_queue)
6753 (x_queue_selection_requests, x_queue_event)
6754 (x_start_queuing_selection_requests)
6755 (x_stop_queuing_selection_requests): Add new queue for selection
6756 input events to replace previous XEvent queue in xterm.c.
6757 (queue_selection_requests_unwind): Adapt to new queue.
6758 (x_reply_selection_request): Adapt to new queue.
6759 Unexpect wait_object in case of x errors (memory leak).
6760 (x_handle_selection_request, x_handle_selection_clear): Make static.
6761 (x_handle_selection_event): New function. May queue selection events.
6762 (wait_for_property_change_unwind): Use save_value instead of cons.
6763 Clear property_change_reply_object.
6764 (wait_for_property_change): Abort if already waiting.
6765 Use save_value instead of cons for unwind data.
6766 (x_handle_property_notify): Skip events already arrived, but don't
6767 free them, as "arrived" field is checked by wait_for_property_change,
6768 and it will be freed by unwind or explicit unexpect_property_change.
6769 (x_get_foreign_selection): Add to new queue.
6770 (receive_incremental_selection): Don't unexpect wait_object when done
6771 as it has already been freed by previous wait_for_property_change.
6772
6773 * xterm.h (x_start_queuing_selection_requests)
6774 (x_stop_queuing_selection_requests, x_handle_selection_request)
6775 (x_handle_selection_clear): Remove prototypes.
6776 (x_handle_selection_event): Add prototype.
6777
6778 * xterm.c (handle_one_xevent): Don't queue X selection events
6779 here, it may be too late if we start queuing after we have already
6780 stored some selection events into the kbd buffer.
6781 (struct selection_event_queue, queue, x_queue_selection_requests)
6782 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
6783 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
6784 (x_catch_errors_unwind): Block input around final XSync.
6785
6786 * keyboard.h (kbd_buffer_unget_event): Add prototype.
6787
6788 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
6789 (kbd_buffer_unget_event): New function.
6790 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
6791 and use x_handle_selection_event.
6792 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
6793
6794 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6795
6796 * xselect.c (TRACE3): New debug macro.
6797 (x_reply_selection_request): Use it.
6798 (receive_incremental_selection): In call to TRACE0, the name of
6799 a symbol is in xname.
6800
6801 2004-11-05 Kim F. Storm <storm@cua.dk>
6802
6803 * fontset.c (fontset_pattern_regexp): Use unsigned char.
6804
6805 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6806
6807 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
6808
6809 * gtkutil.h (use_old_gtk_file_dialog): Declare.
6810
6811 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
6812 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
6813 * xfns.c (syms_of_xfns): ... to here.
6814
6815 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
6816 it doesn't start with /.
6817
6818 2004-11-04 Kenichi Handa <handa@m17n.org>
6819
6820 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
6821 treat it as a literal character.
6822
6823 2004-11-03 Kim F. Storm <storm@cua.dk>
6824
6825 * .gdbinit (ppt): New function.
6826
6827 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6828
6829 * xterm.c (x_window_to_scroll_bar): Only call
6830 xg_get_scroll_id_for_window if toolkit scroll bars are used.
6831
6832 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
6833 of save.
6834
6835 2004-11-02 Andreas Schwab <schwab@suse.de>
6836
6837 * window.c (Fscroll_right): Fix last change.
6838
6839 2004-11-02 Kim F. Storm <storm@cua.dk>
6840
6841 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
6842
6843 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6844
6845 * callproc.c (Fcall_process): Block input around vfork.
6846
6847 2004-11-02 Kim F. Storm <storm@cua.dk>
6848
6849 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
6850 (syms_of_eval): Defsubr it.
6851
6852 2004-11-02 Richard M. Stallman <rms@gnu.org>
6853
6854 * insdel.c (replace_range_2): New function.
6855
6856 * casefiddle.c (casify_region): Handle changes in byte-length
6857 using replace_range_2.
6858
6859 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
6860
6861 * xdisp.c (back_to_previous_visible_line_start):
6862 Subtract 1 from pos when checking previous newline for invisibility.
6863
6864 * window.c (window_scroll_pixel_based): Update preserve_y
6865 for header line if any.
6866 (Fscroll_left, Fscroll_right): Don't call interactive_p;
6867 use a new second argument instead.
6868
6869 * eval.c (Fcall_interactive_p): New function.
6870 (interactive_p): Don't test INTERACTIVE here.
6871 (Finteractive_p): Doc fix.
6872
6873 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
6874
6875 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6876
6877 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
6878 comparing font names.
6879
6880 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6881
6882 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
6883 Fx_file_dialog if only directories should be read.
6884
6885 * lisp.h: Fx_file_dialog takes 5 parameters.
6886
6887 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
6888 Add parameter only_dir_p.
6889 In Motif version, don't put DEFAULT_FILENAME in filter part of the
6890 dialog, just text field part. Do not add DEFAULT_FILENAME
6891 to list of files if it isn't there.
6892 In GTK version, pass only_dir_p parameter to xg_get_file_name.
6893
6894 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
6895 Check only_dir_p instead of comparing prompt to "Dired". When using
6896 a save dialog, add option kNavDontConfirmReplacement, change title
6897 to "Enter name", change text for save button to "Ok".
6898
6899 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
6900 Check only_dir_p instead of comparing prompt to "Dired".
6901
6902 * gtkutil.c (xg_get_file_with_chooser)
6903 (xg_get_file_with_selection): New functions, only defined ifdef
6904 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
6905 respectively.
6906 (xg_get_file_name): Add parameter only_dir_p.
6907 Call xg_get_file_with_chooser or xg_get_file_with_selection
6908 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
6909 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
6910
6911 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
6912
6913 * config.in: Rebuild (added HAVE_GTK_FILE_*).
6914
6915 2004-11-01 Kim F. Storm <storm@cua.dk>
6916
6917 * process.c (connect_wait_mask, num_pending_connects):
6918 Only declare and use them if NON_BLOCKING_CONNECT is defined.
6919 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
6920 (IF_NON_BLOCKING_CONNECT): New helper macro.
6921 (wait_reading_process_output): Only declare and use local vars
6922 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
6923
6924 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
6925
6926 * w32term.c (x_scroll_run): Delete region objects after use.
6927
6928 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6929
6930 * xmenu.c: Add prototypes for forward function declarations.
6931 (popup_get_selection): Remove parameter do_timers, remove call to
6932 timer_check.
6933 (create_and_show_popup_menu, create_and_show_dialog):
6934 Remove parameter do_timers from call to popup_get_selection.
6935
6936 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
6937 tool_bar_items and assign the result to f->tool_bar_items if
6938 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
6939 tool_bar_items to assignment of result.
6940
6941 * atimer.c (alarm_signal_handler): Do not call set_alarm if
6942 pending_atmers is non-zero.
6943
6944 2004-10-31 Kim F. Storm <storm@cua.dk>
6945
6946 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
6947
6948 2004-10-28 Will <will@glozer.net>
6949
6950 * macterm.c: Allow user to assign key modifiers to the Mac Option
6951 key via a 'mac-option-modifier' variable.
6952
6953 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6954
6955 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
6956 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
6957 (x_handle_selection_request, x_handle_selection_clear)
6958 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
6959
6960 2004-10-28 Richard M. Stallman <rms@gnu.org>
6961
6962 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6963
6964 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6965
6966 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
6967
6968 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
6969 comment-starter over a 1-char one.
6970
6971 2004-10-27 Richard M. Stallman <rms@gnu.org>
6972
6973 * xdisp.c (get_next_display_element): In mode lines,
6974 treat newline and tab like other control characters.
6975
6976 * editfns.c (Fmessage): Doc fix.
6977
6978 * indent.c (vmotion): When moving up, check the newline before.
6979 Make prevline an int, not a Lisp_Object.
6980
6981 2004-10-27 Kim F. Storm <storm@cua.dk>
6982
6983 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
6984 Only allocate info and discarded tables once.
6985
6986 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
6987 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
6988 (SAFE_FREE): Test it to determine if we need to unwind to free.
6989 Remove size arg. All users changed.
6990 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
6991
6992 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6993
6994 * gtkutil.c: Put empty line between comment and function body.
6995 (xg_destroy_widgets): Rename from remove_from_container.
6996 Just destroy all widgets in list. Argument wcont removed.
6997 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
6998 instead of remove_from_container.
6999 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
7000 (free_frame_tool_bar): Add comment.
7001
7002 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
7003 is not NULL before strcmp.
7004
7005 2004-10-26 Kim F. Storm <storm@cua.dk>
7006
7007 * callint.c (Fcall_interactively): Add 'U' code to get the
7008 up-event discarded by a previous 'k' or 'K' argument.
7009
7010 2004-10-26 David Kastrup <dak@gnu.org>
7011
7012 * buffer.c (syms_of_buffer): Fix a few typos.
7013
7014 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7015
7016 * xsmfns.c: Put empty line between comment and function body.
7017 Use two spaces before comment end.
7018
7019 2004-10-25 Kenichi Handa <handa@m17n.org>
7020
7021 * fontset.c (fontset_pattern_regexp): Optimize for the case that
7022 PATTERN is full XLFD.
7023
7024 2004-10-24 Kenichi Handa <handa@m17n.org>
7025
7026 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
7027
7028 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
7029 (regex_compile): Return REG_ERANGEX if appropriate.
7030
7031 2004-10-22 Kenichi Handa <handa@m17n.org>
7032
7033 * editfns.c (Ftranslate_region_internal): New function.
7034 (syms_of_editfns): Defsubr it.
7035
7036 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7037
7038 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
7039
7040 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
7041
7042 * xterm.h (x_output): New member `xic_base_fontname'.
7043 (FRAME_XIC_BASE_FONTNAME): New macro.
7044 (xic_free_xfontset): Declare.
7045
7046 * xfns.c (xic_create_xfontset): Share fontsets between frames
7047 based on base_fontname.
7048 (xic_free_xfontset): New function.
7049 (free_frame_xic): Use it.
7050 (xic_set_xfontset): Ditto.
7051
7052 * xterm.c (xim_destroy_callback): Ditto.
7053
7054
7055 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
7056
7057 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
7058
7059 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7060
7061 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
7062 XSync.
7063
7064 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
7065 New variables and constant.
7066 (main): Calculate heap_bss_diff. If we are dumping and the
7067 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
7068 and exec ourself again.
7069 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
7070 print a warning.
7071
7072 * lastfile.c: Make my_endbss and my_endbss_static available on all
7073 platforms.
7074
7075 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
7076 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
7077
7078 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
7079
7080 * data.c (Flocal_variable_if_set_p): Doc fix.
7081
7082 2004-10-19 Jason Rumney <jasonr@gnu.org>
7083
7084 * w32.c (init_environment): Set emacs_dir correctly when running
7085 emacs from the build directory.
7086
7087 2004-10-19 Richard M. Stallman <rms@gnu.org>
7088
7089 * editfns.c (Fdelete_and_extract_region):
7090 If region is empty, return null string.
7091
7092 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7093
7094 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
7095 and canon_width.
7096 (xg_frame_cleared): Remove.
7097
7098 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
7099 (xg_find_top_left_in_fixed): Remove.
7100 (xg_create_scroll_bar): Put an event box widget between
7101 the scroll bar widget and the edit widget.
7102 (xg_show_scroll_bar): Show the parent widget (the event box).
7103 (xg_remove_scroll_bar): Destroy parent (the event box) also.
7104 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
7105 Move the parent (the event box) widget inside the fixed widget.
7106 Move window clear to xterm.c.
7107
7108 * gtkutil.h (xg_frame_cleared): Remove.
7109
7110 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
7111 (x_scroll_bar_create, XTset_vertical_scroll_bar):
7112 Remove arguments left and width to xg_update_scrollbar_pos.
7113 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
7114
7115 2004-10-19 Kenichi Handa <handa@m17n.org>
7116
7117 * xdisp.c (display_mode_element): Fix display of wide chars.
7118
7119 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7120
7121 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
7122 gdk_window_clear and move gdk_window_process_all_updates after
7123 clear so events are sent to the X server in correct order.
7124
7125 2004-10-18 Kenichi Handa <handa@m17n.org>
7126
7127 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
7128 comparing font names.
7129 (fs_query_fontset): Use fast_string_match for comparing fontset names.
7130 (list_fontsets): Likewise.
7131
7132 * search.c (fast_string_match_ignore_case): New function.
7133
7134 * lisp.h (fast_string_match_ignore_case): Extern it.
7135
7136 2004-10-17 Kim F. Storm <storm@cua.dk>
7137
7138 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
7139 than bitmap if there is not left fringe.
7140 (get_overlay_arrow_glyph_row): Also used on windows system.
7141 (display_line): Display overlay string if no left fringe.
7142
7143 2004-10-16 Jason Rumney <jasonr@gnu.org>
7144
7145 * w32fns.c (w32_font_match): Encode font name being matched.
7146
7147 2004-10-16 Richard M. Stallman <rms@gnu.org>
7148
7149 * window.c (Fspecial_display_p): Doc fix.
7150
7151 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
7152
7153 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
7154 Don't ignore menus, because where-is-internal already does it for us.
7155
7156 2004-10-15 Kim F. Storm <storm@cua.dk>
7157
7158 * xdisp.c (redisplay_window): Only update fringes and vertical
7159 border on window frames.
7160
7161 2004-10-14 Andreas Schwab <schwab@suse.de>
7162
7163 * m/ia64.h (DATA_SEG_BITS): Don't define.
7164
7165 2004-10-14 Kim F. Storm <storm@cua.dk>
7166
7167 * xterm.h: Include Xutil.h after keysym.h to work around bug
7168 in some X versions.
7169
7170 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
7171
7172 * fns.c (map_char_table): Add missing gcpros.
7173
7174 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
7175
7176 * keymap.c (get_keymap): An autoload form is not a keymap.
7177
7178 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
7179
7180 2004-10-13 Kim F. Storm <storm@cua.dk>
7181
7182 * callproc.c (Fcall_process): Simplify handling of display arg.
7183 Resume `display_on_the_fly' once a coding system is determined.
7184
7185 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
7186
7187 2004-10-12 Kim F. Storm <storm@cua.dk>
7188
7189 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
7190 caller, such as call-process, is not going to poll for input.
7191 (calc_line_height_property): Handle case where it->object is nil.
7192
7193 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
7194
7195 2004-10-12 Kenichi Handa <handa@m17n.org>
7196
7197 * xdisp.c (get_next_display_element):
7198 If unibyte_display_via_language_environment is zero, display 8-bit
7199 chars in octal in unibyte buffer.
7200
7201 2004-10-12 Kim F. Storm <storm@cua.dk>
7202
7203 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
7204 are no ordinary bindings.
7205
7206 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7207
7208 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
7209
7210 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7211
7212 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
7213 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
7214 (make_mac_frame): Add BLOCK_INPUT around the making of a
7215 terminal frame.
7216 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
7217 * macgui.h (mktime): Use emacs_mktime.
7218 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
7219 Make a cancel file-open dialog be like C-g.
7220 * mac.c (mktime): Use emacs_mktime.
7221 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
7222 (Fmac_paste_function): Add better error handling for carbon cut/paste.
7223
7224 2004-10-10 Kim F. Storm <storm@cua.dk>
7225
7226 * keyboard.c (timer_resume_idle): New function to resume idle
7227 timer without resetting timers on the idle list.
7228 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
7229 (timer_start_idle, timer_stop_idle): Declare static.
7230 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
7231
7232 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
7233
7234 2004-10-08 Steven Tamm <steventamm@mac.com>
7235
7236 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
7237 * macterm.c (mac_check_for_quit_char): Remove warning for using
7238 NULL where 0 should be used.
7239 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
7240 objc/malloc.h
7241 * mac.c: Include time.h for Tiger compatibility.
7242
7243 2004-10-07 Kim F. Storm <storm@cua.dk>
7244
7245 * xdisp.c (redisplay_window): Fix flicker on vertical line between
7246 windows. Update vertical line after drawing window fringes, but
7247 only if actually drawing any bitmaps--or there is no fringe.
7248
7249 * xterm.c (x_update_window_end): Likewise.
7250 * macterm.c (x_update_window_end): Likewise.
7251 * w32term.c (x_update_window_end): Likewise.
7252
7253 * fringe.c (draw_window_fringes): Return value now indicates if
7254 any fringe bitmaps were redrawn (or there are no fringes).
7255
7256 * dispextern.h (draw_window_fringes): Update prototype.
7257
7258 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7259
7260 * macfns.c (mac_get_window_bounds): Add extern.
7261 (x_real_positions): Use mac_get_window_bounds.
7262
7263 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
7264 xmenu.c (YAILOM).
7265
7266 * macterm.c [!MAC_OSX]: Include Windows.h.
7267 (front_emacs_window): Rename from mac_front_window. All uses
7268 changed. Return the frontmost non-tooltip emacs window.
7269 (mac_get_window_bounds): New function.
7270 (x_calc_absolute_position): Use the difference of width and height
7271 between the inner and outer window.
7272 (x_set_offset): Specify window position by the coordinae of the
7273 outer window. Adjust the position if the title bar is completely
7274 outside the screen.
7275 (app_is_suspended, app_sleep_time): Remove unused variables.
7276 (do_app_resume, do_app_suspend): Remove their contents because
7277 window-activate/deactivate events will do the job.
7278 (do_zoom_window): Remove unused variables. Make compliant to the
7279 standard way of zooming. Set f->left_pos and f->top_pos.
7280 (XTread_socket): Don't use argument `expected'. Don't use
7281 FrontWindow to determine the clicked window. Exclude unprocessed
7282 mouseUp cases in the early stage. Add parentheses to fix operator
7283 precedence.
7284 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
7285
7286 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
7287
7288 * config.in: Regenerate.
7289
7290 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
7291 HAVE_EXECSHIELD.
7292
7293 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7294
7295 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
7296 a row if Alt or Meta has been found for that row. Also stop scanning
7297 for Keysyms for that row.
7298
7299 2004-10-04 Kim F. Storm <storm@cua.dk>
7300
7301 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
7302 to list. Include overlay arrow bitmap in return value.
7303
7304 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
7305 bars with fractional column width. If scroll bar separates two
7306 windows, move it towards the window it belongs to. Only update
7307 the padding area below the scroll bar widget when necessary,
7308 i.e. when scroll bar widget is created, moved, or resized.
7309
7310 * xdisp.c (define_frame_cursor1): Do not change frame cursor
7311 while tracking/dragging mouse.
7312 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
7313
7314 * window.c (coordinates_in_window): Relax check for cursor
7315 on vertial border between mode lines.
7316 (Fset_window_fringes): Do not allow negative widths.
7317 (Fset_window_scroll_bars): Likewise.
7318
7319 * .gdbinit (pp): Shorthand for p ARG + pr.
7320 (ff): New command: flush frame updates (X only).
7321
7322 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
7323
7324 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
7325
7326 2004-09-30 Kenichi Handa <handa@m17n.org>
7327
7328 * process.c (send_process): Free composition data.
7329
7330 * fileio.c (Finsert_file_contents): Free composition data.
7331
7332 * coding.c (code_convert_region): Don't skip ASCIIs if there are
7333 compositions to encode.
7334 (encode_coding_string): Likewise. Free composition data.
7335
7336 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
7337
7338 * coding.c (code_convert_region): Free composition data.
7339
7340 2004-09-29 Kim F. Storm <storm@cua.dk>
7341
7342 * fringe.c: Remove limit on number of bitmaps.
7343 (fringe_bitmaps, fringe_faces): Change to pointers.
7344 (max_fringe_bitmaps): New var.
7345 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
7346 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
7347
7348 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
7349 (struct glyph_row): Reorder fringe_bitmap related fields.
7350 (struct it): Likewise.
7351
7352 * w32term.c (fringe_bmp): Change to pointer.
7353 (max_fringe_bmp): New var.
7354 (w32_define_fringe_bitmap): Expand fringe_bmp.
7355 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
7356 (w32_destroy_fringe_bitmap): Likewise.
7357
7358 2004-09-29 Kim F. Storm <storm@cua.dk>
7359
7360 * fringe.c: Simplify last change.
7361 (lookup_fringe_bitmap): New function.
7362 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
7363 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
7364 Keep standard bitmaps in Vfringe_bitmaps.
7365 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
7366 (Fset_fringe_bitmap_face): Likewise.
7367
7368 * dispextern.h (lookup_fringe_bitmap): Add prototype.
7369 (valid_fringe_bitmap_p): Remove prototype.
7370
7371 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
7372
7373 2004-09-29 Kim F. Storm <storm@cua.dk>
7374
7375 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
7376 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
7377
7378 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
7379
7380 * fringe.c (Vfringe_bitmaps): New variable.
7381 (syms_of_fringe): DEFVAR_LISP it.
7382 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
7383 Change arg to Lisp_Object and fail if not an integer.
7384 (get_fringe_bitmap_name, resolve_fringe_bitmap)
7385 (destroy_fringe_bitmap): New functions.
7386 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
7387 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
7388 clear its fringe property.
7389 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
7390 Fdestroy_fringe_bitmap.
7391 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
7392 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
7393 and set fringe property. Signal error if no free slots.
7394 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
7395 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
7396
7397 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
7398 symbols with a fringe property.
7399
7400 2004-09-27 Kim F. Storm <storm@cua.dk>
7401
7402 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
7403 Doc fix. Format may now be a symbol or alist, not a cons.
7404
7405 * fringe.c (update_window_fringes): Handle new formats of
7406 indicate-buffer-boundaries (symbol or alist). No longer
7407 allow a simple cons.
7408 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
7409
7410 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7411
7412 * config.in: Rebuild.
7413
7414 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7415
7416 * config.in: Rebuild.
7417
7418 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
7419
7420 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
7421
7422 * xterm.c (x_term_init): Work around a bug in some X servers.
7423
7424 2004-09-18 Richard M. Stallman <rms@gnu.org>
7425
7426 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
7427
7428 * xdisp.c (try_window_reusing_current_matrix):
7429 Handle the case where we reach the old displayed text,
7430 out of sync with the old line boundary.
7431
7432 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
7433
7434 * fileio.c (Finsert_file_contents): Fix case of replacement in a
7435 narrowed buffer.
7436
7437 2004-09-14 Kim F. Storm <storm@cua.dk>
7438
7439 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
7440
7441 * xfaces.c (Qface_no_inherit): New var.
7442 (syms_of_xfaces): Intern and staticpro it.
7443 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
7444 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
7445 Don't increment face_change_count when face has non-nil
7446 face-no-inherit property.
7447
7448 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
7449
7450 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
7451 (Fbyte_code): Remove dead code after `wrong_type_argument'.
7452
7453 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
7454 before doing the mark_stack_check_gcpros since they're not on the stack.
7455
7456 2004-09-12 Kim F. Storm <storm@cua.dk>
7457
7458 * editfns.c (Fformat): Handle format strings with multiple text
7459 properties. Reverse text property list from the format string,
7460 so the positions are in increasing order.
7461
7462 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7463
7464 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
7465 x_uncatch_errors so that possible protocol errors are delivered.
7466
7467 2004-09-10 Eli Zaretskii <eliz@gnu.org>
7468
7469 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
7470 blockinput.h.
7471 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
7472 charset.h, and coding.h
7473 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
7474 (term.o): Depend on window.h and keymap.h.
7475 (abbrev.o): Depend on syntax.h.
7476 (callint.o): Depend on keymap.h.
7477 (casefiddle.o): Depend on charset.h and keymap.h.
7478 (category.o): Depend on keymap.h.
7479 (coding.o): Depend on dispextern.h.
7480 (cmds.o): Depend on keyboard.h and keymap.h.
7481 (dispnew.o): Depend on indent.h and intervals.h.
7482 (doc.o): Depend on keymap.h.
7483 (editfns.o): Depend on frame.h.
7484 (emacs.o): Depend on dispextern.h.
7485 (fileio.o): Don't depend on ccl.h.
7486 (filelock.o): Depend on charset.h and coding.h.
7487 (frame.o): Depend on w32term.h and macterm.h.
7488 (insdel.o): Depend on region-cache.h.
7489 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
7490 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
7491 (search.o): Depend on $(INTERVALS_SRC).
7492 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
7493 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
7494 xterm.h, w32term.h, and macterm.h.
7495 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
7496 w32term.h, and macterm.h.
7497 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
7498 region-cache.h, xterm.h, w32term.h, and macterm.h.
7499 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
7500 (data.o): Depend on frame.h.
7501 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
7502 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
7503 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
7504 (intervals.o): Depend on keymap.h.
7505
7506 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
7507 Add debugging print-out to termscript.
7508
7509 2004-09-09 Richard M. Stallman <rms@gnu.org>
7510
7511 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
7512
7513 2004-09-08 Richard M. Stallman <rms@gnu.org>
7514
7515 * window.c (Fset_window_buffer): Doc fix.
7516
7517 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
7518
7519 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
7520
7521 * minibuf.c (history_delete_duplicates): New variable.
7522 (read_minibuf): Use it.
7523 (syms_of_minibuf): Create the corresponding lisp variable.
7524
7525 2004-09-08 Kim F. Storm <storm@cua.dk>
7526
7527 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
7528 overlay just before point.
7529
7530 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
7531
7532 * buffer.h (struct buffer): Add auto_save_file_format field.
7533 * buffer.c (reset_buffer, init_buffer_once):
7534 Handle auto_save_file_format field.
7535 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
7536 `buffer-auto-save-file-format'.
7537 * fileio.c: Delete declaration for removed Vauto_save_file_format.
7538 (build_annotations): Adapt to replacement of
7539 `auto-save-file-format' with the new buffer-local variable
7540 `buffer-auto-save-file-format'.
7541 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
7542
7543 2004-09-07 Jason Rumney <jasonr@gnu.org>
7544
7545 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
7546
7547 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
7548 Handle Unicode menu titles.
7549
7550 2004-09-07 Kim F. Storm <storm@cua.dk>
7551
7552 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
7553 property from text property or overlay strings at point.
7554
7555 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7556
7557 * xmenu.c (update_submenu_strings): YAILOM.
7558 (set_frame_menubar): Make sure last_i is initialized.
7559
7560 2004-09-03 Jason Rumney <jasonr@gnu.org>
7561
7562 * w32menu.c (_widget_value): Add lname and lkey.
7563 (digest_single_submenu): Set lname and lkey in widget_value
7564 instead of name and key.
7565 (update_submenu_strings): New function.
7566 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7567 call update_submenu_strings.
7568
7569 * w32menu.c (globals_of_w32menu): Check for Unicode API.
7570 (digest_single_submenu, w32_menu_show): Encode menu strings as
7571 UTF-8 if Unicode API is available.
7572 (utf8to16): New function.
7573 (add_menu_item): Use it when calling Unicode API.
7574
7575 2004-09-03 Kim F. Storm <storm@cua.dk>
7576
7577 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
7578 in overlay or text-property strings; set cursor on corresponding
7579 glyph rather than at end of the string.
7580
7581 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7582
7583 * macfns.c (x_real_positions): Save the current window port and
7584 set a new one before obtaining the global coordinate.
7585 Use FRAME_MAC_WINDOW.
7586 (x_set_name, x_set_title): Encode title to UTF8.
7587 Use SetWindowTitleWithCFString.
7588 (Fx_server_version): Get correct OS version.
7589
7590 * macmenu.c (add_menu_item): Remove unused variable `i'.
7591 Don't let separator items destroy refence constants of other menu items.
7592
7593 * macterm.c (x_update_end): Move SetPortWindowPort to inside
7594 BLOCK_INPUT.
7595 (x_set_offset): Use FRAME_MAC_WINDOW.
7596
7597 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
7598 nontext_cursor if it is on a scroll bar.
7599
7600 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
7601 Carbon support.
7602 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
7603 Use LIBS_CARBON.
7604
7605 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7606
7607 * xfns.c (x_set_name_internal): New function. Check if we shall call
7608 xfree before ENCODE_UTF_8.
7609 (x_set_name, x_set_title): Call x_set_name_internal.
7610
7611 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
7612
7613 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
7614 reload it.
7615
7616 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7617
7618 * macmenu.c (_widget_value): Add lname and lkey.
7619 (single_submenu): Set lname and lkey in widget_value
7620 instead of name and key.
7621 (update_submenu_strings): New function.
7622 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7623 call update_submenu_strings.
7624
7625 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
7626 instead of name and key.
7627 (update_submenu_strings): New function.
7628 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7629 call update_submenu_strings.
7630
7631 * gtkutil.h (_widget_value): Added lname and lkey.
7632
7633 2004-08-30 Steven Tamm <steventamm@mac.com>
7634
7635 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
7636 by using different names for inner loop variables.
7637
7638 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7639
7640 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
7641 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
7642
7643 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
7644 tool bar items is 0.
7645
7646 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7647
7648 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
7649 strings in menu items.
7650 (single_submenu): Use ENCODE_MENU_STRING
7651 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
7652 button release isn't passed to event loop
7653 (add_menu_item): Use SetMenuItemWithCFString
7654
7655 2004-08-26 Steven Tamm <steventamm@mac.com>
7656
7657 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7658 tool-bar/menu click.
7659 * macfns.c (Fx_file_dialog): Implement using NavServices.
7660
7661 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7662
7663 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
7664
7665 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7666 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7667 (x_top_window_to_frame): Return 0 if wdesc is None.
7668
7669 2004-08-22 Richard M. Stallman <rms@gnu.org>
7670
7671 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
7672 HAVE_TERMIOS]: If there's no char for this signal, drop through
7673 and use system calls.
7674
7675 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
7676
7677 2004-08-20 Kim F. Storm <storm@cua.dk>
7678
7679 * process.c (wait_reading_process_output): Rename from
7680 wait_reading_process_input. All uses changed.
7681 (wait_reading_process_output_1): Rename from
7682 wait_reading_process_input_1. All uses changed.
7683
7684 * dispnew.c (Fsleep_for): Remove obsolete code.
7685
7686 2004-08-20 Kenichi Handa <handa@m17n.org>
7687
7688 * syntax.c (skip_chars): Fix for unibyte case.
7689
7690 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7691
7692 * syntax.c (char_quoted): Mixup byte/char pos.
7693 (back_comment): Fixup globals in all cases.
7694
7695 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7696
7697 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
7698 passing it to gtk_window_set_title.
7699
7700 2004-08-19 Kim F. Storm <storm@cua.dk>
7701
7702 * process.c (wait_reading_process_input): Clean up.
7703 Add wait_for_cell, wait_proc, and just_wait_proc args
7704 to avoid overloading `read_kbd' and `do_display' args.
7705 Change read_kbd arg to int. All callers changed.
7706
7707 * process.c (process_send_signal): Use CDISABLE.
7708
7709 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
7710
7711 2004-08-18 Kim F. Storm <storm@cua.dk>
7712
7713 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
7714 forward to wait_reading_process_input via DO_DISPLAY arg.
7715 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
7716 object, only process output from that process; also inhibit
7717 running timers if DO_DISPLAY==-2.
7718
7719 2004-08-17 Kim F. Storm <storm@cua.dk>
7720
7721 * process.c (process_send_signal): Fix last change--use
7722 _POSIX_VDISABLE instead of CVDISABLE when available.
7723
7724 2004-08-16 Richard M. Stallman <rms@gnu.org>
7725
7726 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
7727 Set VQUIT and VINTR chars to the standard ones if they are unset.
7728 [AIX]: Don't do that here. And don't force VINTR to standard
7729 when SIGNALS_VIA_CHARACTERS.
7730
7731 * process.c (process_send_signal)
7732 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
7733 Do nothing if the character is CVDISABLE.
7734
7735 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
7736
7737 * intervals.c (move_if_not_intangible):
7738 Force POSITION to be between BEGV and ZV.
7739
7740 2004-08-14 John Paul Wallington <jpw@gnu.org>
7741
7742 * buffer.c (Frestore_buffer_modified_p): Doc fix.
7743
7744 * fileio.c (Fread_file_name): Doc fix.
7745
7746 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
7747
7748 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
7749
7750 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
7751
7752 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
7753
7754 * keyboard.c: Declare Qdisabled_command_function instead of
7755 Qdisabled_command_hook.
7756 (Fcommand_execute): Use Qdisabled_command_function instead of
7757 Qdisabled_command_hook.
7758 (syms_of_keyboard): Ditto.
7759
7760 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
7761
7762 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
7763 (syms_of_keymap) <key-translation-map>: Doc fixes.
7764
7765 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
7766
7767 * window.c (window_list_1): YAILOM.
7768
7769 * fileio.c (make_temp_name): Handle multibyte prefixes.
7770
7771 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
7772
7773 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
7774 Doc fix.
7775
7776 2004-08-03 Kenichi Handa <handa@m17n.org>
7777
7778 * coding.c (decode_coding_string): Adjust coding->consumed, and
7779 etc. with shrinked_bytes.
7780
7781 2004-08-03 Kim F. Storm <storm@cua.dk>
7782
7783 * indent.c (compute_motion): Fix check for full width window
7784 in non-window case. Do not count left truncation glyph on
7785 window systems.
7786
7787 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
7788
7789 * data.c (Finteractive_form): Doc fix.
7790
7791 2004-08-02 Kim F. Storm <storm@cua.dk>
7792
7793 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
7794 properly accounting for continuation glyph on non-window systems.
7795 (Fcompute_motion): Use actual window width if WIDTH is nil, and
7796 actual window width/height if TOPOS is nil, properly accounting for
7797 continuation glyphs on non-window systems, and optional header lines.
7798 (vmotion): Let compute_motion calculate actual window width.
7799
7800 * window.c (window_scroll_line_based): Let compute_motion
7801 calculate actual window width.
7802
7803 2004-08-02 Kim F. Storm <storm@cua.dk>
7804
7805 * process.c (read_process_output): Use whole read buffer.
7806 Don't trigger adaptive read buffering on errors.
7807
7808 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
7809
7810 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
7811
7812 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
7813
7814 * callint.c (Fcall_interactively): Doc fix.
7815
7816 2004-07-30 Richard M. Stallman <rms@gnu.org>
7817
7818 * abbrev.c (Fexpand_abbrev): Undo previous change.
7819
7820 2004-07-30 Kim F. Storm <storm@cua.dk>
7821
7822 * editfns.c (Fformat): Allocate extra (dummy) element in info.
7823
7824 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
7825
7826 * eval.c (Fdefvar, Fdefconst): Doc fixes.
7827
7828 2004-07-27 Kim F. Storm <storm@cua.dk>
7829
7830 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
7831 we have ensured that the glyph fits on the current line (or returned
7832 MOVE_LINE_CONTINUED otherwise).
7833
7834 2004-07-26 Kim F. Storm <storm@cua.dk>
7835
7836 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
7837 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
7838 if target position is at end of display line but char is not a newline.
7839
7840 2004-07-25 Richard M. Stallman <rms@gnu.org>
7841
7842 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
7843 instead of ON_VERTICAL_BORDER, when on scroll bar.
7844 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
7845
7846 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
7847
7848 * window.c (Fcoordinates_in_window_p):
7849 Take account of FRAME_INTERNAL_BORDER_WIDTH.
7850
7851 * alloc.c (check_cons_list): New function (contents commented out).
7852
7853 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
7854
7855 * xfaces.c (Fcolor_supported_p): Doc fix.
7856
7857 * frame.c (Fselect_frame, Fset_frame_selected_window)
7858 (Fframe_visible_p, Fraise_frame): Doc fixes.
7859
7860 2004-07-24 Richard M. Stallman <rms@gnu.org>
7861
7862 * keyboard.h (not_single_kboard_state): Declare.
7863
7864 * fileio.c (Fwrite_region): Doc fix.
7865
7866 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
7867
7868 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
7869 only when a real abbrev is present.
7870
7871 * xfns.c (x_icon_verify): New function.
7872 (Fx_create_frame): Use it.
7873
7874 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
7875
7876 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
7877
7878 2004-07-21 Kim F. Storm <storm@cua.dk>
7879
7880 * window.h (struct glyph_matrix): New members nrows_scale_factor
7881 and ncols_scale_factor.
7882
7883 * window.c (make_window): Initialize nrows_scale_factor and
7884 ncols_scale_factor members.
7885
7886 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
7887 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
7888 (required_matrix_height): Apply nrows_scale_factor.
7889 (required_matrix_width): Apply ncols_scale_factor.
7890
7891 * xdisp.c (display_line): Increment nrows_scale_factor and set
7892 fonts_changed_p if past last allocated row.
7893 (append_glyph, append_composite_glyph, produce_image_glyph)
7894 (append_stretch_glyph): Increment ncols_scale_factor and set
7895 fonts_changed_p if current area is full.
7896
7897 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7898
7899 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
7900
7901 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
7902
7903 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
7904 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
7905 (Fset_window_start, Fscroll_up, Fscroll_down)
7906 (Fother_window_for_scrolling, Fscroll_other_window)
7907 (Fsave_window_excursion, Fset_window_vscroll)
7908 (syms_of_window) <window-size-fixed>: Doc fixes.
7909
7910 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7911
7912 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
7913 ENCODE_SYSTEM for filenames.
7914
7915 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7916
7917 * mac.c (sys_select): Block input around call to
7918 ReceiveNextEvent to prevent breakage. Correctly handle
7919 blocking on event queue only by calling ReceiveNextEvent
7920 instead of select (since GUI events aren't on an fd).
7921 (sys_read): Remove function
7922 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
7923
7924 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7925
7926 * mac.c (sys_select): Redo sys_select to use alarm-based
7927 polling instead of 1 sec timeouts (like solaris).
7928
7929 * macterm.c (x_make_frame_visible): Comment in polling on
7930 frame creation.
7931
7932 * keyboard.c: Undef SIGIO on Carbon
7933
7934 * atimer.c (alarm_signal_handler): Call alarm handlers after
7935 scheduling.
7936
7937 * eval.c (Feval): Remove quit_char test
7938
7939 * process.c (wait_reading_process_input): Remove clearing
7940 stdin for select call on process input.
7941
7942 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
7943
7944 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
7945 capitalization error in docstring.
7946
7947 2004-07-17 Juanma Barranquero <lektu@terra.es>
7948
7949 * keyboard.c (not_single_kboard_state): Do nothing unless
7950 MULTI_KBOARD is defined.
7951
7952 2004-07-17 Richard M. Stallman <rms@gnu.org>
7953
7954 * window.c (coordinates_in_window): Inside the window but outside
7955 its box to the L or R, return ON_VERTICAL_BORDER.
7956 (window_list_1): Rotate the list to start with WINDOW.
7957
7958 * print.c (print_preprocess): Test for print_depth at limit
7959 before entering in being_printed.
7960
7961 * keyboard.c (not_single_kboard_state): New function.
7962 (stuff_buffered_input): Now no-op only if no SIGTSTP.
7963
7964 * frame.c (Fdelete_frame): If we're in single_bboard_state on
7965 this kboard, and we delete its last frame, go to any_kboard_state.
7966
7967 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
7968
7969 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7970
7971 * w32fns.c (Fx_file_dialog): Encode strings in system coding
7972 system before passing them to OS functions for display.
7973
7974 2004-07-15 David Kastrup <dak@gnu.org>
7975
7976 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
7977 Apparently fixes an abort condition.
7978
7979 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
7980
7981 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
7982 instead of a cons.
7983
7984 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
7985
7986 * keyboard.c (echo_dash): Do nothing if there already is a dash
7987 at the end of the echo string.
7988
7989 2004-07-12 Kim F. Storm <storm@cua.dk>
7990
7991 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
7992 if GC_MARK_STACK.
7993
7994 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
7995
7996 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
7997
7998 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
7999 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
8000 (Freplace_buffer_in_windows, Fset_window_buffer)
8001 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
8002 (syms_of_window): Expand docstring of `display-buffer-function'.
8003
8004 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
8005
8006 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
8007 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
8008 that time values of the type (HIGH . LOW) are considered obsolete.
8009
8010 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
8011
8012 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
8013 docstring.
8014
8015 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
8016
8017 2004-07-06 John Paul Wallington <jpw@gnu.org>
8018
8019 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
8020
8021 * fns.c (Fclear_string): Signal an error if STRING is not a string.
8022
8023 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8024
8025 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
8026 instead of CGMainDisplayID (only in OSX 10.2 and later).
8027
8028 2004-07-04 John Paul Wallington <jpw@gnu.org>
8029
8030 * fileio.c (read_file_name_completion_ignore_case): New variable.
8031 (syms_of_fileio): Declare and initialise it.
8032 (Fread_file_name): Bind `completion-ignore-case' to respect it.
8033
8034 2004-07-03 Eli Zaretskii <eliz@gnu.org>
8035
8036 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
8037 for event.x and event.y.
8038
8039 2004-07-01 Kenichi Handa <handa@m17n.org>
8040
8041 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
8042 after getting a new string by pre-write-conversion.
8043
8044 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
8045
8046 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
8047 (x_calc_absolute_position): Remove unused var `child'.
8048
8049 * xfaces.c (x_supports_face_attributes_p)
8050 (Fdisplay_supports_face_attributes_p): YAILOM.
8051 (tty_supports_face_attributes_p): Remove unused var `i'.
8052
8053 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
8054 back_unibyte_ok.
8055
8056 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
8057
8058 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
8059
8060 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
8061
8062 2004-06-30 Andreas Schwab <schwab@suse.de>
8063
8064 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
8065 (Finit_image_library): Pass LIBRARIES through to
8066 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
8067 (lookup_image_type): Pass Qnil as second argument to
8068 Finit_image_library.
8069
8070 * lisp.h (Finit_image_library): Declare.
8071
8072 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8073
8074 * macterm.c (do_window_activate, do_window_deactivate): Remove.
8075 (XTread_socket): Send mouse button events to the toolbox
8076 dispatcher even when the mouse is grabbed. Don't process window
8077 activate events for non-Emacs windows. Replace function calls to
8078 do_window_activate and do_window_deactivate with their contents.
8079 Reset mouse grabbing status when a window is deactivated.
8080
8081 2004-06-29 Steven Tamm <steventamm@mac.com>
8082
8083 * macterm.c (mac_get_emulated_btn)
8084 (mac_event_to_emacs_modifiers): Fix emulated mouse button
8085 support to correctly mask out modifiers.
8086
8087 2004-06-29 David Kastrup <dak@gnu.org>
8088
8089 * search.c (Fset_match_data): Allow buffer before end of list
8090 which can happen if set-match-data is using a pre-consed list.
8091
8092 2004-06-28 Steven Tamm <steventamm@mac.com>
8093
8094 * macterm.c (XTread_socket): Correctly set the frame position
8095 after the window is moved.
8096
8097 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8098
8099 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
8100 gpix and gmask just before return to avoid memory leak.
8101 (xg_get_image_for_pixmap): Add workaround for monochrome displays
8102 so insensitive and activated icons look ok.
8103
8104 2004-06-27 Jason Rumney <jasonr@gnu.org>
8105
8106 * w32fns.c (file_dialog_callback): Disable edit control if set
8107 to directories only on CDN_INITDONE message.
8108 (Fx_file_dialog): Default to directories only when prompt starts
8109 with "Dired".
8110
8111 2004-06-25 Kim F. Storm <storm@cua.dk>
8112
8113 * alloc.c (allocate_misc): Update total_free_markers.
8114 (free_misc): New function.
8115 (safe_alloca_unwind, free_marker): Use it.
8116
8117 * lisp.h (free_misc): Add prototype.
8118
8119 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
8120
8121 2004-06-24 Richard M. Stallman <rms@gnu.org>
8122
8123 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
8124 (syms_of_emacs): Lisp variables deleted.
8125
8126 2004-06-23 David Kastrup <dak@gnu.org>
8127
8128 * search.c (Freplace_match): Adjust the match-data more thoroughly
8129 when replacing strings in the buffer.
8130 (Fmatch_data): When INTEGERS is non-nil and the last match was in
8131 a buffer, add the buffer as last element to the match data.
8132 (Fset_match_data): If an additional element of the match-data is a
8133 buffer, restore it to last_thing_searched.
8134 (save_search_regs): Save last_thing_searched as part of the match data.
8135 (restore_match_data): Restore it again.
8136
8137 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
8138
8139 * keymap.c (Ftext_char_description): Doc fix.
8140 * doc.c (Fsnarf_documentation): Doc fix.
8141
8142 2004-06-22 Kim F. Storm <storm@cua.dk>
8143
8144 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
8145
8146 * lisp.h (struct Lisp_Save_Value): New member dogc.
8147 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
8148 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
8149 (SAFE_FREE_LISP): New macro.
8150
8151 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
8152 (make_save_value): Init new dogc member.
8153 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
8154
8155 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
8156 SAFE_FREE_LISP macros.
8157
8158 2004-06-22 Kim F. Storm <storm@cua.dk>
8159
8160 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
8161 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
8162 in that memory area are unknown to GC. Add comments.
8163
8164 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
8165
8166 2004-06-21 Kim F. Storm <storm@cua.dk>
8167
8168 * lisp.h (MAX_ALLOCA): Define here.
8169 (safe_alloca_unwind): Add prototype.
8170 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
8171
8172 * alloc.c (safe_alloca_unwind): New function.
8173
8174 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
8175
8176 * charset.c (Fstring): Use SAFE_ALLOCA.
8177
8178 * coding.c (MAX_ALLOCA): Remove define.
8179
8180 * data.c (MAX_ALLOCA): Remove define.
8181 (Faset): Use SAFE_ALLOCA.
8182
8183 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
8184
8185 * fns.c (string_make_multibyte, string_to_multibyte)
8186 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
8187 (MAX_ALLOCA): Remove define.
8188 (Fbase64_encode_region, Fbase64_encode_string)
8189 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
8190 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
8191 memory leak if encoding fails.
8192
8193 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
8194
8195 2004-06-21 Eli Zaretskii <eliz@gnu.org>
8196
8197 * print.c (Fwith_output_to_temp_buffer): Doc fix.
8198
8199 2004-06-20 Richard M. Stallman <rms@gnu.org>
8200
8201 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
8202
8203 * search.c (match_limit): Cleaner err msg when no match data available.
8204
8205 * window.c (syms_of_window): Doc fix.
8206
8207 * keyboard.c (command_loop_1): Handle values `only' and `identity'
8208 for Vtransient_mark_mode.
8209
8210 * buffer.c (syms_of_buffer): Doc fix.
8211
8212 2004-06-21 David Kastrup <dak@gnu.org>
8213
8214 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
8215 and unbinding of `case-fold-search' according to
8216 `completion-ignore-case' around calls of string-match and
8217 predicates, respectively. Should give satisfactory performance
8218 in all relevant cases.
8219
8220 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8221
8222 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
8223 clip_x/y_origin.
8224
8225 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
8226
8227 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
8228
8229 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
8230 on Mac OSX.
8231
8232 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
8233
8234 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
8235
8236 2004-06-16 Kim F. Storm <storm@cua.dk>
8237
8238 * dispextern.h (Vimage_types): Remove extern.
8239
8240 2004-06-16 Miles Bader <miles@gnu.org>
8241
8242 * image.c (lookup_image_type): Initialize image type if necessary.
8243
8244 2004-06-15 Kim F. Storm <storm@cua.dk>
8245
8246 * xdisp.c (try_cursor_movement): Exclude header line from scroll
8247 margin at top of window.
8248 (try_window_reusing_current_matrix): Calculate proper cursor position
8249 after scrolling up with non-zero scroll margin, as the old cursor
8250 position corresponds to value of PT before executing this command.
8251 (try_window_id): Consider scroll margin at bottom of window too;
8252 otherwise we fail to scroll when hl-line-mode is enabled.
8253
8254 * syntax.c (skip_chars): Only recognize [:class:] when it has the
8255 proper format and class is a lower-case word.
8256
8257 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8258
8259 * gtkutil.c (xg_get_image_for_pixmap): New function.
8260 (xg_get_gdk_pixmap_and_mask): Remove.
8261 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
8262 xg_get_gdk_pixmap_and_mask.
8263
8264 * xterm.h (struct x_display_info): Typo in comment fixed.
8265
8266 2004-06-14 Juanma Barranquero <lektu@terra.es>
8267
8268 * dispextern.h (Vimage_types): Make it conditional on
8269 HAVE_WINDOW_SYSTEM.
8270
8271 * image.c (Vimage_types): Move from xdisp.c.
8272 (Vimage_type_cache): New variable.
8273 (define_image_type): New argument indicating whether an image
8274 library was loaded; cache loaded status and return t on success,
8275 nil otherwise.
8276 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
8277 (w32_delayed_load): New function to load an image library from a
8278 list of possible filenames.
8279 (init_xpm_functions, init_png_functions, init_jpeg_functions)
8280 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
8281 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
8282 (Finit_image_library): New function, extracted from `init_image'.
8283 Try to initialize an image library on demand and cache whether we
8284 were successful or not.
8285 (syms_of_image): Initialize `Vimage_types' and
8286 `Vimage_type_cache'. Add recognized image types to Vimage_types.
8287 Export `init-image-library'.
8288 (init_image): Remove initialization of all image types, except xbm
8289 and pbm.
8290
8291 * xdisp.c (Vimage_types): Delete (moved to image.c).
8292
8293 2004-06-14 Andreas Schwab <schwab@suse.de>
8294
8295 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
8296 Avoid calling specbind when completion-regexp-list is empty.
8297
8298 2004-06-13 Richard M. Stallman <rms@gnu.org>
8299
8300 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
8301 (re_wctype, re_iswctype, re_wctype_to_bit):
8302 Non-function definitions moved here from regex.c.
8303
8304 * regex.c (re_wctype, re_iswctype): Function defs longer static.
8305 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
8306 (re_wctype, re_iswctype, re_wctype_to_bit):
8307 Non-function definitions moved to regex.h.
8308
8309 * window.c (Fselect_window): Doc fix.
8310
8311 * syntax.c: Include regex.h.
8312 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
8313 If requested, make a list of classes, then check the scanned
8314 chars for membership in them.
8315 (in_classes): New function.
8316 Doc fix.
8317
8318 * keyboard.c (cmd_error): Don't call any_kboard_state
8319 if inside a recursive edit level.
8320
8321 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8322
8323 * keyboard.c (command_loop): Call any_kboard_state before
8324 command_loop_2 when at top level.
8325
8326 2004-06-13 Andreas Schwab <schwab@suse.de>
8327
8328 * print.c (print_object): Always use %ld for printing EMACS_INT.
8329
8330 * keyboard.c (cancel_hourglass_unwind): Return a value.
8331 (modify_event_symbol): Always use %ld for printing EMACS_INT.
8332 (Fexecute_extended_command): Likewise.
8333
8334 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
8335 avoid clashes.
8336 (SYNTAX): Likewise.
8337 (SYNTAX_WITH_FLAGS): Likewise.
8338 (SYNTAX_MATCH): Likewise.
8339
8340 * syntax.c (char_quoted): Avoid warning about undefined operation.
8341 (find_defun_start): Likewise.
8342 (scan_lists): Likewise.
8343 (INC_FROM): Likewise.
8344 (scan_sexps_forward): Likewise.
8345
8346 * image.c: Include <ctype.h>.
8347
8348 * xfaces.c (face_attr_equal_p): Declare parameters.
8349
8350 2004-06-13 Kenichi Handa <handa@m17n.org>
8351
8352 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
8353
8354 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
8355
8356 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
8357
8358 2004-06-12 Kenichi Handa <handa@m17n.org>
8359
8360 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
8361 ccl_prog_stack_struct and update it.
8362 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
8363 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
8364 ccl->eof_ic on EOF.
8365 (ccl_debug_hook): New function.
8366 (struct ccl_prog_stack): New member eof_ic.
8367 (ccl_driver): Handle EOF in subrountine call correctly.
8368
8369 2004-06-11 Kenichi Handa <handa@m17n.org>
8370
8371 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
8372
8373 2004-06-11 Kim F. Storm <storm@cua.dk>
8374
8375 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
8376
8377 2004-06-11 Juanma Barranquero <lektu@terra.es>
8378
8379 * keyboard.c (Fposn_at_point): Doc fix.
8380
8381 2004-06-11 David Kastrup <dak@gnu.org>
8382
8383 * search.c (match_limit): Don't flag an error if match-data
8384 exceeding the allocated search_regs.num_regs gets requested, just
8385 return Qnil.
8386
8387 2004-06-08 Miles Bader <miles@gnu.org>
8388
8389 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
8390
8391 2004-06-07 Juanma Barranquero <lektu@terra.es>
8392
8393 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
8394 (Fcurrent_time_string, Fcurrent_time_zone)
8395 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
8396
8397 2004-06-07 Miles Bader <miles@gnu.org>
8398
8399 * xfaces.c (struct named_merge_point): New type.
8400 (push_named_merge_point): New function.
8401 (merge_named_face): New function.
8402 (merge_face_ref, face_at_buffer_position, face_at_string_position):
8403 Use `merge_named_face'.
8404 (merge_face_inheritance): Function removed.
8405 (merge_face_ref): Rename from `merge_face_vector_with_property'.
8406 Add new `err_msgs' and `named_merge_points' args. Return error
8407 status. Only print error messages if ERR_MSGS is true. Don't try to
8408 do :inherit attribute validation.
8409 (merge_face_heights): Handle `unspecified' in both directions.
8410 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
8411 Call `merge_face_ref' instead of `merge_face_inheritance'.
8412 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
8413 (compute_char_face, face_at_buffer_position)
8414 (face_at_string_position): Call `merge_face_ref' instead of
8415 `merge_face_vector_with_property'.
8416
8417 2004-06-07 Kenichi Handa <handa@m17n.org>
8418
8419 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
8420 the necessary places.
8421
8422 2004-06-07 Kim F. Storm <storm@cua.dk>
8423
8424 * process.c (Fdelete_process): Undo 2004-05-28 change.
8425 Instead, call status_notify also for network process.
8426 (status_message): Use process instead of status as arg.
8427 Give messages "deleted" or "connection broken by remote peer" for
8428 an exited network process.
8429 (status_notify): Change call to status_message.
8430 (read_process_output): Increase readmax to 4096. Do not increase
8431 buffer size for datagram channels (default is now large enough).
8432
8433 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
8434
8435 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
8436 problem due to newly defined variable.
8437
8438 2004-06-06 Miles Bader <miles@gnu.org>
8439
8440 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
8441 immediately if non-interactive or not initialized.
8442
8443 2004-06-05 Richard M. Stallman <rms@gnu.org>
8444
8445 * minibuf.c (Fcompleting_read): Doc fix.
8446
8447 2004-06-05 Andreas Schwab <schwab@suse.de>
8448
8449 * macfns.c (x_create_tip_frame): Fix declaration after statement.
8450
8451 2004-06-05 Juanma Barranquero <lektu@terra.es>
8452
8453 * keymap.c (Fdescribe_vector): Fix docstring.
8454 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
8455
8456 2004-06-05 Miles Bader <miles@gnu.org>
8457
8458 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
8459 attributes have different values than the default face.
8460
8461 2004-06-04 Eli Zaretskii <eliz@gnu.org>
8462
8463 * xfaces.c (x_supports_face_attributes_p): Make this function
8464 conditional on HAVE_WINDOW_SYSTEM.
8465 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
8466 Don't call x_supports_face_attributes_p if it was not compiled in.
8467
8468 2004-06-04 Miles Bader <miles@gnu.org>
8469
8470 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
8471 from Ftty_supports_face_attributes_p.
8472 (x_supports_face_attributes_p): New function.
8473 (Ftty_supports_face_attributes_p): Function deleted.
8474 (Fdisplay_supports_face_attributes_p): New function.
8475 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
8476 (face_attr_equal_p): New function.
8477 (lface_equal_p): Use it.
8478
8479 2004-06-03 Juanma Barranquero <lektu@terra.es>
8480
8481 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
8482 (Vw32_color_map): Fix typo in docstring.
8483 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
8484 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
8485 Make argument names match their use in docstring.
8486
8487 2004-06-02 Juanma Barranquero <lektu@terra.es>
8488
8489 Work around bugs/problems with MinGW builds of graphics libraries
8490 called from MSVC builds of Emacs.
8491
8492 * image.c (lookup_image): Make pointer to img static.
8493 (png_read_from_memory): Disable "global" optimization.
8494
8495 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8496
8497 * eval.c (Fcondition_case): Fix usage. Simplify.
8498
8499 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
8500
8501 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8502
8503 * macfns.c: Don't include ccl.h.
8504 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
8505 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
8506 TextUtils.h.
8507 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
8508 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
8509 display height/width.
8510 (compute_tip_xy, Vx_max_tooltip_size): Declare.
8511 (unwind_create_tip_frame, compute_tip_xy): New functions.
8512 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
8513 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
8514 and last_show_tip_args.
8515
8516 * macgui.h [!MAC_OSX]: Include Gestalt.h.
8517 (Cursor, No_Cursor): New defines.
8518 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
8519 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
8520
8521 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
8522
8523 * macterm.c: Don't include Gestalt.h.
8524 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
8525 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
8526 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
8527 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
8528 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
8529 (construct_mouse_click, XTmouse_position)
8530 (x_scroll_bar_report_motion, x_calc_absolute_position)
8531 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
8532 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
8533 (note_mouse_movement): Clear the mouse face and reset the pointer
8534 shape when the pointer goes outside the frame without grabbing.
8535 (mac_front_window): New function.
8536 (mac_window_to_frame): New macro.
8537 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
8538 (do_window_activate, do_window_deactivate, do_app_resume)
8539 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
8540 (do_zoom_window, mac_do_receive_drag, XTread_socket)
8541 (mac_check_for_quit_char): Use mac_front_window and/or
8542 mac_window_to_frame.
8543 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
8544 scroll-bar click event.
8545 (mac_define_frame_cursor): Change the pointer shape.
8546 (x_free_frame_resources): Reset tip_window to NULL when it is
8547 disposed of.
8548 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
8549 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
8550 (do_window_update): Don't do anything if the updated window is the
8551 tooltip window.
8552 (do_mouse_moved): Handle mouse movement events here (previously in
8553 XTread_socket). Clear the mouse face if
8554 dpyinfo->mouse_face_hidden is set.
8555 (do_os_event, do_events): Remove (now in XTread_socket).
8556 (XTread_socket): Immediately return if interrupt_input_blocked.
8557 Loop until all the events in the queue are processed.
8558 Rearrange codes for mouse grabbing. Add tooltip support. Include the
8559 contents of do_os_event and do_events. Remove mouse movement
8560 handling (now in do_mouse_moved). Add the case where
8561 Vmouse_highlight has an integer value.
8562 (NewMacWindow): Remove.
8563 (make_mac_frame): Do what NewMacWindow previously did. Don't do
8564 excess initializations.
8565 (make_mac_terminal_frame): Previous initializations in
8566 make_mac_frame are moved here.
8567 (mac_initialize_display_info):
8568 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
8569
8570 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
8571 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
8572
8573 2004-05-29 Richard M. Stallman <rms@gnu.org>
8574
8575 * lisp.h (truncate_undo_list): Update decl.
8576
8577 * alloc.c (undo_outer_limit): New variable.
8578 (syms_of_alloc): Defvar it.
8579 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
8580
8581 * undo.c (truncate_undo_list): New arg LIMITSIZE.
8582
8583 * alloc.c (lisp_align_malloc): Check for base == 0
8584 regardless of HAVE_POSIX_MEMALIGN.
8585 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
8586
8587 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8588
8589 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
8590 (marker_blocks_pending_free): Remove.
8591 (Fgarbage_collect): Sweep after cleaning up undo-lists.
8592 Mark the undo lists after claning them up.
8593 Don't free block in marker_blocks_pending_free.
8594 (mark_buffer): Don't mark undo_list.
8595 (gc_sweep): Sweep hash-tables and strings first.
8596 Do free marker blocks that are empty.
8597
8598 2004-05-28 Jim Blandy <jimb@redhat.com>
8599
8600 * regex.c (print_partial_compiled_pattern): Add missing 'break'
8601 after 'case wordend'. For symbeg and symend, print to stderr,
8602 like the other cases.
8603
8604 2004-05-28 Noah Friedman <friedman@splode.com>
8605
8606 * process.c (Fdelete_process): Do not call remove_process.
8607
8608 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8609
8610 * alloc.c (struct backtrace): Remove.
8611 (Fgarbage_collect): Use the new mark_backtrace.
8612
8613 * eval.c (mark_backtrace): New function.
8614
8615 * minibuf.c (run_exit_minibuf_hook): New function.
8616 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
8617 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
8618
8619 2004-05-27 Kim F. Storm <storm@cua.dk>
8620
8621 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
8622 over display properties, e.g. images, that replace buffer text.
8623
8624 2004-05-25 Kim F. Storm <storm@cua.dk>
8625
8626 * alloc.c (marker_blocks_pending_free): New var.
8627 (gc_sweep): Store free marker blocks on that list.
8628 (Fgarbage_collect): Free them after undo-list cleanup.
8629
8630 * process.c (wait_reading_process_input): Check connect_wait_mask
8631 before actually accepting connection in case it has already been
8632 accepted due to recursion.
8633
8634 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8635
8636 * coding.c (Fset_safe_terminal_coding_system_internal):
8637 Set suppress_error in safe_terminal_coding, not terminal_coding.
8638
8639 2004-05-22 Richard M. Stallman <rms@gnu.org>
8640
8641 * alloc.c (Fmake_string): Doc fix.
8642
8643 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
8644 and the alist pairs too.
8645
8646 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
8647
8648 * emacs.c (main): Update copyright year.
8649
8650 * fileio.c (Fread_file_name): Expand DIR if not absolute.
8651
8652 * insdel.c (del_range_2, replace_range): Don't write an anchor
8653 if the gap is empty.
8654
8655 * xdisp.c (try_scrolling): If scroll-up-aggressively or
8656 scroll-down-aggressively is small but positive, put point
8657 near the screen edge.
8658
8659 2004-05-22 Juanma Barranquero <lektu@terra.es>
8660
8661 * keymap.c (Fdefine_key): Doc fix.
8662
8663 2004-05-22 Kim F. Storm <storm@cua.dk>
8664
8665 * alloc.c (struct backtrace): Add debug_on_exit member.
8666 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
8667 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
8668 the removed cons cells.
8669 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
8670 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
8671 any cons cells pointing to unallocated stings.
8672 Do not lisp_free any marker blocks, as there may still be pointers
8673 to them from buffer undo lists at this stage of GC.
8674
8675 * keyboard.c (struct backtrace): Add debug_on_exit member.
8676 (Fcommand_execute): Clear it.
8677
8678 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
8679
8680 * intervals.c (lookup_char_property): Do not prematurely return nil.
8681
8682 2004-05-19 Jim Blandy <jimb@redhat.com>
8683
8684 Add support for new '\_<' and '\_>' regexp operators, matching the
8685 beginning and end of symbols.
8686
8687 * regex.c (enum syntaxcode): Add Ssymbol.
8688 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
8689 (re_opcode_t): New opcodes `symbeg' and `symend'.
8690 (print_partial_compiled_pattern): Print the new opcodes properly.
8691 (regex_compile): Parse the new operators.
8692 (analyse_first): Skip sym(beg|end) (they match only the empty string).
8693 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
8694 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
8695 (re_match_2_internal): Match symbeg and symend.
8696
8697 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
8698
8699 2004-05-19 Kim F. Storm <storm@cua.dk>
8700
8701 * .gdbinit (xsymbol): Fix last change.
8702
8703 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
8704
8705 * .gdbinit (xprintstr): New fun.
8706 (xstring, xprintsym): Use it.
8707
8708 * w32proc.c (create_child): Use INTMASK.
8709
8710 * alloc.c (Fgarbage_collect): Do all the marking before flushing
8711 unmarked elements of the undo list.
8712
8713 2004-05-18 David Ponce <david@dponce.com>
8714
8715 * print.c (print): Reset print_depth before to call print_object.
8716
8717 2004-05-18 Jason Rumney <jasonr@gnu.org>
8718
8719 * w32console.c: Prefix RIF functions with w32con_ to avoid
8720 namespace clash with functions in term.c and w32term.c.
8721
8722 * w32menu.c (add_menu_item, w32_menu_display_help)
8723 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
8724
8725 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
8726
8727 2004-05-18 Eli Zaretskii <eliz@gnu.org>
8728
8729 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
8730
8731 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
8732 with make_number.
8733 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
8734 with XINT.
8735
8736 2004-05-18 Kim F. Storm <storm@cua.dk>
8737
8738 * blockinput.h (INPUT_BLOCKED_P): New macros.
8739
8740 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
8741 (Ftop_level): Unblock input if blocked.
8742
8743 * buffer.h (GET_OVERLAYS_AT): New macro.
8744 * msdos.c (IT_note_mouse_highlight): Use it.
8745 * textprop.c (get_char_property_and_overlay): Use it.
8746 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
8747 * xfaces.c (face_at_buffer_position): Use it.
8748
8749 * print.c (print_object): Increase buf size.
8750
8751 2004-05-17 Jason Rumney <jasonr@gnu.org>
8752
8753 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
8754 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
8755 Lisp_Object using i member.
8756 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
8757 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
8758 consistently.
8759
8760 * w32proc.c (create_child): Use make_number instead of masking pid.
8761
8762 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
8763 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
8764 Use EQ to compare Lisp_Objects.
8765 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
8766
8767 * w32term.c (w32_num_mouse_buttons): Rename from
8768 Vw32_num_mouse_buttons and make it an int.
8769
8770 * w32.c (init_environment): Use it.
8771
8772 * w32fns.c (w32_wnd_proc): Likewise.
8773
8774 * w32proc.c (w32_pipe_read_delay): Rename from
8775 Vw32_pipe_read_delay and make it an int.
8776
8777 * w32.c (_sys_read_ahead): Use it.
8778
8779 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
8780
8781 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
8782
8783 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
8784 (key_event): Don't mix Lisp_Object and int.
8785
8786 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
8787
8788 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
8789 modifiers in language change event.
8790
8791 2004-05-17 Kim F. Storm <storm@cua.dk>
8792
8793 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
8794 Such objects may be freed markers which still exist on an undo list.
8795
8796 2004-05-16 Juanma Barranquero <lektu@terra.es>
8797
8798 * data.c (Fset_default): Make argument names match their use in
8799 docstring.
8800
8801 2004-05-15 Andreas Schwab <schwab@suse.de>
8802
8803 * emacs.c (gdb_array_mark_flag): Define.
8804 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
8805
8806 2004-05-15 Eli Zaretskii <eliz@gnu.org>
8807
8808 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
8809 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
8810 defined for the MS-DOS build.
8811
8812 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8813
8814 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
8815
8816 2004-05-14 Kenichi Handa <handa@m17n.org>
8817
8818 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
8819
8820 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8821
8822 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
8823 section to frame.c section.
8824 (Fxw_display_color_p, Fx_file_dialog): Declare if
8825 HAVE_WINDOW_SYSTEM defined.
8826
8827 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
8828
8829 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
8830
8831 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
8832 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
8833 (XTread_socket): Fix int/Lisp_Object mixup.
8834 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
8835
8836 * macterm.h (struct frame, struct face, struct image)
8837 (display_x_get_resource, Fx_display_color_p)
8838 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
8839 Add prototypes.
8840
8841 2004-05-14 Kim F. Storm <storm@cua.dk>
8842
8843 * process.c (wait_reading_process_input): Make reentrant.
8844 Make Available and Connecting non-static. Save and restore value
8845 of waiting_for_user_input_p.
8846
8847 2004-05-13 Kim F. Storm <storm@cua.dk>
8848
8849 * keyboard.c (mark_kboards): Don't mark x and y members
8850 that are overloaded in selection request events.
8851
8852 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8853
8854 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
8855
8856 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
8857
8858 * window.c (Fdisplay_buffer, Fsplit_window)
8859 (split-height-threshold): Doc fix.
8860
8861 2004-05-13 Juanma Barranquero <lektu@terra.es>
8862
8863 * xfaces.c (Ftty_supports_face_attributes_p)
8864 (Finternal_copy_lisp_face): Fix typo in docstring.
8865 (Finternal_get_lisp_face_attribute): Fix docstring.
8866
8867 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8868
8869 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
8870
8871 2004-05-11 Steven Tamm <steventamm@mac.com>
8872
8873 * macfns.c (Fx_create_frame): Default to using tool-bar by
8874 setting tool-bar-lines to 1 in default-frame-alist.
8875
8876 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8877
8878 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
8879 (xpm_get_color_table_v, xpm_make_color_table_h)
8880 (xpm_put_color_table_h, xpm_get_color_table_h)
8881 (xpm_str_to_color_key, xpm_load_image, xpm_load)
8882 (syms_of_image): Support XPM on Carbon Emacs. Does not
8883 depend on libXpm, but only supports XPM version 3 without extensions.
8884
8885 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8886
8887 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
8888 instead of FRAME_X_P
8889
8890 2004-05-11 Kim F. Storm <storm@cua.dk>
8891
8892 * process.c (read_process_output): Grow decoding_buf when needed;
8893 this could cause a crash in allocate_string and compact_small_strings.
8894
8895 2004-04-29 Jim Blandy <jimb@redhat.com>
8896
8897 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
8898 against proper opcode.
8899
8900 2004-05-10 Juanma Barranquero <lektu@terra.es>
8901
8902 * process.c (Fstart_process): Fix docstring.
8903
8904 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
8905 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
8906 (Fsplit_char, Fchar_charset): Make argument names match their use
8907 in docstring.
8908
8909 2004-05-10 Richard M. Stallman <rms@gnu.org>
8910
8911 * print.c (print_preprocess): Use being_printed, loop_count and
8912 halftail to detect overdeep nesting and cyclic cdr chains.
8913
8914 2004-05-10 Andreas Schwab <schwab@suse.de>
8915
8916 * lisp.h (Fmake_symbolic_link): Declare.
8917
8918 * fileio.c (Frename_file): Remove extra argument in call to
8919 Fmake_symbolic_link.
8920
8921 2004-05-10 Kim F. Storm <storm@cua.dk>
8922
8923 * xdisp.c (calc_line_height_property): Use string position when
8924 object is a string.
8925
8926 2004-05-10 Kenichi Handa <handa@m17n.org>
8927
8928 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
8929 inhibit-modification-hooks to t temporarily before calling
8930 Ferase_buffer.
8931
8932 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
8933 inhibit-modification-hooks to t temporarily before calling
8934 Ferase_buffer.
8935
8936 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
8937 inhibit-modification-hooks to t temporarily before calling
8938 Ferase_buffer.
8939
8940 * fns.c (count_combining): Delete it.
8941 (concat): Don't check combining bytes.
8942
8943 2004-05-09 Jason Rumney <jasonr@gnu.org>
8944
8945 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
8946 (globals_of_w32fns): Set it.
8947
8948 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
8949
8950 * data.c (Fquo): Simplify.
8951
8952 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
8953
8954 * data.c (Fquo): If any argument is float, do the computation in
8955 floating point.
8956
8957 2004-05-08 Juanma Barranquero <lektu@terra.es>
8958
8959 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
8960 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
8961 Fix spelling of Emacs on docstring.
8962 (Fset_process_coding_system, Fprocess_coding_system)
8963 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
8964 Make argument names match their use in docstring.
8965 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
8966 Fix docstring.
8967
8968 * editfns.c (Finsert_buffer_substring): Make argument names match their
8969 use in docstring.
8970
8971 * syntax.c (Fmodify_syntax_entry): Fix docstring.
8972
8973 2004-05-07 Steven Tamm <steventamm@mac.com>
8974
8975 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
8976 around call to ReceiveEvent to avoid certain crashes.
8977
8978 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8979
8980 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
8981 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
8982 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
8983 Save/restore the current graphics port and device handle when
8984 drawing into an offscreen graphics world.
8985
8986 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
8987 (gif_load): Likewise.
8988
8989 2004-05-07 Juanma Barranquero <lektu@terra.es>
8990
8991 * window.c (Fset_window_buffer): Fix docstring.
8992
8993 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
8994
8995 * emacs.c (main) [VMS]: Fix var ref.
8996
8997 2004-05-06 Romain Francoise <romain@orebokech.com>
8998
8999 * data.c (Fsetq_default): Fix docstring.
9000
9001 2004-05-06 Jason Rumney <jasonr@gnu.org>
9002
9003 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
9004 to avoid name clash.
9005
9006 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9007
9008 * fileio.c (barf_or_query_if_file_exists): Use lstat.
9009 (Frename_file): Handle renaming of symlinks across file systems.
9010 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
9011
9012 2004-05-04 Kim F. Storm <storm@cua.dk>
9013
9014 * xdisp.c (Qtotal): New var.
9015 (syms_of_xdisp): Intern and staticpro it.
9016 (calc_line_height_property): New arg total. Set it if
9017 line-spacing property has format (total . VALUE).
9018 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
9019 Handle total line-spacing property.
9020
9021 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9022
9023 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
9024 "under" scroll bar when size/position changes.
9025
9026 2004-05-03 Jason Rumney <jasonr@gnu.org>
9027
9028 * makefile.nt: Remove.
9029
9030 2004-05-02 Eli Zaretskii <eliz@gnu.org>
9031
9032 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
9033 Avoid compiler warnings.
9034
9035 * Makefile.in (region-cache.o): Depend on config.h.
9036
9037 2004-05-02 Romain Francoise <romain@orebokech.com>
9038
9039 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
9040 with continuation lines, too.
9041
9042 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
9043
9044 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
9045
9046 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
9047
9048 * xdisp.c (calc_line_height_property): YAILOM (yet another
9049 int/Lisp_Object mixup).
9050
9051 2004-05-01 Eli Zaretskii <eliz@gnu.org>
9052
9053 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
9054 undo bad effect of pack(4) in some versions of system headers.
9055
9056 2004-05-01 Jason Rumney <jasonr@gnu.org>
9057
9058 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
9059
9060 2004-04-30 Kim F. Storm <storm@cua.dk>
9061
9062 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
9063 (syms_of_buffer) <cursor-type>: Doc fix.
9064
9065 * dispextern.h (struct it): Remove member use_default_face.
9066 Add members override_ascent, override_descent, override_boff.
9067
9068 * xdisp.c (init_iterator): Handle line-spacing float value.
9069 Initialize override_ascent member.
9070 (append_space_for_newline): Reset override_ascent.
9071 Remove use_default_face.
9072 (calc_line_height_property): New function to calculate value of
9073 line-height and line-spacing properties. Look at overlays, too.
9074 Set override_ascent, override_descent, override_boff members when
9075 using another face than the current face. Float values are now
9076 relative to the frame default font, by default; accept a cons
9077 of ratio and face name to specify value relative to a specific face.
9078 (x_produce_glyphs): Use calc_line_height_property.
9079 Use override_ascent etc. when set to handle different face heights.
9080 A negative line-spacing property value is interpreted as a total
9081 line height, rather than inter-line spacing.
9082 (note_mouse_highlight): Allocate room for 40 overlays initially.
9083
9084 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9085
9086 * data.c (Fsubr_name): New fun.
9087 (syms_of_data): Defsubr it.
9088
9089 2004-04-29 Kim F. Storm <storm@cua.dk>
9090
9091 * xdisp.c (null_glyph_slice): New var.
9092 (append_glyph, append_composite_glyph, append_stretch_glyph):
9093 Use it to initialize glyph slice.
9094
9095 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
9096
9097 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
9098 (on_hot_spot_p): Make sure we always return a value.
9099 (Flookup_image_map): Remove unused var ix and iy.
9100 (note_mode_line_or_margin_highlight): Remove unused var `image'.
9101
9102 2004-04-27 Eli Zaretskii <eliz@gnu.org>
9103
9104 * msdos.c (init_environment): If one of the TMP... environment
9105 variables is set to a drive letter without a trailing slash,
9106 append a slash.
9107
9108 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
9109
9110 * editfns.c (lisp_time_argument): Provide externally.
9111
9112 * fileio.c (Fset_file_times): New function.
9113 (syms_of_fileio): Intern and staticpro it.
9114
9115 2004-04-27 Kim F. Storm <storm@cua.dk>
9116
9117 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
9118 header line strings.
9119
9120 * dispextern.h (struct it): New member use_default_face.
9121
9122 * xdisp.c (Qline_height): New variable.
9123 (syms_of_xdisp): Intern and staticpro it.
9124 (append_space_for_newline): Partially undo 2004-04-25 change;
9125 add default_face_p arg, and restore callers.
9126 Clear it->use_default_face after use.
9127 (x_produce_glyphs): Set default font for ascii char if
9128 it->use_default_font is set. Change line-spacing property to set
9129 just extra line spacing. Handle new line-height property.
9130
9131 2004-04-26 Andreas Schwab <schwab@suse.de>
9132
9133 * print.c (print_object): Print non-ascii characters in bool
9134 vector representation as octal escapes.
9135
9136 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
9137 * print.c (print_object): Use it instead of BITS_PER_CHAR for
9138 bool vectors.
9139 * lread.c (read1): Likewise.
9140 * alloc.c (Fmake_bool_vector): Likewise.
9141 * data.c (Faref, Faset): Likewise.
9142 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
9143 (mapcar1): Likewise.
9144
9145 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
9146
9147 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
9148
9149 2004-04-26 Miles Bader <miles@gnu.org>
9150
9151 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
9152
9153 2004-04-26 Juanma Barranquero <lektu@terra.es>
9154
9155 * buffer.c (Fpop_to_buffer): Fix docstring.
9156
9157 2004-04-26 Steven Tamm <steventamm@mac.com>
9158
9159 * lread.c (init_lread): Don't display missing lisp directory
9160 warnings with Carbon Emacs because self-contained bundled Emacs
9161 may be built without correct installation path.
9162
9163 2004-04-25 Kim F. Storm <storm@cua.dk>
9164
9165 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
9166
9167 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
9168
9169 * xdisp.c (append_space_for_newline): Rename from append_space.
9170 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
9171 (x_produce_glyphs): Handle line-spacing property on newline char.
9172 If value is t, adjust ascent and descent to fit current row height.
9173 If value is an integer or float, set extra_line_spacing to integer
9174 value, or to float value x current line height.
9175
9176 2004-04-23 Kenichi Handa <handa@m17n.org>
9177
9178 * fontset.c (Finternal_char_font): If POSITION is nil, return
9179 font for displaying CH with the default face.
9180
9181 2004-04-23 Juanma Barranquero <lektu@terra.es>
9182
9183 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
9184
9185 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
9186
9187 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
9188 Don't make assumptions about the relative place of i and val.
9189 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
9190
9191 2004-04-21 Kim F. Storm <storm@cua.dk>
9192
9193 * dispextern.h (struct glyph_slice): New struct.
9194 (struct glyph): New member slice.
9195 (GLYPH_SLICE_EQUAL_P): New macro.
9196 (GLYPH_EQUAL_P): Use it.
9197 (struct glyph_string): New member slice.
9198 (struct it_slice): New struct.
9199 (struct it): New member slice, add member to stack too.
9200 New member constrain_row_ascent_descent_p.
9201 (image_ascent): Add prototype.
9202
9203 * dispnew.c (buffer_posn_from_coords): Return full image width
9204 and height even for image slices (posn is relative to full image).
9205 (marginal_area_string): Adjust x0,y0 for image slice.
9206
9207 * image.c (image_ascent): Add slice arg; calculate ascent for
9208 image slice (or full image).
9209
9210 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
9211 (syms_of_keyboard): Defsubr them.
9212
9213 * lisp.h (pos_visible_p): Fix prototype.
9214
9215 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
9216 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9217 (x_draw_image_foreground, x_draw_image_relief)
9218 (x_draw_image_foreground_1, x_draw_image_glyph_string):
9219 Draw sliced images.
9220
9221 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
9222 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9223 (x_draw_image_foreground, x_draw_image_relief)
9224 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
9225 Draw sliced images.
9226
9227 * w32term.h (image_ascent): Remove prototype.
9228
9229 * window.c (Fpos_visible_in_window_p): Return pixel position if
9230 PARTIALLY arg is non-nil. Simplify. Doc fix.
9231 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
9232 to return/set vscroll in pixels.
9233
9234 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
9235
9236 * xdisp.c (Qslice): New variable.
9237 (syms_of_xdisp): Intern and staticpro it.
9238 (pos_visible_p): Return pixel position in new x and y args.
9239 (init_iterator): Reset it->slice info.
9240 (handle_display_prop): Parse (slice ...) property.
9241 (push_it, pop_it): Save/restore slice info.
9242 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
9243 force repositioning of tall row if window is vscrolled, as that
9244 would reset vscroll.
9245 (append_space): Set it->constrain_row_ascent_descent_p to avoid
9246 increasing row height if row is non-empty.
9247 (fill_image_glyph_string): Copy slice info.
9248 (take_vertical_position_into_account): Simplify.
9249 (produce_image_glyph): Handle iterator slice info, setup glyph
9250 slice info. Do not force minimum line height.
9251 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
9252 do not increase height (ascent/descent) of non-empty row when
9253 adding normal character glyph; instead reduce glyph ascent/descent
9254 appropriately; if row is higher than current glyph, adjust glyph
9255 descent/ascent to reposition glyph within the existing row.
9256 Likewise, when char is newline, only set ascent/descent if row is
9257 currently empty.
9258 (note_mouse_highlight): Handle hotspots with sliced image.
9259
9260 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
9261 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9262 (x_draw_image_foreground, x_draw_image_relief)
9263 (x_draw_image_foreground_1, x_draw_image_glyph_string):
9264 Draw sliced images.
9265
9266 * xterm.h (image_ascent): Remove prototype.
9267
9268 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9269
9270 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
9271
9272 2004-04-20 John Paul Wallington <jpw@gnu.org>
9273
9274 * fns.c (Fassoc, Feql): Fix indentation.
9275
9276 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
9277
9278 2004-04-19 John Paul Wallington <jpw@gnu.org>
9279
9280 * fns.c (Feql): New function.
9281 (syms_of_fns): Defsubr it.
9282
9283 2004-04-18 Jason Rumney <jasonr@gnu.org>
9284
9285 * w32select.c (Fw32_set_clipboard_data): Get sequence number
9286 after closing the clipboard.
9287
9288 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
9289
9290 * buffer.c (Fbuffer_base_buffer): Doc fix.
9291
9292 2004-04-17 Kim F. Storm <storm@cua.dk>
9293
9294 * keymap.c (Fkey_description): Add optional PREFIX arg.
9295 Combine prefix with KEYS to make up the full key sequence to describe.
9296 Correlate meta_prefix_char and following (simple) key to describe
9297 as meta modifier. All callers changed.
9298 (describe_map): Rename arg `keys' to `prefix'. Remove local
9299 `elt_prefix' var. Use Fkey_description with prefix instead of
9300 elt_prefix combined with Fsingle_key_description.
9301 (describe_vector): Declare static. Replace arg `elt_prefix' with
9302 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
9303 if !KEYMAP_P. Use Fkey_description with prefix instead of
9304 Fsingle_key_description.
9305
9306 * keymap.h (Fkey_description): Fix prototype.
9307 (describe_vector): Remove prototype.
9308
9309 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
9310
9311 * image.c (PNG_BG_COLOR_SHIFT): Remove.
9312 (png_load): Fix calculation of transparent background color on X
9313 and W32 platforms.
9314
9315 2004-04-16 Juanma Barranquero <lektu@terra.es>
9316
9317 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
9318 not too large before computing how much to scroll.
9319
9320 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
9321
9322 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
9323
9324 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
9325
9326 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
9327 Add hyperlink to Elisp manual to the docstring.
9328
9329 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
9330
9331 * callint.c (fix_command): Use XDCR.
9332
9333 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
9334
9335 * window.c (Fget_lru_window): Doc fix.
9336
9337 2004-04-14 Kim F. Storm <storm@cua.dk>
9338
9339 * editfns.c (Fformat): Fix allocation size of precision array.
9340
9341 * dispnew.c (update_window): Only set changed_p if
9342 scrolling_window actually did scroll.
9343 (scrolling_window): Only return 1 if we actually did scroll.
9344
9345 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
9346 height to glyph height when cursor row is not fully visible.
9347 (make_cursor_line_fully_visible): Add FORCE_P arg to return
9348 failure in case row is higher than window. Callers changed.
9349 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
9350 Try to scroll partially visible, higher-than-window cursor row.
9351 (redisplay_window): Always try to scroll partially visible,
9352 higher-than-window cursor row - both initially and again with
9353 centering_position = 0.
9354 Clear desired matrix before retrying with centering_position = 0.
9355
9356 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9357
9358 * syntax.c (scan_lists): Simplify backward string scan.
9359 Fix off-by-one boundary check for string and comment fences.
9360
9361 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
9362
9363 * sheap.c, unexcw.c: New files.
9364
9365 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
9366
9367 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
9368 base buffer has been killed. Correct the error message if the
9369 base buffer does not exist.
9370
9371 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
9372
9373 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
9374 Cygwin itself. Add support for Xaw3d scrollbars.
9375
9376 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
9377
9378 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
9379
9380 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
9381 before Cygwin unexec.
9382
9383 * Makefile.in: Link changes for Cygwin unexec() support.
9384
9385 2004-04-12 Andreas Schwab <schwab@suse.de>
9386
9387 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
9388
9389 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
9390
9391 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
9392 IGNORE argument equals NAME. Doc fix.
9393
9394 2004-04-11 Masatake YAMATO <jet@gyve.org>
9395
9396 * buffer.c (fix_start_end_in_overlays): Make overlays
9397 empty if they are backwards.
9398
9399 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9400
9401 * xfaces.c (face_color_supported_p): Fix compilation without X11.
9402
9403 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
9404
9405 * doc.c (Fsnarf_documentation): Ignore new file name entries.
9406
9407 2004-04-06 Kim F. Storm <storm@cua.dk>
9408
9409 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
9410 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
9411
9412 * w32term.c (w32_read_socket): Set mouse_face_hidden after
9413 clearing highlight.
9414
9415 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
9416
9417 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
9418 clearing highlight.
9419
9420 * indent.c (vmotion): Do not reserve one column for continuation
9421 marks on window frames.
9422
9423 2004-04-04 Eli Zaretskii <eliz@gnu.org>
9424
9425 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
9426 from GCC.
9427
9428 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9429
9430 * .gdbinit-union: Remove.
9431
9432 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
9433 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
9434 ($nonvalbits): Remove.
9435 ($valmask): Set it by calling xreload to avoid redundancy.
9436
9437 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
9438 (gdb_emacs_intbits): Remove.
9439
9440 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9441
9442 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
9443
9444 2004-03-30 Kenichi Handa <handa@m17n.org>
9445
9446 * editfns.c (Fformat): Fix initialization of the array info.
9447
9448 2004-03-30 Kim F. Storm <storm@cua.dk>
9449
9450 * xterm.c (x_mouse_click_focus_ignore_position): New var.
9451 (syms_of_xterm): DEFVAR_BOOL it.
9452 (ignore_next_mouse_click_timeout): New var.
9453 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
9454 Use it to filter mouse clicks following focus event.
9455
9456 2004-03-29 David Ponce <david@dponce.com>
9457
9458 * callint.c (Fcall_interactively): Fix last change.
9459
9460 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9461
9462 * eval.c (Fcommandp): Simplify.
9463
9464 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
9465 Extend to handle all kinds of functions.
9466
9467 * lisp.h (Finteractive_form): Declare.
9468
9469 * callint.c (Fcall_interactively): Use it.
9470
9471 2004-03-26 Kim F. Storm <storm@cua.dk>
9472
9473 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
9474 to catch errors in calc_pixel_width_or_height during redisplay.
9475
9476 2004-03-26 Masatake YAMATO <jet@gyve.org>
9477
9478 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
9479
9480 * lisp.h (fix_start_end_in_overlays): Likewise.
9481
9482 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
9483
9484 * editfns.c (Ftranspose_regions): Likewise.
9485
9486 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9487
9488 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
9489
9490 2004-03-19 Richard M. Stallman <rms@gnu.org>
9491
9492 * s/sol2-6.h: Delete previous change.
9493
9494 2004-03-19 Kim F. Storm <storm@cua.dk>
9495
9496 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
9497 to_charpos corresponds to newline in right fringe. Use local
9498 BUFFER_POS_REACHED_P macro.
9499
9500 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9501
9502 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
9503 to compile on non-window system.
9504
9505 2004-03-19 Kim F. Storm <storm@cua.dk>
9506
9507 * dispextern.h (calc_pixel_width_or_height): Add prototype.
9508
9509 * image.c (Qcenter): Move to xdisp.c.
9510
9511 * xdisp.c (Qcenter): Declare here.
9512 (syms_of_xdisp): Intern and staticpro it.
9513 (handle_single_display_prop): Allow space display property on all
9514 platforms.
9515 (display_mode_line): Set mode_line_p before displaying line.
9516 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
9517 handling. Remove complex cases for fringes and scroll-bars.
9518 Add left, right, and center alignment positions. Add text (area)
9519 width/height. Return width or height for image specs.
9520 (produce_stretch_glyph): Improve handling of :align-to. Is now
9521 relative to left of text area by default, but other base offsets
9522 can be specified -- also for text lines.
9523
9524 * term.c (produce_glyphs): Handle IT_STRETCH.
9525 (produce_stretch_glyph): New function to handle space width and
9526 align-to display properties on non-window systems.
9527
9528 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9529
9530 * fileio.c (Fread_file_name): Set completion-ignore-case for
9531 case-insensitive systems.
9532
9533 2004-03-14 Masatake YAMATO <jet@gyve.org>
9534
9535 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
9536 when keymap and cursor are setup.
9537
9538 2004-03-14 Steven Tamm <steventamm@mac.com>
9539
9540 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9541
9542 2004-03-14 Kim F. Storm <storm@cua.dk>
9543
9544 * dispextern.h (x_find_image_file): Add prototype.
9545
9546 * image.c (x_find_image_file): Make extern.
9547
9548 * xfns.c (x_find_image_file): Remove prototype.
9549
9550 2004-03-13 Eli Zaretskii <eliz@gnu.org>
9551
9552 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
9553
9554 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
9555
9556 2004-03-12 Richard M. Stallman <rms@gnu.org>
9557
9558 * fns.c (internal_equal): New arg PROPS controls comparing
9559 text properties. All callers changed.
9560 (Fequal_including_properties): New function.
9561 (syms_of_fns): defsubr it.
9562
9563 2004-03-12 Kim F. Storm <storm@cua.dk>
9564
9565 Fix image support on MAC. From YAMAMOTO Mitsuharu.
9566
9567 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
9568 (image_background, image_background_transparent): Fix prototypes.
9569
9570 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
9571
9572 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
9573 (x_query_font, x_find_ccl_program, x_set_window_size)
9574 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9575 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9576 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
9577
9578 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
9579 (x_query_font, x_find_ccl_program, x_set_window_size)
9580 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9581 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9582 (mac_draw_line_to_pixmap): Add prototypes.
9583
9584 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9585
9586 * macterm.c (XTread_socket): Fix mouse click on tool bar.
9587
9588 2004-03-11 Kim F. Storm <storm@cua.dk>
9589
9590 * dispextern.h: Move image related prototypes from xfns.c section
9591 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
9592 HAVE_X_WINDOWS.
9593
9594 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
9595 Move gtkutil.o to new GTK_OBJ list.
9596 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
9597 (GTK_OBJ) [USE_GTK]: New declaration.
9598 (obj): Add $(GTK_OBJ) to list.
9599
9600 2004-03-11 Steven Tamm <steventamm@mac.com>
9601
9602 * image.c [MAC_OSX]: Include sys/stat.h.
9603
9604 * macfns.c (syms_of_macfns): Remove definitions of things now
9605 defined in image.c.
9606
9607 2004-03-11 Kim F. Storm <storm@cua.dk>
9608
9609 The following changes consolidates the identical/similar image
9610 support code previously found in xfns.c, w32fns.c, and macfns.c
9611 into a new file image.c.
9612
9613 * makefile.w32-in (OBJ1): Add image.o.
9614 ($(BLD)/image.$(O)): Add dependencies.
9615
9616 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
9617 (image.o): Add dependencies.
9618
9619 * image.c: New file with consolidated image support code.
9620 (COLOR_TABLE_SUPPORT): New define to control whether
9621 color table support is available (X only).
9622 (Bitmap_Record): Common name for x_bitmap_record,
9623 w32_bitmap_record, and mac_bitmap_record.
9624 (XImagePtr): Common name for pointer to XImage or equivalent.
9625 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
9626 to XImagePtr on X+MAC, and to HDC on W32.
9627 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
9628 (NO_PIXMAP): Common name for "None" or equivalent.
9629 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
9630 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
9631 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
9632 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
9633 Define with suitable equivalents on W32 and MAC for code sharing.
9634 (XDrawLine): Define on MAC for code sharing.
9635 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
9636 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
9637 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9638 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9639 (x_reference_bitmap, x_create_bitmap_from_data)
9640 (x_create_bitmap_from_file, x_destroy_bitmap)
9641 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9642 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9643 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9644 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9645 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9646 (define_image_type, lookup_image_type, valid_image_p)
9647 (image_error, enum image_value_type, struct image_keyword)
9648 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9649 (make_image, free_image, prepare_image_for_display, image_ascent)
9650 (four_corners_best, image_background, image_background_transparent)
9651 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9652 (make_image_cache, free_image_cache, clear_image_cache)
9653 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9654 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9655 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9656 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9657 (init_image_func_pointer, image_load_quartz2d)
9658 (struct ct_color, init_color_table, free_color_table)
9659 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9660 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9661 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9662 (x_disable_image, x_build_heuristic_mask)
9663 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9664 (TIFF support, GIF support, Ghostscript support): Consolidate image
9665 code from xfns.c, w32fns.c, and macfns.c.
9666 (syms_of_image): Consolidate image related symbol setup here.
9667 (init_image): Consolidate image related initializations here.
9668
9669 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
9670 and init_image. Remove call to init_xfns.
9671
9672 * macterm.h (struct mac_bitmap_record): Add file member.
9673 Not currently used, but simplifies code sharing.
9674
9675 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9676 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9677 (x_reference_bitmap, x_create_bitmap_from_data)
9678 (x_create_bitmap_from_file, x_destroy_bitmap)
9679 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9680 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9681 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9682 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9683 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9684 (define_image_type, lookup_image_type, valid_image_p)
9685 (image_error, enum image_value_type, struct image_keyword)
9686 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9687 (make_image, free_image, prepare_image_for_display, image_ascent)
9688 (four_corners_best, image_background, image_background_transparent)
9689 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9690 (make_image_cache, free_image_cache, clear_image_cache)
9691 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9692 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9693 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9694 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9695 (init_image_func_pointer, image_load_quartz2d)
9696 (struct ct_color, init_color_table, free_color_table)
9697 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9698 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9699 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9700 (x_disable_image, x_build_heuristic_mask)
9701 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9702 (TIFF support, GIF support, Ghostscript support): Merge with image
9703 code from xfns.c and macfns.c into image.c.
9704 (syms_of_xfns): Move image related symbols to image.c.
9705 (init_external_image_libraries, init_xfns): Remove; initialization
9706 moved to init_image in image.c.
9707
9708 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9709 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9710 (x_reference_bitmap, x_create_bitmap_from_data)
9711 (x_create_bitmap_from_file, x_destroy_bitmap)
9712 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9713 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9714 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9715 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9716 (define_image_type, lookup_image_type, valid_image_p)
9717 (image_error, enum image_value_type, struct image_keyword)
9718 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9719 (make_image, free_image, prepare_image_for_display, image_ascent)
9720 (four_corners_best, image_background, image_background_transparent)
9721 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9722 (make_image_cache, free_image_cache, clear_image_cache)
9723 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9724 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9725 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9726 (struct ct_color, init_color_table, free_color_table)
9727 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9728 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9729 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9730 (x_disable_image, x_build_heuristic_mask)
9731 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9732 (TIFF support, GIF support, Ghostscript support): Merge with image
9733 code from xfns.c and macfns.c into image.c.
9734 (syms_of_xfns): Move image related symbols to image.c.
9735 (init_external_image_libraries, init_xfns): Remove; initialization
9736 moved to init_image in image.c.
9737
9738 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9739 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9740 (x_reference_bitmap, x_create_bitmap_from_data)
9741 (x_create_bitmap_from_file, x_destroy_bitmap)
9742 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9743 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9744 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9745 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9746 (define_image_type, lookup_image_type, valid_image_p)
9747 (image_error, enum image_value_type, struct image_keyword)
9748 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9749 (make_image, free_image, prepare_image_for_display, image_ascent)
9750 (four_corners_best, image_background, image_background_transparent)
9751 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9752 (make_image_cache, free_image_cache, clear_image_cache)
9753 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9754 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9755 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9756 (struct ct_color, init_color_table, free_color_table)
9757 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9758 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9759 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9760 (x_disable_image, x_build_heuristic_mask)
9761 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9762 (TIFF support, GIF support, Ghostscript support): Merge with
9763 w32fns.c and macfns.c image code into image.c.
9764 (syms_of_xfns): Move image related symbols to image.c.
9765 (init_xfns): Remove; initialization moved to init_image in image.c.
9766
9767 * lisp.h (syms_of_image, init_image): Add protoypes.
9768 (init_xfns): Remove prototype.
9769
9770 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9771 (x_reference_bitmap, x_create_bitmap_from_data)
9772 (x_create_bitmap_from_file, x_destroy_bitmap)
9773 (x_create_bitmap_mask): Move prototypes from dispextern.h.
9774 (gamma_correct) [MAC_OS]: Add prototype.
9775
9776 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9777 (x_reference_bitmap, x_create_bitmap_from_data)
9778 (x_create_bitmap_from_file, x_destroy_bitmap)
9779 (x_create_bitmap_mask): Move prototypes to dispextern.h.
9780
9781 2004-03-09 Kenichi Handa <handa@etlken2>
9782
9783 * coding.c (decode_coding_emacs_mule): Handle insufficent source
9784 correctly.
9785
9786 2004-03-04 Richard M. Stallman <rms@gnu.org>
9787
9788 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
9789
9790 * window.c (Fdisplay_buffer): Doc fix.
9791
9792 * buffer.c (Fpop_to_buffer): Doc fix.
9793
9794 2004-03-03 Kim F. Storm <storm@cua.dk>
9795
9796 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
9797
9798 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
9799
9800 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
9801
9802 2004-03-02 Richard M. Stallman <rms@gnu.org>
9803
9804 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
9805
9806 2004-03-02 Kenichi Handa <handa@m17n.org>
9807
9808 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
9809
9810 2004-03-02 Kim F. Storm <storm@cua.dk>
9811
9812 * window.h (struct window): New member overlay_arrow_bitmap.
9813
9814 * window.c (make_window): Initialize overlay_arrow_bitmap.
9815
9816 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
9817 implement and integrate multiple overlay arrows with redisplay.
9818 (syms_of_xdisp): DEFVAR_LISP and initialize it.
9819 (last_arrow_position, last_arrow_string): Replace by properties.
9820 (Qlast_arrow_position, Qlast_arrow_string)
9821 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
9822 (syms_of_xdisp): Intern and staticpro them.
9823 (overlay_arrow_string_or_property, update_overlay_arrows)
9824 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
9825 (overlay_arrow_at_row): New functions for multiple overlay arrows.
9826 (redisplay_internal): Use them instead of directly accessing
9827 Voverlay_arrow_position etc. for multiple overlay arrows.
9828 (mark_window_display_accurate): Use update_overlay_arrows.
9829 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
9830 (try_window_id): Use overlay_arrows_changed_p.
9831 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
9832 (display_line): Use overlay_arrow_at_row to check multiple
9833 overlay arrows, and get relevant overlay-arrow-string and
9834 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
9835 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
9836 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
9837
9838 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
9839 (update_window_fringes): Remove unused code.
9840
9841 2004-03-01 Jason Rumney <jasonr@gnu.org>
9842
9843 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
9844
9845 2004-03-01 Juanma Barranquero <lektu@terra.es>
9846
9847 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
9848
9849 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
9850
9851 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9852
9853 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
9854 how many colors can be displayed.
9855
9856 2004-03-01 Kenichi Handa <handa@m17n.org>
9857
9858 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
9859 correctly.
9860
9861 2004-02-28 Kim F. Storm <storm@cua.dk>
9862
9863 * dispnew.c (update_window): Update header line also if there are
9864 no other changes in window (move code after set_cursor label).
9865
9866 * lisp.h (mark_window_display_accurate): Remove prototype.
9867
9868 * window.c (window_loop, Fforce_window_update): Force mode line
9869 updates by setting prevent_redisplay_optimizations_p and
9870 update_mode_lines.
9871
9872 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9873
9874 * xfns.c (x_window): Fix indentation.
9875
9876 * xterm.c (x_calc_absolute_position): Call x_real_positions
9877 to get WM window sizes and use those to calculate position.
9878 (x_set_offset): Remove code commented out.
9879
9880 2004-02-28 Miles Bader <miles@gnu.org>
9881
9882 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
9883
9884 2004-02-28 Kim F. Storm <storm@cua.dk>
9885
9886 * keyboard.c (kbd_buffer_store_event_hold): New function to store
9887 an event into kbd fifo, but with special handling of quit event;
9888 a quit event is saved for later, and further events are discarded
9889 until the saved quit event has been processed.
9890 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
9891 (gen_help_event): Store help event in kbd fifo.
9892 (NREAD_INPUT_EVENTS): Remove.
9893 (read_avail_input): Adapt to new read_socket_hook interface.
9894 Remove allocation and initialization of local input_event buffer,
9895 as read_socket_hook stores events directly in fifo. Allocate and
9896 initialize local hold_quit event to handle postponed quit event
9897 (and store it if set by kbd_buffer_store_event_hold).
9898
9899 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
9900 (gen_help_event): Fix prototype.
9901
9902 * macterm.c (XTread_socket): Remove bufp_r and
9903 numcharsp args. Add hold_quit arg.
9904 Rework to use just one, local, inev input_event. Store inev
9905 directly in fifo using kbd_buffer_store_event_hold.
9906
9907 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
9908 (read_input_waiting): Adapt to new read_socket_hook interface.
9909 Remove allocation and initialization of local input_event buffer,
9910 as read_socket_hook stores events directly in fifo. Allocate and
9911 initialize local hold_quit event to handle postponed quit event
9912 (and store it if set by kbd_buffer_store_event_hold).
9913
9914 * term.c (read_socket_hook): Fix arg list.
9915
9916 * termhooks.h (read_socket_hook): Fix prototype.
9917
9918 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
9919 numcharsp args. Add hold_quit arg.
9920 Rework to use just one, local, inev input_event. Store inev
9921 directly in fifo using kbd_buffer_store_event_hold.
9922
9923 * w32inevt.h (w32_console_mouse_position): Fix prototype.
9924
9925 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
9926 Add hold_quit arg. Rework to use just one, local, inev
9927 input_event. Store inev directly in fifo using
9928 kbd_buffer_store_event_hold. Update count in one place.
9929 Postpone call to gen_help_event until inev is stored; use new
9930 local do_help for this.
9931 Remove local emacs_event in handing of ButtonPress event; just use
9932 inev instead (so no reason to copy it later).
9933
9934 * xsmfns.c (x_session_check_input): Remove numchars arg.
9935
9936 * xterm.c (x_focus_changed, x_detect_focus_change):
9937 Remove numchars arg. Always store event into bufp arg.
9938 Return nothing. Callers changed accordingly.
9939 (glyph_rect): Simplify.
9940 (STORE_KEYSYM_FOR_DEBUG): New macro.
9941 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
9942 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
9943 (current_hold_quit) [USE_GTK]: Add.
9944 (event_handler_gdk): Adapt to new handle_one_xevent.
9945 (handle_one_xevent): Remove bufp_r and numcharsp args.
9946 Add hold_quit arg. Rework to use just one, local, inev
9947 input_event. Store inev directly in fifo using
9948 kbd_buffer_store_event_hold. Update count in one place.
9949 Postpone call to gen_help_event until inev is stored; use new
9950 local do_help for this.
9951 Simplify handling of keysyms (consolidate common code). Fix bug
9952 where count was updated with nchars instead of nbytes.
9953 Remove local emacs_event in handing of ButtonPress event; just use
9954 inev instead (so no reason to copy it later).
9955 Remove `out' label. Rename label `ret' to `done'; add various
9956 `goto done' to clarify code flow in deeply nested blocks.
9957 (x_dispatch_event): Simplify as handle_one_xevent now calls
9958 kbd_buffer_store_event itself.
9959 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
9960 arg. Call handle_one_xevent with new arglist. Store event from
9961 x_session_check_input in fifo.
9962 [USE_GTK]: Setup current_hold_quit.
9963 Decrement handling_signal before unblocking input.
9964 (x_initialize) [USE_GTK]: Initialize current_count.
9965
9966 * xterm.h (x_session_check_input): Fix prototype.
9967
9968 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9969
9970 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
9971
9972 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
9973 macgui.h).
9974
9975 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
9976
9977 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
9978 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
9979 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
9980 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
9981 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
9982 (Bitmap): Remove typedef.
9983 (Pixmap): Change int to GWorldPtr.
9984
9985 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9986
9987 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9988 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
9989 New #define to extract 16-bit depth color components from unsigned
9990 long representation.
9991 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
9992 colors used for masks.
9993 (struct mac_display_info): Add color_p. Remove n_cbits.
9994
9995 * macfns.c: Include sys/types.h and sys/stat.h.
9996 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
9997 Include QuickTime/QuickTime.h.
9998 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9999 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
10000 functions defined in macterm.c.
10001 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
10002 (ZPixmap): New #define for compatibility with xfns.c.
10003 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10004 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10005 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
10006 New functions.
10007 (four_corners_best, x_create_x_image_and_pixmap)
10008 (x_destroy_x_image, unwind_create_frame, x_disable_image)
10009 (x_edge_detection, init_color_table, colors_in_color_table)
10010 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
10011 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
10012 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
10013 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
10014 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
10015 long mixup.
10016 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
10017 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
10018 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
10019 (x_set_cursor_type, Fxw_color_values, valid_image_p)
10020 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
10021 (x_alloc_image_color, clear_image_cache, lookup_image)
10022 (x_find_image_file, xbm_read_bitmap_file_data)
10023 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
10024 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
10025 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
10026 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
10027 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
10028 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
10029 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
10030 #if 0.
10031 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
10032 #if 0. Free white_relief.gc and black_relief.gc.
10033 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
10034 New functions (from xfns.c).
10035 (Fx_create_frame): Record unwind_create_frame.
10036 (Fxw_display_color_p): Use dpyinfo->color_p.
10037 (Fx_display_grayscale_p, Fx_display_planes): Don't use
10038 dpyinfo->n_cbits.
10039 (Fx_display_color_cells): Use dpyinfo->n_planes;
10040 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
10041 (Qheuristic, cross_disabled_images, emboss_matrix)
10042 (laplace_matrix): New variables (from xfns.c).
10043 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
10044 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
10045 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
10046 (image_background_transparent): New function (from xfns.c).
10047 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10048 (image_load_quicktime): Add declaration.
10049 [MAC_OSX] (image_load_quartz2d): Likewise.
10050 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
10051 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
10052 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
10053 (xbm_load_image_from_file, x_laplace_read_row)
10054 (x_laplace_write_row, pbm_read_file): Remove functions.
10055 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
10056 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
10057 (colors_in_color_table): Sync with xfns.c (although not used).
10058 (lookup_rgb_color): Don't lookup color table. Just do gamma
10059 correction.
10060 (COLOR_INTENSITY): New #define (from xfns.c).
10061 (x_disable_image): New function (from xfns.c).
10062 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10063 (x_build_heuristic_mask): Sync with xfns.c.
10064 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10065 (HAVE_PBM): Remove #ifdef.
10066 (pbm_load): Sync with xfns.c. Set img->width and img->height
10067 before IMAGE_BACKGROUND.
10068 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
10069 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
10070 Don't enclose with #if HAVE_PNG.
10071 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
10072 symbol _CGImageCreateWithPNGDataProvider is defined.
10073 Otherwise use image_load_quicktime.
10074 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
10075 [HAVE_PNG] (png_load): Sync with xfns.c.
10076 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10077 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
10078 HAVE_JPEG.
10079 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
10080 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
10081 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
10082 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
10083 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
10084 (tiff_image_p, tiff_load): Don't enclose declarations with #if
10085 HAVE_TIFF.
10086 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
10087 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
10088 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
10089 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
10090 New functions (from xfns.c).
10091 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
10092 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
10093 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
10094 Don't enclose with #if HAVE_GIF.
10095 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
10096 animated gif. Otherwise use image_load_quicktime.
10097 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
10098 gif_DrawText to avoid conflict with QuickdrawText.h.
10099 [HAVE_GIF] (gif_load): Sync with xfns.c.
10100 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
10101 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
10102 Ghostscript is not supported yet).
10103 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
10104 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
10105 cross_disabled_images (from xfns.c). Remove #if 0 for supported
10106 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
10107 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
10108 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
10109 HAVE_PNG. Call EnterMovies to support animated gifs.
10110 Call init_image_func_pointer to bind a symbol
10111 _CGImageCreateWithPNGDataProvider if it is defined.
10112
10113 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
10114 (x_draw_bar_cursor): Sync declaration with xterm.c.
10115 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
10116 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
10117 graphics).
10118 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
10119 (mac_draw_line_to_pixmap, XCreatePixmap)
10120 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
10121 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
10122 New functions.
10123 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
10124 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
10125 Cast bits to char *.
10126 (reflect_byte): New function (from w32fns.c).
10127 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
10128 due to byte alignment.
10129 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
10130 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
10131 (XSetForeground): Remove static (now used in macfns.c).
10132 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
10133 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
10134 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
10135 (x_draw_glyph_string_box, x_draw_image_foreground)
10136 (x_draw_image_foreground_1, x_draw_image_glyph_string)
10137 (x_draw_stretch_glyph_string, x_draw_glyph_string)
10138 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
10139 Sync with xterm.c.
10140 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
10141 than the xterm.c version when a strictly horizontal or vertical
10142 line is drawn.
10143 (XTset_terminal_window): Add static.
10144 (x_make_frame_visible): Add UNBLOCK_INPUT.
10145 (x_free_frame_resources): New funcion (from xterm.c).
10146 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
10147 occurs in tool bar area.
10148 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
10149 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
10150 Initialize image cache.
10151 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
10152 Enclose unused functions with #if 0.
10153 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
10154 (decode_mac_font_name): New function to apply code conversions
10155 from a mac font name to an XLFD font name according to its script code.
10156 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
10157 font name to a mac font name according to REGISTRY and ENCODING fields.
10158 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
10159 whose name starts with `.'.
10160 (init_font_name_table): Use decode_mac_font_name. Add both
10161 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
10162 of a font is smJapanese.
10163 (mac_do_list_fonts): New function to list fonts that match a given
10164 pattern.
10165 (x_list_fonts, XLoadQueryFont): Use it.
10166 (XLoadQueryFont): Set rbearing field for each variable width
10167 character to avoid needless redraw.
10168 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
10169
10170 2004-02-26 Kim F. Storm <storm@cua.dk>
10171
10172 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
10173 as read_socket_hook handler on X aborts if buffer is too small
10174 and W32 handler doesn't always check buffer limit.
10175
10176 * xdisp.c (handle_single_display_prop): Handle left-fringe and
10177 right-fringe similar to a display margin image. Specifically,
10178 the characters having the fringe prop are no longer shown, and
10179 we use IT_IMAGE/next_element_from_image with image_id = -1 to
10180 do this. Set fringe bitmap face_id in it->face_id.
10181 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
10182 still realize it->face (i.e. the fringe bitmap face).
10183
10184 2004-02-25 Miles Bader <miles@gnu.org>
10185
10186 * xdisp.c (check_it): Check string/string_pos consistency.
10187 (init_iterator): Initialize string-related fields properly.
10188
10189 2004-02-11 Miles Bader <miles@gnu.org>
10190
10191 * xdisp.c (produce_image_glyph): Force negative descents to zero.
10192
10193 2004-02-10 Miles Bader <miles@gnu.org>
10194
10195 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
10196 BLOCK_INPUT can be nested, so it doesn't make much sense.
10197
10198 2004-02-24 Michael Mauger <mmaug@yahoo.com>
10199
10200 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
10201 (xbm_read_bitmap_data): Use unsigned char for image data.
10202
10203 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
10204
10205 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
10206
10207 2004-02-22 Jason Rumney <jasonr@gnu.org>
10208
10209 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
10210 correctly over other bitmaps.
10211
10212 2004-02-21 Eli Zaretskii <eliz@gnu.org>
10213
10214 * emacs.c (USAGE1): Split into two halves.
10215 (USAGE2): Second half of the old USAGE1.
10216 (USAGE3): Rename from USAGE2.
10217 (USAGE4): Rename from USAGE3.
10218
10219 2004-02-21 Juri Linkov <juri@jurta.org>
10220
10221 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
10222 Fix --multibyte. Move --help, --version to USAGE2. Add alias
10223 --file. Fix -f, -l. Sort options. Untabify.
10224 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
10225
10226 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
10227
10228 * category.c (Fdefine_category, Fcategory_docstring)
10229 (Fget_unused_category, Fset_category_table)
10230 (Fcategory_set_mnemonics): Doc fixes.
10231
10232 2004-02-20 Kim F. Storm <storm@cua.dk>
10233
10234 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
10235 The following changes are relative to the 2004-01-21 revision.
10236 (NREAD_INPUT_EVENTS): Define as max number of input events to read
10237 in one call to read_socket_hook. Value is 8.
10238 (read_avail_input): Separate and rework handling of read_socket_hook
10239 and non-read_socket_hook cases. Use smaller input_event buffer
10240 in read_socket_hook case, and repeat if full buffer is read.
10241 Use new local variable 'discard' to skip input after C-g.
10242 In non-read_socket_hook case, just use a single input_event, and
10243 call kbd_buffer_store_event on the fly for each character.
10244
10245 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10246
10247 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
10248 Remove unused `gu' alternative.
10249
10250 2004-02-19 Andreas Schwab <schwab@suse.de>
10251
10252 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
10253 warning.
10254
10255 2004-02-18 Kim F. Storm <storm@cua.dk>
10256
10257 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
10258 Fix last change.
10259
10260 2004-02-17 Kim F. Storm <storm@cua.dk>
10261
10262 * xdisp.c (fast_find_position): Fix return value of new version;
10263 it was inverted compared to the 21.1 version.
10264 (get_window_cursor_type): Don't look at glyph if NULL.
10265 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
10266
10267 * keyboard.c: Rework previous change; it didn't consider that the
10268 buf array was allocated on the stack.
10269 (prev_read): Remove variable.
10270 (read_avail_input_buf): New static event buffer array.
10271 (in_read_avail_input): New static variable to handle re-entrancy.
10272 (read_avail_input): Change buf to pinter to read_avail_input_buf.
10273 Use in_read_avail_input to handle re-entrance; when re-entered,
10274 fully initialize and use tmp_buf array instead of read_avail_input_buf.
10275 Do not initialize read_avail_input_buf in full here; instead assume it
10276 is always cleared on entry. To ensure that, we clear (just) the
10277 entries that were used before we return.
10278 (init_keyboard): Initialize read_avail_input_buf here.
10279
10280 2004-02-16 Jesper Harder <harder@ifa.au.dk>
10281
10282 * cmds.c (Fend_of_line): Doc fix.
10283
10284 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
10285
10286 * keyboard.c (prev_read): New static variable.
10287 (read_avail_input): Use it to zero out only those slots in buf[]
10288 that were used last time we were called.
10289
10290 2004-02-16 Eli Zaretskii <eliz@gnu.org>
10291
10292 * Makefile.in (obj): Move fringe.o from here...
10293 (XOBJ, MAC_OBJ): ...to here.
10294
10295 2004-02-16 Stephen Eglen <stephen@gnu.org>
10296
10297 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
10298
10299 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
10300
10301 * data.c (Fbyteorder):
10302 * fringe.c (Fdefine_fringe_bitmap):
10303 * xdisp.c (handle_single_display_prop):
10304 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
10305
10306 2004-02-16 Jason Rumney <jasonr@gnu.org>
10307
10308 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
10309
10310 2004-02-15 Steven Tamm <steventamm@mac.com>
10311
10312 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
10313 controlling emulation of a three button mouse with option and
10314 command keys.
10315 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
10316 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
10317
10318 2004-02-15 Kim F. Storm <storm@cua.dk>
10319
10320 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
10321
10322 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
10323 Perform byte-swapping.
10324
10325 2004-02-14 Kim F. Storm <storm@cua.dk>
10326
10327 * dispextern.h (struct draw_fringe_bitmap_params): Change member
10328 bits from char to short to facilitate wider bitmaps.
10329 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
10330 member.
10331
10332 * fringe.c (struct fringe_bitmap): Change member bits from char to
10333 short to facilitate 16 bits wide bitmaps. Modify all standard
10334 bitmaps accordingly.
10335 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
10336 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
10337 (draw_fringe_bitmap): Ditto.
10338 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
10339 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
10340 handle up to 16 bits wide bitmaps.
10341 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
10342 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
10343
10344 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
10345 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
10346 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
10347
10348 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
10349 so it is no longer necessary to expand them here.
10350
10351 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
10352
10353 2004-02-12 Kim F. Storm <storm@cua.dk>
10354
10355 * window.c (Fwindow_fringes): Doc fix.
10356
10357 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10358
10359 * xselect.c (x_get_foreign_selection): Add new optional parameter
10360 time_stamp.
10361 (Fx_get_selection_internal): Ditto, pass time_stamp to
10362 x_get_foreign_selection.
10363
10364 * data.c (Fbyteorder): New function.
10365
10366 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10367
10368 * atimer.c: Move include stdio.h to same place as in other files.
10369
10370 * region-cache.c: Ditto.
10371
10372 * sysdep.c: Ditto.
10373
10374 * xfaces.c: Ditto.
10375
10376 2004-02-09 Sam Steingold <sds@gnu.org>
10377
10378 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
10379
10380 2004-02-09 Kim F. Storm <storm@cua.dk>
10381
10382 * fringe.c: New file. Move original fringe related declarations
10383 and code from dispextern.h and xdisp.c here.
10384 Rework code to support user defined fringe bitmaps, redefining
10385 standard bitmaps, ability to overlay user defined bitmap with
10386 overlay arrow bitmap, and add faces to bitmaps.
10387 (Voverflow_newline_into_fringe): Declare here.
10388 (enum fringe_bitmap_align): New enum.
10389 (..._bits): All bitmaps are now defined without bitswapping; that
10390 is now done in init_fringe_once (if necessary).
10391 (standard_bitmaps): New array with specifications for the
10392 standard fringe bitmaps.
10393 (fringe_faces): New array.
10394 (valid_fringe_bitmap_id_p): New function.
10395 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
10396 (draw_fringe_bitmap): New function which draws fringe bitmap,
10397 possibly overlaying bitmap with cursor in right fringe or the
10398 overlay arrow in the left fringe.
10399 (update_window_fringes): Do not handle overlay arrow here.
10400 Compare and copy fringe bitmap faces.
10401 (init_fringe_bitmap): New function.
10402 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
10403 define and destroy user defined fringe bitmaps.
10404 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
10405 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
10406 (syms_of_fringe): New function. Defsubr new DEFUNs.
10407 DEFVAR_LISP Voverflow_newline_into_fringe.
10408 (init_fringe_once, init_fringe): New functions.
10409 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
10410
10411 * Makefile.in (obj): Add fringe.o.
10412 (fringe.o): New dependencies.
10413
10414 * dispextern.h (FRINGE_ID_BITS): New definition for number of
10415 bits allocated to hold a fringe number. Increase number of bits
10416 from 4 to 8 to allow user defined fringe bitmaps.
10417 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
10418 left_user_fringe_face_id, right_user_fringe_bitmap,
10419 right_user_fringe_face_id.
10420 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
10421 Move to new file fringe.c.
10422 (MAX_FRINGE_BITMAPS): Define here.
10423 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
10424 and overlay_p. Change member which to int.
10425 (struct redisplay_interface): New members define_fringe_bitmap
10426 and destroy_fringe_bitmap.
10427 (valid_fringe_bitmap_id_p): Add prototype.
10428 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
10429
10430 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
10431 arrows.
10432 (update_frame): Do flush_display if force_flush_display_p to
10433 ensure display (specifically fringes) are updated in a timely
10434 manner when resizing the frame by dragging the mouse.
10435 (update_window_line): Update row if overlay arrow changed.
10436 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
10437 or overlay arrow changed.
10438
10439 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
10440 syms_of_fringe, and init_fringe.
10441
10442 * frame.h (struct frame): New member force_flush_display_p.
10443
10444 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
10445 Add prototypes.
10446
10447 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
10448 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
10449 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
10450 Use cursor color for displaying cursor in fringe.
10451 (x_redisplay_interface): Add null handlers for
10452 define_fringe_bitmap and destroy_fringe_bitmap functions.
10453
10454 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
10455 xterm.c to handle overlayed fringe bitmaps and to use cursor color
10456 for displaying cursor in fringe.
10457 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
10458 specific functions to define and destroy fringe bitmaps in fringe_bmp.
10459 (w32_redisplay_interface): Add them to redisplay_interface.
10460 (w32_term_init): Call w32_init_fringe instead of explicitly
10461 defining fringe bitmaps in fringe_bmp array.
10462 (x_delete_display): Call w32_reset_fringes instead of explicitly
10463 destroying fringe bitmaps in fringe_bmp array.
10464
10465 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
10466 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
10467 (continued_bits, continuation_bits, ov_bits, first_line_bits)
10468 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
10469 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
10470 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
10471 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
10472 Move fringe handling vars and code to new file fringe.c.
10473 (handle_display_prop): Handle left-fringe and right-fringe
10474 display properties; store user fringe bitmaps in iterator.
10475 (move_it_in_display_line_to): Handle cursor in fringe at eob.
10476 (clear_garbaged_frames): Set force_flush_display_p if resized.
10477 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
10478 (display_line): Handle cursor in fringe at eob.
10479 (display_line): Set row user fringe bitmaps from iterator.
10480
10481 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
10482 Use cursor color for displaying cursor in fringe.
10483 (x_redisplay_interface): Add null handlers for
10484 define_fringe_bitmap and destroy_fringe_bitmap functions.
10485
10486 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10487
10488 * macfns.c (Fx_change_window_property): Make doc string and
10489 parameters same as for X version.
10490
10491 * w32fns.c (Fx_change_window_property): Ditto.
10492
10493 2004-02-07 Kim F. Storm <storm@cua.dk>
10494
10495 * xdisp.c (hscroll_window_tree): Position cursor near to right
10496 margin in hscrolled window when jumping to end of line (rather
10497 than centering cursor).
10498
10499 * process.c (wait_reading_process_input): Don't do adaptive read
10500 buffering if waiting for a specific process.
10501
10502 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
10503
10504 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
10505 (Fread_minibuffer, Feval_minibuffer)
10506 (Fread_string, Fread_no_blanks_input)
10507 (Fcompleting_read): Doc fixes.
10508 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
10509 completion-regexp-list. Define Qcase_fold_search and staticpro it.
10510 (read_minibuf): Fix initial comment.
10511 (Ftry_completion, Fall_completions, Ftest_completion): Bind
10512 case-fold-search to the value of completion-ignore-case when
10513 checking completion-regexp-list.
10514 (Fdisplay_completion_list): Make it handle arguments that are
10515 symbols. Doc fix.
10516
10517 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10518
10519 * xterm.h: Add declaration of free_frame_menubar.
10520
10521 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
10522 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
10523 (Fx_change_window_property): Add declaration of parameters type and
10524 format. Remove unused variable cons.
10525
10526 * xselect.c: Include stdio.h.
10527
10528 2004-02-05 Kenichi Handa <handa@m17n.org>
10529
10530 * fns.c (Fset_char_table_range): Fix previous change.
10531
10532 * buffer.c (Fset_buffer_multibyte): Fix docstring.
10533
10534 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
10535
10536 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
10537
10538 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
10539
10540 * keymap.c (Vmouse_events): Rename from Vmenu_events.
10541 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
10542
10543 2004-02-04 Kenichi Handa <handa@m17n.org>
10544
10545 * fns.c (Fset_char_table_range): Handle charsets ascii,
10546 eight-bit-control, and eight-bit-graphic correctly.
10547
10548 2004-02-03 Jason Rumney <jasonr@gnu.org>
10549
10550 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
10551
10552 * w32fns.c (x_to_w32_font): Likewise.
10553
10554 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10555
10556 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
10557 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
10558
10559 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
10560 ClientMessages.
10561
10562 * xselect.c: Include termhooks.h and X11/Xproto.h
10563 (x_check_property_data, x_fill_property_data)
10564 (x_property_data_to_lisp, mouse_position_for_drop)
10565 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
10566 (Fx_send_client_event): Move here from xfns.c.
10567 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
10568
10569 * xfns.c (x-send-client-message): Move to xselect.c
10570 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
10571 OUTER_P.
10572 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
10573 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
10574 if vector_ret_p is true.
10575 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
10576
10577 2004-02-02 Eli Zaretskii <eliz@gnu.org>
10578
10579 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
10580 basename of FILE relative to it, not FILE itself.
10581
10582 2004-02-02 Kenichi Handa <handa@m17n.org>
10583
10584 * coding.c (coding_restore_composition): Check invalid
10585 composition data more rigidly.
10586
10587 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
10588
10589 * fileio.c (Fread_file_name_internal): Correctly handle the case
10590 where insert-default-directory is nil.
10591 (Fread_file_name): Always return an empty string if the user exits
10592 with an empty minibuffer. Adapt the docstring accordingly.
10593 (syms_of_fileio): Adapt the docstring of insert-default-directory
10594 to the change in Fread_file_name.
10595
10596 2004-01-29 Eli Zaretskii <eliz@gnu.org>
10597
10598 * alloca.c [!alloca]: Fix the prototype for xfree.
10599
10600 2004-01-29 Kenichi Handa <handa@m17n.org>
10601
10602 * fns.c (string_char_to_byte): Optimize for ASCII only string.
10603 (string_byte_to_char): Likewise.
10604
10605 2004-01-28 Peter Runestig <peter@runestig.com>
10606
10607 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
10608
10609 2004-01-27 Steven Tamm <steventamm@mac.com>
10610
10611 * unexmacosx.c (unexec_copy): Do not copy more than was
10612 requested to prevent overwriting during unexec.
10613
10614 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10615
10616 * process.c (sigchld_handler): Add comment about not calling malloc.
10617
10618 * process.h: Add extern to synch_process_termsig.
10619
10620 2004-01-27 Steven Tamm <steventamm@mac.com>
10621
10622 * macterm.c (make_mac_frame, make_mac_terminal_frame):
10623 Move setting of scroll bars from make_mac_frame to
10624 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
10625
10626 2004-01-26 Richard M. Stallman <rms@gnu.org>
10627
10628 * search.c (Freplace_match): Handle nonexistent
10629 back-references properly.
10630
10631 2004-01-03 Richard M. Stallman <rms@gnu.org>
10632
10633 * window.c (decode_any_window): New function.
10634 (Fwindow_height, Fwindow_width, Fwindow_edges)
10635 (Fwindow_pixel_edges, Fwindow_inside_edges)
10636 (Fwindow_inside_pixel_edges): Use decode_any_window.
10637
10638 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10639
10640 * process.h: synch_process_termsig new variable.
10641
10642 * callproc.c: Define synch_process_termsig.
10643 (Fcall_process): Initiate synch_process_termsig to zero and
10644 check if non-zero and get signal name after subprocess has ended.
10645
10646 * process.c (sigchld_handler): Set synch_process_termsig
10647 if terminated by a signal. synch_process_death setting removed.
10648
10649 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
10650
10651 2004-01-26 Andreas Schwab <schwab@suse.de>
10652
10653 * print.c (print_preprocess): Declare size as EMACS_INT to not
10654 lose bits.
10655 (print_object): Likewise.
10656 * alloc.c (Fpurecopy): Likewise.
10657
10658 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
10659
10660 * window.c (Fwindow_minibuffer_p): Doc fix.
10661
10662 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
10663
10664 * editfns.c (Fformat): Make both passes accept the same set of flags.
10665
10666 2004-01-23 Kenichi Handa <handa@m17n.org>
10667
10668 * fns.c (Fmd5): If OBJECT is a buffer different from the current
10669 one, set buffer to OBJECT temporarily.
10670
10671 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
10672
10673 * keyboard.c (kbd_buffer_gcpro): Remove.
10674 (kbd_buffer_store_event, clear_event, Fdiscard_input)
10675 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
10676 Don't initialize and/or maintain the variable any more. It was made
10677 redundant by my commit of 2003-06-15.
10678
10679 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
10680
10681 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10682
10683 * lisp.h: Add undef DECL_ALIGN.
10684
10685 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
10686
10687 * process.c (wait_reading_process_input) [SYNC_INPUT]:
10688 Check interrupt_input_pending explicitly.
10689
10690 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
10691
10692 * keyboard.c (handle_async_input): New fun,
10693 extracted from input_available_signal.
10694 (input_available_signal, reinvoke_input_signal): Use it.
10695
10696 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
10697
10698 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
10699
10700 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
10701 manipulation macros for when tags are in the lower bits.
10702 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
10703 (DECL_ALIGN): New macro.
10704 (DEFUN): Use it.
10705
10706 * lisp.h [ENABLE_CHECKING]: Don't force union type.
10707
10708 * s/darwin.h (__attribute__): Remove outdated workaround.
10709
10710 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
10711
10712 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
10713 Don't check range of malloc address.
10714 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
10715
10716 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
10717
10718 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
10719
10720 2004-01-19 Kenichi Handa <handa@m17n.org>
10721
10722 * fontset.c (fontset_font_pattern): Fix previous change.
10723
10724 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
10725
10726 * xdisp.c (Voverflow_newline_into_fringe)
10727 (move_it_in_display_line_to, redisplay_internal)
10728 (update_window_fringes, redisplay_window, display_line, window):
10729 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
10730 that it compiles without a window-system.
10731 * dispnew.c (direct_output_for_insert, update_window): Likewise.
10732
10733 2004-01-16 Kim F. Storm <storm@cua.dk>
10734
10735 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
10736
10737 * buffer.c (init_buffer_once): Set buffer_defaults and
10738 buffer_local_flags for indicate_buffer_boundaries.
10739 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
10740 default- variable for it.
10741
10742 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
10743 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
10744 New members exact_window_width_line_p and cursor_in_fringe_p for
10745 overflowing newlines into right fringe.
10746 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
10747 and indicate_bottom_line_p for buffer boundaries and scrolling.
10748 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
10749 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
10750 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
10751 and HOLLOW_SQUARE_BITMAP.
10752 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
10753 Add prototypes.
10754
10755 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
10756 instead of related indicator fields.
10757 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
10758 (direct_output_for_insert): Handle exact width lines like
10759 contined lines. Call update_window_fringes.
10760 (update_window): Call update_window_fringes.
10761 (scrolling_window): Don't skip desired rows with changed bitmaps.
10762 Check if fringe bitmaps changes when assigning scrolled rows.
10763
10764 * xdisp.c (Voverflow_newline_into_fringe): New variable.
10765 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
10766 (move_it_in_display_line_to): Overflow newline into fringe for
10767 rows that are exactly as wide as the window.
10768 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
10769 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
10770 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
10771 (fringe_bitmaps): Add new bitmaps.
10772 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
10773 Select proper bitmap for cursor in fringe when appropriate.
10774 Handle alignment of bitmap to top or bottom of row.
10775 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
10776 done by update_window_fringes.
10777 (update_window_fringes, draw_window_fringes): New functions.
10778 (redisplay_internal): Call update_window_fringes in case only
10779 cursor row is updated.
10780 (redisplay_window): Call update_window_fringes.
10781 Explicitly call draw_window_fringes if redisplay was done using
10782 the current matrix or the overlay arrow is in the window.
10783 (try_window_reusing_current_matrix): Mark scrolled rows for
10784 fringe update (to update buffer-boundaries / scrolling icons).
10785 (find_last_unchanged_at_beg_row): Handle exact width lines line
10786 continued lines.
10787 (display_line): Overflow newline into fringe for rows that are
10788 exactly as wide as the window. Don't append space for newline
10789 in this case.
10790 (notice_overwritten_cursor): Explicitly clear cursor bitmap
10791 in fringe as if it had been overwritten.
10792 (erase_phys_cursor): Erase cursor bitmap in fringe.
10793 (syms_of_xdisp): Mark show-trailing-whitespace and
10794 void-text-area-pointer as user options.
10795 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
10796
10797 * xterm.c (x_update_window_end): Call draw_window_fringes.
10798 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10799 in row instead of actually drawing fringe bitmaps.
10800 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10801 (x_draw_window_cursor): Draw cursor in fringe.
10802
10803 * w32term.c (x_update_window_end): Call draw_window_fringes.
10804 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10805 in row instead of actually drawing fringe bitmaps.
10806 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10807 (w32_draw_window_cursor): Draw cursor in fringe.
10808
10809 * macterm.c (x_update_window_end): Call draw_window_fringes.
10810 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10811 in row instead of actually drawing fringe bitmaps.
10812 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10813 (mac_draw_window_cursor): Draw cursor in fringe.
10814
10815 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10816
10817 * xterm.c (handle_one_xevent): Don't handle characters that are part
10818 of an old style (XLookupString) compose sequence.
10819
10820 2004-01-15 Kenichi Handa <handa@m17n.org>
10821
10822 * search.c (Freplace_match): Use make_multibyte_string or
10823 make_unibyte_string according to the buffer multibyteness.
10824
10825 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
10826
10827 * alloc.c (struct interval_block, struct string_block)
10828 (struct symbol_block, struct marker_block, live_string_p)
10829 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
10830 Better preserve alignment for objects in blocks.
10831 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
10832
10833 * lread.c (defvar_per_buffer): Remove dead declaration.
10834
10835 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
10836 space size.
10837
10838 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10839
10840 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
10841 if a key press should pop down. Only pop down if a key is pressed
10842 outside the menu/dialog.
10843 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
10844 popup_get_selection.
10845 (create_and_show_dialog): Pass 1 for down_on_keypress to
10846 popup_get_selection.
10847
10848 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10849
10850 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
10851 BLOCK/UNBLOCK_INPUT.
10852
10853 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10854
10855 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
10856 specified.
10857
10858 2004-01-08 Kenichi Handa <handa@m17n.org>
10859
10860 * editfns.c (Fformat): Fix '&' to '&&'.
10861
10862 2004-01-08 Andreas Schwab <schwab@suse.de>
10863
10864 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
10865 size if PSEUDOVECTOR_FLAG is set.
10866
10867 2004-01-07 Kenichi Handa <handa@m17n.org>
10868
10869 * charset.c (Fdeclare_equiv_charset): Fix docstring.
10870
10871 * fontset.c (fontset_ref_via_base): Fix previous change.
10872
10873 2004-01-07 Kim F. Storm <storm@cua.dk>
10874
10875 * process.c (read_process_output): Only activate adaptive
10876 buffering if we read less than 256 bytes at a time.
10877
10878 2004-01-06 Kim F. Storm <storm@cua.dk>
10879
10880 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
10881 object and image object. Return glyph width and height.
10882 (mode_line_string, marginal_area_string): Ditto.
10883
10884 * dispextern.h (buffer_posn_from_coords, mode_line_string)
10885 (marginal_area_string): Fix prototypes.
10886
10887 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
10888 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
10889 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
10890
10891 * keyboard.c (make_lispy_position): Use modified mode_line_string,
10892 buffer_posn_from_coords, and marginal_area_string functions to
10893 include both string object and image object in the lispy position.
10894 Also add actual glyph width and height to position.
10895 (read_key_sequence): Use real buffer position from mouse
10896 event to find keymap property even when click is in marginal area.
10897
10898 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
10899 mode_line_string and marginal_area_string functions to handle
10900 both string object and image object properties.
10901
10902 2004-01-06 Andreas Schwab <schwab@suse.de>
10903
10904 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
10905 character.
10906
10907 2004-01-02 Andreas Schwab <schwab@suse.de>
10908
10909 * macterm.c (emacs_options, x_initialized, same_x_server):
10910 Remove unused (and duplicated) definitions.
10911
10912 2004-01-02 Kim F. Storm <storm@cua.dk>
10913
10914 * process.h (struct Lisp_Process): New members for adaptive read
10915 buffering: adaptive_read_buffering, read_output_delay, and
10916 read_output_skip.
10917
10918 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
10919 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
10920 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
10921 (process_output_delay_count, process_output_skip): New vars.
10922 (Vprocess_adaptive_read_buffering): New variable.
10923 (make_process): Initialize adaptive read buffering members.
10924 (Fstart_process): Set adaptive_read_buffering member.
10925 (deactivate_process): Cleanup adaptive read buffering.
10926 (wait_reading_process_input): Temporarily omit delayed
10927 subprocesses from the set of file descriptors to read from;
10928 adjust the select timeout if we skipped any subprocesses.
10929 (read_process_output): Increase adaptive read buffering delay if
10930 we read less than a full buffer; reduce delay when we read a
10931 full buffer.
10932 (send_process): Simplify using local Lisp_Process var.
10933 Reset adaptive read buffering delay after write.
10934 (init_process): Initialize process_output_delay_count and
10935 process_output_skip.
10936 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
10937
10938 2004-01-01 Jason Rumney <jasonr@gnu.org>
10939
10940 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
10941
10942 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
10943
10944 * print.c (Ferror_message_string): Add hyperlink in the docstring
10945 to the definition of `signal' in the Elisp manual.
10946 * eval.c (Fsignal): Ditto.
10947
10948 2003-12-29 James Clark <jjc@jclark.com>
10949
10950 * fns.c (internal_equal): Return t for two NaN arguments.
10951
10952 2003-12-29 Richard M. Stallman <rms@gnu.org>
10953
10954 * data.c (store_symval_forwarding): Handle setting
10955 default-fill-column, etc., by changing the value in
10956 buffers that use the default.
10957
10958 * minibuf.c (Fset_minibuffer_window): Doc fix.
10959
10960 * fileio.c (choose_write_coding_system): Ignore auto_saving
10961 if using the visited file for auto saves.
10962 (Fwrite_region): Don't update SAVE_MODIFF
10963 if auto-saving in visited file.
10964
10965 2003-12-29 Kenichi Handa <handa@m17n.org>
10966
10967 * dispextern.h (face_font_available_p): Extern it.
10968
10969 * fontset.c (Voverriding_fontspec_alist): New variable.
10970 (lookup_overriding_fontspec): New function.
10971 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
10972 (fontset_font_pattern): Likewise.
10973 (regulalize_fontname): New function.
10974 (Fset_fontset_font): Call regulalize_fontname.
10975 (Fset_overriding_fontspec_internal): New function.
10976 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
10977 Defsubr Sset_overriding_fontspec_internal.
10978
10979 * xfaces.c (face_font_available_p): New function.
10980
10981 2003-12-28 Richard M. Stallman <rms@gnu.org>
10982
10983 * buffer.c (Fother_buffer): Don't crash if BUF is nil
10984 or if its name is nil.
10985
10986 * buffer.c (Fkill_buffer): Don't delete auto-save file
10987 if it's the same as the visited file.
10988
10989 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
10990
10991 * coding.c (Fcheck_coding_system): Doc fix.
10992
10993 2003-12-28 Kim F. Storm <storm@cua.dk>
10994
10995 * Makefile.in (eval.o): Depend on dispextern.h.
10996
10997 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
10998 image glyph using image's ascent.
10999 (mode_line_string): Return image glyph as object clicked on.
11000 Adjust y0 for image glyph using image's ascent.
11001
11002 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
11003 (struct glyph): New members, ascent and descent. Used to save
11004 this glyph's ascent and descent, instead of having.
11005 (struct glyph): Declare member face_id using FACE_ID_BITS.
11006 (find_hot_spot): Add prototype.
11007
11008 * keyboard.c (Qimage): Remove extern (now in lisp.h).
11009 (QCmap): Declare extern.
11010 (make_lispy_position): When position is inside image hot-spot,
11011 use hot-spot element's id as posn element.
11012
11013 * lisp.h (IMAGEP): New macro to test for image object type.
11014 (Qimage): Declare extern.
11015
11016 * macfns.c (Qimage): Remove extern (now in lisp.h).
11017 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11018
11019 * macterm.c (Qface, Qmouse_face): Remove unused externs.
11020
11021 * w32fns.c (Qimage): Remove extern (now in lisp.h).
11022 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11023
11024 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
11025
11026 * w32term.c (Qface, Qmouse_face): Remove unused externs.
11027
11028 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
11029 pointer types.
11030 (Qrelative_width, Qalign_to): Remove unused variables.
11031 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
11032 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
11033 image maps.
11034 (x_y_to_hpos_vpos): Return glyph relative coordinates through
11035 new dx and dy args.
11036 Remove buffer_only_p arg (always 0). Simplify code accordingly.
11037 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
11038 than row's ascent and height, to get sensible height on tall rows.
11039 (build_desired_tool_bar_string): Remove Qimage extern.
11040 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
11041 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
11042 image glyph is alone on the last line.
11043 (append_glyph, append_composite_glyph, produce_image_glyph)
11044 (append_stretch_glyph): Set glyph's ascent and descent.
11045 (on_hot_spot_p): New function to check if position is inside an
11046 rectangular, circular, or polygon-shaped image hot-spot,
11047 (find_hot_spot): New function to search for image hot-spot.
11048 (Flookup_image_map): New defun to search for image hot-spot.
11049 (define_frame_cursor1): New aux function to determine frame pointer.
11050 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11051 Handle `pointer' text property and :pointer image property to
11052 control frame pointer shape. Detect image hot-spots for pointer
11053 and help_echo properties. Use define_frame_cursor1.
11054 (note_mouse_highlight): Use Vvoid_text_area_pointer.
11055 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
11056 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
11057
11058 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
11059
11060 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
11061 (Qimage): Remove extern (now in lisp.h).
11062 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11063
11064 * xmenu.c (show_help_event): Remove unused code.
11065
11066 * xterm.c (Qface, Qmouse_face): Remove unused externs.
11067 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
11068 row's ascent and descent, to get a sensible height on tall rows.
11069
11070 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
11071
11072 * minibuf.c (Fcompleting_read): Undo previous change.
11073
11074 2003-12-25 Lars Hansen <larsh@math.ku.dk>
11075
11076 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
11077 Arguments GCPRO'ed in call to file name handler.
11078
11079 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
11080
11081 * termcap.c (tgetst1): Scan for "%pN"; if all
11082 N are continuous in [1,9], remove all "%pN".
11083
11084 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11085
11086 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
11087
11088 * xfaces.c (lface_fully_specified_p): Take into account that
11089 MAC OS always have unspecified stipple.
11090
11091 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
11092
11093 * tparam.c (tparam1): Add handling for `%pN', which
11094 means use param N for the next substitution.
11095
11096 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
11097
11098 * xfaces.c (Fcolor_gray_p): Fix omission bug:
11099 In case `frame' is nil, consult the selected frame.
11100 (Fcolor_supported_p): Likewise.
11101
11102 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
11103
11104 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
11105 Doc fixes.
11106
11107 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
11108 and an integer. Adapt the introductory comment accordingly.
11109 (Fread_from_minibuffer): Delete code moved into read_minibuf.
11110 Doc fix.
11111 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
11112 read_minibuf.
11113 (Fcompleting_read): Delete code moved into read_minibuf.
11114 (Ftest_completion): Make it handle obarrays and hash tables correctly.
11115
11116 2003-12-03 Kenichi Handa <handa@m17n.org>
11117
11118 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
11119 encoding sequence.
11120
11121 2003-12-01 Kenichi Handa <handa@m17n.org>
11122
11123 * composite.c (syms_of_composite): Don't make the compostion hash
11124 table week.
11125
11126 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
11127
11128 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
11129 * textprop.c (Fget_char_property_and_overlay): New function.
11130 (syms_of_textprop): Defsubr it.
11131
11132 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11133
11134 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
11135 to compile on terminal configuration.
11136
11137 * fileio.c (Fread_file_name): Check use_file_dialog also before
11138 calling Fx_file_dialog.
11139
11140 * fns.c (use_file_dialog): New variable.
11141 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
11142
11143 2003-11-29 Kim F. Storm <storm@cua.dk>
11144
11145 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
11146 (syms_of_msdos): Don't intern and staticpro them.
11147
11148 2003-11-27 Kim F. Storm <storm@cua.dk>
11149
11150 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
11151 coordinates relative to glyph at posn. If glyph is an image,
11152 return that as object at posn. Callers changed.
11153 (mode_line_string, marginal_area_string): Calculate and return
11154 pixel coordinates relative to glyph. Callers changed.
11155
11156 * dispextern.h (buffer_posn_from_coords, mode_line_string)
11157 (marginal_area_string): Fix prototypes.
11158 (window_box_left_offset, window_box_right_offset): Add prototypes.
11159
11160 * frame.h (get_specified_cursor_type, get_window_cursor_type):
11161 Remove prototypes.
11162
11163 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
11164
11165 * keyboard.c (make_lispy_position): Add x and y coordinates
11166 relative to the current glyph as 7th element of position.
11167 If glyph is an image, return it in the object element.
11168 (read_key_sequence): Skip checks for keymap property in cases
11169 where POSN_STRING is not a string (e.g. an image).
11170
11171 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
11172 (Vshow_text_cursor_in_void): New variable.
11173 (glyph_to_pixel_coords): Don't use negative hpos.
11174 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
11175 (append_stretch_glyph): Change ascent arg to be actual value
11176 in pixels rather than ratio to height. Callers changed.
11177 (calc_pixel_width_or_height): New aux function, implementing
11178 pixel based artihmetic for glyph widths and heights.
11179 (produce_stretch_glyph): Use calc_pixel_width_or_height for
11180 :width, :height, :align-to, and :ascent, thus allowing these to
11181 be specified in pixels as well as multiples of characters.
11182 Don't produce stretch glyphs with zero width or height.
11183 (get_specified_cursor_type): Declare static.
11184 (get_window_cursor_type): Declare static. Add glyph arg to be
11185 able to know when cursor is on an image; always substitute
11186 hollow-box cursor for filled-box cursor on images, to avoid
11187 negative images and flicker when blinking the cursor.
11188 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
11189 (note_mode_line_or_margin_highlight): Use non-text cursor rather
11190 than vertical scroll-bar cursor in display margins.
11191 (note_mouse_highlight): Use non-text cursor rather than text
11192 cursor in fringes and over images in the text area.
11193 Use non-text cursor when mouse pointer is outside editable text,
11194 i.e. in the void after end-of-line or end-of-buffer; this was
11195 already done for W32, but is now standard for all systems --
11196 user can toggle show-text-cursor-in-void to get old behaviour.
11197 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
11198 Vdisplay_pixels_per_inch.
11199
11200 2003-11-25 Andreas Schwab <schwab@suse.de>
11201
11202 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
11203 EMACS_INT to not lose bits.
11204 (Ffillarray): Don't set bits beyond the size of a bool vector.
11205
11206 2003-11-25 Kim F. Storm <storm@cua.dk>
11207
11208 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
11209 define this defun on systems that cannot use stderr as lvalue.
11210
11211 2003-11-24 Gerd Moellmann <gerd@gnu.org>
11212
11213 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
11214 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
11215 ld's default is incompatible with unexec.
11216
11217 2003-11-23 Kim F. Storm <storm@cua.dk>
11218
11219 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
11220 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
11221 (Fforce_window_update): New defun.
11222 (syms_of_window): Defsubr it.
11223 (Fset_window_margins, Fset_window_fringes): Doc fix.
11224
11225 * print.c (Fredirect_debugging_output): New defun.
11226 (syms_of_print): Defsubr it.
11227
11228 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
11229
11230 * fns.c (Fset_char_table_parent): Doc fix.
11231
11232 2003-11-22 Kim F. Storm <storm@cua.dk>
11233
11234 * dispnew.c (buffer_posn_from_coords): Return actual row/column
11235 for glyph clicked on, rather than (unused) pixel positions.
11236 (mode_line_string, marginal_area_string): Change X and Y args to
11237 pointers for returning actual row/column for glyph clicked on.
11238 Simplify and optimize loops.
11239
11240 * dispextern.h (mode_line_string, marginal_area_string):
11241 Update prototypes.
11242
11243 * keyboard.c (make_lispy_position): New function for generating
11244 mouse click positions from frame and pixel coordinates.
11245 Enhanced to return buffer position and actual row/column for
11246 events outside the text area using updated mode_line_string and
11247 marginal_area_string functions.
11248 Return left-fringe and right-fringe clicks as such, rather than
11249 clicks in text area.
11250 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
11251 pixel_to_glyph_coords, as we never use the results.
11252 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
11253 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
11254 Eliminate unused code in WHEEL_EVENT handling.
11255 (make_lispy_movement): Use make_lispy_position.
11256
11257 * window.c (coordinates_in_window): Remove redundant tests.
11258 Fix returned X pixel value for left-margin.
11259
11260 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
11261 mode_line_string and marginal_area_string parameters.
11262
11263 2003-11-22 Lars Hansen <larsh@math.ku.dk>
11264
11265 * w32.c (struct the_group, getgrgid): Add.
11266 * mac.c (struct my_group, getgrgid): Add.
11267
11268 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
11269
11270 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
11271
11272 2003-11-21 Lars Hansen <larsh@math.ku.dk>
11273
11274 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
11275 include in call to file name handler. Optionally translate numeric
11276 UID and GID to strings. Update docstring.
11277 (directory_files_internal): Add parameter ID-FORMAT.
11278 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
11279 include in call to file name handler and call to
11280 directory_files_internal. Update Docstring.
11281 (Fdirectory_files): Add dummy parameter in call to
11282 directory_files_internal.
11283 * lisp.h (Qinteger): Add.
11284 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
11285 (Ffile_attributes): Add parameter.
11286 * data.c (Qinteger): Export.
11287
11288 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
11289
11290 * fns.c (Freverse, Fnreverse): Doc fixes.
11291
11292 2003-11-19 Kim F. Storm <storm@cua.dk>
11293
11294 * xdisp.c (init_iterator): Initialize it->start to position
11295 before reseating (in case start position is invisible).
11296 (init_to_row_start): Set it->start to row-start.
11297 (redisplay_window): Accept optional_new_start if start position
11298 is invisible (in which case IT_CHARPOS overshoots PT).
11299 (display_line): Setup row->start from it->start (rather than
11300 it->current which is wrong if first char on line is invisible).
11301 When done, reseat it->start to it->current (= start of next row).
11302 (expose_area): Fix exposure of text area when first char (e.g. TAB)
11303 is only partially visible.
11304
11305 * dispextern.h (struct it): New member start.
11306
11307 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11308
11309 * alloc.c (make_float, Fcons): Clear the markbit at init time.
11310 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
11311 of block_index outside of the macro call.
11312 (Fgarbage_collect): Remove null code.
11313
11314 * m/amdx86-64.h: Don't redefine XPNTR.
11315
11316 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
11317 of VALMASK.
11318
11319 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
11320 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
11321 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
11322
11323 * lisp.h (VALMASK): Only define for non-union type.
11324 (MARKBIT): Remove.
11325 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
11326 (XTYPE): Define unconditionally.
11327 (XSETTYPE): Remove one more remnant.
11328 (EQ): Define differently for the union and non-union cases.
11329 (INTMASK): New bit mask.
11330 (struct Lisp_Marker): Move down to prepare for upcoming patch.
11331 (GC_EQ): Delegate to EQ.
11332
11333 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
11334
11335 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11336
11337 * xterm.c (x_window_to_scroll_bar): Move check of display to
11338 where window_id is compared.
11339
11340 2003-11-17 Kim F. Storm <storm@cua.dk>
11341
11342 * dispextern.h (struct it): New member first_vpos.
11343
11344 * xdisp.c (start_display): Set it->first_vpos.
11345 (try_window_id): Use first_vpos to start display in first _text_
11346 line if no reusable lines at start of window with header line.
11347
11348 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11349
11350 * w32fns.c (XPutPixel):
11351 * w32bdf.c (w32_init_bdf_font):
11352 * sunfns.c (sel_read):
11353 * process.c (Fmake_network_process):
11354 * frame.c (store_frame_param):
11355 * fontset.c (Fset_fontset_font):
11356 * emacs.c (shut_down_emacs):
11357 * ccl.c (ccl_driver): Remove period at end of error message.
11358
11359 * config.in: Regenerate.
11360
11361 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11362 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11363 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
11364 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
11365 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
11366
11367 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
11368
11369 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
11370 (XTmouse_position, handle_one_xevent): Pass Display* to
11371 x_window_to_scroll_bar.
11372 (x_window_to_scroll_bar): Take a Display* argument.
11373 Check that display for frame is equal to Display* argument.
11374 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
11375 x_display_info_for_display instead. Use Display in xev instead
11376 of GDK_DISPLAY.
11377 (x_dispatch_event): Call x_display_info_for_display.
11378 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
11379 (x_connection_closed): Call xg_display_close for GTK.
11380 (x_term_init): Call xg_display_open for additional displays.
11381 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
11382 for GTK.
11383
11384 * xmenu.c (single_menu_item, mouse_position_for_popup)
11385 (x_activate_menubar): Formatting adjustments.
11386
11387 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
11388 adjustments.
11389
11390 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
11391 (xg_display_close, xg_create_default_cursor)
11392 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
11393 handling.
11394 (xg_left_ptr_cursor): Remove.
11395 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
11396 cursor here.
11397 (xg_win_to_widget): Take Display* argument, call
11398 gdk_xid_table_lookup_for_display.
11399 (xg_create_frame_widgets, xg_get_file_name, create_menus)
11400 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
11401 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
11402 in FRAME_X_DISPLAY_INFO.
11403 (xg_get_scroll_id_for_window): Take Display* argument.
11404 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
11405 (xg_initialize): Remove xg_left_ptr_cursor.
11406
11407 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
11408 Display* argument.
11409 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
11410
11411 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11412
11413 * xterm.c (x_detect_focus_change): Do not change focus frame for
11414 Enter/LeaveNotify if the current focus frame has explicit focus.
11415
11416 2003-11-14 Kim F. Storm <storm@cua.dk>
11417
11418 * dispnew.c (update_text_area): Fix redisplay error when hscroll
11419 is active and first glyph is only partially visible.
11420
11421 2003-11-13 Kenichi Handa <handa@m17n.org>
11422
11423 * xdisp.c (select_frame_for_redisplay): New function.
11424 (redisplay_internal): Record also selected_frame for
11425 unwind_redisplay. Call select_frame_for_redisplay before
11426 redrawing each frame.
11427 (unwind_redisplay): Argument changed to a cons.
11428
11429 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
11430
11431 * fns.c (Fstring_to_multibyte): Doc fix.
11432
11433 2003-11-11 Kenichi Handa <handa@m17n.org>
11434
11435 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11436
11437 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11438
11439 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
11440 program specified positions.
11441
11442 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11443
11444 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
11445
11446 2003-11-08 Kenichi Handa <handa@m17n.org>
11447
11448 * Makefile.in (lisp): Add kannada.el.
11449 (shortlisp): Likewise.
11450
11451 2003-11-07 Kenichi Handa <handa@m17n.org>
11452
11453 * coding.c (coding_allocate_composition_data):
11454 Reset coding->composing to COMPOSITION_NO.
11455 (coding_restore_composition): Detect invalid composition data.
11456 Give Fstring and Fvector a Lispy integer, not C int.
11457
11458 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
11459
11460 * floatfns.c (Flogb): Don't use VALMASK.
11461
11462 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
11463 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
11464
11465 * lisp.h (XINT): Move the cast to clarify what is going on.
11466 (GCTYPEMASK, XSETTYPE): Remove.
11467 (XGCTYPE): Make it an alias of XTYPE.
11468
11469 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11470
11471 * xterm.c (x_term_init): Fix formatting.
11472
11473 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11474
11475 * gtkutil.h (xg_have_tear_offs): Declare.
11476 (xg_keep_popup, xg_did_tearoff): Remove.
11477
11478 * gtkutil.c: Remove variable xg_did_tearoff.
11479 (xg_have_tear_offs): New function.
11480 (tearoff_remove): Just decrease xg_detached_menus.
11481 (tearoff_activate): Increase xg_detached_menus and call
11482 tearoff_remove when tearoff is removed.
11483 (xg_keep_popup): Remove function.
11484 (create_menus): Give add_tearoff_p as argument to recursive
11485 call to create_menus.
11486 (xg_create_widget): Use variables instead of multiple
11487 strcmp. Tell create_menus to create tear off only for
11488 menu bar menus.
11489 (xg_update_menubar): Change title for a detached menu also.
11490 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
11491 of deep_p.
11492 (xg_initialize): Initialize xg_detached_menus, remove
11493 initialization of xg_did_tearoff.
11494
11495 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
11496 xg_have_tear_offs returns non-zero.
11497 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
11498 call to xg_keep_popup.
11499
11500 2003-11-01 Andrew Choi <akochoi@shaw.ca>
11501
11502 * macterm.c (XTread_socket): Handle menubar selection and grow
11503 window only for mouseDown events.
11504
11505 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11506
11507 * xterm.c (x_term_init): For GTK part, increase x_initialized
11508 to check for more than one display. Use error instead of return 0.
11509
11510 2003-10-31 Andrew Choi <akochoi@shaw.ca>
11511
11512 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
11513 (copy_dysymtab): Call it.
11514
11515 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
11516
11517 * eval.c (Fdefvaralias): Doc fix.
11518
11519 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
11520
11521 * data.c (Fsetplist): Doc fix.
11522
11523 2003-10-14 Lute Kamstra <lute@gnu.org>
11524
11525 * window.c (Fset_window_fringes): Clarify docstring.
11526
11527 2003-10-14 Kim F. Storm <storm@cua.dk>
11528
11529 * window.c (Fset_window_margins): Simplify arg checking.
11530
11531 2003-10-13 Richard M. Stallman <rms@gnu.org>
11532
11533 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
11534 (print_partial_compiled_pattern): Replace assert with a printout.
11535 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
11536
11537 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
11538
11539 * window.c (Fset_window_margins): Allow only integers as args.
11540 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
11541 Doc fixes.
11542
11543 2003-10-13 Lute Kamstra <lute@gnu.org>
11544
11545 * window.c (Fset_window_fringes): Elaborate docstring.
11546
11547 2003-10-12 Andrew Choi <akochoi@shaw.ca>
11548
11549 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
11550
11551 * s/darwin.h (GC_MARK_STACK): Define.
11552
11553 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11554
11555 * window.c (shrink_windows): New function.
11556 (size_window): Call shrink_windows to calculate window sizes when
11557 shrinking frame with more than one window.
11558
11559 2003-10-12 Kim F. Storm <storm@cua.dk>
11560
11561 * xdisp.c (compute_fringe_widths): Doc fix.
11562
11563 2003-10-08 Kenichi Handa <handa@m17n.org>
11564
11565 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
11566
11567 2003-10-07 Kenichi Handa <handa@m17n.org>
11568
11569 * coding.c (Qcoding_system_define_form): New variable.
11570 (syms_of_coding): Intern and staticpro it.
11571 (Fcheck_coding_system): Try to autoload the definition of
11572 CODING-SYSTEM.
11573
11574 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
11575
11576 * fns.c (Frequire): Doc fix.
11577
11578 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11579
11580 * xfns.c (Fx_send_client_event): New function as a base for
11581 manipulating extended window manager hints.
11582 (Fx_send_client_event): Remove unused variable s.
11583
11584 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
11585 that function is removed.
11586
11587 * xterm.c (x_set_offset): Use move_offset_left/top instead of
11588 x/y_pixels_outer_diff.
11589 (x_check_expected_move): Calculate move_offset_left/top.
11590
11591 * xterm.h (struct x_output): New members: move_offset_top/left.
11592
11593 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
11594 call x_set_offset directly.
11595
11596 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
11597
11598 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
11599
11600 * xterm.c (x_delete_display): Free font names and font_encoder
11601 in dpyinfo->font_table.
11602
11603 * xfns.c (Fx_close_connection): Only call XFreeFont here.
11604 Move xfree of font names to x_delete_display.
11605
11606 * xterm.h (struct x_display_info): New member, wm_type.
11607 (struct x_output): New members, expected_top/left and
11608 check_expected_move.
11609
11610 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
11611 is received.
11612 (handle_one_xevent): Rename x_check_expected_move from
11613 x_check_fullscreen_move.
11614 (x_set_offset): Only add WM decoration sizes to modified_top/left
11615 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
11616 (x_check_expected_move): Rename from x_check_fullscreen_move.
11617 Removed fullscreen specific code. Use check_expected_move,
11618 expected_left/top instead. Also, set wm_type.
11619 (x_term_init): Initialize wm_type to unknown.
11620
11621 * frame.c (x_fullscreen_move): Remove addition of WM decoration
11622 sizes to move_x/y.
11623
11624 2003-10-03 Kenichi Handa <handa@m17n.org>
11625
11626 * macterm.c (x_load_font): Clear all members of FONTP before start
11627 filling them.
11628
11629 2003-10-02 Kenichi Handa <handa@m17n.org>
11630
11631 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
11632 before calling find_ccl_program_func. Call find_ccl_program_func
11633 only when fontp->font_encoder is not NULL.
11634
11635 * xterm.c (x_load_font): Clear all members of FONTP before start
11636 filling them.
11637
11638 2003-10-03 John Paul Wallington <jpw@gnu.org>
11639
11640 * keymap.c (map_keymap): Don't abort when binding is a vector.
11641
11642 2003-10-02 Jason Rumney <jasonr@gnu.org>
11643
11644 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
11645 Sync dependencies with Makefile.in.
11646 (alloca.o): Remove.
11647
11648 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
11649 filling them.
11650
11651 * w32bdf.c (w32_load_bdf_font): Likewise.
11652
11653 2003-09-30 Richard M. Stallman <rms@gnu.org>
11654
11655 * term.c (set_tty_color_mode): Calculate current_mode_spec
11656 regardless of value of VAL.
11657
11658 * intervals.c (graft_intervals_into_buffer):
11659 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
11660 Handle over_used when splitting UNDER.
11661
11662 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11663
11664 * regex.c (regex_compile): Free the stack when returning from function.
11665
11666 2003-09-28 Kenichi Handa <handa@m17n.org>
11667
11668 * fontset.c (Finternal_char_font): Change return value to
11669 cons (FONT-NAME . GLYPH-CODE).
11670
11671 2003-09-28 Eli Zaretskii <eliz@gnu.org>
11672
11673 * term.c (tty_setup_colors): Treat any negative argument as -1.
11674
11675 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
11676
11677 * process.c (send_process): Delete unused temp_buf.
11678
11679 2003-09-26 Dave Love <fx@gnu.org>
11680
11681 * xterm.c (x_bitmap_mask): Declare.
11682
11683 2003-09-25 Dave Love <fx@gnu.org>
11684
11685 * Makefile.in (fns.o): Depend on md5.h.
11686
11687 2003-09-25 Kim F. Storm <storm@cua.dk>
11688
11689 * window.c (set_window_buffer): Fix redisplay problems when
11690 switching between buffers with different display margin widths.
11691
11692 2003-09-23 Kim F. Storm <storm@cua.dk>
11693
11694 * process.c (set_socket_option): Fix :bindtodevice option.
11695 (Fset_network_process_option): Update process contact list when
11696 setting option succeeds.
11697 (Fmake_network_process): Doc fix.
11698
11699 2003-09-23 Dave Love <fx@gnu.org>
11700
11701 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
11702
11703 2003-09-22 Eli Zaretskii <eliz@gnu.org>
11704
11705 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
11706 color mode is an integer number (it could be -1).
11707
11708 2003-09-22 Richard M. Stallman <rms@gnu.org>
11709
11710 * intervals.c (graft_intervals_into_buffer): Correct the main loop
11711 in the case where OVER is longer than UNDER.
11712
11713 2003-09-22 Masatake YAMATO <jet@gyve.org>
11714
11715 * window.c (Fset_window_scroll_bars): Validate the value of
11716 `vertical_type'.
11717
11718 2003-09-21 Kim F. Storm <storm@cua.dk>
11719
11720 * frame.c (Vdefault_frame_scroll_bars): New variable.
11721 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
11722 (syms_of_frame): DEFVAR_LISP it, and initialize according to
11723 window-system default scroll bar position.
11724
11725 * window.c (Fwindow_scroll_bars): Doc fix.
11726
11727 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11728
11729 * xterm.c (x_set_offset): Take window manager decorations into account.
11730
11731 2003-09-19 Richard M. Stallman <rms@gnu.org>
11732
11733 * atimer.h: Don't include lisp.h.
11734 (P_): Define it here (as well as elsewhere).
11735
11736 * print.c (Fprin1_to_string): Move the PRINTPREPARE
11737 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
11738
11739 * data.c (Fvariable_binding_locus): New function.
11740 (syms_of_data): defsubr it.
11741 (Flocal_variable_p): Delete duplicate call to indirect_variable.
11742
11743 2003-09-18 Dave Love <fx@gnu.org>
11744
11745 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
11746
11747 * process.c (Fnetwork_interface_info): Fix type error.
11748 (Fnetwork_interface_list): Doc fix.
11749 (read_process_output, read_process_output): Delete unused var.
11750
11751 2003-09-17 Kim F. Storm <storm@cua.dk>
11752
11753 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
11754 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
11755 (Fnetwork_interface_info): Check that ifreq struct has required
11756 fields before accessing them; this requires that those fields are
11757 defined as macros, which may be too restrictive on some platforms,
11758 but it is better than failing on other platforms.
11759 (syms_of_process): Only defsubr above fns when included.
11760
11761 2003-09-17 Dave Love <fx@gnu.org>
11762
11763 * unexalpha.c: Don't include varargs.h.
11764
11765 2003-09-17 Kim F. Storm <storm@cua.dk>
11766
11767 * process.c (Fset_process_sentinel): Add sentinel to childp plist
11768 for network process.
11769 (socket_options): Add `:' prefix to option names. Add optbit field.
11770 (set_socket_option): Remove no_error arg and special handling of s < 0.
11771 Return 1<<optbit for known option, 0 for unknown.
11772 Do not interpret 0 as false for boolean option (only nil).
11773 Pass failed option and value to report_file_error.
11774 (Fset_network_process_options): Replace by Fset_network_process_option.
11775 (Fset_network_process_option): New function to set just one option.
11776 (Fmake_network_process): Allow :coding arg to be a cons.
11777 Allow :server arg to be an integer specifying backlog size.
11778 Remove :options arg, and allow options to be specified directly
11779 as :KEY, VALUE pairs. Parse these options before binding socket.
11780 As before, :reuseaddr t is default for a server process, but this
11781 can now be disabled by specifying :reuseaddr nil.
11782 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
11783 (init_process): Availability of network options is now checked with
11784 simpler syntax (featurep 'make-network-process :OPTION); use loop to
11785 setup features.
11786 (syms_of_process): Fix defsubr's for the replaced functions.
11787
11788 2003-09-16 Dave Love <fx@gnu.org>
11789
11790 * Makefile.in: Depend on coding.h.
11791
11792 2003-09-14 Kim F. Storm <storm@cua.dk>
11793
11794 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
11795 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
11796 (syms_of_process): Defsubr them.
11797
11798 * config.in: Regenerate.
11799
11800 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11801
11802 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
11803 * m/news-r6.h (XUNMARK): Remove.
11804 * m/mips.h (XUNMARK): Remove.
11805 * m/mips-siemens.h (XUNMARK): Remove.
11806 * m/iris4d.h (XUNMARK): Remove.
11807 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
11808
11809 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11810
11811 * lisp.h (VALBITS): Don't remove 1 for the markbit.
11812 (union Lisp_Object): Use unsigned int for types. Remove markbit.
11813 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
11814 (XTYPE): Use unsigned right-shift.
11815 (XMARKBIT, XMARK, XUNMARK): Remove.
11816
11817 * alloc.c (init_intervals, init_symbol, init_marker):
11818 Don't preallocate anything.
11819 (Fgarbage_collect, mark_object): Ignore the markbit.
11820
11821 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
11822
11823 2003-09-08 Lute Kamstra <lute@gnu.org>
11824
11825 * xdisp.c (pint2hrstr): New function.
11826 (decode_mode_spec): Add `%i' and `%I' specs.
11827 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
11828 for `mode-line-format'.
11829
11830 2003-09-07 Andreas Schwab <schwab@suse.de>
11831
11832 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
11833 avoid warning.
11834
11835 2003-09-07 Eli Zaretskii <eliz@gnu.org>
11836
11837 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
11838
11839 2003-09-03 Kim F. Storm <storm@cua.dk>
11840
11841 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
11842 change (superseded by 2002-08-30 change); the default blink-off
11843 cursor is now again "no cursor".
11844
11845 2003-09-01 Jason Rumney <jasonr@gnu.org>
11846
11847 * makefile.w32-in (alloca.o): Remove.
11848 (coding.o): Depend on intervals.h
11849 (emacs.o, bytecode.o): Depend on window.h
11850
11851 2003-09-01 Dave Love <fx@gnu.org>
11852
11853 * Makefile.in (alloca.o): Remove commands.
11854 (coding.o): Depend on intervals.h composite.h window.h.
11855 (emacs.o): Depend on window.h keyboard.h keymap.h.
11856 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
11857 (bytecode.o): Depend on window.h.
11858
11859 2003-08-31 Jason Rumney <jasonr@gnu.org>
11860
11861 * w32term.c (w32_per_char_metric): Allow cached metrics to be
11862 returned even when font_type is unknown.
11863
11864 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
11865
11866 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11867
11868 * xterm.c (x_term_init): Initialize new fields in x_display_info.
11869
11870 * xterm.h (struct x_display_info): Add red/green/blue_bits and
11871 *_offset.
11872
11873 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
11874 calculate pixel value.
11875
11876 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
11877
11878 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
11879 Don't tell redisplay display is accurate when it's actually been
11880 paused for pending input.
11881
11882 2003-08-29 Richard M. Stallman <rms@gnu.org>
11883
11884 * dispnew.c (adjust_glyph_matrix): Call window_box
11885 whenever W is nonzero.
11886
11887 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11888 (Fkill_local_variable, Fmake_variable_frame_local)
11889 (Flocal_variable_p, Flocal_variable_if_set_p):
11890 Use indirect_variable to trace thru variable aliases.
11891
11892 * config.in: Updated.
11893
11894 * callint.c (Fcall_interactively): Save and restore
11895 Vthis_command, Vthis_original_command, real_this_command,
11896 and current_kboard->Vlast_command.
11897
11898 * abbrev.c (Fexpand_abbrev): Insert before deleting.
11899
11900 2003-08-29 Gerd Moellmann <gerd@gnu.org>
11901
11902 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
11903
11904 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
11905
11906 * coding.c (decode_coding_iso2022): Initialize local variable c2.
11907 (decode_coding_sjis_big5): Likewise.
11908
11909 2003-08-27 Jason Rumney <jasonr@gnu.org>
11910
11911 * w32.c (sys_pipe): Protect against file descriptor overflow.
11912
11913 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
11914
11915 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
11916
11917 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
11918
11919 * xfns.c (Vgtk_version_string): New variable.
11920 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
11921
11922 2003-08-24 Eli Zaretskii <eliz@gnu.org>
11923
11924 * term.c (term_init): Remove `const' from buffer_size's declaration.
11925
11926 * Makefile.in (msdos.o): Depend on intervals.h.
11927
11928 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
11929
11930 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11931
11932 * xterm.h (struct x_display_info): New fields: client_leader_window
11933 and Xatom_wm_client_leader.
11934
11935 * xterm.c (x_initialize): Move call to x_session_initialize to ...
11936 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
11937
11938 * xsmfns.c (create_client_leader_window): New function.
11939 (x_session_initialize): Call create_client_leader_window, take
11940 dpyinfo as argument.
11941
11942 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
11943
11944 * Makefile.in (xsmfns.o): Add more depenedencies.
11945
11946 2003-08-21 Dave Love <fx@gnu.org>
11947
11948 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
11949
11950 2003-08-21 Kenichi Handa <handa@m17n.org>
11951
11952 * term.c (term_init): Fix previous change; don't rely on the
11953 length of `buffer' if TERMINFO is defined.
11954
11955 2003-08-20 Dave Love <fx@gnu.org>
11956
11957 * atimer.h: Include lisp.h.
11958
11959 * lisp.h (EMACS_LISP_H): New.
11960 (popup_activated_flag): Don't declare.
11961
11962 * alloca.c: Some merging with gnulib. Change logic and doc
11963 concerning (x)malloc/(x)free -- no longer Emacs-specific.
11964 [DO_BLOCK_INPUT]: Don't include lisp.h.
11965 (xmalloc, xfree): Declare.
11966 (malloc): Don't declare.
11967
11968 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
11969 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
11970 atimer.h, blockinput.h.
11971
11972 * alloc.c (lisp_align_malloc): Change type of `aligned'.
11973
11974 * alloca.s: Remove.
11975
11976 2003-08-19 Gerd Moellmann <gerd@gnu.org>
11977
11978 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
11979 use -lncurses.
11980
11981 * term.c (term_init): Use a buffer of size 4096 for tgetent since
11982 FreeBSD returns something longer than 2044. Abort if the end of
11983 the buffer is overwritten.
11984
11985 2003-08-19 Miles Bader <miles@gnu.org>
11986
11987 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
11988
11989 2003-08-19 Gerd Moellmann <gerd@gnu.org>
11990
11991 * alloc.c (lisp_align_malloc): Check for memory full when
11992 allocating ablocks, which also avoids freeing a pointer into an
11993 ablocks structure.
11994
11995 * puresize.h (BASE_PURESIZE): Increase to 1100000.
11996
11997 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
11998
11999 2003-08-16 Richard M. Stallman <rms@gnu.org>
12000
12001 * editfns.c (Fencode_time): Doc fix.
12002
12003 2003-08-16 David Ponce <david@dponce.com>
12004
12005 * fileio.c (Fwrite_region): Fix conditional expression to issue
12006 the right message.
12007
12008 2003-08-16 Juri Linkov <juri@jurta.org>
12009
12010 * syntax.c (Fforward_word): Argument changed to optional.
12011 Set default value to 1.
12012
12013 2003-08-15 Kenichi Handa <handa@m17n.org>
12014
12015 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
12016 what autoscaled.
12017 (best_matching_font): Once we find a better scalable font, set
12018 non_scalable_has_exact_height_p to 1.
12019 (try_font_list): Call try_alternative_families to try any family
12020 with the given registry.
12021
12022 2003-08-09 Andreas Schwab <schwab@suse.de>
12023
12024 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
12025
12026 * print.c (print_string): Fix printing of multibyte string with
12027 nontrivial printcharfun.
12028
12029 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12030
12031 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
12032
12033 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
12034
12035 2003-07-31 Kenichi Handa <handa@m17n.org>
12036
12037 * process.c (read_process_output): Return the actually read bytes
12038 instead of the result of decoding.
12039
12040 2003-07-31 Kenichi Handa <handa@m17n.org>
12041
12042 * xterm.h (struct x_bitmap_record): New member have_mask.
12043
12044 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
12045 to 0.
12046 (x_create_bitmap_from_file): Likewise.
12047 (x_destroy_bitmap): Check have_mask member before freeing a mask.
12048 (x_destroy_all_bitmaps): Likewise.
12049 (x_create_bitmap_mask): Set have_mask member to 1.
12050
12051 2003-07-30 Richard M. Stallman <rms@gnu.org>
12052
12053 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
12054
12055 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12056
12057 * gtkutil.c (xg_mark_data): Update calls to mark_object.
12058
12059 2003-07-29 Richard M. Stallman <rms@gnu.org>
12060
12061 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
12062 Conditionalize XIM code on HAVE_XIM.
12063
12064 * fns.c (Fclear_string): New function.
12065 (syms_of_fns): defsubr it.
12066
12067 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12068
12069 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
12070
12071 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
12072
12073 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
12074
12075 * buffer.c (delete_all_overlays): New function.
12076 * buffer.h (delete_all_overlays): Declare.
12077 * coding.c (run_pre_post_conversion_on_str):
12078 * print.c (temp_output_buffer_setup):
12079 * fileio.c (Finsert_file_contents):
12080 * minibuf.c (get_minibuffer): Use it.
12081
12082 2003-07-22 Andrew Choi <akochoi@shaw.ca>
12083
12084 * unexmacosx.c (unexec_regions_sort_compare):
12085 (unexec_regions_merge): New functions. Sort and merge unexec
12086 regions before dumping them.
12087
12088 2003-07-22 Dave Love <fx@gnu.org>
12089
12090 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
12091
12092 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
12093
12094 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
12095 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
12096 MARKBIT as the gcmarkbit for strings.
12097
12098 2003-07-21 Richard M. Stallman <rms@gnu.org>
12099
12100 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
12101
12102 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
12103 (syms_of_fns): Corresponding change.
12104
12105 * alloc.c (syms_of_alloc): Doc fixes.
12106
12107 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
12108
12109 * s/netbsd.h: Use -Wl syntax.
12110
12111 2003-07-17 Richard M. Stallman <rms@gnu.org>
12112
12113 * xterm.c (xim_initialize): Redo 6/24 change.
12114
12115 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
12116
12117 * buffer.c (copy_overlays): Use EMACS_INT for positions.
12118 (Fswitch_to_buffer): Don't signal an error when switching to the same
12119 buffer in a dedicated window.
12120
12121 * alloc.c: Use bitmaps for cons, as was done for floats.
12122 (init_float, init_cons): Let the normal code allocate the first block.
12123 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
12124 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
12125 New macros.
12126 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
12127 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
12128 (live_cons_p): Check the pointer is not past the `conses' array.
12129 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
12130 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
12131 (survives_gc_p): Use CONS_MARKED_P and simplify.
12132 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
12133
12134 2003-07-13 Paul Eggert <eggert@twinsun.com>
12135
12136 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
12137 puts it into BSS instead, at least on Solaris 8 and 9.
12138 This is a valid optimization, and it may occur on other platforms,
12139 so Emacs should not assume that initializing a static variable to
12140 zero puts it into data.
12141 * alloc.c (pure, staticvec):
12142 Initialize these arrays to nonzero, so that they're not
12143 put into BSS by that optimization.
12144
12145 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
12146
12147 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
12148 (lisp_align_malloc): Use posix_memalign is available.
12149 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
12150 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
12151 for consistency. Update users.
12152
12153 2003-07-13 Richard M. Stallman <rms@gnu.org>
12154
12155 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
12156
12157 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
12158
12159 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
12160 and use the Gtk+ function gtk_window_icon_from_file if available.
12161
12162 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
12163 handle mask of bitmaps.
12164 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
12165 mask property.
12166 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
12167
12168 * xterm.h (xg_set_icon): New function.
12169
12170 2003-07-12 Paul Eggert <eggert@twinsun.com>
12171
12172 * unexelf.c (unexec): Consider a section to precede the .bss
12173 section if its addresses overlap that of .bss.
12174
12175 2003-07-12 Richard M. Stallman <rms@gnu.org>
12176
12177 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
12178
12179 * config.in (HAVE_CRTIN): Add #undef.
12180 (INLINE): Really inline only if OPTIMIZE is defined.
12181
12182 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
12183 END_FILES_1.
12184 (START_FILES_1, END_FILES_1): New macros (conditional).
12185 (LD_SWITCH_SYSTEM_TEMACS): Define.
12186
12187 * s/openbsd.h: Don't include bsd4-3.h.
12188 (TERMINFO): Define.
12189 (LIBS_TERMCAP): Define.
12190 (LD_SWITCH_SYSTEM): Define (two definitions).
12191
12192 * xfns.c: Include libpng/png.h instead of png.h.
12193
12194 2003-07-11 Andreas Schwab <schwab@suse.de>
12195
12196 * buffer.c (modify_overlay): Update prototype.
12197 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
12198 Likewise.
12199
12200 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
12201
12202 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
12203 (struct interval): Move to intervals.h.
12204 (struct Lisp_Marker): Use EMACS_INT for position info.
12205 (forward_point): Remove prototype of defunct function.
12206 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
12207 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
12208 (syms_of_textprop, set_text_properties): Remove prototypes that are
12209 already in intervals.h.
12210
12211 * intervals.h (struct interval): Move from lisp.h.
12212 Use EMACS_INT for position and size info.
12213
12214 * coding.c: Include intervals.h for Fset_text_properties.
12215
12216 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
12217 position and length information.
12218
12219 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
12220
12221 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
12222 position and length information.
12223
12224 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
12225
12226 Change overlays_after and overlays_before so the overlays themselves
12227 are linked into lists, rather than using cons cells. After all each
12228 Lisp_Misc already occupies 5 words, so we can add a `next' field to
12229 Lisp_Overlay for free and save up one cons cell per overlay (not
12230 to mention one indirection when traversing the list of overlay).
12231
12232 * lisp.h (struct Lisp_Overlay): New field `next'.
12233
12234 * buffer.h (struct buffer): Change overlays_before and overlays_after
12235 from Lisp lists of overlays to pointers to overlays.
12236
12237 * buffer.c (overlay_strings, recenter_overlay_lists):
12238 Fix typo in eassert in last commit.
12239 (unchain_overlay): New function.
12240 (add_overlay_mod_hooklist): Use AREF.
12241 (copy_overlays, reset_buffer, overlays_at, overlays_in)
12242 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
12243 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
12244 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
12245 (report_overlay_modification, evaporate_overlays, init_buffer_once):
12246 Adjust to new type of overlays_(before|after).
12247
12248 * alloc.c (mark_object): Mark the new `next' field of overlays.
12249 (mark_buffer): Manually mark the overlays_(after|before) fields.
12250
12251 * coding.c (run_pre_post_conversion_on_str):
12252 * editfns.c (overlays_around):
12253 * xdisp.c (load_overlay_strings):
12254 * fileio.c (Finsert_file_contents):
12255 * indent.c (current_column):
12256 * insdel.c (signal_before_change, signal_after_change):
12257 * intervals.c (set_point_both):
12258 * print.c (temp_output_buffer_setup): Use new type for
12259 overlays_(before|after).
12260
12261 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
12262
12263 * buffer.c (report_overlay_modification): Don't run hooks while
12264 traversing the list of overlays.
12265
12266 * buffer.h (struct buffer): Use an int for overlay_center.
12267 (overlays_at, evaporate_overlays, recenter_overlay_lists)
12268 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
12269
12270 * buffer.c (reset_buffer, recenter_overlay_lists)
12271 (adjust_overlays_for_insert, adjust_overlays_for_delete)
12272 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
12273 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
12274 (overlays_at, evaporate_overlays, recenter_overlay_lists)
12275 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
12276
12277 * xdisp.c (fast_find_position): Remove unused var.
12278
12279 * cmds.c (Qexpand_abbrev): New sym.
12280 (syms_of_cmds): Initialize it.
12281 (internal_self_insert): Use it to call expand-abbrev.
12282
12283 2003-07-09 Kim F. Storm <storm@cua.dk>
12284
12285 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
12286 was configured with --without-xim.
12287 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
12288
12289 2003-07-07 Richard M. Stallman <rms@gnu.org>
12290
12291 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
12292
12293 * alloc.c (Fgarbage_collect): Doc fix.
12294
12295 2003-07-07 Nozomu Ando <nand@mac.com>
12296
12297 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
12298
12299 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
12300
12301 * minibuf.c (read_minibuf): UNGCPRO before returning.
12302 (Ftry_completion, Fall_completions): Doc fix.
12303
12304 * alloc.c (live_float_p): Check that p is not past the `floats' array,
12305 now that `floats' is not the last element of the struct any more.
12306
12307 2003-07-06 Jason Rumney <jasonr@gnu.org>
12308
12309 * w32term.h (ClipboardSequence_Proc): New type.
12310
12311 * w32fns.c (clipboard_sequence_fn): New variable.
12312 (globals_of_w32fns): Initialize it.
12313
12314 * w32select.c (last_clipboard_sequence_number): New variable.
12315 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
12316 number if possible.
12317
12318 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
12319
12320 * m/amdx86-64.h (MARKBIT):
12321 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
12322 MARKBIT and ARRAY_MARK_FLAG any more.
12323
12324 * m/hp800.h (XSETMARKBIT):
12325 * m/sr2k.h (XSETMARKBIT):
12326 * lisp.h (XSETMARKBIT): Remove unused macro.
12327
12328 * lisp.h (mark_object): Change prototype.
12329
12330 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
12331 (last_marked): Change accordingly.
12332 (mark_interval, mark_maybe_object, mark_maybe_pointer)
12333 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
12334 (mark_buffer): Update calls to mark_object.
12335
12336 * bytecode.c (mark_byte_stack):
12337 * fns.c (sweep_weak_table):
12338 * keyboard.c (mark_kboards): Update calls to mark_object.
12339
12340 2003-07-06 Jason Rumney <jasonr@gnu.org>
12341
12342 * alloc.c (struct ablock): Only include padding when there is some.
12343
12344 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
12345
12346 * alloc.c (ALIGN): Add casts to simplify usage.
12347 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
12348 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
12349 (struct ablock, struct ablocks): New types.
12350 (free_ablock): New global var.
12351 (lisp_align_malloc, lisp_align_free): New functions.
12352 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
12353 (struct float_block): Reorder and add gcmarkbits.
12354 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
12355 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
12356 (init_float, make_float): Use lisp_align_malloc.
12357 (free_float, live_float_p): Don't use `type' any more.
12358 (make_float): Use FLOAT_UNMARK to access to mark bit.
12359 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
12360 Use FLOAT_MARKED_P to access the mark bit.
12361 (pure_alloc): Simplify use of ALIGN.
12362 (mark_object): Use FLOAT_MARK to access the mark bit.
12363 (gc_sweep): Use new macros to access the float's mark bit.
12364 (init_alloc_once): Init free_ablock.
12365
12366 * lisp.h (struct Lisp_Float): Remove unused field `type'.
12367
12368 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
12369
12370 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
12371 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
12372 (allocate_buffer): Move.
12373 (string_bytes): Don't mask markbit of `size_byte'.
12374 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
12375 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
12376 Use the `size' field of buffers (rather than the `name' field) for
12377 the mark bit, as is done for all other vectorlike objects.
12378 Use the new macros to access the mark bit of vectorlike objects.
12379
12380 2003-06-26 Richard M. Stallman <rms@gnu.org>
12381
12382 * puresize.h (BASE_PURESIZE): Increment base size.
12383
12384 * xdisp.c (fast_find_position): Enable Gerd's new definition.
12385
12386 * xterm.c (xim_initialize): Undo previous change.
12387
12388 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
12389
12390 * alloc.c (survives_gc_p): Simplify.
12391
12392 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
12393
12394 * window.c (Fset_window_dedicated_p): Simplify.
12395 (display_buffer_1): Don't raise the win from which minibuf was entered.
12396 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
12397 (Fminibuffer_selected_window): Simplify.
12398
12399 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
12400
12401 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
12402 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
12403
12404 * insdel.c (check_markers, adjust_markers_for_delete)
12405 (adjust_markers_for_insert, adjust_markers_for_replace)
12406 (prepare_to_modify_buffer, RESTORE_VALUE):
12407 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
12408 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
12409 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
12410 * alloc.c (Fmake_marker, free_marker, gc_sweep):
12411 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
12412 * editfns.c (save_excursion_restore, transpose_markers):
12413 * window.c (delete_window):
12414 * xdisp.c (message_dolog): Update for new types.
12415
12416 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12417
12418 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
12419 (realize_default_face): Use default_face_done_p for the force_p
12420 argument to set_lface_from_font_name. Set default_face_done_p to one.
12421
12422 * frame.c (make_frame): Initialize default_face_done_p.
12423
12424 * frame.h (struct frame): Add default_face_done_p.
12425
12426 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
12427 will be defined.
12428
12429 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
12430
12431 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
12432 Initialize the new field `gcmarkbit'.
12433 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
12434 (mark_interval_tree): Don't mark the tree separately from the nodes.
12435 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
12436 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
12437 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
12438
12439 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
12440 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
12441 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
12442 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
12443 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
12444
12445 2003-06-24 Dave Love <fx@gnu.org>
12446
12447 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
12448
12449 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
12450 from gnulib.
12451
12452 2003-06-21 Richard M. Stallman <rms@gnu.org>
12453
12454 * fileio.c (Fwrite_region): Alternate messages
12455 for append and partial write.
12456
12457 * keyboard.c (read_key_sequence): When converting upcase fn key to
12458 downcase, update fkey and keytran so `backspace' gets translated.
12459
12460 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
12461
12462 * process.c (wait_reading_process_input): Don't signal SIGIO
12463 in batch mode.
12464
12465 2003-06-17 Kenichi Handa <handa@m17n.org>
12466
12467 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
12468 composite.h.
12469
12470 * xselect.c: Don't include charset.h, coding.h, composite.h.
12471 (Qforeign_selection): New variable.
12472 (syms_of_xselect): Intern and static it.
12473 (selection_data_to_lisp_data): Return a unibyte string made from
12474 data with `foreign-selection' text property.
12475
12476 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
12477
12478 * termhooks.h (EVENT_INIT): New macro.
12479
12480 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
12481
12482 * alloc.c (mark_kboards): Move to keyboard.c.
12483
12484 * keyboard.c (record_asynch_buffer_change, read_avail_input):
12485 * xterm.c (x_dispatch_event):
12486 * xmenu.c (find_and_call_menu_selection):
12487 * xdisp.c (handle_tool_bar_click):
12488 * w32menu.c (menubar_selection_callback):
12489 * sysdep.c (kbd_input_ast, read_input_waiting):
12490 * msdos.c (dos_rawgetc):
12491 * macterm.c (mac_check_for_quit_char):
12492 * macmenu.c (menubar_selection_callback):
12493 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
12494 data to kbd_buffer_store_event.
12495
12496 2003-06-15 Kim F. Storm <storm@cua.dk>
12497
12498 * xdisp.c (x_fix_overlapping_area): Always use area relative X
12499 to fix redisplay problem with tall characters (such as \e,AC\e(B).
12500
12501 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12502
12503 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
12504
12505 2003-06-12 Kenichi Handa <handa@m17n.org>
12506
12507 * fileio.c (Fwrite_region): Save and restore restriction.
12508
12509 2003-06-12 Dave Love <fx@gnu.org>
12510
12511 * alloca.c (alloca): Declare arg as size_t.
12512
12513 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
12514 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
12515
12516 2003-06-11 Dave Love <fx@gnu.org>
12517
12518 * search.c (shrink_regexp_cache): Use xrealloc.
12519 (syms_of_search): Use xmalloc.
12520
12521 2003-06-10 Kim F. Storm <storm@cua.dk>
12522
12523 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
12524 Adjust phys_cursor.x to be relative to window box, rather than
12525 text area before checking -- to ensure cursor is redrawn when
12526 exposing window.
12527 Note: This also fixes a similar (older) bug if display margins
12528 are present.
12529
12530 2003-06-06 Kenichi Handa <handa@m17n.org>
12531
12532 * coding.c (encoding_buffer_size): If coding->type is
12533 coding_type_ccl, double magnification on CRLF encoding.
12534
12535 2003-06-06 Jason Rumney <jasonr@gnu.org>
12536
12537 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
12538 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
12539
12540 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
12541 Mac too.
12542
12543 2003-06-05 Dave Love <fx@gnu.org>
12544
12545 * strftime.c: Merge changes from gnulib.
12546
12547 * mktime.c (__mktime_internal): Merge changes from gnulib
12548 involving year 69 and dst2.
12549
12550 Changes to merge with gnulib version and be consistent with the
12551 autoconf test:
12552
12553 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
12554 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
12555 [HAVE_LOCALE_H]: Include locale.h.
12556 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
12557
12558 2003-06-05 Kim F. Storm <storm@cua.dk>
12559
12560 * window.c (coordinates_in_window): Convert X and Y to window
12561 relative coordinates inside mode-line and header-line parts.
12562 Convert X and Y to margin area relative coordinates inside left
12563 and right display margin parts.
12564
12565 2003-06-05 Jason Rumney <jasonr@gnu.org>
12566
12567 * w32fns.c (add_system_logical_colors_to_map): New function.
12568 (Fx_open_connection): Use it.
12569
12570 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
12571
12572 * process.c (allocate_pty): Revert part of the previous patch.
12573 (Faccept_process_output): Simplify.
12574
12575 2003-06-04 Jason Rumney <jasonr@gnu.org>
12576
12577 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
12578
12579 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
12580 (lispy_mouse_wheel_names): Remove.
12581 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
12582 Always define drag_and_drop_syms.
12583
12584 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
12585 WHEEL_EVENT events.
12586
12587 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
12588
12589 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
12590
12591 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
12592
12593 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12594
12595 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
12596 menu item label.
12597
12598 2003-06-03 Richard M. Stallman <rms@gnu.org>
12599
12600 * window.c (Fwindow_edges): Doc fix.
12601 (Fwindow_pixel_edges, Fwindow_inside_edges)
12602 (Fwindow_inside_pixel_edges): New functions.
12603 (syms_of_window): defsubr them.
12604
12605 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
12606 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
12607
12608 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
12609
12610 * dispnew.c (Fsit_for): Don't lie about the number of args.
12611
12612 2003-06-02 Dave Love <fx@gnu.org>
12613
12614 * callproc.c: Use HAVE_FCNTL_H, not USG5.
12615 (syms_of_callproc) <process-environment>: Doc fix.
12616
12617 * doc.c: Use HAVE_FCNTL_H, not USG5.
12618
12619 * xfaces.c (font_rescale_ratio): Fix for K&R.
12620
12621 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
12622
12623 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
12624
12625 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
12626
12627 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
12628 (xg_create_frame_widgets): Use ENCODE_UTF_8.
12629
12630 * xterm.c (Qutf_8): Move to coding.c
12631
12632 * xmenu.c (ENCODE_MENU_STRING): New.
12633 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
12634 Use it.
12635
12636 * coding.h (ENCODE_UTF_8): New.
12637 (Qutf_8): Declare.
12638
12639 * coding.c (Qutf_8): New.
12640 (syms_of_coding): Intern it.
12641
12642 * fns.c: Doc fixes.
12643
12644 2003-06-02 Kenichi Handa <handa@m17n.org>
12645
12646 * buffer.c (Fset_buffer_multibyte): Fix previous change.
12647
12648 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
12649
12650 * lread.c (openp): Make sure STR is a string.
12651
12652 2003-06-01 David Ponce <david@dponce.com>
12653
12654 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
12655 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
12656
12657 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
12658 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
12659 (discard_mouse_events): Discard WHEEL_EVENT events too.
12660 (lispy_wheel_names, wheel_syms): New.
12661 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
12662 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
12663 (make_lispy_event): Add WHEEL_EVENT handler.
12664
12665 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
12666 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12667 WHEEL_EVENT events.
12668
12669 2003-05-31 John Paul Wallington <jpw@gnu.org>
12670
12671 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
12672 timer are in lisp/emacs-lisp.
12673
12674 2003-05-31 Kenichi Handa <handa@m17n.org>
12675
12676 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
12677 region when a buffer is changed to unibyte.
12678
12679 * charset.h (VALID_LEADING_CODE_P): New macro.
12680 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
12681
12682 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
12683 is nonzero, accept multibyte form of eight-bit-control chars.
12684 (decode_composition_emacs_mule): Likewise.
12685 (decode_coding_emacs_mule): Likewise.
12686 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
12687 multibyte form of eight-bit-control chars.
12688
12689 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
12690 (Finsert_file_contents): If coding-system-for-read is bound to
12691 Qauto_save_coding, use the coding system emacs-mule with special
12692 setting for recovering a file.
12693 (choose_write_coding_system): On auto saving, use the coding
12694 system emacs-mule with special setting for auto saving.
12695 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
12696
12697 2003-05-30 Kenichi Handa <handa@m17n.org>
12698
12699 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
12700 properly before calling ccl_driver.
12701
12702 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
12703
12704 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
12705 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
12706 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
12707
12708 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
12709
12710 * xfaces.c (realize_default_face): Do not abort if lface is
12711 non-existent - reverts change from 2003-05-19.
12712
12713 2003-05-29 Kenichi Handa <handa@m17n.org>
12714
12715 * coding.c (decode_coding_iso2022): Pay attention to the byte
12716 sequence of CTEXT extended segment, and retain those bytes as is.
12717
12718 2003-05-28 Kenichi Handa <handa@m17n.org>
12719
12720 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
12721 of CODING_REPLACEMENT_CHARACTER.
12722 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
12723 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
12724 check this flag on encoding.
12725 (encode_coding_sjis_big5):
12726 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
12727 (Fset_terminal_coding_system_internal):
12728 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
12729 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
12730
12731 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
12732 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
12733 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
12734
12735 2003-05-28 Richard M. Stallman <rms@gnu.org>
12736
12737 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
12738
12739 * eval.c (unbind_to): Move init of this_binding to separate statement.
12740
12741 2003-05-28 Kim F. Storm <storm@cua.dk>
12742
12743 * xdisp.c (expose_window): Fix error in calculation of
12744 window relative coordinates of area to redisplay.
12745
12746 2003-05-27 Jason Rumney <jasonr@gnu.org>
12747
12748 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
12749
12750 2003-05-27 David Ponce <david@dponce.com>
12751
12752 Handle W32 mouse wheel events as mouse click events, like in X.
12753
12754 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
12755 MOUSE_WHEEL_EVENT anymore.
12756
12757 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
12758 Scrolling down/up the mouse wheel is respectively mapped to mouse
12759 button 4 and 5.
12760 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12761 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
12762 WM_MOUSEWHEEL events.
12763
12764 2003-05-27 Andreas Schwab <schwab@suse.de>
12765
12766 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
12767
12768 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
12769 partially visible line.
12770
12771 * alloc.c (Fgarbage_collect): Fix last change.
12772
12773 2003-05-26 John Paul Wallington <jpw@gnu.org>
12774
12775 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
12776
12777 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
12778
12779 * window.c (Fset_window_buffer): Add type of `keep_margins'.
12780 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
12781
12782 * window.h (window_box_text_cols): Declare.
12783
12784 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
12785 (x_draw_vertical_border): Remove unused var `f'.
12786
12787 * xfaces.c (build_scalable_font_name): Remove `unused var
12788 pixel_size' warning.
12789
12790 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
12791
12792 * unexelf.c (unexec): Remove `unused var n' warning.
12793
12794 * strftime.c (my_strftime_localtime_r): Remove `defined but
12795 unused' warning.
12796
12797 * process.c (allocate_pty): Remove `unused var stb' and
12798 `cp might be used uninitialized' warnings.
12799
12800 * dispnew.c (mode_line_string): Remove unused var `f'.
12801
12802 * coding.c (find_safe_codings): Remove unused var `i'.
12803
12804 * bytecode.c (Fbyte_code): Remove `unused val' warning.
12805
12806 * buffer.c (Fkill_buffer): Remove unused var `list'.
12807
12808 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
12809
12810 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12811
12812 * frame.c (make_frame): Condition want_fullscreen with
12813 HAVE_WINDOW_SYSTEM.
12814
12815 2003-05-25 Juanma Barranquero <lektu@terra.es>
12816
12817 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
12818 (Fwindow_scroll_bars): Fix typo in docstring.
12819
12820 2003-05-24 Kim F. Storm <storm@cua.dk>
12821
12822 The following changes serve several purposes:
12823
12824 1) Swap the position of fringes and display margins in windows, i.e.
12825 the fringes are now displayed between the margins and the text area
12826 (by default).
12827
12828 2) Allow fringe and scroll bar parameters to be set per-buffer and
12829 per-window (like display margins). Such settings are now stored
12830 in window configurations, preserved when frames are resized, and
12831 copied when windows are split vertically or horizontally.
12832 Several bugs related to display margins have been fixed.
12833
12834 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
12835
12836 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
12837 rather than FRAME_WIDTH (FRAME_FONT (f)).
12838
12839 5) Introduce a consistent naming of variables, members and macros
12840 depending on whether their value is measured in pixels or in
12841 canonical columns/lines. Pixel dimensions are named *_width and
12842 *_height, while canonical columns/lines are named *_cols and
12843 *_lines. Pixel positions are named *_x and *_y, while column/line
12844 positions are named *_col and *_line.
12845
12846 6) Consolidate more of the X, W32, and MAC gui code by moving
12847 common data into struct frame, and generalize it for the non-gui
12848 case by using suitable defaults.
12849
12850 7) Cleanup and consolidate the macros controlling frame and window
12851 layout into frame.h and window.h, and generalize the use of the
12852 various window_box_* functions (enhanced to handle the new fringe
12853 position and the per-window fringe and scroll bar settings).
12854
12855 * frame.h (struct frame): Rename members height to text_lines,
12856 width to text_cols, window_height to total_lines, window_width to
12857 total_cols, new_height to new_text_lines, new_width to
12858 new_text_cols. All uses changed.
12859 (struct frame): New members which consolidate common members of
12860 x_output, w32_output, and mac_output structures: left_pos,
12861 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
12862 win_gravity, size_hint_flags, border_width, internal_border_width,
12863 line_height, fringe_cols, left_fringe_width, right_fringe_width,
12864 want_fullscreen. All uses changed.
12865 (struct frame): New member column_width contaning the canonical
12866 column width, analogue to line_height. All uses changed.
12867 (struct frame): Rename members scroll_bar_pixel_width to
12868 config_scroll_bar_width, and scroll_bar_cols to
12869 config_scroll_bar_cols. All uses changed.
12870 (struct frame): New member scroll_bar_actual_width which
12871 consolidates and renames the vertical_scroll_bar_extra member of
12872 x_output, w32_output, and mac_output structures. All uses changed.
12873 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
12874 from x/w32/macterm.h files. All uses changed. Also change code
12875 which referred to f->output_data...->pixel_height.
12876 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
12877 from x/w32/macterm.h files. All uses changed. Also change code
12878 which referred to f->output_data...->pixel_width.
12879 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
12880 Also change code which referred to f->height.
12881 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
12882 Also change code which referred to f->width.
12883 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
12884 to update new_text_lines and new_text_cols members directly.
12885 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
12886 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
12887 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
12888 FRAME_SCROLL_BAR_COLS. All uses changed.
12889 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
12890 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
12891 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
12892 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
12893 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
12894 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
12895 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
12896 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
12897 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
12898 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
12899 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
12900 Unconditionally return line_height member (it now has proper value
12901 also for non-window frames).
12902 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
12903 return new column_width member (rather than the default font width).
12904 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
12905 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
12906 from x/w32/macterm.h files. Unconditionally return corresponding
12907 member of frame structure (they now have proper values also for
12908 non-window frames).
12909 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
12910 Calculate return value from left and right widths.
12911 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
12912 internal_border_width member (has proper value for non-window frame).
12913 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
12914 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
12915 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
12916 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
12917 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
12918 consolidated from xterm.h, macterm.h, and w32term.h.
12919 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
12920 consolidated from xterm.h, macterm.h, and w32term.h.
12921 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
12922 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
12923 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
12924 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
12925 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
12926 consolidated from x/mac/w32term.h.
12927 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
12928 consolidated from x/mac/w32term.h.
12929 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
12930 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
12931 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
12932 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
12933
12934 * window.h (struct window): Rename members left to left_col,
12935 top to top_line, height to total_lines, width to total_cols,
12936 left_margin_width to left_margin_cols, right_margin_width to
12937 right_margin_cols, orig_height to orig_total_lines, orig_top to
12938 orig_top_line. All uses changed.
12939 (struct window): New members left_fringe_width, right_fringe_width,
12940 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
12941 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
12942 New macros primarily used to simplify other macros.
12943 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
12944 referred to XINT (w->width).
12945 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
12946 referred to XINT (w->height).
12947 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
12948 referred to XINT (w->width) * canon_x_unit.
12949 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
12950 referred to XINT (w->height) * canon_y_unit.
12951 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
12952 referred to XINT (w->left).
12953 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
12954 all uses and code that referred to XINT (w->left) + XINT (w->width).
12955 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
12956 referred to XINT (w->top).
12957 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
12958 referred to XINT (w->top) + XINT (w->height).
12959 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
12960 referred to XINT (w->left) * canon_x_unit.
12961 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
12962 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
12963 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
12964 referred to XINT (w->top) * canon_y_unit.
12965 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
12966 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
12967 (WINDOW_LEFTMOST_P): New macro.
12968 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
12969 All uses changed.
12970 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
12971 All uses changed.
12972 (WINDOW_BOX_LEFT_EDGE_X): Rename from
12973 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
12974 Do not exclude left fringe width.
12975 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
12976 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
12977 Do not exclude fringe widths.
12978 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
12979 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
12980 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
12981 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
12982 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
12983 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
12984 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
12985 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
12986 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
12987 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
12988 New macros. Change code which referenced corresponding
12989 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
12990 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
12991 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
12992 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
12993 allow per-window scroll-bar settings.
12994 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
12995 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
12996 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
12997 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
12998 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
12999 FRAME_SCROLL_BAR_WIDTH.
13000 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
13001 (WINDOW_SCROLL_BAR_AREA_X): New macros.
13002 (WINDOW_HEADER_LINE_HEIGHT): Rename from
13003 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
13004 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
13005 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
13006 (WINDOW_BOX_TEXT_HEIGHT): Rename from
13007 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
13008 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
13009 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
13010 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
13011 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
13012 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
13013 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
13014 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
13015 (window_from_coordinates): Update prototype.
13016 (Fset_window_buffer): Update EXFUN.
13017 (set_window_buffer): Update prototype.
13018
13019 * dispextern.h (struct glyph_matrix): Rename members window_left_x
13020 to window_left_col, window_top_y to window_top_line. All uses
13021 changed.
13022 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
13023 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
13024 internal_border_width is now set to 0 for non-window frames.
13025 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
13026 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
13027 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
13028 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
13029 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
13030 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
13031 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
13032 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
13033 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
13034 Move to window.h and renamed [see window.h changes].
13035 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
13036 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
13037 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
13038 Use WINDOW_TOTAL_LINES.
13039 (frame_update_line_height): Remove prototype.
13040
13041 * buffer.h (struct buffer): Rename members measured in columns:
13042 left_margin_width to left_margin_cols, right_margin_width to
13043 right_margin_cols. All uses changed.
13044 New members left_fringe_width, right_fringe_width,
13045 fringes_outside_margins for per-buffer fringe settings.
13046 New members scroll_bar_width and vertical_scroll_bar_type for
13047 per-buffer scroll bar settings.
13048
13049 * buffer.c (init_buffer_once): Set buffer_defaults and
13050 buffer_local_flags for new buffer-local variables
13051 left_fringe_width, right_fringe_width, fringes_outside_margins,
13052 scroll_bar_width, and vertical_scroll_bar_type.
13053 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
13054 default-* variables for them.
13055
13056 * dispnew.c: Make (many) trivial substitutions for renamed and
13057 new macros in dispextern.h, frame.h and window.h.
13058 (mode_line_string): No need to adjust width for mode lines, as it
13059 is already adjusted by the caller.
13060 (marginal_area_string): Handle fringes inside/outside margins.
13061
13062 * frame.c: Make (many) trivial substitutions for renamed and
13063 new macros in dispextern.h, frame.h and window.h.
13064 (make_frame): Initialize left_fringe_width, right_fringe_width,
13065 fringe_cols, scroll_bar_actual_width, border_width,
13066 internal_border_width, column_width, line_height, x_pixels_diff,
13067 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
13068 members with values suitable for a non-window frames.
13069
13070 * gtkutil.c: Make (many) trivial substitutions for renamed and
13071 new macros in dispextern.h, frame.h and window.h.
13072
13073 * indent.c: Make (few) trivial substitutions for renamed and
13074 new macros in dispextern.h, frame.h and window.h.
13075
13076 * keyboard.c: Make (many) trivial substitutions for renamed and
13077 new macros in dispextern.h, frame.h and window.h.
13078 (make_lispy_event): Use window positions returned from
13079 window_from_coordinates when constructing the lisp event for
13080 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
13081 (incorrect) values locally.
13082 (make_lispy_movement): Use window positions returned from
13083 window_from_coordinates when constructing the lisp event, rather
13084 than calculating (incorrect) values locally.
13085
13086 * scroll.c: Make (some) trivial substitutions for renamed and
13087 new macros in dispextern.h, frame.h and window.h.
13088
13089 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
13090 scroll-bars.
13091
13092 * sysdep.c: Make (few) trivial substitutions for renamed and
13093 new macros in dispextern.h, frame.h and window.h.
13094
13095 * term.c: Make (some) trivial substitutions for renamed and
13096 new macros in dispextern.h, frame.h and window.h.
13097
13098 * widget.c: Make (few) trivial substitutions for renamed and
13099 new macros in dispextern.h, frame.h and window.h.
13100
13101 * window.c: Make (many) trivial substitutions for renamed and
13102 new macros in dispextern.h, frame.h and window.h.
13103 (make_window): Initialize new members
13104 left_margin_cols, right_margin_cols, left_fringe_width,
13105 right_fringe_width, fringes_outside_margins, scroll_bar_width,
13106 and vertical_scroll_bar_type.
13107 (coordinates_in_window): Adapt to new fringe/margin positions
13108 and per-window fringes and scroll-bars.
13109 Fix bug related to incorrectly adjusting coordinates by
13110 frame's internal_border_width (the effect normally negible since
13111 the internal_border_width is typically 0 or 1 pixel, but very
13112 noticeable for an internal_border_width of e.g. 25 pixels).
13113 Upon successful return (other than ON_NOTHING), the coordinates
13114 are now always properly converted to window relative for the
13115 given display element.
13116 (window_from_coordinates): Add new parameters wx and wy to
13117 return the window relative x and y position in the returned
13118 window and part. A null arg means, don't return the position.
13119 All callers changed.
13120 (adjust_window_margins): New function which may reduce the width
13121 of the display margins if a window's text area is too small after
13122 resizing or splitting windows.
13123 (size_window): Fix bug that did not account for display margin
13124 widths when checking the minimum width of a window; use
13125 adjust_window_margins.
13126 (set_window_buffer): Call Fset_window_fringes and
13127 Fset_window_scroll_bars to setup per-window elements.
13128 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
13129 existing display margin, fringe widths, and scroll bar settings
13130 (e.g. after splitting a window or resizing the frame).
13131 All callers changed.
13132 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
13133 (Fsplit_window): Duplicate original window's display margin,
13134 fringe, and scroll-bar settings; then call Fset_window_buffer with
13135 KEEP_MARGINS non-nil. This fixes a bug which caused a split
13136 window to only preserve the display margins in one of the windows.
13137 When splitting horizontally, call adjust_window_margins on both
13138 windows to ensure that the text area of the new windows is non too
13139 narrow. This fixes a bug which could cause Emacs to trap if the
13140 width of the split window was less than the width of the display
13141 margins.
13142 (window_box_text_cols): Rename from window_internal_width.
13143 All uses changed. Adapt to per-window fringes and scroll bars.
13144 Fix bug that caused vertical separator to be subtracted also on
13145 window frames. Fix another bug that did not reduce the returned
13146 value by the columns used for display margins.
13147 (window_scroll_line_based): Fix bug related to scrolling too much
13148 when display margins are present (implicitly fixed by the fix to
13149 window_box_text_cols).
13150 (scroll_left, scroll_right): Fix bug related to scrolling too far
13151 by default when display margins are present (implicitly fixed by
13152 the fix to window_box_text_cols).
13153 (struct saved_window): Rename members left to left_col, top to
13154 top_line, width to total_cols, height to total_lines, orig_top to
13155 orig_top_line, orig_height to orig_total_lines. All uses changed.
13156 New members left_margin_cols, right_margin_cols,
13157 left_fringe_width, right_fringe_width, fringes_outside_margins,
13158 scroll_bar_width, and vertical_scroll_bar_type for saving
13159 per-window display elements.
13160 (Fset_window_configuration): Restore display margins, fringes,
13161 and scroll bar settings. This fixes a bug which caused display
13162 margins to be discarded when saving and restoring a window
13163 configuration.
13164 (save_window_save): Save display margins, fringes, and scroll bar
13165 settings. This fixes a bug which caused display margins to be
13166 discarded when saving and restoring a window configuration.
13167 (Fset_window_margins): Do nothing if display margins are not
13168 really changed. Otherwise, call adjust_window_margins to ensure
13169 the text area doesn't get too narrow. This fixes a bug which
13170 could cause Emacs to trap if setting display margins wider than
13171 the width of the window.
13172 (Fset_window_fringes): New defun to allow user to specifically set
13173 this window's fringe widths and position vs. display margins.
13174 (Fwindow_fringes): New defun to return window's actual fringe settings.
13175 (Fset_window_scroll_bars): New defun to allow user to specifically
13176 set this window's scroll bar width and position.
13177 (Fwindow_scroll_bars): New defun to return window's actual scroll
13178 bar settings.
13179 (compare_window_configurations): Also compare display margins,
13180 fringes, and scroll bar settings.
13181 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
13182
13183 * xdisp.c: Make (many) trivial substitutions for renamed and
13184 new macros in dispextern.h, frame.h and window.h.
13185 (window_box_width): Adapt to per-window fringes and scroll bars,
13186 and new fringe vs. display margin position. Note that returned
13187 value is no longer guaranteed to be a whole multiple of the frame
13188 column width, since per-window fringes may now be any width.
13189 (window_box_left_offset): New function like window_box_left, but
13190 value is relative to left border of window (rather than frame).
13191 (window_box_right_offset): New function like window_box_right,
13192 but value is relative to left border of window.
13193 (window_box_left): Adapt to per-window fringes and scroll bars,
13194 and new fringe vs. display margin position. Simplify by using
13195 WINDOW_LEFT_EDGE_X and window_box_left_offset.
13196 (window_box): Allow null args for unnecessary return values;
13197 change/simplify relevant callers.
13198 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
13199 and new fringe vs. display margin position.
13200 Use window_box_left_offset and window_box_right_offset
13201 (get_glyph_string_clip_rect): Adapt to per-window fringes and
13202 scroll bars, and new fringe vs. display margin position.
13203 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
13204 (draw_fringe_bitmap): Rework to handle per-window fringes and new
13205 fringe vs. display margin position.
13206 (hscroll_window_tree): Use window_box_width instead of window_box.
13207 (redisplay_window): Adapt to per-window scroll bars.
13208 (draw_glyphs): Rework to handle per-window fringes and scroll
13209 bars, and new fringe vs. display margin position.
13210 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
13211 (x_clear_end_of_line): Adapt to per-window fringes and scroll
13212 bars, and new fringe vs. display margin position. Fix bug which
13213 increased total width of full_width rows by width of scroll bars
13214 although window's total width already includes that.
13215 (x_fix_overlapping_area): Simplify using window_box_left_offset.
13216 (expose_area): Simplify using window_box_left_offset.
13217 (x_draw_vertical_border): Handle per-window scroll bar settings,
13218 mixing windows with left, right and no scroll bars.
13219
13220 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
13221 where it's used in x_list_fonts (for clarity).
13222 (frame_update_line_height): Remove unused function; functionality
13223 is now done directly when setting the default font in x_set_font.
13224
13225 * xfns.c: Make (many) trivial substitutions for renamed and
13226 new macros in dispextern.h, frame.h and window.h.
13227
13228 * xmenu.c: Make (some) trivial substitutions for renamed and
13229 new macros in dispextern.h, frame.h and window.h.
13230
13231 * xterm.h (struct x_output): Move members left_pos, top_pos,
13232 border_width, pixel_height, pixel_width, line_height,
13233 internal_border_width, vertical_scroll_bar_extra,
13234 left_fringe_width, right_fringe_width, fringe_cols,
13235 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13236 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
13237 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13238 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13239 (PIXEL_WIDTH, PIXEL_HEIGHT)
13240 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
13241 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
13242 frame.h and renamed [see frame.h changes].
13243 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13244 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
13245 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
13246 and renamed [see frame.h changes].
13247
13248 * xterm.c: Make (several) trivial substitutions for renamed and
13249 new macros in dispextern.h, frame.h and window.h.
13250 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
13251 (scroll_run): Adapt to new fringe position.
13252 (glyph_rect): Use window coordinates returned from
13253 window_from_coordinates rather than frame_to_window_pixel_xy.
13254 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13255 scroll-bars.
13256 (handle_one_xevent): Simplify a USE_GTK conditional.
13257 (x_clip_to_row): Remove superfluous whole_line_p arg and code
13258 (fringes are now inside margins, i.e. always in the clipping area).
13259 All callers changed.
13260 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13261 directly, then call compute_fringe_widths. Don't call
13262 frame_update_line_height.
13263
13264 * w32term.h (struct w32_output): Move members left_pos, top_pos,
13265 border_width, pixel_height, pixel_width, line_height,
13266 internal_border_width, vertical_scroll_bar_extra,
13267 left_fringe_width, right_fringe_width, fringe_cols,
13268 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13269 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
13270 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13271 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13272 (PIXEL_WIDTH, PIXEL_HEIGHT)
13273 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
13274 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
13275 frame.h and renamed [see frame.h changes].
13276 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13277 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
13278 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
13279 and renamed [see frame.h changes].
13280
13281 * w32term.c: Make (several) trivial substitutions for renamed and
13282 new macros in dispextern.h, frame.h and window.h.
13283 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
13284 (glyph_rect): Use window coordinates returned from
13285 window_from_coordinates rather than frame_to_window_pixel_xy.
13286 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13287 scroll-bars.
13288 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
13289 (fringes are now inside margins, i.e. always in the clipping area).
13290 All callers changed.
13291 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13292 directly, then call compute_fringe_widths. Don't call
13293 frame_update_line_height.
13294
13295 * w32console.c: Make (few) trivial substitutions for renamed and
13296 new macros in dispextern.h, frame.h and window.h.
13297
13298 * w32fns.c: Make (many) trivial substitutions for renamed and
13299 new macros in dispextern.h, frame.h and window.h.
13300
13301 * w32menu.c: Make (few) trivial substitutions for renamed and
13302 new macros in dispextern.h, frame.h and window.h.
13303
13304 * macterm.h (struct mac_output): Move members left_pos, top_pos,
13305 border_width, pixel_height, pixel_width, line_height,
13306 internal_border_width, vertical_scroll_bar_extra,
13307 left_fringe_width, right_fringe_width, fringe_cols,
13308 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13309 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
13310 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13311 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13312 (PIXEL_WIDTH, PIXEL_HEIGHT)
13313 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
13314 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
13315 frame.h and renamed [see frame.h changes].
13316 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13317 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
13318 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
13319 and renamed [see frame.h changes].
13320
13321 * macterm.c: Make (several) trivial substitutions for renamed and
13322 new macros in dispextern.h, frame.h and window.h.
13323 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
13324 (glyph_rect): Use window coordinates returned from
13325 window_from_coordinates rather than frame_to_window_pixel_xy.
13326 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13327 scroll-bars.
13328 (x_clip_to_row): Remove superfluous whole_line_p arg and code
13329 (fringes are now inside margins, i.e. always in the clipping area).
13330 All callers changed.
13331 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13332 directly, then call compute_fringe_widths. Don't call
13333 frame_update_line_height.
13334
13335 * macfns.c: Make (several) trivial substitutions for renamed and
13336 new macros in dispextern.h, frame.h and window.h.
13337 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
13338
13339 * macmenu.c: Make (few) trivial substitutions for renamed and
13340 new macros in dispextern.h, frame.h and window.h.
13341
13342 * msdos.h (struct x_output): Remove members left_pos, top_pos,
13343 and line_height, and use corresponding new members in struct
13344 frame. All uses changed.
13345 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
13346 superseeded by corresponding macros in frame.h.
13347
13348 * msdos.c: Make (several) trivial substitutions for renamed and
13349 new macros in dispextern.h, frame.h and window.h.
13350 (IT_note_mouse_highlight): Use updated window coordinates returned
13351 by window_from_coordinates, rather than adjusting them locally.
13352 (internal_terminal_init): No need to initialize line_height here;
13353 it now defaults to 1.
13354
13355 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
13356
13357 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
13358 dropping `down' events.
13359
13360 2003-05-24 Andreas Schwab <schwab@suse.de>
13361
13362 * coding.c (find_safe_codings): Fix last change.
13363
13364 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
13365
13366 * xfns.c (x_window): Fix typo from 2003-05-21 change.
13367
13368 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
13369
13370 * xdisp.c (display_mode_element): Increase max depth.
13371 Simplify the error handling code. Use a different error string
13372 for the case where we hit the depth limit.
13373
13374 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
13375
13376 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
13377
13378 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
13379
13380 * intervals.c (get_local_map): Don't get char-property of previous
13381 point any more: get_pos_property already does it and better.
13382
13383 2003-05-21 Dave Love <fx@gnu.org>
13384
13385 [Merged from unicode branch.]
13386
13387 * xfns.c (x_window, x_window): Use use_xim.
13388
13389 * xterm.c (use_xim): Initialize.
13390 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13391 (x_term_init): Maybe set use_xim.
13392
13393 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13394
13395 2003-05-21 Jason Rumney <jasonr@gnu.org>
13396
13397 * unexw32.c (_start): Remove _fmode initialization.
13398
13399 * emacs.c (main) [WINDOWSNT]: Move it here.
13400
13401 2003-05-20 Dave Love <fx@gnu.org>
13402
13403 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
13404
13405 2003-05-19 Richard M. Stallman <rms@gnu.org>
13406
13407 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
13408 as value for QCfont attribute.
13409 (realize_default_face): lface should already exist; crash if not.
13410 Specify 0 for FORCE_P when calling set_lface_from_font_name.
13411
13412 * frame.c (Fignore_event): Doc fix.
13413
13414 2003-05-19 Kenichi Handa <handa@m17n.org>
13415
13416 * coding.c (decode_coding_string): Handle post-read-conversion
13417 even if the coding doesn't require decoding.
13418
13419 2003-05-18 Richard M. Stallman <rms@gnu.org>
13420
13421 * callproc.c (Fcall_process_region): Doc fix.
13422
13423 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
13424
13425 * lread.c (Fload): Print a message if package is obsolete.
13426
13427 * window.c (Fselect_window): Add optional `norecord' arg.
13428 (select_window_1): Fold into Fselect_window.
13429 (select_window_norecord): New function.
13430 (temp_output_buffer_show): Use it. Preserve current buffer.
13431
13432 * window.h (Fselect_window): Update declaration.
13433
13434 * window.c (delete_window, Fother_window, Fset_window_configuration):
13435 * minibuf.c (read_minibuf):
13436 * macterm.c (x_new_focus_frame):
13437 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
13438 * callint.c (Fcall_interactively):
13439 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
13440
13441 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
13442
13443 2003-05-17 David Kastrup <dak@gnu.org>
13444
13445 * process.c (read_process_output): Back out change from 2003-03-09.
13446
13447 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
13448
13449 * editfns.c (get_pos_property): Don't assume that `object' = nil.
13450
13451 * textprop.c (text_property_stickiness): New arg `buffer'.
13452
13453 * intervals.h (text_property_stickiness): New arg `buffer'.
13454 (get_pos_property): Declare.
13455
13456 * intervals.c (get_local_map): Use get_pos_property, to obey
13457 stickiness and empty overlays.
13458 (create_root_interval, graft_intervals_into_buffer): Use BEG.
13459 (merge_properties, intervals_equal, merge_properties_sticky):
13460 Use XCAR, XCDR.
13461 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
13462
13463 2003-05-17 Richard M. Stallman <rms@gnu.org>
13464
13465 * minibuf.c (read_minibuf): If buffer is empty, record the default
13466 in the history.
13467 (Fminibuffer_complete_word): When deleting the overlap, take account
13468 of its real position.
13469
13470 * fns.c (map_char_table): Fix previous change.
13471
13472 * syntax.c (find_defun_start):
13473 When open_paren_in_column_0_is_defun_start,
13474 return beginning of buffer.
13475
13476 * lisp.h (map_char_table): Declare added arg.
13477
13478 * fns.c (map_char_table): New arg TABLE gets the master table.
13479 All calls changed.
13480 Process default and inheritance, resorting to Faref if necessary.
13481
13482 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13483 (Faccessible_keymaps): Pass new arg to map_char_table.
13484
13485 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
13486
13487 * casetab.c (set_case_table): Pass new arg to map_char_table.
13488
13489 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
13490
13491 * lisp.h (specbinding_func): New typedef.
13492 (struct specbinding): Use specbinding_func, to put the `volatile'
13493 in the right place.
13494
13495 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
13496 to avoid GCC warning.
13497
13498 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
13499
13500 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
13501
13502 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
13503
13504 * keyboard.c (apply_modifiers): Don't fill the other cache.
13505
13506 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
13507
13508 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
13509
13510 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
13511 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
13512 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
13513 (Fset_window_configuration, Fcurrent_window_configuration)
13514 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
13515 (Fpos_visible_in_window_p, mark_window_cursors_off)
13516 (window_internal_height, window_internal_width, Frecenter)
13517 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
13518 (replace_buffer_in_all_windows, init_window_once, init_window)
13519 (syms_of_window, keys_of_window): Move from lisp.h.
13520 * lisp.h: Move window.c declarations to window.h.
13521
13522 * bytecode.c: Include window.h.
13523 * emacs.c: Include window.h.
13524
13525 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
13526 (keyremap): Add `parent' field.
13527 (keyremap_step): Use it. Remove `parent' argument.
13528 (read_key_sequence): Setup and use the new `parent' field.
13529
13530 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
13531
13532 * keyboard.c (adjust_point_for_property): Ensure termination.
13533
13534 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
13535
13536 * keyboard.c (follow_key): Remove dead variable `did_meta'.
13537 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
13538 duplicated handling of function-key-map and key-translation-map
13539 in read_key_sequence.
13540 (read_key_sequence): Use them.
13541
13542 * keyboard.c (adjust_point_for_property): Try harder to move point
13543 to the non-sticky end of an invisible property.
13544
13545 * xdisp.c (single_display_prop_intangible_p): Make `space' display
13546 property intangible as well.
13547
13548 2003-05-10 Andreas Schwab <schwab@suse.de>
13549
13550 * xmenu.c (single_menu_item): Change last parameter to void* to
13551 avoid warning.
13552
13553 2003-05-09 Richard M. Stallman <rms@gnu.org>
13554
13555 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
13556 Bind Qinhibit_modification_hooks to t so there will be no GC.
13557 Rename local `tem' to `save_deactivate_mark'.
13558
13559 * eval.c (specpdl_ptr): Declare volatile.
13560 (unbind_to): Copy the whole binding and decrement specpdl_ptr
13561 before doing the work of unbinding it.
13562
13563 * lisp.h (struct specbinding): Declare elements volatile.
13564 (specpdl_ptr): Declare volatile.
13565
13566 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
13567
13568 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
13569 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
13570
13571 2003-05-08 Dave Love <fx@gnu.org>
13572
13573 * coding.c (Vlast_coding_system_used): Doc fix.
13574
13575 2003-05-07 Jason Rumney <jasonr@gnu.org>
13576
13577 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
13578 when system does not support them.
13579
13580 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
13581
13582 * fileio.c (Qwrite_region_annotate_functions): New var.
13583 (build_annotations): Use it to process the global part of the hook.
13584 (syms_of_fileio): Init and staticpro it.
13585
13586 * keyboard.c (safe_run_hooks_error): Display a message instead of
13587 silently ignoring the error.
13588
13589 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
13590
13591 * keyboard.c (input_available_signal): Mark static.
13592 (menu_bar_items): Use map_keymap.
13593 (menu_bar_one_keymap): Remove.
13594 (menu_bar_item): Adjust arglist (for use in map_keymap).
13595 Properly hide a second binding when not both are keymaps.
13596
13597 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
13598 (single_keymap_panes): Use it and map_keymap.
13599 (single_menu_item): Use skp as well.
13600
13601 * keymap.h (map_keymap_function_t): New type.
13602 (map_keymap): Declare.
13603
13604 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
13605 (map_keymap_call, Fmap_keymap): New functions.
13606 (syms_of_keymap): Defsubr map-keymap.
13607
13608 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13609
13610 * gtkutil.c (create_dialog, make_widget_for_menu_item)
13611 (make_menu_item, create_menus, xg_update_menu_item): Don't call
13612 ..._with_mnemonic functions for menu items.
13613
13614 2003-05-01 Kenichi Handa <handa@m17n.org>
13615
13616 * coding.c (coding_system_accept_latin_extra_p): Delete this
13617 function.
13618 (find_safe_codings): Pay attention to
13619 the property tranlsation-table-for-encode of each codings.
13620 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
13621
13622 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
13623
13624 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
13625
13626 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
13627
13628 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
13629
13630 * lisp.h (CHECK): Wrap args in parenthesis.
13631 (specbind): Fix doc: symbol = Qnil is not supported any more.
13632
13633 * bytecode.c (Fbyte_code) <unwind-protect>:
13634 Use Fprogn rather than 0 and Qnil.
13635
13636 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
13637 `double', and `triple' modifiers as well.
13638
13639 2003-04-30 Richard M. Stallman <rms@gnu.org>
13640
13641 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
13642
13643 * alloc.c (abort_on_gc): New variable.
13644 (Fgarbage_collect): Abort if abort_on_gc is set.
13645
13646 * lisp.h (abort_on_gc): Add decl.
13647
13648 * eval.c (Fsignal): Clear abort_on_gc.
13649
13650 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
13651 Reinit FORMAT_START and END before second scan.
13652
13653 * xdisp.c (move_it_vertically_backward): Do the final big else
13654 even if nlines is 0.
13655
13656 * xdisp.c (redisplay_internal): Finish the per-frame loop
13657 even if redisplay is suspended by input.
13658
13659 2003-04-24 Andrew Choi <akochoi@shaw.ca>
13660
13661 * macterm.c (x_list_fonts): Return all fonts that match if
13662 maxnames = -1.
13663
13664 2003-04-25 Kenichi Handa <handa@m17n.org>
13665
13666 * syntax.c (skip_chars): Fix previous change.
13667
13668 2003-04-24 Kenichi Handa <handa@m17n.org>
13669
13670 * syntax.c (skip_chars): Make the code faster by using the common
13671 technique of *p, *stop, and *endp.
13672
13673 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13674
13675 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
13676 tool_bar_items so GTK tool bar expose callback does not access items
13677 being updated.
13678
13679 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
13680
13681 * eval.c (Fapply): Undo last change and add a comment about why.
13682
13683 2003-04-18 Miles Bader <miles@gnu.org>
13684
13685 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
13686 pickier PARSE_MULTIBYTE_SEQ.
13687
13688 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
13689
13690 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
13691 Use XCDR, XCAR, CONSP.
13692 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
13693 (Fapply): Remove unnecessary GCPRO.
13694
13695 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
13696
13697 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
13698
13699 * buffer.h: Don't hardcode BEG==1.
13700
13701 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
13702
13703 2003-04-16 Richard M. Stallman <rms@gnu.org>
13704
13705 * xdisp.c (try_window, try_window_reusing_current_matrix):
13706 When at end of window, set window_end_pos to Z-ZV.
13707
13708 * buffer.c (Foverlay_recenter): Doc fix.
13709
13710 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
13711
13712 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
13713
13714 2003-04-14 Andrew Choi <akochoi@shaw.ca>
13715
13716 * macterm.c (mac_check_for_quit_char): Don't check more often than
13717 once a second.
13718
13719 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
13720
13721 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
13722 specially, so that they can't hide an implicit switch-frame event.
13723 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
13724 (head_table): Use switch-frame as event_kind for select-window.
13725 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
13726
13727 * editfns.c (Fformat): Lisp_Object/int mixup.
13728 (format2): Remove unused var numargs.
13729
13730 2003-04-11 Kenichi Handa <handa@m17n.org>
13731
13732 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
13733 (Qafter_insert_file_set_coding): New variable.
13734 (syms_of_fileio): Initialize and staticpro it. Delete declaration
13735 for after-insert-file-adjust-coding-function.
13736 (Finsert_file_contents): Call Qafter_insert_file_set_coding
13737 instead of Vafter_insert_file_adjust_coding_function.
13738
13739 2003-04-11 Kenichi Handa <handa@m17n.org>
13740
13741 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
13742
13743 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
13744 string. Callers changed.
13745
13746 2003-04-10 Kenichi Handa <handa@m17n.org>
13747
13748 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
13749 (syms_of_fileio): Declare it as a lisp variable.
13750 (Finsert_file_contents):
13751 Call Vafter_insert_file_adjust_coding_function before calling
13752 decode-format.
13753
13754 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13755
13756 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
13757 get GtkAdjustment as widget now is a GtkRange.
13758
13759 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
13760 GtkRange to avoid memory leak.
13761
13762 2003-04-09 Kenichi Handa <handa@m17n.org>
13763
13764 * xfaces.c (Vface_font_rescale_alist): New variable.
13765 (struct font_name): New member rescale_ratio.
13766 (font_rescale_ratio): New function.
13767 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
13768 (better_font_p): On comparing point sized, pay attention to
13769 recale_ratio member of fonts.
13770 (build_scalable_font_name): Reflect font->rescale_ratio in the
13771 font name.
13772 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13773
13774 * lread.c (read1): Before calling index, check if the 2nd
13775 arguemnt is in ASCII range.
13776
13777 2003-04-08 Richard M. Stallman <rms@gnu.org>
13778
13779 * fileio.c (Ffile_symlink_p): Doc fix.
13780
13781 * editfns.c (Fformat): Translate positions of text properties
13782 in the format string to apply them to the result.
13783
13784 * fileio.c (Finsert_file_contents): Doc fix.
13785 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13786
13787 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
13788
13789 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
13790
13791 2003-04-08 Steven Tamm <steventamm@mac.com>
13792
13793 * mac.c (init_mac_osx_environment): Switch libexec and bin so
13794 that self-contained application finds libexec files.
13795
13796 2003-04-08 Kenichi Handa <handa@m17n.org>
13797
13798 * coding.c (code_convert_region_unwind):
13799 Set Vlast_coding_system_used to the argument.
13800 (code_convert_region): If post-read-conversion function changed
13801 the value of last-coding-sytem, keep the new value in
13802 coding->symbol so that it won't be overridden.
13803 (run_pre_post_conversion_on_str): Likewise.
13804 (coding_system_accept_latin_extra_p): New function.
13805 (find_safe_codings): Pay attention to characters registered in
13806 latin-extra-code-table.
13807
13808 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
13809
13810 * Makefile.in (md5.o): Add missing dependency info.
13811
13812 2003-04-06 Richard M. Stallman <rms@gnu.org>
13813
13814 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
13815
13816 * marker.c (verify_bytepos): New function.
13817
13818 * intervals.c (set_intervals_multibyte_1): When becoming
13819 multibyte, adjust right and left child sizes to a whole set of
13820 characters. If an interval gets zero total-length, delete it.
13821 If an interval consists of just its children, delete one of them.
13822
13823 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
13824 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
13825
13826 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
13827 All calls deleted.
13828 (lisp_malloc): Do the work here directly.
13829
13830 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
13831
13832 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
13833 char tables.
13834
13835 2003-04-04 Kenichi Handa <handa@m17n.org>
13836
13837 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
13838 destructively change "%S" to "%s".
13839
13840 2003-04-03 Miles Bader <miles@gnu.org>
13841
13842 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
13843 always set.
13844
13845 2003-04-01 Dave Love <fx@gnu.org>
13846
13847 * xfns.c (xpm_lookup_color): Grok "opaque".
13848
13849 2003-03-31 Andrew Choi <akochoi@shaw.ca>
13850
13851 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
13852 parent window ID.
13853
13854 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
13855
13856 * macterm.h (struct mac_output): Define x_pixels_diff and
13857 y_pixels_diff.
13858
13859 2003-03-31 Juanma Barranquero <lektu@terra.es>
13860
13861 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
13862 blockinput.h and files included from it.
13863
13864 2003-03-31 Kim F. Storm <storm@cua.dk>
13865
13866 The following changes consolidates the common code related to
13867 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
13868 files into frame.c.
13869
13870 * frame.c: Include blockinput.h.
13871 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
13872 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
13873 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
13874 related vars here.
13875 (struct frame_parm_table, frame_parms): New table for describing
13876 frame parameters and their associated Q-variable.
13877 The order of the parameters corresponds to the sequence of the
13878 frame_parm_handlers table in redisplay_interface.
13879 (x_fullscreen_move, x_set_frame_parameters)
13880 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
13881 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
13882 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13883 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
13884 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
13885 Generic functions for processing of frame parameters.
13886 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
13887 (display_x_get_resource, x_get_resource_string): Functions for
13888 generic access to X resources.
13889 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13890 (x_default_parameter, Fx_parse_geometry): Functions for generic
13891 access to frame parameters.
13892 (x_figure_window_size): Generic calculation of frame size.
13893 Fixed to add space needed for tool bar. Also setup size_hint_flags.
13894 (syms_of_frame): Intern and staticpro frame parameter variables.
13895 Defvar_lisp Vx_resource_class and Vx_resource_name here.
13896 Defsubr Sx_get_resource and Sx_parse_geometry.
13897
13898 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
13899 parameter related vars defined in frame.c.
13900 (EMACS_CLASS): Define here.
13901 (enum FULLSCREEN_*): Define here.
13902 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
13903 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
13904 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
13905 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
13906 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
13907 (x_set_visibility, x_set_autoraise, x_set_autolower)
13908 (x_set_unsplittable, x_set_vertical_scroll_bars)
13909 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
13910 (x_figure_window_size): Add prototypes.
13911
13912 * dispextern.h (frame_parm_handler): New typedef.
13913 (struct redisplay_interface): New member frame_parm_handlers.
13914 (enum resource_types): Move declaration here.
13915 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13916 (x_default_parameter): Add prototypes.
13917
13918 * window.c: Remove extern decl for frame parameter vars.
13919 (change_window_heights): New generic function;
13920 replaces x_change_window_heights. All users changed.
13921
13922 * window.h (change_window_heights): Add prototype.
13923
13924 * xfaces.c: Remove extern decl for frame parameter vars.
13925
13926 * xterm.h (EMACS_CLASS): Remove. Use generic define.
13927 (struct w32_display_info): Fix type of xrdb member.
13928 (enum FULLSCREEN_*): Remove.
13929 Remove prototypes for generic functions (in frame.h).
13930
13931 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13932 parameters now defined in frame.h and frame.c.
13933 (Vx_resource_name): Remove. Use generic var.
13934 (enum x_frame_parms): Remove (bogus, unused enum).
13935 (check_x_display_info): Make non-static (for frame.c).
13936 (struct x_frame_parm_table, x_frame_parms): Remove.
13937 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13938 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13939 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13940 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13941 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13942 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13943 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13944 Remove. Use generic functions instead.
13945 (enum resource_types): Remove.
13946 (x_set_scroll_bar_default_width): New global function (for frame.c).
13947 (Fx_create_frame): Depend on x_figure_window_size to add space for
13948 toolbar and setup size_hint_flags.
13949 (x_frame_parm_handlers): New table for redisplay_interface.
13950 (syms_of_xfns): Don't intern/staticpro removed vars.
13951
13952 * xterm.c: Remove unnecessary extern declarations.
13953 (x_fullscreen_adjust): Remove. Use generic instead.
13954 (x_redisplay_interface): Add x_frame_parm_handlers member.
13955
13956 * w32gui.h (XrmDatabase): New (dummy) typedef.
13957
13958 * w32term.h (EMACS_CLASS): Remove. Use generic define.
13959 (struct w32_display_info): Fix type of xrdb member.
13960 (enum FULLSCREEN_*): Remove.
13961 (x_fullscreen_adjust): Remove prototype.
13962
13963 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13964 parameters now defined in frame.h and frame.c.
13965 (Vx_resource_name): Remove. Use generic var.
13966 (enum x_frame_parms): Remove (bogus, unused enum).
13967 (check_x_display_info): Make non-static (for frame.c).
13968 (struct x_frame_parm_table, x_frame_parms): Remove.
13969 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13970 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13971 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13972 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13973 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13974 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13975 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13976 Remove. Use generic functions instead.
13977 (enum resource_types): Remove.
13978 (x_set_scroll_bar_default_width): New global function (for frame.c).
13979 (Fx_create_frame): Depend on x_figure_window_size to add space for
13980 toolbar and setup size_hint_flags.
13981 (w32_frame_parm_handlers): New table for redisplay_interface.
13982 (syms_of_w32fns): Don't intern/staticpro removed vars.
13983
13984 * w32term.c: Remove unnecessary extern declarations.
13985 (x_fullscreen_adjust): Remove. Use generic instead.
13986 (x_redisplay_interface): Add w32_frame_parm_handlers member.
13987
13988 * w32reg.c (x_get_string_resource): Use XrmDatabase.
13989
13990 * macgui.h (XrmDatabase): New (dummy) typedef.
13991
13992 * macterm.h (EMACS_CLASS): Remove.
13993 (struct mac_display_info): Add xrdb member.
13994 (struct mac_output): Add want_fullscreen member.
13995
13996 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13997 parameters now defined in frame.h and frame.c.
13998 (Vx_resource_name): Remove. Use generic var.
13999 (check_x_display_info): Make non-static (for frame.c).
14000 (struct x_frame_parm_table, x_frame_parms): Remove.
14001 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14002 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14003 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14004 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14005 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14006 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14007 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14008 Remove. Use generic functions instead.
14009 (enum resource_types): Remove.
14010 (x_set_scroll_bar_default_width): New global function (for frame.c).
14011 (mac_frame_parm_handlers): New table for redisplay_interface.
14012 (syms_of_macfns): Don't intern/staticpro removed vars.
14013
14014 * macterm.c: Remove unnecessary extern declarations.
14015 (x_redisplay_interface): Add mac_frame_parm_handlers member.
14016
14017 * Makefile.in (frame.o): Add dependency on blockinput.h and files
14018 included from it (atimer.h and systime.h).
14019
14020 2003-03-30 Andreas Schwab <schwab@suse.de>
14021
14022 * xdisp.c (x_insert_glyphs): Fix swapped width and height
14023 parameters for shift_glyphs_for_insert.
14024
14025 * macterm.c (x_redisplay_interface): Add missing entry for
14026 draw_vertical_window_border.
14027
14028 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
14029
14030 * fileio.c (Fexpand_file_name): In the no-handler case, after
14031 expanding, look again for a handler and invoke it. This is needed
14032 for filenames like "/foo/../user@host:/bar/../baz" -- the first
14033 expansion produces "/user@host:/bar/../baz" which needs to be
14034 expanded again for the finame result "/user@host:/baz".
14035
14036 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14037
14038 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
14039 of area to be redrawn for better performance.
14040
14041 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
14042
14043 * xterm.c (take_vertical_position_into_account): Remove.
14044 (xt_action_hook): Call set_vertical_scroll_bar if needed.
14045 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
14046 (xm_scroll_callback, x_create_toolkit_scroll_bar)
14047 (x_set_toolkit_scroll_bar_thumb): Simplify.
14048 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
14049 (XTread_socket): Remove unused var.
14050 (x_make_frame_invisible): Replace goto with else.
14051
14052 * xdisp.c (set_vertical_scroll_bar): New fun.
14053 (redisplay_window): Use it.
14054
14055 2003-03-26 Richard M. Stallman <rms@gnu.org>
14056
14057 * xdisp.c (update_tool_bar): Recompute tool bar if
14058 update_mode_lines is set. Set w->update_mode_line
14059 only if the tool bar contents actually change.
14060 (update_menu_bar): Undo previous change.
14061
14062 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14063
14064 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
14065 (xg_frame_set_char_size): Calculate scroll bar width before frame
14066 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
14067 (xg_separator_p): Check for all documented separator types.
14068 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
14069 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
14070
14071 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
14072 so tool bar gets updated.
14073
14074 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
14075
14076 * data.c (store_symval_forwarding): Re-instate part of the code
14077 that was deleted with too much enthusiasm.
14078
14079 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
14080
14081 * data.c (store_symval_forwarding): Delete special read-only
14082 hack for type == -1, since we now use ->constant instead.
14083 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
14084
14085 * buffer.c (overlays_in): Declare static.
14086 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
14087 `constant' field rather than the variable's `type' field.
14088
14089 2003-03-24 Andrew Choi <akochoi@shaw.ca>
14090
14091 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
14092
14093 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
14094
14095 * fns.c [MAC_OSX]: Do not redefine vector.
14096
14097 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
14098
14099 * macgui.h: Remove definition of No_Cursor.
14100
14101 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
14102
14103 * xdisp.c: Define No_Cursor.
14104 (x_write_glyphs, notice_overwritten_cursor)
14105 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
14106 (note_mouse_highlight): Remove Mac-specific code.
14107 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
14108
14109 2003-03-24 John Paul Wallington <jpw@gnu.org>
14110
14111 * xdisp.c (redisplay_window): If mini window's buffer is not
14112 empty, then redisplay it like other windows.
14113
14114 2003-03-23 Kim F. Storm <storm@cua.dk>
14115
14116 * w32term.c (w32_draw_window_cursor): Fix last change.
14117
14118 2003-03-23 Kenichi Handa <handa@m17n.org>
14119
14120 * alloc.c (make_string_from_bytes, make_specified_string):
14121 Add `const' for the arg CONTENTS.
14122
14123 * lisp.h (make_string_from_bytes, make_specified_string):
14124 Prototypes adjusted.
14125
14126 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14127
14128 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
14129
14130 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
14131 (XG_SB_RANGE): New define.
14132
14133 * gtkutil.c (xg_fixed_handle_expose): New function.
14134 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
14135 expose events.
14136 (xg_update_scrollbar_pos): Take two more arguments, left and width
14137 of scroll bar including borders.
14138 Clear left and right part outside scroll bar separately as some
14139 themes have bars that are not an even number of pixels.
14140 Don't set reallocate_redraws, don't call
14141 gdk_window_process_all_updates.
14142 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
14143 so no need to change it. Calculate size and value with XG_SB_RANGE.
14144
14145 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
14146 Pass left and width of scroll bar including borders to
14147 xg_update_scrollbar_pos.
14148
14149 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
14150
14151 * Makefile.in: Make sure space precedes end-of-line backslashes.
14152
14153 2003-03-22 Kim F. Storm <storm@cua.dk>
14154
14155 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
14156 Add generic versions here. Remove system specific versions
14157 defined elsewhere.
14158
14159 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
14160 Add prototypes.
14161
14162 * xterm.h (STORE_NATIVE_RECT): New macro.
14163
14164 2003-03-21 Kim F. Storm <storm@cua.dk>
14165
14166 * xdisp.c (get_glyph_string_clip_rect):
14167 Use FRAME_INTERNAL_BORDER_WIDTH.
14168
14169 * dispextern.h (struct redisplay_interface): Add active_p
14170 argument to draw_window_cursor member. All uses changed.
14171
14172 2003-03-21 Kim F. Storm <storm@cua.dk>
14173
14174 The following changes consolidate code related to writing and
14175 inserting glyphs, exposing frame, the tool bar, the mouse face,
14176 the output cursor, and help echo from xterm.c, w32term.c and
14177 macterm.c into xdisp.c. It also generalizes the use of the
14178 window_part enum instead of using numeric values throughout.
14179
14180 * xdisp.c: Consolidate gui-independent code here.
14181 Include keymap.h.
14182 (Qhelp_echo): Import.
14183 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
14184 (help_echo_string, help_echo_window, help_echo_object)
14185 (previous_help_echo_string, help_echo_pos): Declare here.
14186 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
14187 (estimate_mode_line_height): Define here. Handle windowing
14188 systems directly (without using estimate_mode_line_height_hook).
14189 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
14190 (update_window_cursor, update_cursor_in_window_tree)
14191 (fast_find_position, fast_find_string_pos)
14192 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
14193 (expose_area, expose_line, expose_overlaps, expose_window)
14194 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
14195 declared static as they are only used locally in xdisp.c.
14196 (draw_glyphs): Rename from x_draw_glyphs and make static.
14197 (tool_bar_item_info, notice_overwritten_cursor): Make static.
14198 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
14199 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
14200 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
14201 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
14202 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
14203 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
14204 (note_mouse_highlight, x_clear_window_mouse_face)
14205 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
14206 (x_intersect_rectangles): New generic functions for use by xdisp.c
14207 and GUI front-ends.
14208 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
14209 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
14210
14211 * dispextern.h (Display_Info): Generic typedef for *_display_info.
14212 (NativeRectangle): Generic typedef for rectangle type.
14213 (enum window_part): Move here from window.c.
14214 (struct redisplay_interface): New members flush_display_optional,
14215 define_frame_cursor, clear_frame_area, draw_window_cursor,
14216 draw_vertical_window_border, shift_glyphs_for_insert.
14217 Rename member clear_mouse_face to clear_window_mouse_face.
14218 (estimate_mode_line_height_hook): Remove hook.
14219 (auto_raise_tool_bar_buttons_p): Don't declare extern.
14220 (tool_bar_item_info): Remove prototype.
14221 (help_echo_string, help_echo_window, help_echo_object)
14222 (previous_help_echo_string, help_echo_pos)
14223 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
14224 (x_stretch_cursor_p, output_cursor): Declare extern.
14225 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
14226 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
14227 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
14228 (display_and_set_cursor, set_output_cursor, x_cursor_to)
14229 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
14230 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
14231 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
14232 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
14233 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
14234 Add prototypes.
14235 (mode_line_string, marginal_area_string): Fix prototypes.
14236
14237 * window.c (enum window_part): Move to dispextern.h.
14238 (coordinates_in_window): Use enum window_part member names
14239 instead of numbers to describe return value.
14240 (struct check_window_data): Change part member to window_part.
14241 (check_window_containing): Return window_part unaltered.
14242 (window_from_coordinates): Change part arg from int to enum
14243 window_part. Allow part arg to be null. All users changed.
14244
14245 * window.h (window_from_coordinates): Fix prototype.
14246
14247 * term.c (estimate_mode_line_height): Move to xdisp.c.
14248
14249 * keyboard.c (make_lispy_event): Use enum window_part.
14250
14251 * dispnew.c (mode_line_string, marginal_area_string): Use enum
14252 window_part instead of int in arg list. Users changed.
14253
14254 * xterm.h (No_Cursor): Declare as None for X.
14255 (struct mac_output): Replace member cross_cursor by hand_cursor.
14256
14257 * xterm.c: Remove consolidated defines and code.
14258 (BETWEEN): Remove unused macro.
14259 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
14260 (x_define_frame_cursor, x_clear_frame_area)
14261 (x_draw_window_cursor): New X-specific functions for RIF.
14262 (x_redisplay_interface): Add new members.
14263
14264 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
14265
14266 * w32term.h (struct w32_output): Remove cross_cursor member.
14267
14268 * w32term.c: Remove consolidated defines and code.
14269 (BETWEEN): Remove unused macro.
14270 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
14271 (w32_define_frame_cursor, w32_clear_frame_area)
14272 (w32_draw_window_cursor): New W32-specific functions for RIF.
14273 (w32_redisplay_interface): Add new members.
14274
14275 * w32gui.h (No_Cursor): Define as 0 for W32.
14276 (XRectangle): Add X compatible rectangle type.
14277 (NativeRectangle): Declare as RECT for W32.
14278 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
14279
14280 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
14281
14282 * w32console.c: Remove consolidated defines and code.
14283
14284 * msdos.h (Display_Info): Add generic typedef.
14285
14286 * msdos.c: Remove consolidated defines and code.
14287 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
14288
14289 * macterm.h (struct mac_output): Replace member cross_cursor by
14290 hand_cursor.
14291 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
14292
14293 * macterm.c: Remove consolidated defines and code.
14294 (BETWEEN): Remove unused macro.
14295 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
14296 (mac_define_frame_cursor, mac_clear_frame_area)
14297 (mac_draw_window_cursor): New Mac-specific functions for RIF.
14298 (x_redisplay_interface): Add new members.
14299
14300 * macgui.h (No_Cursor): Define as 0 for Mac.
14301 (XRectangle): Add X compatible rectangle type.
14302 (NativeRectangle): Declare as Rect for Mac.
14303 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
14304
14305 * macfns.c (x_set_mouse_color): Setup hand_cursor.
14306 (x_set_cursor_color): Use x_display_and_set_cursor.
14307
14308 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
14309 included from it. Add dependency on keymap.h.
14310
14311 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
14312
14313 2003-03-21 Kenichi Handa <handa@m17n.org>
14314
14315 * fileio.c (Fexpand_file_name): Fix previous change.
14316
14317 2003-03-19 Kenichi Handa <handa@m17n.org>
14318
14319 * fileio.c (Ffile_name_directory): Reconstruct file name by
14320 make_specified_string.
14321 (Ffile_name_nondirectory, Ffile_name_as_directory)
14322 (Fdirectory_file_name, Fexpand_file_name)
14323 (Fsubstitute_in_file_name): Likewise.
14324 (Fread_file_name): Compare decoded homedir with DIR and
14325 DEFAULT_FILENAME.
14326
14327 * alloc.c (make_specified_string): If NCHARS is negative, count
14328 the number of characters.
14329
14330 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14331
14332 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
14333 all widgets.
14334
14335 * gtkutil.h: Removed xg_ignore_next_thumb.
14336
14337 2003-03-18 Kenichi Handa <handa@m17n.org>
14338
14339 * coding.c (Vchar_coding_system_table): Remove this variable.
14340 (Vcoding_system_safe_chars): New variable.
14341 (intersection): Remove this function.
14342 (find_safe_codings): Don't use Vchar_coding_system_table, but try
14343 all codings in SAFE_CODINGS.
14344 (Ffind_coding_systems_region_internal): Adjust for the change of
14345 find_safe_codings. Get generic coding systems from
14346 Vcoding_system_safe_chars.
14347 (Fdefine_coding_system_internal): New function.
14348 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
14349 Initialize and staticpro Vcoding_system_safe_chars.
14350
14351 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14352
14353 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
14354 equal old values before updating.
14355
14356 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
14357
14358 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
14359
14360 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14361
14362 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
14363 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
14364 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
14365 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
14366 (xg_create_scroll_bar): Pass bar to button event callback.
14367 (xg_find_top_left_in_fixed): New function.
14368 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
14369 whole scroll bar area. Get old position with
14370 xg_find_top_left_in_fixed, calculate and only clear needed areas.
14371 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
14372 dragging is in progress. Calculate whole as for Motif.
14373 Remove code that saved last values. Call gtk_range functions to
14374 set scroll bar sizes.
14375
14376 * gtkutil.h: Removed xg_ignore_next_thumb.
14377
14378 2003-03-17 Juanma Barranquero <lektu@terra.es>
14379
14380 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
14381 and files included from it.
14382
14383 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
14384
14385 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
14386 multiple occurrences of the same keymap under different prefixes.
14387 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
14388
14389 2003-03-16 Jason Rumney <jasonr@gnu.org>
14390
14391 * w32gui.h: Use HDC for Display.
14392
14393 * w32term.c (w32_encode_char): Prevent double-byte chars from
14394 crashing Emacs.
14395
14396 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
14397 as binary.
14398
14399 2003-03-16 Juanma Barranquero <lektu@terra.es>
14400
14401 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
14402
14403 2003-03-16 Kim F. Storm <storm@cua.dk>
14404
14405 The following changes consolidate some of the gui-independent
14406 parts of the processing and drawing of "glyph strings" from
14407 xterm.c, w32term.c, and macterm.c into xdisp.c.
14408
14409 * dispextern.h (struct glyph): Reduce face_id member from 22 to
14410 21 bits (this reduces number of faces from 4M to 2M).
14411 Replace W32 specific w32_font_type member (2 bits) by generic
14412 font_type member (3 bits) for portability.
14413 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
14414 (enum draw_glyphs_face): Define here.
14415 (struct glyph_string): Define here. Merge W32 and X versions.
14416 (struct redisplay_interface): New members per_char_metric,
14417 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
14418 (VCENTER_BASELINE_OFFSET): Define here.
14419 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
14420 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
14421
14422 * xdisp.c: Consolidate gui-independent "glyph string" code here.
14423 (dump_glyph_string): Moved here.
14424 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
14425 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
14426 (fill_composite_glyph_string, fill_glyph_string)
14427 (fill_image_glyph_string, fill_stretch_glyph_string)
14428 (left_overwritten, left_overwriting, right_overwritten)
14429 (right_overwriting, get_char_face_and_encoding)
14430 (set_glyph_string_background_width, compute_overhangs_and_x)
14431 (append_glyph, append_composite_glyph, produce_image_glyph)
14432 (take_vertical_position_into_account, append_stretch_glyph)
14433 (produce_stretch_glyph): New generic functions (based on X version).
14434 Call platform specific functions through rif.
14435 (INIT_GLYPH_STRING): New macro, hides W32 details.
14436 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
14437 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
14438 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
14439 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
14440 (notice_overwritten_cursor):
14441 Generic functions exported to platform modules. Users changed.
14442
14443 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
14444 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
14445 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
14446 New macros for consolidated code.
14447
14448 * xterm.c: Remove consolidated defines and code.
14449 (x_per_char_metric, x_encode_char)
14450 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
14451 (x_redisplay_interface): Add new members.
14452
14453 * w32gui.h (Display): Add dummy typedef for consolidation.
14454 (XChar2b): Define alias for wchar_t for consolidation.
14455 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14456
14457 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
14458 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
14459 New macros for consolidation.
14460
14461 * w32term.c: Remove consolidated defines and code.
14462 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
14463 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
14464 (w32_per_char_metric): Change font_type arg to int for RIF.
14465 (w32_encode_char): Return int according to RIF requirements.
14466 (w32_compute_glyph_string_overhangs): Adapt to RIF.
14467 (w32_get_glyph_overhangs): New function for RIF. Uses generic
14468 x_get_glyph_overhangs.
14469 (w32_redisplay_interface): Add new members.
14470
14471 * macgui.h (XChar2b): Move typedef here for consolidation.
14472 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14473
14474 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
14475 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
14476 consolidation.
14477
14478 * macterm.c: Remove consolidated defines and code.
14479 (mac_per_char_metric): New function for RIF.
14480 (mac_encode_char): Adapt to new RIF requirements.
14481 (mac_compute_glyph_string_overhangs): Adapt for RIF.
14482 (x_redisplay_interface): Add new members.
14483
14484 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
14485
14486 * keymap.c (Vmenu_events): New var.
14487 (syms_of_keymap): Initialize it.
14488 (where_is_internal): Check more carefully what is a menu event.
14489
14490 2003-03-14 Richard M. Stallman <rms@gnu.org>
14491
14492 * lread.c (read1): After #!, exit loop on eof.
14493
14494 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14495
14496 * gtkutil.h: Add declaration for xg_frame_cleared.
14497
14498 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
14499
14500 * gtkutil.c (struct xg_last_sb_pos): New structure.
14501 (handle_fixed_child): New function.
14502 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
14503 and force a redraw on them.
14504 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
14505 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
14506 so we can avoid unneeded redraws.
14507 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
14508 and force a redraw on the scroll bar.
14509 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
14510 if xg_last_sb_pos shows the positions are up to date.
14511 (xg_frame_cleared): New function.
14512
14513 2003-03-13 Kenichi Handa <handa@m17n.org>
14514
14515 * coding.c (Fdetect_coding_region): Fix docstring.
14516 (Fdetect_coding_string): Fix docstring.
14517
14518 2003-03-13 Andreas Schwab <schwab@suse.de>
14519
14520 * gtkutil.c: Add prototype for create_menus.
14521
14522 * data.c (long_to_cons): Fix type of top.
14523
14524 * xselect.c (selection_data_to_lisp_data): Use int instead of
14525 long for an integer of size 4.
14526
14527 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
14528 (xg_tool_bar_help_callback): Likewise.
14529
14530 2003-03-12 Andreas Schwab <schwab@suse.de>
14531
14532 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
14533
14534 2003-03-12 Kim F. Storm <storm@cua.dk>
14535
14536 The following changes consolidate the fringe handling from
14537 xterm.c, w32term.c, and macterm.c into xdisp.c.
14538
14539 * xdisp.c: Consolidate fringe handling code here.
14540 (left_bits, right_bits, continued_bits, continuation_bits)
14541 (ov_bits, zv_bits): Define fringe bitmaps.
14542 (fringe_bitmaps): New array holding fringe bitmaps.
14543 (draw_fringe_bitmap): Draw a specific bitmap; call display
14544 specific drawing routine via rif->draw_fringe_bitmap.
14545 (draw_row_fringe_bitmaps): Generic replacement for
14546 x_draw_row_fringe_bitmaps; all callers changed.
14547 (compute_fringe_widths): Generic replacement for
14548 x_compute_fringe_widths; all callers changed.
14549
14550 * dispextern.h (enum fringe_bitmap_type): Define here.
14551 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
14552 (fringe_bitmaps): Declare extern.
14553 (struct redisplay_interface): New member draw_fringe_bitmap.
14554 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
14555
14556 * xterm.c: Remove generic fringe code.
14557 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14558 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14559
14560 * w32term.c: Remove generic fringe code.
14561 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
14562 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
14563
14564 * macterm.c: Remove generic fringe code.
14565 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14566 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14567
14568 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
14569
14570 * print.c (Fprin1_to_string): Return unibyte string if possible.
14571
14572 2003-03-09 David Kastrup <dak@gnu.org>
14573
14574 * process.c (read_process_output): We have allocated enough space
14575 for readmax and carryover, so actually use the alloted space.
14576
14577 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14578
14579 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
14580 toolkit scrollbar click.
14581
14582 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
14583 for USE_GTK.
14584 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
14585 also.
14586 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
14587 scrollbar and control is pressed, call x_scroll_bar_handle_click.
14588
14589 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
14590
14591 * gtkutil.c (xg_get_scroll_id_for_window): New function.
14592 (xg_tool_bar_item_expose_callback): New function.
14593 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
14594 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
14595 on the tool bar widget.
14596 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
14597 to expose on the tool bar item widgets.
14598
14599 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14600
14601 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
14602 struct image* when deciding to update (struct image* may have been
14603 deleted from the image cache).
14604
14605 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
14606 the event isn't for a frame (i.e. for dialogs).
14607
14608 2003-03-07 Kenichi Handa <handa@m17n.org>
14609
14610 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
14611 composition components reaches the limit, terminate composing.
14612 (COMPOSITION_OK): New macro.
14613 (detect_coding_iso2022): Use it if an escape sequence for
14614 composition is found.
14615 (coding_restore_composition): Adjust the number of composition
14616 components if it is not sane.
14617
14618 2003-03-06 Juanma Barranquero <lektu@terra.es>
14619
14620 * w32term.h (struct w32_display_info): Add xrdb member to support
14621 passing resources via -xrm on Windows.
14622
14623 * w32term.c (w32_make_rdb): New function.
14624 (w32_term_init): Use it to initialize xrdb member of w32_display_info
14625 struct. Delete leftover code.
14626
14627 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
14628 for resources passed on the command line.
14629
14630 * w32reg.c (w32_get_rdb_resource): New function.
14631 (x_get_string_resource): Use it, so resources passed with -xrm
14632 supercede the ones in the registry.
14633
14634 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14635
14636 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
14637 instead of x_top_window_to_frame.
14638
14639 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14640
14641 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
14642 when restarting Emacs.
14643
14644 2003-03-03 Richard M. Stallman <rms@gnu.org>
14645
14646 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
14647 to run kill-buffer-query-functions.
14648 (Qkill_buffer_query_functions): New var.
14649 (syms_of_buffer): Init and staticpro it.
14650
14651 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14652
14653 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
14654
14655 2003-02-25 Kim F. Storm <storm@cua.dk>
14656
14657 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
14658 If centering point failed to make whole line visible and vscroll
14659 is non-zero, disable vscroll and try centering point again.
14660
14661 * lread.c (read1): Accept `single space' syntax like (? x).
14662
14663 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14664
14665 * keyboard.c (cancel_hourglass_unwind): Surround with
14666 #ifdef HAVE_X_WINDOWS
14667
14668 2003-02-25 Kenichi Handa <handa@m17n.org>
14669
14670 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
14671 process only when "subprocesses" is defined.
14672
14673 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
14674
14675 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
14676
14677 2003-02-24 Juanma Barranquero <lektu@terra.es>
14678
14679 * callint.c (fix_command): Declare as static void and move before
14680 Fcall_interactively.
14681
14682 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
14683 (syms_of_xdisp): Don't initialize Qwhen.
14684
14685 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14686
14687 * keyboard.c (cancel_hourglass_unwind): New function.
14688 (command_loop_1): Cancel hourglass with unwind-protect.
14689
14690 2003-02-23 Richard M. Stallman <rms@gnu.org>
14691
14692 * callint.c (fix_command): New subroutine, from Fcall_interactively.
14693 Detect (when ... (region-beginning)) etc.
14694 (Fcall_interactively): Call fix_command.
14695 (Qif, Qwhen): New variables.
14696 (syms_of_callint): Init and staticpro them.
14697
14698 * regex.c (print_partial_compiled_pattern): Output to stderr.
14699
14700 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
14701
14702 * dired.c (directory_files_internal): Don't expand directory.
14703 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
14704 instead. From Lars Hansen <larsh@math.ku.dk>.
14705
14706 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
14707
14708 * fns.c (string_to_multibyte): Remove unused var i.
14709 (Flanginfo): Fix int/Lisp_Object mixup.
14710 (void_call2): New fun.
14711 (Fmap_char_table): Use it in place of call2.
14712
14713 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
14714
14715 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
14716
14717 * keymap.c (copy_keymap_1): Make it static.
14718
14719 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
14720
14721 2003-02-22 David Ponce <david@dponce.com>
14722
14723 * lread.c (Fload): Don't check STRING_MULTIBYTE.
14724
14725 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14726
14727 * process.h: Removed subtty field from struct Lisp_Process.
14728
14729 * process.c (create_process): Remove setting of subtty.
14730 (emacs_get_tty_pgrp): New function.
14731 (Fprocess_running_child_p, process_send_signal):
14732 Call emacs_get_tty_pgrp instead of ioctl.
14733 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
14734
14735 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
14736
14737 * keymap.c (Fdefine_key): Doc fix.
14738
14739 2003-02-21 Juanma Barranquero <lektu@terra.es>
14740
14741 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
14742
14743 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
14744 POLLING_PROBLEM_IN_SELECT.
14745
14746 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
14747 Delete #undef of POLLING_PROBLEM_IN_SELECT.
14748
14749 * s/hpux10-20.h: New file.
14750
14751 * process.c (wait_reading_process_input):
14752 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
14753
14754 2003-02-20 Kenichi Handa <handa@m17n.org>
14755
14756 * fontset.c (check_fontset_name): If NAME is nil, return the
14757 default fontset.
14758 (override_font_info): New function.
14759 (Fset_fontset_font): Document that NAME nil means the default fontset.
14760 (Ffontset_info): If FONTSET is not the default fontset, merge
14761 FONTSET onto the copy of the default fontset, and work on that
14762 copy. Document that NAME nil means the default fontset.
14763 (Ffontset_font): Document that NAME nil means the default fontset.
14764
14765 * process.c (setup_process_coding_systems): If the process's
14766 in/out descriptor is -1, do nothing.
14767
14768 2003-02-19 Andreas Schwab <schwab@suse.de>
14769
14770 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
14771 Add prototypes.
14772
14773 2003-02-19 Kenichi Handa <handa@m17n.org>
14774
14775 * xfaces.c (try_alternative_families): Try all scalable fonts if
14776 Vscalable_fonts_allowed is not Qt.
14777
14778 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14779
14780 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
14781
14782 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14783
14784 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
14785 names.
14786
14787 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
14788 (sorted_font_list): Move allocation of struct font_name to
14789 x_face_list_fonts.
14790 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
14791 (Fx_list_fonts): Set maxnames to -1 to get all font names.
14792
14793 2003-02-18 Kim F. Storm <storm@cua.dk>
14794
14795 * lread.c (read1): Fix last change.
14796 "`" is not always special. Allow "?" after a character constant.
14797
14798 2003-02-18 Andrew Choi <akochoi@shaw.ca>
14799
14800 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
14801
14802 2003-02-18 Andreas Schwab <schwab@suse.de>
14803
14804 * window.c (window_scroll_pixel_based): Move outside a
14805 multi-glyph character before setting new window start.
14806
14807 * xdisp.c (in_display_vector_p): New function.
14808 * dispextern.h (in_display_vector_p): Declare.
14809
14810 2003-02-18 Kim F. Storm <storm@cua.dk>
14811
14812 * lread.c (read1): Fix and relax read syntax.
14813 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
14814 Only recognize "," after dotted-pair dot if inside backquote.
14815 Never include "`" or "," (inside backquote) in a symbol.
14816 Allow dotted-pair dot after a character constant.
14817 Allow "`" and "," (inside backquote) after a character constant.
14818
14819 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14820
14821 * gtkutil.c (xg_tool_bar_expose_callback): New function.
14822 (xg_create_tool_bar): Force style of tool bar to be horizontal with
14823 icons. Set name of tool bar to emacs-toolbar.
14824 (update_frame_tool_bar): Connect expose event to
14825 xg_tool_bar_expose_callback.
14826
14827 2003-02-17 Richard M. Stallman <rms@gnu.org>
14828
14829 * keyboard.c (this_command_key_count_reset): New variable.
14830 Initiatize to 0 where this_command_key_count is set.
14831 (read_char): Save and restore this_command_key_count_reset
14832 around input method code.
14833 (read_char): If this_command_key_count_reset, echo reread commands.
14834 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
14835
14836 2003-02-17 Kenichi Handa <handa@m17n.org>
14837
14838 * fns.c (string_to_multibyte): Always return a multibyte string.
14839
14840 2003-02-16 Jason Rumney <jasonr@gnu.org>
14841
14842 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
14843 Negative max_fonts parameter means list all.
14844
14845 2003-02-14 Dave Love <fx@gnu.org>
14846
14847 * fns.c (Flanginfo): Doc fix.
14848
14849 2003-02-13 Kim F. Storm <storm@cua.dk>
14850
14851 * lread.c (read_escape): Interpret \s as a SPACE character, except
14852 for \s-X in a character constant which still is the super modifier.
14853 (read1): Signal an `invalid read syntax' error if a character
14854 constant is immediately followed by a digit or symbol character.
14855
14856 * search.c (Fmatch_data): Doc fix. Explicitly state that
14857 match-data is undefined if last search failed.
14858
14859 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
14860 All uses changed.
14861
14862 2003-02-12 Juanma Barranquero <lektu@terra.es>
14863
14864 * eval.c (Fdefmacro): Fix typo.
14865
14866 2003-02-12 Kim F. Storm <storm@cua.dk>
14867
14868 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
14869 macro is a string, convert meta modifiers in string when copying
14870 the string into a vector.
14871
14872 2003-02-11 Kim F. Storm <storm@cua.dk>
14873
14874 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
14875
14876 2003-02-11 Kenichi Handa <handa@m17n.org>
14877
14878 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
14879
14880 2003-02-10 Kim F. Storm <storm@cua.dk>
14881
14882 * process.c: Doc fixes.
14883 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
14884
14885 2003-02-10 Kenichi Handa <handa@m17n.org>
14886
14887 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
14888
14889 * process.c (QCfilter_multibyte): New variable.
14890 (setup_process_coding_systems): New function.
14891 (Fset_process_buffer, Fset_process_filter):
14892 Call setup_process_coding_systems.
14893 (Fstart_process): Initialize the member `filter_multibyte' of
14894 struct Lisp_Process.
14895 (create_process): Call setup_process_coding_systems.
14896 (Fmake_network_process): New keyward `:filter-multibyte'.
14897 Initialize the member `filter_multibyte' of struct Lisp_Process.
14898 Call setup_process_coding_systems.
14899 (server_accept_connection): Call setup_process_coding_systems.
14900 (read_process_output): If the process has a filter, decide the
14901 multibyteness of a string to given to the filter by
14902 `filter_multibyte' member of the process. If the process doesn't
14903 have a filter and the result of conversion is unibyte, use
14904 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
14905 multibyte form.
14906 (Fset_process_coding_system): Call setup_process_coding_systems.
14907 (Fset_process_filter_multibyte): New function.
14908 (Fprocess_filter_multibyte_p): New function.
14909 (syms_of_process): Intern and staticpro QCfilter_multibyte.
14910 Defsubr Sset_process_filter_multibyte and
14911 Sprocess_filter_multibyte_p.
14912
14913 * process.h (struct Lisp_Process): New member filter_multibyte.
14914
14915 * lisp.h (setup_process_coding_systems): Add prototype.
14916
14917 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
14918 process, update coding systems for the process.
14919
14920 2003-02-09 Kenichi Handa <handa@m17n.org>
14921
14922 * fns.c (string_to_multibyte): New function.
14923 (Fstring_to_multibyte): New function.
14924 (syms_of_fns): Defsubr it.
14925
14926 2003-02-08 Andreas Schwab <schwab@suse.de>
14927
14928 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
14929 instead of the substitution.
14930
14931 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14932
14933 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
14934
14935 * xmenu.c (menu_position_func): Adjust menu popup position so that
14936 the menu is fully visible.
14937
14938 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14939
14940 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
14941 (x_make_frame_invisible, x_wm_set_icon_position):
14942 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
14943
14944 * xfns.c (x_set_name, x_set_title): Ditto.
14945
14946 2003-02-04 Richard M. Stallman <rms@gnu.org>
14947
14948 * keyboard.c (echo_now): Update before_command_echo_length.
14949 (Freset_this_command_lengths): Reset this_command_key_count etc.
14950 immediately rather than arranging to do it later.
14951 (before_command_key_count_1, before_command_echo_length_1)
14952 (before_command_restore_flag): Vars deleted.
14953 (add_command_key): Don't handle before_command_restore_flag.
14954 (read_char, record_menu_key): Don't update before_command_key_count or
14955 before_command_echo_length.
14956 (read_char): Don't handle before_command_restore_flag.
14957
14958 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
14959 in direct-output clauses if it wouldn't be called in the ordinary case.
14960
14961 2003-02-04 Kim F. Storm <storm@cua.dk>
14962
14963 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
14964
14965 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14966
14967 * gtkutil.c (remove_from_container): Copying list is not needed.
14968 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
14969 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
14970 on list returned from gtk_container_get_children to avoid memory leak.
14971
14972 2003-02-01 Jason Rumney <jasonr@gnu.org>
14973
14974 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
14975 local malloc.
14976 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
14977 definitions in xpm.h.
14978 (init_xpm_functions): New function.
14979 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
14980 (init_external_image_libraries): Try to load libXpm.dll.
14981
14982 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
14983 timestamp.
14984
14985 2003-01-31 Dave Love <fx@gnu.org>
14986
14987 * syntax.c (Fskip_chars_forward)
14988 (open-paren-in-column-0-is-defun-start): Doc fix.
14989
14990 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
14991
14992 * fileio.c: Support // at start of name for Cygwin (just added proper
14993 preprocessor tests).
14994
14995 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
14996
14997 * Makefile.in: Use @EXEEXT@ for Cygwin.
14998
14999 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
15000
15001 * s/cygwin.h: Added for Cygwin port.
15002
15003 2003-01-31 Juanma Barranquero <lektu@terra.es>
15004
15005 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
15006 when including gif_lib.h.
15007 (init_gif_functions, init_tiff_functions): New functions.
15008 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
15009 Windows. Disable color table lookups. Call library functions
15010 through pointers determined at runtime.
15011 (init_external_image_libraries): Try to load libungif.dll and
15012 libtiff.dll.
15013
15014 2003-01-31 Kenichi Handa <handa@m17n.org>
15015
15016 * xdisp.c (SKIP_GLYPHS): New macro.
15017 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
15018
15019 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15020
15021 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
15022
15023 2003-01-30 Dave Love <fx@gnu.org>
15024
15025 * alloc.c (Vgc_elapsed, gcs_done): New variables.
15026 (Fgarbage_collect): Use them.
15027 (init_alloc, syms_of_alloc): Set them up.
15028
15029 2003-01-30 Juanma Barranquero <lektu@terra.es>
15030
15031 * w32fns.c (init_external_image_libraries): Add missing operator.
15032
15033 2003-01-29 Jason Rumney <jasonr@gnu.org>
15034
15035 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
15036 an alternative name for jpeg.dll.
15037
15038 2003-01-29 Kenichi Handa <handa@m17n.org>
15039
15040 * xdisp.c (set_cursor_from_row): Pay attention to string display
15041 properties.
15042
15043 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
15044
15045 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
15046 <escape>.
15047 (keycode_to_xkeysym_table): Reformat and add more comments.
15048 (XTread_socket): Drop special case for backspace.
15049
15050 2003-01-28 Andrew Choi <akochoi@shaw.ca>
15051
15052 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
15053 values in old-style RGB specs.
15054
15055 2003-01-27 Juanma Barranquero <lektu@terra.es>
15056
15057 * w32fns.c (init_external_image_libraries): Try alternate names for the
15058 jpeg dll.
15059
15060 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15061
15062 * gtkutil.c (create_dialog, xg_separator_p)
15063 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
15064 before calling strcmp or strlen.
15065
15066 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15067
15068 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
15069 and handle image load failure.
15070
15071 2003-01-26 Jason Rumney <jasonr@gnu.org>
15072
15073 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
15074 New functions.
15075 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
15076 Disable color table lookups. Call jpeg library functions
15077 through pointers determined at runtime.
15078 (init_external_image_libraries): Try to load jpeg.dll.
15079
15080 2003-01-25 Richard M. Stallman <rms@gnu.org>
15081
15082 * lisp.h: Declare format2 instead of format1.
15083
15084 * fileio.c (barf_or_query_if_file_exists):
15085 Call format2 instead of format1.
15086
15087 * editfns.c (format2): New function, replaces format1
15088 but takes exactly two Lisp Objects as format args.
15089
15090 * buffer.c (Fkill_buffer): Call format2 instead of format1.
15091
15092 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15093
15094 * xterm.h: Change to return value of x_dispatch_event to int.
15095
15096 * xterm.c (x_filter_event): New function.
15097 (event_handler_gdk, XTread_socket): Call x_filter_event.
15098 (x_dispatch_event): Change to return value of finish.
15099 (event_handler_gdk): Use return value from x_dispatch_event.
15100
15101 * xfns.c (x_window): Call create_frame_xic for GTK version to
15102 initialize input methods.
15103
15104 * gtkutil.h: Add (void) prototypes.
15105
15106 * gtkutil.c (create_menus): Remove code that puts the help menu to
15107 the right.
15108
15109 2003-01-25 Jason Rumney <jasonr@gnu.org>
15110
15111 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
15112 [HAVE_PNG]: Sync with xfns.c version.
15113 (png_load): Adjust colors for Windows. Use Windows
15114 bitmaps. Disable color table lookups.
15115 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
15116 (init_png_functions): New function.
15117 (png_read_from_memory, png_load): Call png library functions
15118 through pointers determined at runtime.
15119 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
15120 (init_external_image_libraries): New function.
15121 (init_xfns): Call it.
15122
15123 2003-01-24 Andreas Schwab <schwab@suse.de>
15124
15125 * minibuf.c (Fminibuffer_message): Verify type of parameter.
15126
15127 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15128
15129 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
15130 of static initializer.
15131
15132 2003-01-24 Dave Love <fx@gnu.org>
15133
15134 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
15135 architectures.
15136
15137 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
15138 Use __alignof__.
15139
15140 2003-01-24 Kenichi Handa <handa@m17n.org>
15141
15142 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
15143 It it is nonzero, don't pretend that an invisible area doesn't exist.
15144 (command_loop_1): Call adjust_point_for_property with proper
15145 second arg.
15146
15147 2003-01-22 Jason Rumney <jasonr@gnu.org>
15148
15149 Sync changes with xterm.c and xfns.c.
15150
15151 * w32term.c (x_draw_glyph_string_foreground)
15152 (x_draw_composite_glyph_string_foreground): Implement overstriking.
15153
15154 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
15155 phys_cursor's hpos is overwritten. This is still not completely
15156 correct, as it doesn't really make sense to use hpos at all to
15157 get the cursor glyph (as that is relative to the width of the
15158 characters on the line, which may have changed during the update).
15159
15160 * w32term.c (notice_overwritten_cursor): Handle the special case
15161 of the cursor being in the first blank non-text line at the
15162 end of a window.
15163
15164 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
15165 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
15166 Compute from the x position returned by x_draw_glyphs.
15167
15168 (x_display_and_set_cursor): Don't set phys_cursor_width here,
15169 except for NO_CURSOR and system caret, to make phys_cursor_width
15170 contain what its name suggests.
15171 (notice_overwritten_cursor): Consider the cursor image erased if
15172 the output area intersects the cursor image in y-direction.
15173
15174 * w32term.c (note_mode_line_or_margin_highlight): Rename from
15175 note_mode_line_highlight and extend.
15176
15177 * w32term.c (last_window): New variable.
15178 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
15179 (note_mouse_movement): Remove reimplemented code in #if 0.
15180
15181 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
15182 not update_mode_lines, and always set it to 1.
15183
15184 2003-01-21 Jason Rumney <jasonr@gnu.org>
15185
15186 * w32fns.c (IDC_HAND): Define it if system headers don't.
15187
15188 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
15189
15190 * w32term.h (struct w32_output): New member hand_cursor.
15191 (WM_EMACS_SETCURSOR): New message definition.
15192
15193 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
15194 function w32_define_cursor.
15195 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
15196 position, change member name output_data.x to output_data.w32 and
15197 add function w32_define_cursor.
15198 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
15199 and change member name output_data.x to output_data.w32.
15200 (w32_initialize_display_info):
15201 Setup dpyinfo->vertical_scroll_bar_cursor.
15202
15203 * w32fns.c (Vx_hand_shape): New variable.
15204 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
15205 WM_EMACS_SETCURSOR.
15206 (x-create-frame): Setup Cursor types.
15207
15208 2003-01-21 David Ponce <david@dponce.com>
15209
15210 * w32term.c (w32_encode_char): For DIM=1 charset, set
15211 ccl->reg[2] to -1 before calling ccl_driver.
15212 (Sync. with xterm.c x_encode_char change by Kenichi Handa
15213 <handa@m17n.org> on 2002-09-30.)
15214 (w32_draw_relief_rect): Declare all args.
15215 (w32_define_cursor): New.
15216
15217 * w32fns.c (w32_load_cursor): New function.
15218 (w32_init_class): Use it.
15219 (x_put_x_image): Declare all args.
15220
15221 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
15222
15223 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
15224
15225 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15226
15227 * gtkutil.c: Must include stdio.h before termhooks.h
15228
15229 2003-01-21 Dave Love <fx@gnu.org>
15230
15231 * alloc.c (Fgc_status): Print zombie list.
15232 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
15233 Fix assignment of zombies.
15234 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
15235 Don't take car of non-cons.
15236
15237 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15238
15239 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15240
15241 2003-01-20 David Ponce <david@dponce.com>
15242
15243 * w32menu.c (digest_single_submenu): Declare all args.
15244
15245 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
15246 changes in xmenu.c:
15247
15248 (parse_single_submenu): Use individual keymap's prompt
15249 string as pane name, if there is one.
15250 (set_frame_menubar): Save menu_items_n_panes from each call to
15251 parse_single_submenu and use it when calling digest_single_submenu.
15252
15253 2003-01-20 Steven Tamm <steventamm@mac.com>
15254
15255 * macterm.c (XTread_socket): Check for valid, visible window
15256 before sending a scroll-wheel event.
15257
15258 2003-01-20 Richard M. Stallman <rms@gnu.org>
15259
15260 * xdisp.c (redisplay_window): If mini window's buffer is not
15261 a minibuffer, then redisplay it like other windows.
15262
15263 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15264
15265 * gtkutil.c (xg_create_frame_widgets): Check if there is an
15266 external tool bar before setting tool bar height.
15267
15268 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15269
15270 * xterm.c (handle_one_xevent): Surround popup_activated
15271 with #ifdef:s for non-toolkit version.
15272
15273 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
15274 (gtkutil.o): New file.
15275 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
15276 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
15277
15278 * gtkutil.c: New file for GTK version.
15279
15280 * gtkutil.h: New file for GTK version.
15281
15282 * xterm.h: Add xt_or_gtk_widget.
15283 Include gtk files for USE_GTK.
15284 (struct x_output): Add toolbar_height.
15285 (struct x_output): Add GTK widgets and Gdk size_hints.
15286 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
15287 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
15288 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
15289
15290 * xterm.c: Include gtkutil.h for USE_GTK.
15291 (free_frame_menubar): Declare extern void for USE_GTK.
15292 (note_mouse_highlight): Check popup_activated for USE_GTK.
15293 (xt_action_hook): Don't compile if USE_GTK.
15294 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
15295 (xg_scroll_callback): New function.
15296 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
15297 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
15298 for USE_GTK.
15299 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
15300 xg_show_scroll_bar for USE_GTK.
15301 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
15302 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
15303 (event_handler_gdk): New function for USE_GTK.
15304 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
15305 (handle_one_xevent): Make sure widget is mapped before
15306 calling x_real_positions for USE_GTK.
15307 (XTread_socket): Add GTK event loop for USE_GTK.
15308 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
15309 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
15310 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
15311 (x_iconify_frame): Add code for USE_GTK.
15312 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
15313 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
15314 is in gtkutil.c.
15315 (x_term_init): Add initialization for GTK.
15316 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
15317
15318 * xmenu.c: Include gtkutil.h for USE_GTK.
15319 (Fx_popup_menu): Use current position if x and y is NIL.
15320 (single_menu_item, single_menu_item, Fx_popup_dialog):
15321 Check for USE_GTK.
15322 (popup_widget_loop): New function for USE_GTK.
15323 (x_activate_menubar): Add code for USE_GTK.
15324 (popup_activate_callback, popup_deactivate_callback)
15325 (menu_highlight_callback, menubar_selection_callback):
15326 Add USE_GTK versions.
15327 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
15328 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
15329 (free_frame_menubar): Only compile if not USE_GTK. GTK version
15330 is in gtkutil.c.
15331 (popup_selection_callback): New version for USE_GTK.
15332 (create_and_show_popup_menu): New fuction, one USE_GTK version and
15333 one USE_X_TOOLKIT version.
15334 (xmenu_show): Call create_and_show_popup_menu.
15335 (dialog_selection_callback): New version for USE_GTK.
15336 (create_and_show_dialog): New fuction, one USE_GTK version and
15337 one USE_X_TOOLKIT version.
15338 (xdialog_show): Call create_and_show_dialog.
15339
15340 * xfns.c: Include gtkutil for USE_GTK.
15341 (x_window_to_frame, x_any_window_to_frame)
15342 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
15343 (x_top_window_to_frame): Add code for USE_GTK.
15344 (x_set_background_color): Call xg_set_background_color for GTK.
15345 (x_set_menu_bar_lines): Check for USE_GTK.
15346 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
15347 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
15348 (x_window): Call xg_create_frame_widgets for USE_GTK.
15349 (Fx_create_frame): Check for USE_GTK
15350 (Fx_file_dialog): New implementation for USE_GTK.
15351
15352 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
15353 (update_menu_bar): Add check for USE_GTK.
15354 (update_tool_bar): Add check for USE_GTK and external tool bar.
15355 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
15356 (redisplay_internal): Add check for USE_GTK and popup_activated.
15357 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
15358 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
15359 (display_menu_bar): Add check for USE_GTK
15360
15361 * lisp.h (Vx_resource_name): Declare extern.
15362
15363 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
15364 for USE_GTK.
15365 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
15366
15367 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
15368 (FRAME_EXTERNAL_TOOL_BAR): New macro.
15369 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
15370
15371 * fileio.c (Fread_file_name): Add check for USE_GTK.
15372
15373 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
15374 Add check for USE_GTK.
15375
15376 * config.in: Added HAVE_GTK
15377
15378 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
15379
15380 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
15381
15382 * charset.h (Funibyte_char_to_multibyte): Export.
15383
15384 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15385
15386 * xmenu.c (mouse_position_for_popup): New function.
15387 (Fx_popup_menu): Call mouse_position_for_popup for X and
15388 mouse_position_hook for others.
15389
15390 2003-01-17 Kim F. Storm <storm@cua.dk>
15391
15392 * editfns.c (Finsert): Mention `string-make-multibyte' and
15393 `string-as-multibyte' in doc string.
15394
15395 2003-01-17 Kenichi Handa <handa@m17n.org>
15396
15397 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
15398
15399 * editfns.c (Fformat): Convert an unibyte char argument that is
15400 formatted by "%c" to multibyte if the total result must be a
15401 multibyte string.
15402
15403 2003-01-16 Kim F. Storm <storm@cua.dk>
15404
15405 * process.c (set-process-filter): Document unibyte/multibyte-ness
15406 of string argument.
15407
15408 2003-01-16 Kenichi Handa <handa@m17n.org>
15409
15410 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
15411
15412 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
15413 (re_search_2): Likewise.
15414
15415 2003-01-15 Kenichi Handa <handa@m17n.org>
15416
15417 * xdisp.c (message_dolog): Fix bug of the case that *Message*
15418 buffer is unibyte.
15419
15420 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
15421
15422 * fns.c (Fsubstring): Clarify doc string.
15423
15424 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
15425 (Fprevious_char_property_change)
15426 (Fnext_single_char_property_change)
15427 (Fprevious_single_char_property_change, Fnext_property_change)
15428 (Fnext_single_property_change, Fprevious_property_change)
15429 (Fprevious_single_property_change, Fadd_text_properties)
15430 (Fput_text_property, Fset_text_properties)
15431 (Fremove_text_properties, Fremove_list_of_text_properties)
15432 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
15433
15434 2003-01-14 Kim F. Storm <storm@cua.dk>
15435
15436 * process.h (struct Lisp_Process): New member plist replaces old
15437 member private_vars. All uses changed.
15438
15439 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
15440 (QCplist): Rename from QCvars. Change all uses.
15441 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
15442 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
15443 (syms_of_process): Intern, staticpro, defsubr these.
15444 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
15445
15446 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
15447
15448 * m/delta.h: Remove (obsolete).
15449
15450 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
15451
15452 * fileio.c (Fdelete_directory, Fdelete_file): Document the
15453 behaviour in front of symlinks.
15454 (Fdelete_file): Raise an error on directories.
15455
15456 2003-01-13 Dave Love <fx@gnu.org>
15457
15458 * fns.c (Freverse): Use QUIT.
15459
15460 2003-01-13 Richard M. Stallman <rms@gnu.org>
15461
15462 * minibuf.c (minibuffer_completion_contents):
15463 Error if point is inside prompt.
15464
15465 * keyboard.c (command_loop_1): Don't redisplay directly
15466 if there's a post-command-hook.
15467
15468 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
15469 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
15470
15471 2003-01-12 Kim F. Storm <storm@cua.dk>
15472
15473 * process.h (struct Lisp_Process): New member private_vars.
15474
15475 * process.c (QCvars): New variable.
15476 (syms_of_process): Intern and staticpro it.
15477 (Fset_process_contact): Removed function.
15478 (Fprocess_variable, Fset_process_variable): New functions.
15479 (syms_of_process): Defsubr them.
15480 (Fstart_process): Initialize private_vars plist to nil.
15481 (Fmake_network_process): New arg :vars to setup the private
15482 variables for new network process.
15483 (server_accept_connection): Copy server's private variables to
15484 client process.
15485
15486 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
15487 crashes). Code rewritten and simplified. Now directly aligns the
15488 pointer and recalculates pure_bytes_used, rather than aligning the
15489 size and adjusting the pointer.
15490
15491 2003-01-11 Kim F. Storm <storm@cua.dk>
15492
15493 * process.c (Fset_process_contact): New function.
15494 (syms_of_process): defsubr it.
15495 (make-network-process): Update doc.
15496
15497 2003-01-10 Andreas Schwab <schwab@suse.de>
15498
15499 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
15500 Reported by Berthold Gunreben <b.gunreben@web.de>.
15501
15502 2003-01-10 Dave Love <fx@gnu.org>
15503
15504 * composite.c (syms_of_composite): Make composition_hash_table weak.
15505
15506 2003-01-09 Kim F. Storm <storm@cua.dk>
15507
15508 * process.c (Fmake_network_process): Convert new port number
15509 to host byte order for `:service t' case. From Mario Lang.
15510
15511 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15512
15513 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
15514 instead of XtAppProcessEvent.
15515
15516 * xterm.c (handle_one_xevent): New function.
15517 (x_dispatch_event): New function.
15518 (XTread_socket): Call handle_one_xevent.
15519
15520 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
15521
15522 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
15523 call XQueryPointer to get coordinates.
15524 (popup_get_selection): Do not set popup_activated_flag to zero,
15525 let popup_deactivate_callback do that. Needed for Motif.
15526 Call x_dispatch_event instead of XtDispatchEvent.
15527 (xmenu_show): Calculate root coordinate from frame top/left position.
15528
15529 2003-01-08 Kim F. Storm <storm@cua.dk>
15530
15531 * process.c (server_accept_connection): Fix recording of new
15532 connection's local address in :local property of contact info.
15533 (Fmake_network_process): Record local network address for new
15534 client processes in :local property of contact info.
15535 (format-network-address): Add arg OMIT-PORT. Change callers.
15536
15537 2003-01-07 Dave Love <fx@gnu.org>
15538
15539 * Makefile.in (fns.o): Depend on coding.h.
15540
15541 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
15542
15543 * minibuf.c (Fread_variable): Doc fix.
15544
15545 * eval.c (Fuser_variable_p): Doc change. For custom variables,
15546 use the same test as for custom-variable-p.
15547
15548 2003-01-05 Richard M. Stallman <rms@gnu.org>
15549
15550 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
15551 Count LAST_LINE_MISFIT in scroll margin for end of window.
15552 Move label too_near_end before setting SCROLL_MARGIN_POS.
15553 Set LAST_LINE_MISFIT before jumping there.
15554
15555 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
15556 scroll_conservatively case. If scrolling that much doesn't change
15557 STARTP, move it down one line.
15558
15559 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
15560 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
15561
15562 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
15563 selected frame.
15564
15565 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
15566 (syms_of_keymap): Staticpro them.
15567 (Fapropos_internal): Initialize them and clear them out.
15568 Don't GCPRO them.
15569
15570 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
15571 Doc fixes.
15572
15573 * lisp.h: New misc type Lisp_Save_Value.
15574 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
15575 (XSAVE_VALUE): New macro.
15576 (struct Lisp_Save_Value): New data type.
15577 (union Lisp_Misc): Add u_save_value alternative.
15578 (make_save_value): Declare.
15579
15580 * alloc.c (make_save_value): New function.
15581
15582 * xterm.c (x_catch_errors): Save dpy using make_save_value.
15583 (x_catch_errors_unwind): Call XSync.
15584
15585 2003-01-01 Richard M. Stallman <rms@gnu.org>
15586
15587 * window.c (window_scroll_pixel_based): Partially undo last change.
15588
15589 * keyboard.c (command_loop_1): Call adjust_point_for_property
15590 in direct action cases for Qforward_char and Qbackward_char.
15591 Set already_adjusted so it won't be done twice.
15592
15593 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
15594
15595 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
15596 type definition of size_t.
15597
15598 2003-01-02 Steven Tamm <steventamm@mac.com>
15599
15600 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
15601 distinguish Carbon GUI builds from X11 builds on darwin.
15602
15603 2002-12-30 Steven Tamm <steventamm@mac.com>
15604
15605 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
15606 to default to t.
15607
15608 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
15609
15610 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
15611
15612 2002-12-28 Steven Tamm <steventamm@mac.com>
15613
15614 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
15615 allow building in a different directory than source. Uses some
15616 GNU Make extensions, but there is no other make on Mac OS X.
15617
15618 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
15619
15620 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
15621 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
15622 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
15623 (Fstring_to_number): Mention the returned value in the doc strings.
15624
15625 2002-12-23 Richard M. Stallman <rms@gnu.org>
15626
15627 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
15628 <scroll-down-aggressively>: Doc fix.
15629
15630 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
15631 string as pane name, if there is one.
15632 (set_frame_menubar): Save menu_items_n_panes from each call to
15633 parse_single_submenu and use it when calling digest_single_submenu.
15634
15635 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
15636 Don't try to make last line fully visible if it is past end of window.
15637
15638 2002-12-22 Steven Tamm <steventamm@mac.com>
15639
15640 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
15641 (mac_menu_show): Add support for hierarchical popup menus.
15642 (add_menu_item): Remove indentation support.
15643 (fill_submenu, fill_menu): Create hierarchical menus
15644 instead of using indentation.
15645
15646 2002-12-22 Richard M. Stallman <rms@gnu.org>
15647
15648 * xdisp.c (try_cursor_movement): Don't call try_window here.
15649 (redisplay_window): Never redisplay minibuffer when inactive.
15650
15651 * window.c (select_window_1): Undo 9/21 change.
15652
15653 2002-12-22 Steven Tamm <steventamm@mac.com>
15654
15655 * macterm.c (XTread_socket): Call KeyTranslate for control and
15656 meta to deal correctly shifted non-alpha characters, like C-S-5
15657 being treated like C-%. Do not look for shift key to deal
15658 with masking off control-key with mac-reverse-ctrl-meta.
15659
15660 2002-12-21 Richard M. Stallman <rms@gnu.org>
15661
15662 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
15663 If it is non-nil, run timers. Use an unwind-protect to requeue
15664 the events that were read ahead.
15665 (popup_get_selection_unwind): New subroutine.
15666 (popup_get_selection_queue): File-scope variable now holds that queue.
15667 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
15668 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
15669 Use an unwind-protect to pop down the dialog box.
15670 (xdialog_show_unwind): New subroutine implements that.
15671
15672 * xdisp.c (row_containing_pos): Change exit test using last_y.
15673 (try_window_id): Abort if row_containing_pos returns null.
15674
15675 * lread.c (load_error_handler): New function.
15676 (Fload): Handle errors in Fsubstitute_in_file_name.
15677 Don't expect Fsignal to return.
15678
15679 * eval.c: Errors and throws work right with interrupt blocking.
15680 (struct catchtag): New elt interrupt_input_blocked.
15681 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
15682 (internal_catch, Fcondition_case, internal_condition_case)
15683 (internal_condition_case_1, internal_condition_case_2): Save it.
15684 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
15685
15686 * editfns.c (Fformat): Add parens.
15687
15688 * dired.c (file_name_completion): Fix that change.
15689 Delete special quit-handling code; just use QUIT.
15690
15691 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
15692
15693 * dired.c (file_name_completion): Close directory on error
15694 just as in directory_files_internal.
15695
15696 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
15697
15698 * window.c (Fset_window_configuration): Set old_point to correct
15699 value when new_current_buffer == current_buffer.
15700
15701 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
15702
15703 Revisited my earlier fix for the following entry in etc/PROBLEMS:
15704 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15705 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
15706
15707 These changes were in part based upon suggestions made by Peter
15708 'Luna' Runestig [peter@runestig.com].
15709
15710 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
15711 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
15712 (g_b_init_get_sid_identifier_authority ): Add several static
15713 global variables.
15714
15715 * w32.c (globals_of_w32): New function. Used to initialize those
15716 global variables that must always be initialized on startup even
15717 when the global variable initialized is non zero. Its primary
15718 purpose at this time is to set the global variables
15719 g_b_init_is_windows_9x, g_b_init_open_process_token,
15720 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
15721 g_b_init_get_sid_identifier_authority to 0 on startup.
15722 Called from main.
15723
15724 * w32.c (is_windows_9x): Perform initialization only if
15725 g_b_init_is_windows_9x is equal to 0. On initialization set
15726 g_b_init_is_windows_9x equal to 1.
15727
15728 * w32.c (open_process_token): Perform initialization only if
15729 g_b_init_open_process_token is equal to 0. On initialization set
15730 g_b_init_open_process_token equal to 1.
15731
15732 * w32.c (get_token_information): Perform initialization only if
15733 g_b_init_get_token_information is equal to 0. On initialization
15734 set g_b_init_get_token_information equal to 1.
15735
15736 * w32.c (lookup_account_sid): Perform initialization only if
15737 g_b_init_lookup_account_sid is equal to 0. On initialization
15738 set g_b_init_lookup_account_sid equal to 1.
15739
15740 * w32.c (get_sid_identifier_authority): Perform initialization
15741 only if g_b_init_get_sid_identifier_authority is equal to 0.
15742 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
15743
15744 * w32fns.c (globals_of_w32fns): New function. Used to initialize
15745 those global variables that must always be initialized on startup
15746 even when the global variable initialized is non zero.
15747 Its primary purpose at this time is to initialize the global variable
15748 track_mouse_event_fn.
15749
15750 * w32fns.c (w32_wnd_proc): Remove initialization of
15751 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
15752
15753 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
15754
15755 * w32menu.c (globals_of_w32menu): New function. Used to
15756 initialize those global variables that must always be initialized
15757 on startup even when the global variable initialized is non zero.
15758 Its primary purpose at this time is to initialize the global
15759 variables get_menu_item_info and set_menu_item_info.
15760
15761 * w32menu.c (initialize_frame_menubar): Remove initialization of
15762 get_menu_item_info and set_menu_item_info.
15763
15764 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
15765
15766 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
15767 Declare them.
15768
15769 * emacs.c (main): Call globals_of_w32 prior to calling
15770 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
15771 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
15772 is defined.
15773
15774 * w32term.c (x_update_window_begin): Fix Windows API error
15775 detected by BoundsChecker. Test to determine if
15776 w32_system_caret_hwnd is NULL prior to attempting to use
15777 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
15778
15779 * w32term.c (x_update_window_end): Fix Windows API error
15780 detected by BoundsChecker. Test to determine if
15781 w32_system_caret_hwnd is NULL prior to attempting to use
15782 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
15783
15784 2002-12-17 Kenichi Handa <handa@m17n.org>
15785
15786 * coding.c (coding_system_require_warning): New variable.
15787 (syms_of_coding): DEFVAR it.
15788
15789 * coding.h (coding_system_require_warning): Extern it.
15790
15791 * fileio.c (choose_write_coding_system): Even if
15792 Vcoding_system_for_write is non-nil, if
15793 coding_system_require_warning is nonzero, call
15794 Vselect_safe_coding_system_function.
15795
15796 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
15797
15798 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
15799 (lisp): Add font-core.
15800
15801 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
15802
15803 * textprop.c (text_read_only): New arg `propval'.
15804 (get_char_property_and_overlay): Remove unused var `next_overlay'.
15805 (verify_interval_modification): Use text_read_only's new arg.
15806
15807 2002-12-13 Kenichi Handa <handa@m17n.org>
15808
15809 * coding.c (Funencodable_char_position): Set pend correctly.
15810
15811 2002-12-12 Jason Rumney <jasonr@gnu.org>
15812
15813 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
15814 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
15815 Be more careful about when help_events are generated.
15816
15817 2002-12-12 Steven Tamm <steventamm@mac.com>
15818
15819 * macterm.c (mac_check_for_quit_char): Correctly set the
15820 modifiers of the event to 0.
15821 * mac.c (sys_select): Duplicate rfds before calling select to
15822 ensure that rfds survive the while loop.
15823
15824 2002-12-11 Kim F. Storm <storm@cua.dk>
15825
15826 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
15827 row_containing_pos returned NULL.
15828
15829 2002-12-10 Steven Tamm <steventamm@mac.com>
15830
15831 * mac.c (sys_read): Fix sys_read to not call select if IO is
15832 non-blocking.
15833 (sys_select): Fix sys_select to not use a timeout larger than
15834 the one given.
15835
15836 2002-12-10 Juanma Barranquero <lektu@terra.es>
15837
15838 * editfns.c (Fformat): Use alloca, not _alloca.
15839
15840 2002-12-09 Richard M. Stallman <rms@gnu.org>
15841
15842 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
15843 as the last thing.
15844
15845 2002-12-09 Dave Love <fx@gnu.org>
15846
15847 * s/sol2-8.h: Removed. (Not necessary.)
15848
15849 2002-12-09 Matthew Swift <swift@alum.mit.edu>
15850
15851 * editfns.c (Fformat): Handle precision in string conversion
15852 specifiers like libc functions do (ie, print at most that many
15853 characters).
15854
15855 2002-12-08 Richard M. Stallman <rms@gnu.org>
15856
15857 * xdisp.c (row_containing_pos): Check more carefully
15858 whether charpos is really in the row before returning it.
15859
15860 2002-12-07 Steven Tamm <steventamm@mac.com>
15861
15862 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
15863
15864 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
15865 each stack frame. This may change as it could be time consuming.
15866
15867 * macterm.c (mac_check_for_quit_char, quit_char_comp)
15868 (init_quit_char_handler, mac_determine_quit_char_modifiers)
15869 (mac_initialize): Add code to check for pressing of quit_char
15870 in the OS event queue.
15871
15872 * mac.c (sys_select): Call mac_check_for_quit_char every second
15873 while blocking on select.
15874
15875 * mac.c (sys_read): Use sys_select to test for input first
15876 before calling read, to allow C-g to break.
15877
15878 2002-12-07 Richard M. Stallman <rms@gnu.org>
15879
15880 * minibuf.c (Fcompleting_read): Doc fix.
15881
15882 * lread.c (syms_of_lread) <load-history>: Doc fix.
15883
15884 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
15885
15886 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
15887 autoload.
15888
15889 * data.c (Fdefalias): Record in load-history redefining an autoload.
15890
15891 * alloca.c: Undo ifdef change accidentally made on 12-04.
15892
15893 2002-12-06 Francesco Potorti` <pot@gnu.org>
15894
15895 * xfns.c (png_load): Avoid double gamma correction for PNG images.
15896
15897 2002-12-04 Richard M. Stallman <rms@gnu.org>
15898
15899 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
15900
15901 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
15902
15903 * alloca.c: Don't use #error.
15904
15905 2002-12-03 Dave Love <fx@gnu.org>
15906
15907 * buffer.c (Qucs_set_table_for_input): New.
15908 (Fget_buffer_create): Use it.
15909 (Qset_buffer_major_mode_hook): Deleted.
15910 (Fset_buffer_major_mode): Revert previous change.
15911 (init_buffer_once): Intern ucs-set-table-for-input.
15912 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
15913 Add &Qucs_set_table_for_input.
15914
15915 2002-12-03 Andreas Schwab <schwab@suse.de>
15916
15917 * callint.c (Fcall_interactively): Use next_event only if less
15918 than key_count.
15919
15920 2002-12-02 Andrew Choi <akochoi@shaw.ca>
15921
15922 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
15923 names to 255 characters.
15924
15925 * macterm.c (XTread_socket): If all frames have been collapsed,
15926 expand the first one before handling drag-and-drop events.
15927
15928 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
15929 which is detected by autoconf.
15930
15931 2002-12-01 Steven Tamm <steventamm@mac.com>
15932
15933 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
15934 offset in two hints table to allow prebinding to be redone and
15935 allow the executable to be stripped.
15936
15937 2002-11-29 Dave Love <fx@gnu.org>
15938
15939 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
15940 already provided.
15941
15942 2002-11-29 Richard M. Stallman <rms@gnu.org>
15943
15944 * xdisp.c (start_display): Check more intelligently for
15945 whether the line is continued.
15946 (move_it_vertically_backward): Clear it->continuation_lines_width.
15947
15948 2002-11-28 Dave Love <fx@gnu.org>
15949
15950 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
15951 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
15952
15953 2002-11-27 Steven Tamm <steventamm@mac.com>
15954
15955 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
15956 more descriptive error output from lread.c:Fload upon most require
15957 cycles during boostrapping.
15958
15959 2002-11-27 Jason Rumney <jasonr@gnu.org>
15960
15961 * fileio.c (Finsert_file_contents): Give a more appropriate error
15962 for files bigger than 2Gb when off_t is 32 bit.
15963
15964 * dired.c (Ffile_attributes): Don't return negative file sizes for
15965 files bigger than 2Gb when off_t is 32 bit.
15966
15967 2002-11-27 Dave Love <fx@gnu.org>
15968
15969 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15970
15971 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
15972 Test GETPGRP_VOID instead.
15973 [BSD_TERMIOS]: Remove definitions (never used).
15974
15975 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
15976 Don't define.
15977 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15978
15979 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
15980
15981 2002-11-25 Jason Rumney <jasonr@gnu.org>
15982
15983 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
15984 supported.
15985
15986 2002-11-25 Dave Love <fx@gnu.org>
15987
15988 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
15989
15990 * Makefile.in (TEMACS_LDFLAGS): Update last change.
15991
15992 2002-11-25 Andreas Schwab <schwab@suse.de>
15993
15994 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
15995
15996 2002-11-24 Steven Tamm <steventamm@mac.com>
15997
15998 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
15999 determine the size of pointers alloced in unexed space instead
16000 of using possibly invalid emacs_zone pointers. This fixes the
16001 binary incompatibility problems caused by updates to libSystem.B.
16002
16003 2002-11-24 Richard M. Stallman <rms@gnu.org>
16004
16005 * search.c (Fstring_match): Doc fix.
16006
16007 * callint.c (Fcall_interactively): If a command fails because
16008 `*' detects a read-only buffer, but RECORD_FLAG is set,
16009 record it anyway if the args don't actually do tty input.
16010
16011 2002-11-22 Dave Love <fx@gnu.org>
16012
16013 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
16014
16015 * keyboard.c (interrupt_signal): Provide forward declaration.
16016 (kbd_buffer_store_event): Don't declare interrupt_signal.
16017
16018 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
16019
16020 2002-11-21 Richard M. Stallman <rms@gnu.org>
16021
16022 * eval.c (interactive_p): Skip any number of bytecode
16023 and special form frames, in any order.
16024
16025 2002-11-20 Jason Rumney <jasonr@gnu.org>
16026
16027 * w32fns.c (convert_mono_to_color_image): New function.
16028 (xbm_load, xbm_load_image): Use it when foreground or background
16029 is explicitly set.
16030
16031 2002-11-19 Dave Love <fx@gnu.org>
16032
16033 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
16034
16035 2002-11-18 Jason Rumney <jasonr@gnu.org>
16036
16037 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
16038 (XPutPixel): Swap blue and red.
16039 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
16040 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
16041 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
16042 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
16043
16044 2002-11-18 Dave Love <fx@gnu.org>
16045
16046 * m/orion105.h (HAVE_ALLOCA): Don't define.
16047
16048 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
16049
16050 * m/intel386.h: Don't include alloca.h or define alloca.
16051
16052 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
16053 malloc, realloc, calloc.
16054
16055 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
16056 (bcmp): Don't define.
16057
16058 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
16059
16060 * m/amdahl.h: Don't define LIB_STANDARD.
16061
16062 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
16063
16064 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
16065
16066 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
16067 Don't include alloca.h.
16068
16069 * s/aix3-2.h (HAVE_FSYNC): Don't define.
16070
16071 * regex.c (_GNU_SOURCE): Don't define.
16072
16073 * process.c (_GNU_SOURCE): Don't define.
16074
16075 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
16076
16077 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
16078
16079 * s/sol2-8.h: Include sol2-6.h.
16080
16081 2002-11-18 Miles Bader <miles@gnu.org>
16082
16083 * dispextern.h (struct face): Add `overstrike' field.
16084 * xterm.c (x_draw_glyph_string_foreground)
16085 (x_draw_composite_glyph_string_foreground): Implement overstriking.
16086 * xfaces.c (load_face_font): Set `face->overstrike' based on
16087 result from choose_face_font.
16088 (best_matching_font, choose_face_font): Add `needs_overstrike'
16089 argument, and use it to return whether overstriking is desirable
16090 for this face/font combo.
16091 (set_font_frame_param: Pass new argument to choose_face_font.
16092
16093 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
16094
16095 This change is my fix for the following entry in etc/PROBLEMS:
16096 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
16097 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
16098
16099 * w32.c: Added wrapper functions around the win32 API functions
16100 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
16101 GetSidIdentifierAuthority. These wrapper functions serve two
16102 purposes:
16103 1. They ensure that the wrapped function can never be called
16104 when Emacs is running on an operating system on which they are
16105 not supported (Microsoft Windows 95 / 98 / ME).
16106 2. They call the wrapped functions via function pointers rather
16107 than calling them directly. This avoids taking advantage of the
16108 undocumented fact that although these functions are not supported
16109 in the 9x branch of Microsoft Windows, the functions do exist in
16110 the version of advapi32.dll that is found in the 9x branch of
16111 Microsoft Windows.
16112
16113 * w32.c (init_user_info): Replace the calls to the win32 API
16114 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
16115 and GetSidIdentifierAuthority with calls to the newly added
16116 wrapper functions.
16117
16118 * w32.h: Added extern declarations for the following functions:
16119 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
16120 syms_of_w32menu, and void syms_of_fontset.
16121
16122 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
16123 function pointer track_mouse_event_fn in the handler for the
16124 WM_SETFOCUS message.
16125
16126 * w32menu.c (initialize_frame_menubar): Add code to
16127 reinitialize the function pointers set_menu_item_info and
16128 get_menu_item_info.
16129
16130 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
16131
16132 * sound.c: Added a partial implementation of play-sound-internal
16133 for Microsoft Windows. Added various #ifdef / #else / #endif
16134 code blocks to separate the code that will compile under
16135 Microsoft Windows from the code that is specific to GNU/Linux.
16136 Moved several blocks of code around to make this separation of code
16137 into Windows compatible and GNU/Linux compatible code blocks easier.
16138
16139 * makefile.w32-in: Include sound.c and link with WinMM.lib.
16140
16141 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
16142 added support for play-sound-internal under Windows would be
16143 included in the build of Emacs.
16144
16145 2002-11-16 Jason Rumney <jasonr@gnu.org>
16146
16147 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
16148
16149 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
16150
16151 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
16152
16153 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
16154 (adjust_point_for_property): Move out of display and invisible even if
16155 we were already inside before (in case a property was added while
16156 we weren't looking). Be more careful when handling invisible props.
16157 Skip invisible text as if it really wasn't there at all.
16158
16159 2002-11-15 Jason Rumney <jasonr@gnu.org>
16160
16161 * w32term.c (x_draw_image_foreground)
16162 (w32_draw_image_foreground_1): Use standard copy and invert
16163 operations to draw images.
16164
16165 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
16166 depth of 1.
16167 (xbm_read_bitmap_data): Invert bits as xbm is read in.
16168 (XPutPixel): Don't invert bits here.
16169
16170 2002-11-15 Jason Rumney <jasonr@gnu.org>
16171
16172 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
16173 (w32_draw_image_foreground_1): Handle image masks.
16174 (x_draw_image_glyph_string): Don't BitBlt transparently.
16175
16176 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
16177 (x_from_xcolors): Adjust RGB values for W32.
16178 (image_background, image_background_transparent)
16179 (postprocess_image, x_to_xcolors, x_disable_image)
16180 (x_build_heuristic_mask): Adapt for W32 and enable.
16181 (x_create_x_image_and_pixmap): Mark images with palettes as such.
16182 (xbm_load): Remove unused variable.
16183
16184 2002-11-14 Richard M. Stallman <rms@gnu.org>
16185
16186 * buffer.c (syms_of_buffer): Doc fix.
16187
16188 2002-11-14 Dave Love <fx@gnu.org>
16189
16190 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
16191
16192 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
16193 * xmenu.c (unuse_menu_items, digest_single_submenu):
16194 * xfns.c (x_put_x_image):
16195 * xdisp.c (message2_nolog, set_message):
16196 * undo.c (record_point):
16197 * terminfo.c (tparam):
16198 * syntax.c (scan_sexps_forward):
16199 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16200 * composite.c (update_compositions):
16201 * cm.c (calccost, cmgoto):
16202 * charset.c (c_string_width): Declare all args (per C99).
16203
16204 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
16205
16206 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
16207 Don't declare.
16208
16209 * emacs.c (main) [!VMS]: Avoid third arg.
16210
16211 * fns.c (Fcopy_sequence): Doc fix.
16212 (Fmap_char_table): Cast `call2'.
16213
16214 2002-11-14 Francesco Potorti` <pot@gnu.org>
16215
16216 * s/sol2-8.h: New file.
16217
16218 2002-11-14 Kim F. Storm <storm@cua.dk>
16219
16220 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
16221 dependency on `risky-local-variable' and the :propertize form.
16222
16223 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
16224
16225 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
16226
16227 * syntax.c (scan_sexps_forward): Undo last patch.
16228 Use a more obvious fix: check eob before updating the syntax table.
16229
16230 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
16231
16232 * syntax.c (scan_sexps_forward): Update syntax table before reading
16233 a char rather than after so we don't update the table past eob.
16234
16235 2002-11-09 Dave Love <fx@gnu.org>
16236
16237 * buffer.c (Fset_buffer_major_mode): Fix last change.
16238
16239 * regex.c (regexec): Fix pmatch declaration.
16240
16241 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
16242
16243 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
16244 to self-inserting characters.
16245 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
16246
16247 * coding.c (Vtranslation_table_for_input): New.
16248 (syms_of_coding): DEFVAR it.
16249
16250 2002-11-08 Juanma Barranquero <lektu@terra.es>
16251
16252 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
16253 window.
16254
16255 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16256
16257 * process.c (Fformat_network_address): Remove unused locals p,
16258 cp, and i.
16259
16260 2002-11-06 Dave Love <fx@gnu.org>
16261
16262 * buffer.c (Qset_buffer_major_mode_hook): New.
16263 (Fset_buffer_major_mode): Use it.
16264
16265 2002-11-06 Richard M. Stallman <rms@gnu.org>
16266
16267 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
16268 and stop_polling.
16269
16270 * process.c (wait_reading_process_input):
16271 Test POLLING_PROBLEM_IN_SELECT, not hpux.
16272 Avoid initialization for auto Lisp_Object var.
16273
16274 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
16275
16276 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
16277
16278 2002-11-05 Richard M. Stallman <rms@gnu.org>
16279
16280 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
16281
16282 * callint.c (Fcall_interactively): New local filter_specs.
16283 (Fcall_interactively): Check for progn as well as let.
16284 Add a gcpro.
16285 (Qprogn): New variable.
16286 (syms_of_callint): Staticpro and init Qprogn.
16287
16288 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
16289
16290 * lread.c (Feval_buffer): Doc fix.
16291
16292 2002-11-04 Dave Love <fx@gnu.org>
16293
16294 * keyboard.c (read_char): Always translate iff
16295 Vkeyboard_translate_table is a char table and c is valid.
16296
16297 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16298 and fix C types.
16299
16300 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
16301
16302 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
16303
16304 * editfns.c (get_pos_property): Don't hardcode Qfield.
16305
16306 * keyboard.c (adjust_point_for_property): Handle `display' prop on
16307 overlays. Also handle `invisible' prop.
16308
16309 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
16310
16311 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
16312 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
16313
16314 2002-11-01 Andreas Schwab <schwab@suse.de>
16315
16316 * editfns.c (Fmessage): Revert last change to properly handle %%.
16317
16318 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
16319
16320 * xmenu.c (unuse_menu_items): New fun.
16321 (menu_items_inuse): New var.
16322 (syms_of_xmenu): Initialize it.
16323 (init_menu_items): Use it to detect re-entrance.
16324 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
16325 (Fx_popup_menu): Remove spurious XSETFRAME.
16326
16327 * editfns.c (find_field): Make an exception for nil fields.
16328
16329 2002-11-01 Dave Love <fx@gnu.org>
16330
16331 * m/gec63.h: Deleted.
16332
16333 2002-10-31 Dave Love <fx@gnu.org>
16334
16335 * xterm.c (XTread_socket): Fix last change.
16336 (xaw_scroll_callback): Cast call_data to long to avoid warning.
16337
16338 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
16339
16340 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
16341
16342 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
16343
16344 * editfns.c (overlays_around, get_pos_property): New funs.
16345 (find_field): Use them.
16346 Also be careful not to modify POS before its last use.
16347 (Fmessage): Don't Fformat if there's nothing to format.
16348
16349 2002-10-30 Dave Love <fx@gnu.org>
16350
16351 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
16352 [HAVE_PTY_H]; Include pty.h.
16353
16354 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
16355
16356 * xterm.c (Qeql): Declare.
16357 (Vx_keysym_table): New.
16358 (syms_of_xterm): Initialize it.
16359 (XTread_socket): Use it. Deal with ASCII keysyms.
16360 (XSetIMValues) [HAVE_X11R6]: Prototype.
16361
16362 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
16363 (lispy_kana_keys): Comment out.
16364 (make_lispy_event) [XK_kana_A]: Comment out.
16365 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
16366 Fix sprintf call.
16367
16368 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
16369 regexp.h change).
16370 (TERMINFO, LIBS_TERMCAP): Define.
16371
16372 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
16373 (bcmp): Define conditional on HAVE_BCMP.
16374 (NO_SIOCTL_H): Don't define.
16375 (TIOCSIGSEND): Don't make conditional on IRIX6.
16376
16377 * s/sol2-5.h: Don't include strings.h.
16378 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
16379
16380 * s/irix6-0.h (IRIX6): Don't define.
16381 (bcopy, bcmp, bzero): Don't undef.
16382
16383 * s/irix6-5.h: Don't include strings.h.
16384 (IRIX6): Don't define.
16385 (bcopy, bcmp, bzero): Don't undef.
16386
16387 * syntax.c (Fforward_comment): Doc fix.
16388
16389 2002-10-29 Kim F. Storm <storm@cua.dk>
16390
16391 * process.c (Fsignal_process): Allow PROCESS to be specified by
16392 name in addition to pid (as integer or string).
16393
16394 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
16395
16396 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
16397 environments.
16398
16399 2002-10-27 Kim F. Storm <storm@cua.dk>
16400
16401 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
16402
16403 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
16404
16405 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
16406
16407 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
16408
16409 2002-10-26 Richard M. Stallman <rms@gnu.org>
16410
16411 * editfns.c (Fformat): Detect invalid format letters for floats.
16412
16413 2002-10-25 Kenichi Handa <handa@m17n.org>
16414
16415 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
16416 (x_set_title): Likewise.
16417
16418 2002-10-25 Juanma Barranquero <lektu@terra.es>
16419
16420 * macgui.h:
16421 * w32gui.h: Remove definition of XColor.
16422
16423 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
16424
16425 2002-10-24 Kim F. Storm <storm@cua.dk>
16426
16427 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
16428 Callers changed (supply dummy arg).
16429
16430 * lisp.h (get_window_cursor_type): Update prototype.
16431
16432 * w32term.c (x_display_and_set_cursor): Get active_cursor from
16433 get_window_cursor_type to track system caret.
16434
16435 2002-10-24 Kim F. Storm <storm@cua.dk>
16436
16437 * process.c (Fformat_network_address): New function.
16438 (syms_of_process): Defsubr it.
16439 (list_processes_1): Use it to format :local/:remote address if
16440 service/host is not set; before Emacs would crash in that case.
16441 (Fmake_network_process): Don't use Ffind_operation_coding_system
16442 to setup coding system if host or service is not set.
16443
16444 2002-10-23 Juanma Barranquero <lektu@terra.es>
16445
16446 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
16447
16448 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
16449 COLORREF.
16450
16451 * macgui.h:
16452 * w32gui.h: Add definition of XColor.
16453
16454 * macfns.c:
16455 * w32fns.c:
16456 * xfaces.c: Remove definition of XColor.
16457
16458 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
16459
16460 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
16461
16462 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
16463 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
16464 window if it is dedicated.
16465 (Fshrink_window): Add preserve_before as was done for enlarge_window.
16466 (Vspecial_display_function): Update docstring.
16467
16468 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
16469 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
16470 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
16471
16472 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
16473
16474 * casefiddle.c (casify_region): Don't treat a prefix char as part
16475 of a word when at the beginning.
16476
16477 2002-10-17 Juanma Barranquero <lektu@terra.es>
16478
16479 * lread.c (syms_of_lread): Fix typos.
16480
16481 2002-10-17 Dave Love <fx@gnu.org>
16482
16483 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
16484
16485 2002-10-16 Richard M. Stallman <rms@gnu.org>
16486
16487 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
16488
16489 2002-10-14 Juanma Barranquero <lektu@terra.es>
16490
16491 * w16select.c (syms_of_win16select): Fix docstring for
16492 `selection-coding-system'.
16493
16494 * w32select.c (syms_of_w32select): Likewise.
16495
16496 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
16497
16498 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
16499 a backslash-quoted char.
16500 (scan_lists, scan_sexps_forward): Pacify the compiler.
16501
16502 2002-10-13 Richard M. Stallman <rms@gnu.org>
16503
16504 * window.c (window_scroll): Set immediate_quit.
16505
16506 * print.c (print): When backquote form is the car of a list,
16507 output in old style. Use old_backquote_output to output all
16508 comma forms inside it in old style too.
16509
16510 * buffer.h (struct buffer): Move `undo_list' down below `name'.
16511
16512 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
16513
16514 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
16515 batch mode).
16516
16517 * lread.c (Fload): Doc fix (load-suffixes).
16518
16519 2002-10-10 Steven Tamm <steventamm@mac.com>
16520
16521 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
16522 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
16523 Also switch the default to Qnil from Qt.
16524
16525 2002-10-08 Kenichi Handa <handa@m17n.org>
16526
16527 * coding.c (code_convert_region): When we need more GAP for
16528 conversion, pay attention to the case that coding->produced is not
16529 greater than coding->consumed.
16530
16531 2002-10-07 Richard M. Stallman <rms@gnu.org>
16532
16533 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
16534
16535 2002-10-06 Andrew Choi <akochoi@shaw.ca>
16536
16537 * macmenu.c (mac_menu_show): Add j to count menu items; match
16538 menu_item_selection to it to find selected item.
16539
16540 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16541
16542 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
16543 cases. The correct fix is to pass ReparentNotify to Xt.
16544 The shell widget interprets ConfigureNotify differently depending
16545 on if it has been reparented or not.
16546
16547 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
16548
16549 * editfns.c (Fformat_time_string): Doc fix.
16550
16551 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
16552
16553 * fns.c (Flength): Doc fix.
16554
16555 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
16556
16557 * keyboard.c (keyremap): New struct.
16558 (read_key_sequence): Use it: globally replace keytran_foo with
16559 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
16560 keytran_next and fkey_next to just `next'.
16561
16562 2002-10-04 Steven Tamm <steventamm@mac.com>
16563
16564 * macterm.c (keycode_to_xkeysym_table): Change return to be
16565 treated like an X keysym.
16566
16567 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16568
16569 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
16570 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
16571 This is to also handle x/y changes that occur because of a resize.
16572
16573 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
16574
16575 * frame.c (Vdelete_frame_functions): New variable.
16576 (syms_of_frame): Initialize and defvar it.
16577 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
16578 it when frame's `tooltip' parameter is non-nil.
16579
16580 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
16581
16582 * w32fns.c (x_create_tip_frame): Likewise.
16583
16584 * macfns.c (x_create_tip_frame): Likewise.
16585
16586 2002-09-30 Kenichi Handa <handa@m17n.org>
16587
16588 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
16589 -1 before calling ccl_driver.
16590
16591 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
16592 Only when it is non-nil, handle composition sequence.
16593 (setup_coding_system) <0>: Don't force composition handling.
16594
16595 * Makefile.in (lisp, shortlisp): Add utf-16.elc
16596
16597 2002-09-29 Richard M. Stallman <rms@gnu.org>
16598
16599 * search.c (Freplace_match): Adjust match data for the substitution
16600 just made in the buffer.
16601
16602 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
16603 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
16604
16605 2002-09-27 Richard M. Stallman <rms@gnu.org>
16606
16607 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
16608 (read_char): Use them. Do all exits thru the end of the function.
16609
16610 2002-09-27 Kenichi Handa <handa@etl.go.jp>
16611
16612 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
16613 is nil.
16614
16615 2002-09-26 Richard M. Stallman <rms@gnu.org>
16616
16617 * regex.h (__restrict_arr): Don't define if already defined.
16618
16619 * coding.c (run_pre_post_conversion_on_str):
16620 Save and restore Vdeactivate_mark.
16621
16622 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
16623
16624 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
16625
16626 2002-09-26 Kenichi Handa <handa@etl.go.jp>
16627
16628 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
16629 nonzero, try face's family at first. Otherwise try FAMILY at first.
16630 (choose_face_font): If C is a single byte char or latin-1, call
16631 try_font_list with PREFER_FACE_FAMILY 1.
16632
16633 2002-09-21 Richard M. Stallman <rms@gnu.org>
16634
16635 * window.c (select_window_1): Don't select frame.
16636 Set frame's selected window only when frame itself is selected.
16637 (Fselect_window): Doc fix.
16638
16639 2002-09-18 Kim F. Storm <storm@cua.dk>
16640
16641 * process.c (make-network-process): Doc fix (there is no
16642 network-server-log-function hook).
16643
16644 2002-09-18 Richard M. Stallman <rms@gnu.org>
16645
16646 * print.c (print): Clear out the unused parts of Vprint_number_table.
16647 (syms_of_print): Doc fix for `print-number-table'.
16648
16649 * unexelf.c (unexec): Undo previous change.
16650
16651 2002-09-17 Andreas Schwab <schwab@suse.de>
16652
16653 * m/alpha.h [LINUX]: Don't define DATA_START.
16654
16655 2002-09-16 Dave Love <fx@gnu.org>
16656
16657 * unexelf.c (unexec): Deal with .got, reinstating change from
16658 25-08-1999.
16659
16660 2002-09-13 Richard M. Stallman <rms@gnu.org>
16661
16662 * s/sol2-6.h (UNEXEC): Comment out definition.
16663
16664 * unexsol.c (unexec): Don't downcase first letter of error msg.
16665
16666 * xfaces.c (Fcolor_supported_p): Just one arg is required.
16667
16668 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
16669
16670 * unexsol.c: Include buffer.h, charset.h, coding.h.
16671
16672 2002-09-11 Richard M. Stallman <rms@gnu.org>
16673
16674 * unexsol.c: Don't use report_file_error; do it by hand
16675 using dlerror.
16676
16677 * process.c (wait_reading_process_input, both versions):
16678 Before calling turn_on_atimers, call stop_polling.
16679
16680 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
16681
16682 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
16683 we go to too_near_end, call clear_glyph_matrix.
16684 (redisplay_window): After make_cursor_line_fully_visible,
16685 call clear_glyph_matrix and bypass `goto done'.
16686
16687 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
16688 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
16689
16690 2002-09-10 Richard M. Stallman <rms@gnu.org>
16691
16692 * fileio.c (Fdo_auto_save): Catch error making directory.
16693 Only call push_message if we need to.
16694 At the same time, make an unwind-protect to pop it.
16695 Rename local message_p to old_message_p.
16696 (do_auto_save_make_dir, do_auto_save_eh): New functions.
16697 (do_auto_save_unwind): Don't call pop_message.
16698
16699 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
16700
16701 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
16702
16703 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
16704
16705 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
16706
16707 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
16708
16709 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
16710 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
16711 (re_match_2_internal): Be more careful with infinite loops.
16712
16713 2002-09-10 Kim F. Storm <storm@cua.dk>
16714
16715 * macros.c (end_kbd_macro): New function.
16716 (Fend_kbd_macro): Use it.
16717
16718 * macros.h (end_kbd_macro): Declare extern.
16719
16720 * keyboard.c (Fdiscard_input): If defining keyboard macro,
16721 end and save it instead of discarding it.
16722
16723 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
16724
16725 * s/sol2-6.h: Fix typo. Add comment.
16726
16727 2002-09-09 Richard M. Stallman <rms@gnu.org>
16728
16729 * regex.c (regnum_t): Use signed int, not unsigned int.
16730
16731 * s/sol2-6.h: New file.
16732
16733 * s/sol2-5.h (UNEXEC): Definition deleted.
16734
16735 2002-09-08 Kim F. Storm <storm@cua.dk>
16736
16737 * macros.c (executing_macro_index): Change type to EMACS_INT.
16738 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
16739
16740 * macros.h (executing_macro_index): Change type to EMACS_INT.
16741
16742 2002-09-06 Richard M. Stallman <rms@gnu.org>
16743
16744 * casetab.c (set_case_table): Make canon table point to eqv table.
16745
16746 2002-09-06 Juanma Barranquero <lektu@terra.es>
16747
16748 * coding.c (syms_of_coding): Fix spacing.
16749
16750 * composite.c (Fcompose_region_internal)
16751 (Fcompose_string_internal): Likewise.
16752
16753 * data.c (Flsh): Likewise.
16754
16755 * fontset.c (Fset_fontset_font): Likewise.
16756
16757 * macfns.c (Fx_server_max_request_size): Likewise.
16758
16759 * w16select.c (syms_of_win16select): Likewise.
16760
16761 * w32select.c (syms_of_w32select): Likewise.
16762
16763 * xselect.c (syms_of_xselect): Likewise.
16764
16765 2002-09-05 Richard M. Stallman <rms@gnu.org>
16766
16767 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
16768 call EXTEND_RANGE_TABLE and return a proper value.
16769 (set_image_of_range): Don't call set_image_of_range_1
16770 if no TRANSLATE or if range includes all of Latin-1.
16771 Only call it for the Latin-1 part of the range.
16772 For other cases, make two separate ranges,
16773 one for the original specified characters and one for
16774 their case-conversions.
16775
16776 2002-09-04 Richard M. Stallman <rms@gnu.org>
16777
16778 * s/sol2-5.h (UNEXEC): Use unexsol.o.
16779
16780 * window.c (displayed_window_lines): Correct for one-off bug
16781 in HEIGHT on non-window displays.
16782
16783 * regex.c (set_image_of_range_1): New function.
16784 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
16785 Return a value to indicate running out of memory.
16786 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
16787 (extend_range_table_work_area): New subroutine.
16788 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
16789 Different calling conventions, and used from set_image_of_range{,_1}.
16790 (IMMEDIATE_QUIT_CHECK): Definitions moved.
16791
16792 2002-09-04 Juanma Barranquero <lektu@terra.es>
16793
16794 * makefile.w32-in: All dependencies updated.
16795
16796 2002-09-01 Richard M. Stallman <rms@gnu.org>
16797
16798 * unexsol.c: New file.
16799
16800 * xfns.c (Qbox): Declare external, don't define.
16801
16802 * xdisp.c (redisplay_window) <force-start case>:
16803 If point is on semi-visible last line, reposition
16804 it at previous line.
16805
16806 * alloc.c (display_malloc_warning): Use display-warning.
16807 (malloc_warning_1): Function deleted.
16808
16809 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
16810
16811 * lread.c (read1): Handle #! by skipping the line.
16812
16813 2002-08-31 Richard M. Stallman <rms@gnu.org>
16814
16815 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
16816 Don't include LDFLAGS.
16817 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
16818
16819 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
16820
16821 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
16822 member of x_display_info unless we compile for some window system.
16823
16824 2002-08-31 Kim F. Storm <storm@cua.dk>
16825
16826 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
16827 (get_window_cursor_type): Don't use them.
16828 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
16829
16830 2002-08-30 Kenichi Handa <handa@etl.go.jp>
16831
16832 * xdisp.c (get_next_display_element): Fix previous change.
16833
16834 2002-08-30 Andrew Choi <akochoi@shaw.ca>
16835
16836 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
16837 (expose_window): Use it to fix the display of overlapping
16838 rows (merge code from xterm.c).
16839
16840 * macfns.c (Qbox): Add extern declaration.
16841
16842 2002-08-30 Juanma Barranquero <lektu@terra.es>
16843
16844 * w32fns.c (Qbox): Make extern.
16845 (syms_of_w32fns): Remove initialization of Qbox.
16846
16847 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
16848
16849 * xfns.c (Fx_open_connection): Fix error message.
16850
16851 2002-08-30 Kim F. Storm <storm@cua.dk>
16852
16853 The following changes consolidates the handling of the cursor
16854 type in xdisp.c, moving duplicate code and functionality from
16855 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
16856
16857 * frame.h (enum text_cursor_kinds): Consolidated here.
16858 Added DEFAULT_CURSOR value.
16859 (struct frame) <desired_cursor, cursor_width>
16860 <blink_off_cursor, blink_off_cursor_width>: New fields.
16861 Consolidated from output_x, output_w32 and output_mac structs.
16862 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16863 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
16864
16865 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
16866 Variables consolidated here.
16867 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
16868 (Vcursor_in_non_selected_windows): Renamed from
16869 cursor_in_non_selected_windows and changed to Lisp_Object.
16870 (syms_of_xdisp): Define and staticpro new and moved variables.
16871 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
16872 consolidated here. Recognize Qhollow setting.
16873 (set_frame_cursor_types): New function to set frame cursor types
16874 based on the frame parameters.
16875 (get_window_cursor_type): New function to calculate new cursor
16876 type and width for the specified window. Based on duplicated
16877 code consolidated here.
16878 Enhancements: cursor-in-non-selected-windows may be a cursor type,
16879 check buffer-local alternate-cursor-type and blink-cursor-alist
16880 before using built-in blink off methods.
16881
16882 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
16883
16884 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
16885 (get_specified_cursor_type, get_window_cursor_type)
16886 (set_frame_cursor_types): Added prototypes.
16887
16888 * macfns.c (x_specified_cursor_type): Removed.
16889 (x_set_cursor_type): Use set_frame_cursor_types.
16890 (Qbar, Qbox): Removed.
16891 (syms_of_macfns): Don't intern or staticpro them.
16892
16893 * macterm.c (x_specified_cursor_type): Remove prototype.
16894 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16895 (x_display_and_set_cursor): Use get_window_cursor_type.
16896 Remove unused local variables cursor_non_selected, active_cursor.
16897 Redraw cursor if hbar cursor width changes.
16898 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
16899
16900 * macterm.h (enum text_cursor_kinds): Removed.
16901 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
16902 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16903 (FRAME_DESIRED_CURSOR): Macro removed.
16904
16905 * w32fns.c (Vblink_cursor_alist): Removed.
16906 (Qbar, Qhbar, Qbox, Qhollow): Removed.
16907 (syms_of_w32fns): Don't intern, staticpro, or define them.
16908 (x_specified_cursor_type): Removed.
16909 (x_set_cursor_type): Use set_frame_cursor_types.
16910
16911 * w32term.c (x_specified_cursor_type): Remove prototype.
16912 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16913 (x_display_and_set_cursor): Use get_window_cursor_type.
16914 Remove unused local variables cursor_off_state.
16915 Redraw cursor if hbar cursor width changes.
16916 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
16917
16918 * w32term.h (enum text_cursor_kinds): Removed.
16919 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
16920 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16921 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16922 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16923 (struct w32_display_info) <x_highlight_frame>: Renamed member from
16924 w32_highlight_frame.
16925
16926 * xfns.c (Vblink_cursor_alist): Removed.
16927 (Qbar, Qhbar, Qbox, Qhollow): Removed.
16928 (syms_of_xfns): Don't intern, staticpro, or define them.
16929 (x_specified_cursor_type): Removed.
16930 (x_set_cursor_type): Use set_frame_cursor_types.
16931
16932 * xterm.c (x_specified_cursor_type): Remove prototype.
16933 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16934 (x_display_and_set_cursor): Use get_window_cursor_type.
16935 Remove unused local variables cursor_off_state.
16936 Redraw cursor if hbar cursor width changes.
16937
16938 * xterm.h (enum text_cursor_kinds): Removed.
16939 (struct output_x) <current_cursor, desired_cursor, cursor_width>
16940 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16941 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16942 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16943 (x_specified_cursor_type): Remove prototype.
16944
16945 2002-08-28 Richard M. Stallman <rms@gnu.org>
16946
16947 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16948 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16949 (Vblink_cursor_alist): New variable.
16950 (syms_of_w32fns): Initialize and defvar it.
16951 (x_specified_cursor_type): Recognize Qbox for filled box.
16952 Exceptions are hollow boxes.
16953 (Qbox, Qhollow): New variables.
16954 (syms_of_w32fns): Initialize and staticpro them.
16955
16956 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16957 New macros.
16958 (struct w32_output): New fields blink_off_cursor,
16959 blink_off_cursor_width.
16960 (FRAME_CURSOR_WIDTH): New macro.
16961
16962 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16963 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16964
16965 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16966 for bar cursor.
16967
16968 * w32term.c (expose_overlaps): New function.
16969 (expose_window): Use it to fix the display of overlapping rows.
16970
16971 2002-08-28 Simon Josefsson <jas@extundo.com>
16972
16973 * xfns.c (Fx_open_connection): Improve help when X connection
16974 fails, xhost is insecure and xauth is better.
16975
16976 2002-08-28 Juanma Barranquero <lektu@terra.es>
16977
16978 * makefile.w32-in: Add missing dependencies on w32term.h and
16979 composite.h.
16980
16981 * emacs.c (USAGE1): Add missing newline.
16982
16983 2002-08-27 Andrew Choi <akochoi@shaw.ca>
16984
16985 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
16986
16987 2002-08-27 Richard M. Stallman <rms@gnu.org>
16988
16989 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16990 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16991 (Vblink_cursor_alist): New variable.
16992 (syms_of_xfns): Initialize and defvar it.
16993 (x_specified_cursor_type): Recognize Qbox for filled box.
16994 Exceptions are hollow boxes.
16995 (Qbox, Qhollow): New variables.
16996 (syms_of_xfns): Initialize and staticpro them.
16997
16998 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16999 New macros.
17000 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
17001
17002 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
17003 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
17004
17005 * emacs.c (main): Handle --script.
17006 (USAGE1): Mention --script.
17007 (standard_args): Define sort order for --script.
17008
17009 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
17010
17011 * xdisp.c (redisplay_updating_p): Variable removed.
17012 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
17013 New variables.
17014 (init_iterator): Don't free realized faces if
17015 inhibit_free_realized_faces is set.
17016 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
17017 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
17018 initialize Qinhibit_free_realized_faces.
17019
17020 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
17021 when iterator is adding glyphs to a glyph matrix.
17022
17023 2002-08-27 Kenichi Handa <handa@etl.go.jp>
17024
17025 * xdisp.c (get_next_display_element): In unibyte case, don't use
17026 octal form for such eight-bit characters that can be converted to
17027 multibyte char.
17028
17029 2002-08-26 Kim F. Storm <storm@cua.dk>
17030
17031 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
17032 foreground and background colors. From Joe Buehler.
17033
17034 2002-08-26 Miles Bader <miles@gnu.org>
17035
17036 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
17037
17038 2002-08-25 Andrew Choi <akochoi@shaw.ca>
17039
17040 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
17041 defined instead of MAC_OSX.
17042
17043 * s/darwin.h (select): Define select to sys_select only if
17044 HAVE_CARBON is defined.
17045 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
17046 (DONT_REOPEN_PTY): #def it.
17047
17048 * macterm.c (XTread_socket): Remove code to call
17049 SendEventToEventTarget for keys with command modifiers when
17050 mac_command_key_is_meta is nil.
17051
17052 2002-08-24 Andreas Schwab <schwab@suse.de>
17053
17054 * eval.c (Fdefvar): Fix last change.
17055
17056 2002-08-23 Richard M. Stallman <rms@gnu.org>
17057
17058 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
17059 Record variables in load history as (defvar . VAR).
17060 (Fdefvar): Don't record in load history if no initial value.
17061 (Qdefvar): New variable.
17062 (syms_of_eval): Init and staticpro it.
17063
17064 * lread.c (syms_of_lread): Doc fix.
17065 (build_load_history): Use Fmember to see if a definition
17066 is already in the Vload_history element.
17067
17068 * process.c (Fstart_process): Remove /: from program name.
17069
17070 * emacs.c (decode_env_path): Don't add /: if file name handler
17071 has a `safe-magic' property.
17072
17073 * callproc.c (Fcall_process): Remove /: from program name.
17074
17075 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
17076
17077 * regex.c (PATFETCH): Remove the translating fetch.
17078 (PATFETCH_RAW): Rename to PATFETCH.
17079 (set_image_of_range): New fun.
17080 (SET_RANGE_TABLE_WORK_AREA): Use it.
17081 (regex_compile): Don't translate the pattern chars so eagerly.
17082 Only do it when inserting an `exactn' bytecode or when handling
17083 a char-range.
17084 (mutually_exclusive_p): Avoid empty statement.
17085
17086 2002-08-22 Kim F. Storm <storm@cua.dk>
17087
17088 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
17089 end up on a partially visible line; this reverts a specific part
17090 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
17091 display error which has been reported several times now.
17092 However it introduces the problem that changes was supposed to fix.
17093 See my comments in the source if you want to debug this further.
17094
17095 2002-08-20 Kenichi Handa <handa@etl.go.jp>
17096
17097 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17098
17099 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
17100
17101 * msdos.c (croak): Add `void' to definition.
17102
17103 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
17104 Don't define them, they are defined in msdos.c.
17105
17106 * mem-limits.h [MSDOS]: Declare etext.
17107
17108 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
17109 `const' since CORRECT_DIR_SEPS modifies its target.
17110
17111 2002-08-19 Kim F. Storm <storm@cua.dk>
17112
17113 * keyboard.c (Fclear_this_command_keys): Add optional arg
17114 KEEP-RECORD to avoid clearing lossage when we just want to clear
17115 the current key sequence (kmacro needs this).
17116
17117 2002-08-19 Kenichi Handa <handa@localhost>
17118
17119 * composite.c (run_composition_function): Call FUNC if it is fboundp.
17120
17121 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
17122 cons, return Qnil.
17123
17124 2002-08-17 Richard M. Stallman <rms@gnu.org>
17125
17126 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
17127
17128 * sysdep.c [!VMS]: Include sys/files.h.
17129
17130 * editfns.c (save_restriction_restore): Defend from unchained marker.
17131
17132 * buffer.c (overlays_at): Handle extending vec uniformly.
17133 (overlays_in): Handle extending vec from length 0 as in overlays_at.
17134
17135 2002-08-15 Andrew Choi <akochoi@shaw.ca>
17136
17137 * mac.c (init_mac_osx_environment): New function.
17138
17139 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
17140
17141 2002-08-14 Kim F. Storm <storm@cua.dk>
17142
17143 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
17144 executing macro before appending to it (when used from Lisp).
17145 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
17146 which is called prior to each iteration of macro (for kmacro.el).
17147 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
17148
17149 * lisp.h (Fexecute_kbd_macro): Update prototype.
17150
17151 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
17152
17153 2002-08-14 Kenichi Handa <handa@etl.go.jp>
17154
17155 * xselect.c (QUTF8_STRING): New variable.
17156 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
17157 (x_atom_to_symbol): Likewise.
17158 (x_get_local_selection): New argument local_request. If it is
17159 nonzero, call handler_fn with the second arg nil.
17160 (x_handle_selection_request): Call x_get_local_selection with
17161 local_request 0.
17162 (lisp_data_to_selection_data): Don't encode the string here.
17163 (Fx_get_selection_internal): Call x_get_local_selection with
17164 local_request 1.
17165 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
17166
17167 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
17168
17169 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
17170
17171 2002-08-13 Richard M. Stallman <rms@gnu.org>
17172
17173 * minibuf.c (Fminibufferp): New function.
17174 (syms_of_minibuf): Defsubr it.
17175 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
17176
17177 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
17178
17179 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
17180
17181 2002-08-12 Richard M. Stallman <rms@gnu.org>
17182
17183 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
17184 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
17185 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
17186 already.
17187
17188 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
17189
17190 2002-08-11 Andrew Choi <akochoi@shaw.ca>
17191
17192 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
17193 (Vmac_pass_command_to_system): New variable.
17194 (Vmac_pass_control_to_system): New variable.
17195 (do_mouse_moved): Check wp with is_emacs_window.
17196 (XTread_socket): Check window_ptr with is_emacs_window.
17197 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
17198 events back to Mac Toolbox for processing, depending on values of
17199 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
17200 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
17201 Vmac_pass_control_to_system.
17202
17203 2002-08-10 Kenichi Handa <handa@etl.go.jp>
17204
17205 * coding.c (unencodable_char_position): New function.
17206 (Funencodable_char_position): New function.
17207 (syms_of_coding): Defsubr Funencodable_char_position.
17208
17209 2002-08-10 Andrew Choi <akochoi@shaw.ca>
17210
17211 * mac.c (sys_select) [MAC_OSX]: New function.
17212
17213 * macterm.c (MakeMeTheFrontProcess): New function.
17214 (mac_initialize): Call MakeMeTheFrontProcess.
17215
17216 * s/darwin.h: Define select to sys_select.
17217
17218 2002-08-09 Richard M. Stallman <rms@gnu.org>
17219
17220 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
17221
17222 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
17223
17224 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
17225 end of the buffer.
17226
17227 2002-08-08 Ken Raeburn <raeburn@gnu.org>
17228
17229 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
17230
17231 * puresize.h (BASE_PURESIZE): Increase to 910000.
17232
17233 2002-08-08 Kenichi Handa <handa@etl.go.jp>
17234
17235 * coding.c (Ffind_operation_coding_system): For write-region, if
17236 VISIT is a filename, make it the target.
17237
17238 2002-08-07 Richard M. Stallman <rms@gnu.org>
17239
17240 * alloc.c (mark_object): Detect long lists for debugging.
17241 (mark_object_loop_halt): New variable.
17242
17243 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
17244
17245 * data.c (Fmake_variable_frame_local): Doc fix.
17246
17247 2002-08-01 David Ponce <david@dponce.com>
17248
17249 * w32menu.c (local_heap, local_alloc, local_free): New macros.
17250 (malloc_widget_value, free_widget_value)
17251 (w32_free_submenu_strings): Use them.
17252
17253 (push_submenu_start, push_submenu_end, push_left_right_boundary)
17254 (push_menu_pane, push_menu_item, single_keymap_panes)
17255 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
17256 (single_submenu, set_frame_menubar)
17257 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
17258
17259 (Fx_popup_menu): Don't show pop up menu until preceding one is
17260 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
17261
17262 * w32menu.c: Changes adapted from xmenu.c
17263 (set_frame_menubar): First parse all submenus,
17264 then make widget_value trees from them.
17265 Don't allocate any widget_value objects
17266 until we are done with the parsing.
17267 (parse_single_submenu): New function.
17268 (digest_single_submenu): New function.
17269 (single_submenu): Function deleted, replaced by those two.
17270
17271 2002-08-04 Andrew Choi <akochoi@shaw.ca>
17272
17273 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
17274 returns a valid window pointer before proceeding for keyDown and
17275 autoKey events.
17276
17277 2002-08-03 Andrew Choi <akochoi@shaw.ca>
17278
17279 * macterm.c (USE_CARBON_EVENTS): New macro.
17280 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
17281 (x_iconify_frame): Call CollapseWindow.
17282 (Vmac_reverse_ctrl_meta): New variable.
17283 (Vmac_wheel_button_is_mouse_2): New variable.
17284 (init_mac_drag_n_drop): New function.
17285 (mac_do_receive_drag): New function.
17286 (mac_handle_service_event): New function.
17287 (init_service_handler): New function.
17288 (mac_to_emacs_modifiers): New function.
17289 (mac_event_to_emacs_modifiers): New function.
17290 (mac_get_mouse_btn): New function.
17291 (mac_convert_event_ref): New function.
17292 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
17293 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
17294 mac_get_mouse_btn.
17295 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
17296
17297 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
17298 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
17299 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
17300 TOOL_BAR_EVENT for MAC_OS as well.
17301 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
17302 as for WINDOWS_NT.
17303 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
17304
17305 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
17306
17307 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
17308
17309 * xdisp.c (forward_to_next_line_start): Fix a condition that
17310 lead to a newline being skipped.
17311
17312 2002-08-02 Andrew Choi <akochoi@shaw.ca>
17313
17314 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
17315
17316 2002-08-01 Richard M. Stallman <rms@gnu.org>
17317
17318 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
17319
17320 2002-07-31 Andrew Choi <akochoi@shaw.ca>
17321
17322 * macfns.c: #undef init_process before #define-ing it.
17323
17324 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
17325 HAVE_CARBON is defined.
17326
17327 2002-07-31 Richard M. Stallman <rms@gnu.org>
17328
17329 * xmenu.c (set_frame_menubar): First parse all submenus,
17330 then make widget_value trees from them.
17331 Don't allocate any widget_value objects
17332 until we are done with the parsing.
17333 (parse_single_submenu): New function.
17334 (digest_single_submenu): New function.
17335 (single_submenu): Function deleted, replaced by those two.
17336
17337 2002-07-30 Juanma Barranquero <lektu@terra.es>
17338
17339 * w32proc.c (syms_of_ntproc): Fix docstring of
17340 `w32-get-true-file-attributes'.
17341
17342 2002-07-28 Richard M. Stallman <rms@gnu.org>
17343
17344 * s/hpux8.h (HPUX8): Define this before including hpux.h.
17345 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
17346
17347 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
17348
17349 * keyboard.c (make_lispy_event):
17350 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
17351 Explicitly clear up_modifier in event->modifiers.
17352
17353 2002-07-27 Richard M. Stallman <rms@gnu.org>
17354
17355 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
17356
17357 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
17358 for bar cursor.
17359
17360 2002-07-26 Kenichi Handa <handa@etl.go.jp>
17361
17362 * coding.c (detect_coding_iso2022): While checking a byte sequence
17363 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
17364 it in the normal loop.
17365
17366 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
17367
17368 * xterm.c (expose_overlaps): New function.
17369 (expose_window): Use it to fix the display of overlapping rows.
17370
17371 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
17372
17373 2002-07-23 Ken Raeburn <raeburn@gnu.org>
17374
17375 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
17376 since it only depends on XUINT.
17377
17378 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
17379 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
17380 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
17381 Macros deleted.
17382
17383 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
17384 its value over other approaches.
17385 * sysdep.c (start_of_data): Don't define the function if a macro
17386 form has been defined.
17387
17388 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
17389
17390 * xdisp.c (redisplay_updating_p): New variable.
17391 (init_iterator): Don't free realized faces when
17392 redisplay_updating_p is set.
17393 (redisplay_internal): Set redisplay_updating_p while updating
17394 the display.
17395
17396 2002-07-23 Richard M. Stallman <rms@gnu.org>
17397
17398 * editfns.c (Fmessage): Treat "" like nil.
17399
17400 2002-07-23 Kenichi Handa <handa@etl.go.jp>
17401
17402 * xdisp.c (face_before_or_after_it_pos):
17403 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17404
17405 2002-07-22 Juanma Barranquero <lektu@terra.es>
17406
17407 * callproc.c (init_callproc) [DOS_NT]:
17408 Initialize Vshared_game_score_directory to nil.
17409 (syms_of_callproc) [DOS_NT]: Likewise.
17410
17411 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
17412
17413 * xdisp.c (display_line): Replace an abort with xassert.
17414
17415 2002-07-21 Richard M. Stallman <rms@gnu.org>
17416
17417 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
17418 and END_UNCHANGED when setting buffer_unchanged_p.
17419 Use current_matrix_up_to_date_p to decide whether to use
17420 try_cursor_movement.
17421
17422 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
17423
17424 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
17425
17426 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
17427 Set to nil if dir does not exist.
17428 (syms_of_callproc): Init unconditionally and simply.
17429
17430 * buffer.c (Fbuffer_list): Doc fix.
17431
17432 2002-07-21 Ken Raeburn <raeburn@gnu.org>
17433
17434 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
17435
17436 * buffer.c (mmap_realloc): When shrinking, make sure number of
17437 pages to unmap is rounded towards zero.
17438
17439 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
17440 (XSETINT): Deleted.
17441
17442 * m/att3b.h (XINT): Don't define.
17443 (VALBITS, VALMASK, XTYPE): Deleted.
17444 (DATA_SEG_BITS): Define.
17445 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
17446 ARRAY_MARK_FLAG): Deleted.
17447 (DATA_SEG_BITS): Define.
17448 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
17449 (DATA_SEG_BITS): Define.
17450
17451 2002-07-20 Richard M. Stallman <rms@gnu.org>
17452
17453 * print.c (print_error_message): New args CONTEXT and CALLER.
17454 Calls changed.
17455
17456 * lisp.h (print_error_message): Declare new args.
17457
17458 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
17459 and CONTEXT to print_error_message, don't print them here.
17460 For a Quit, don't use Vsignaling_function.
17461 Call message_log_maybe_newline.
17462
17463 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
17464
17465 2002-07-20 Kim F. Storm <storm@cua.dk>
17466
17467 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
17468
17469 2002-07-19 Ken Raeburn <raeburn@gnu.org>
17470
17471 * bytecode.c (struct byte_stack): Pointers into byte string now
17472 point to const.
17473 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
17474 const.
17475 * charset.h (BCOPY_SHORT): Source pointer now points to const.
17476 * coding.c (encode_eol, detect_coding, detect_eol):
17477 (decode_coding, encode_coding, detect_coding_system):
17478 Source strings now treated as const.
17479 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
17480 modify Lisp string contents.
17481 * coding.h (decode_coding, encode_coding, detect_coding,
17482 detect_eol): Declarations updated.
17483 * composite.c (compose_chars_in_text): Treat Lisp string contents
17484 as const.
17485 * dispnew.c (safe_bcopy): Source pointer now points to const.
17486 * lisp.h (STRING_COPYIN): New macro.
17487 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
17488 (internal_with_output_to_temp_buffer): Declarations updated.
17489 * print.c (temp_output_buffer_setup):
17490 (internal_with_output_to_temp_buffer): Buffer name argument is now
17491 pointer to const.
17492 * sound.c (struct sound_device): Function pointer field "write"
17493 buffer argument now points to const.
17494 (vox_write): Buffer argument points to const.
17495 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
17496 contents as const.
17497 * sysdep.c (emacs_write): Buffer pointer now const.
17498 * term.c (encode_terminal_code): Buffer pointer now const.
17499 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
17500 (x_face_list_fonts, x_update_menu_appearance):
17501 (hash_string_case_insensitive): Treat Lisp string contents as const.
17502
17503 2002-07-19 Juanma Barranquero <lektu@terra.es>
17504
17505 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
17506
17507 * fileio.c (syms_of_fileio): Likewise.
17508 (Ffile_name_as_directory): Fix argument name in docstring.
17509 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
17510
17511 2002-07-18 Richard M. Stallman <rms@gnu.org>
17512
17513 * data.c (Fdefalias): Doc fix.
17514
17515 2002-07-17 Dave Love <fx@gnu.org>
17516
17517 * intervals.h (text_property_stickiness): Use P_.
17518
17519 * ccl.c: Remove `emacs' conditionals.
17520 (ccl_backtrace_table): Fix size spec.
17521 (ccl_driver): Fix type errors.
17522
17523 2002-07-16 Ken Raeburn <raeburn@gnu.org>
17524
17525 * alloc.c (xstrdup, make_string, make_unibyte_string)
17526 (make_multibyte_string, build_string): String pointer args now
17527 point to const.
17528 * charset.c (find_charset_in_text, c_string_width):
17529 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
17530 * fileio.c (report_file_error):
17531 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
17532 (count_combining_before, count_combining_after, insert_1_both):
17533 (insert, insert_and_inherit, insert_string):
17534 (insert_before_markers, insert_before_markers_and_inherit):
17535 * lread.c (intern, oblookup, hash_string):
17536 * minibuf.c (temp_echo_area_glyphs):
17537 * search.c (fast_c_string_match_ignore_case):
17538 * sysdep.c (emacs_open, set_file_times):
17539 * xfaces.c (xstricmp):
17540 * xdisp.c (store_frame_title, string_char_and_length):
17541 (message_dolog, message2, message2_nolog, set_message): Likewise.
17542 (set_message_1): Cast message string argument to const pointer.
17543 * editfns.c (general_insert_function): Insertion function now
17544 takes pointer to const for input data.
17545 * charset.h (find_charset_in_text, c_string_width):
17546 (parse_str_as_multibyte): Declarations updated.
17547 * dispextern.h (xstricmp): Declaration updated.
17548 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
17549 (count_size_as_multibyte, count_combining_before):
17550 (count_combining_after, insert_1, insert_1_both, message_dolog):
17551 (insert, insert_and_inherit, insert_before_markers)
17552 (insert_before_markers_and_inherit, set_message, message2):
17553 (message2_dolog, build_string, make_string, make_unibyte_string):
17554 (make_multibyte_string, intern, oblookup, report_file_error):
17555 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
17556 (emacs_open, xstrdup): Declarations updated.
17557 * systime.h (set_file_times): Declaration updated.
17558
17559 * charset.c (find_charset_in_text, lisp_string_width): Use const
17560 for pointer to lisp string data.
17561 * charset.h (FETCH_STRING_CHAR_ADVANCE):
17562 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
17563 * coding.c (Ffind_coding_systems_region_interval):
17564 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
17565 (Fmake_directory_internal, Fdelete_directory):
17566 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
17567 * fontset.c (font_family_registry, fs_query_fontset):
17568 (list_fontsets):
17569 * frame.c (Fframe_parameter):
17570 * keyboard.c (cmd_error_internal):
17571 * keymap.c (Fdescribe_buffer_bindings):
17572 * lread.c (complete_filename_p, openp):
17573 * minibuf.c (Fminibuffer_complete_word):
17574 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
17575 (face_before_or_after_it_pos, next_element_from_string):
17576 (get_overlay_arrow_glyph_row, display_mode_element):
17577 (decode_mode_spec_coding):
17578 * xterm.c (same_x_server): Likewise.
17579
17580 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
17581 settings of non-existent fields.
17582
17583 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
17584 copy a lisp value.
17585
17586 * lread.c (Fintern_soft): Use string macros instead of
17587 Lisp_String fields.
17588 * keyboard.c (echo_char, parse_modifiers_uncached):
17589 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
17590 * textprop.c (validate_interval_range, interval_of): Likewise.
17591
17592 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
17593
17594 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17595 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
17596 XSTRING()->size_byte.
17597
17598 * lisp.h (SDATA, SREF): Produce rvalue.
17599 (SSET): New macro.
17600 * alloc.c (make_event_array): Use SSET for storing into a string.
17601 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
17602 a string.
17603 * casefiddle.c (casify_object): Use SSET.
17604 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17605 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
17606 address of string contents.
17607 * data.c (Faref): Use SDATA.
17608 (Faset): Use SDATA, SSET.
17609 * dired.c (directory_files_internal): Use SSET.
17610 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
17611 (Fread_file_name): Use SREF, SSET.
17612 * fns.c (concat): Use SSET.
17613 (concat, Fdelete): Use SDATA.
17614 * insdel.c (insert_from_string_1): Use SDATA.
17615 * keyboard.c (Fevent_convert_list): Use SREF.
17616 * lread.c (Fload): Use SDATA, SSET.
17617 * macfns.c (validate_x_resource_name): Use SSET.
17618 * process.c (status_message): Use SSET.
17619 * search.c (wordify): Use SDATA.
17620 (Freplace_match): Use SREF.
17621 * w32fns.c (validate_x_resource_name): Use SSET.
17622 * xfns.c (validate_x_resource_name): Use SSET.
17623 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
17624
17625 2002-07-16 Richard M. Stallman <rms@gnu.org>
17626
17627 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
17628
17629 * xdisp.c (reconsider_clip_changes):
17630 Don't test prevent_redisplay_optimizations_p.
17631 (redisplay_internal): Test prevent_redisplay_optimizations_p
17632 along with clip_changed in some cases.
17633 (try_window_id): Likewise.
17634 (redisplay_window): New local var buffer_unchanged_p.
17635
17636 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
17637
17638 * process.c (create_process): Test USG_SUBTTY_WORKS.
17639 (process_send_signal): Clean up handling of GID.
17640 Detect errors in ioctls meant to set GID.
17641
17642 * window.c (temp_output_buffer_show):
17643 Don't set prevent_redisplay_optimizations_p.
17644
17645 2002-07-15 Juanma Barranquero <lektu@terra.es>
17646
17647 * eval.c (Fdefvaralias): Add docstring argument.
17648
17649 2002-07-15 Ken Raeburn <raeburn@gnu.org>
17650
17651 * lisp.h (STRING_INTERVALS): Produce rvalue.
17652 (STRING_SET_INTERVALS): New macro.
17653 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
17654 * fns.c (Fstring_as_multibyte): Likewise.
17655 * intervals.c (balance_possible_root_interval, delete_interval)
17656 (create_root_interval, copy_intervals_to_string): Likewise.
17657 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
17658 instead of 0.
17659
17660 2002-07-14 Ken Raeburn <raeburn@gnu.org>
17661
17662 * lisp.h (STRING_SET_CHARS): New macro.
17663 (SCHARS, SBYTES): Produce rvalues.
17664 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
17665 * fns.c (concat): Likewise.
17666 * lread.c (read_vector): Likewise.
17667
17668 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
17669 (STRING_SET_UNIBYTE): New macro.
17670 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
17671 length of -1) changed to use STRING_SET_UNIBYTE.
17672 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17673 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
17674 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
17675 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
17676 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
17677 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
17678 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
17679 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
17680 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17681 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
17682 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
17683 STRING_BYTES or indirection changed to SCHARS, SBYTES,
17684 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
17685 unchanged for now.
17686
17687 2002-07-13 Kim F. Storm <storm@cua.dk>
17688
17689 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
17690
17691 2002-07-12 Richard M. Stallman <rms@gnu.org>
17692
17693 * fileio.c (Fwrite_region): Doc fix.
17694
17695 * print.c (print_error_message): Don't handle Vsignaling_function here.
17696
17697 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
17698 (command_loop_1): Avoid certain actions after memory-full error.
17699
17700 * eval.c (Fsignal): Don't call cancel_hourglass.
17701 For a memory-full error, don't call Vsignal_hook_function
17702 and don't set Vsignaling_function.
17703
17704 * process.c (process_send_signal): Add abort call.
17705
17706 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
17707
17708 * keymap.c (Fkey_binding): Fix typo.
17709
17710 2002-07-11 Richard M. Stallman <rms@gnu.org>
17711
17712 * alloc.c (Vmemory_full): New variable.
17713 (Vmemory_signal_data): Rename from memory_signal_data.
17714 Uses changed.
17715 (syms_of_alloc): Defvar them.
17716 (memory_full, buffer_memory_full): Set Vmemory_full.
17717
17718 * lisp.h (Vmemory_full): Add declaration.
17719 (current_column, indented_beyond_p): Change declaration.
17720
17721 * indent.c (last_known_column): Declare as double, not float.
17722 (current_column, current_column_1, string_display_width)
17723 (position_indentation): Return `double'.
17724 (indented_beyond_p): Arg `column' is `double'. Callers changed.
17725
17726 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
17727 (back_to_previous_visible_line_start)
17728 (reseat_at_next_visible_line_start, next_element_from_buffer):
17729 Use `double', not `float', when calling indented_beyond_p.
17730
17731 * s/hpux11.h (BROKEN_SA_RESTART): Define.
17732
17733 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
17734
17735 2002-07-11 Juanma Barranquero <lektu@terra.es>
17736
17737 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
17738 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
17739 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
17740 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
17741 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
17742 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
17743
17744 2002-07-10 Juanma Barranquero <lektu@terra.es>
17745
17746 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
17747 All callers changed.
17748
17749 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
17750
17751 * data.c (Fdefalias): Add an optional `docstring' argument.
17752 (set_internal, Fsetq_default): Use XCAR/XCDR.
17753
17754 * composite.c (HASH_VALUE, HASH_KEY):
17755 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
17756
17757 2002-07-09 Kenichi Handa <handa@etl.go.jp>
17758
17759 * callproc.c (Fcall_process): Fix previous change.
17760
17761 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
17762
17763 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
17764 Add support for hash-tables.
17765 (Ftry_completion): Return t even if the string appears multiple times.
17766
17767 * fns.c (Fnconc): Use XCDR.
17768 (Fprovide): Use CONSP and XCDR.
17769 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17770 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
17771 (Fmake_hash_table): Accept `:size nil'.
17772 (Fmakehash): Delete: moved to subr.el.
17773 (syms_of_fns): Don't defsubr makehash.
17774
17775 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17776 (HASH_TABLE_SIZE): Move from fns.c.
17777
17778 2002-07-07 Richard M. Stallman <rms@gnu.org>
17779
17780 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
17781 Instead just return 0 when there is something to be done.
17782 (try_scrolling): If make_cursor_line_fully_visible returns 0,
17783 retry scrolling as if cursor were off the bottom.
17784 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
17785 return CURSOR_MOVEMENT_MUST_SCROLL.
17786 (redisplay_window): If make_cursor_line_fully_visible returns 0,
17787 go to try_to_scroll.
17788
17789 * buffer.c (Fbuffer_local_value): Store current value into its binding
17790 so we get the up-to-date value for the binding that is loaded.
17791
17792 * eval.c (Fdefmacro): Doc fix.
17793
17794 2002-07-05 Dave Love <fx@gnu.org>
17795
17796 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
17797 correctly.
17798
17799 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
17800 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
17801 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
17802 CCL_LookupCharConstTbl.
17803 (syms_of_ccl): Defvar translation-hash-table-vector.
17804
17805 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17806
17807 * xdisp.c: Remove unused variable `face'.
17808
17809 2002-07-04 Juanma Barranquero <lektu@terra.es>
17810
17811 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
17812 obsolescence information.
17813
17814 2002-07-03 Andrew Choi <akochoi@shaw.ca>
17815
17816 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
17817 pattern. Search cache first.
17818 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
17819 for Japanese font.
17820 (XLoadQueryFont): Use it.
17821
17822 2002-07-02 Richard M. Stallman <rms@gnu.org>
17823
17824 * keymap.c (Fdefine_key): Doc fix.
17825
17826 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
17827
17828 2002-07-02 Juanma Barranquero <lektu@terra.es>
17829
17830 * keymap.c (syms_of_keymap): Fix typo.
17831
17832 2002-07-01 Andrew Choi <akochoi@shaw.ca>
17833
17834 * s/darwin.h: Define POSIX_SIGNALS.
17835
17836 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
17837 and FSRefMakePath to convert FSSpec returned with Apple Event to
17838 Posix pathname.
17839 (mac_initialize) [TARGET_API_MAC_CARBON]:
17840 Call init_required_apple_events and disable the `Quit' menu item
17841 provided automatically by the Carbon Toolbox.
17842
17843 2002-07-01 Dave Love <fx@gnu.org>
17844
17845 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17846 for K&R.
17847
17848 * xterm.c: Fix prototype for K&R.
17849
17850 * term.c (costs_set): Declare static, non-initialized for pcc.
17851
17852 2002-07-01 Richard M. Stallman <rms@gnu.org>
17853
17854 * keyboard.c (timer_last_idleness_start_time): New variable.
17855 (timer_start_idle): Set that.
17856 (read_key_sequence): Use that to reset timer_idleness_start_time
17857 to previous value.
17858
17859 * window.c (Frecenter): With arg, set optional_new_start.
17860
17861 * xdisp.c (redisplay_internal): Make optional_new_start really work.
17862
17863 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
17864 buffer for completion.
17865
17866 2002-06-29 Ken Raeburn <raeburn@gnu.org>
17867
17868 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
17869
17870 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17871
17872 * keyboard.c (readable_filtered_events): New function that filters
17873 FOCUS_IN_EVENT depending on parameter.
17874 (readable_events): Calls readable_filtered_events, not filtering
17875 FOCUS_IN_EVENT.
17876 (get_filtered_input_pending): New function, filtering parameter passed
17877 to readable_filtered_events.
17878 (get_input_pending): Calls get_filtered_input_pending, not filtering
17879 FOCUS_IN_EVENT.
17880 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
17881 FOCUS_IN_EVENT.
17882
17883 * xterm.h (struct x_output): Add focus_state.
17884
17885 * xterm.c (x_focus_changed): New function.
17886 (x_detect_focus_change): New function.
17887 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
17888 EnterNotify and LeaveNotify to track X focus changes.
17889
17890 2002-06-28 Andreas Schwab <schwab@suse.de>
17891
17892 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
17893
17894 2002-06-27 Kim F. Storm <storm@cua.dk>
17895
17896 * xdisp.c (mode_line_string_list, mode_line_string_face)
17897 (mode_line_string_face_prop): New variables.
17898 (store_mode_line_string): New function.
17899 (display_mode_element): Use store_mode_line_string to
17900 add mode-line string elements to mode_line_string_list
17901 when mode_line_string_list is non-nil.
17902 (Fformat_mode_line): Now returns propertized string by
17903 default. New arg NO-PROPS to ignore properties.
17904 (decode_mode_spec): Only add two dashes for %- in propertized
17905 mode-line string.
17906 (syms_of_xdisp): Init and staticpro mode_line_string_list.
17907
17908 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
17909
17910 * minibuf.c (minibuffer_completion_contents): Add return type.
17911
17912 2002-06-27 Juanma Barranquero <lektu@terra.es>
17913
17914 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
17915
17916 2002-06-26 Juanma Barranquero <lektu@terra.es>
17917
17918 * fileio.c (read_file_name_cleanup): Add missing return.
17919
17920 2002-06-26 Richard M. Stallman <rms@gnu.org>
17921
17922 * window.c (Frecenter): Don't set force_start flag.
17923
17924 * minibuf.c (do_completion, Fminibuffer_complete_word)
17925 (Fminibuffer_completion_help): Complete just the text before point.
17926 (minibuffer_completion_contents): New function.
17927
17928 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
17929
17930 * frame.c (frames_bury_buffer): Function deleted.
17931
17932 2002-06-25 Miles Bader <miles@gnu.org>
17933
17934 * callint.c (Fcall_interactively): When checking to see if doprnt hit
17935 the end of callint_message, allow for a terminating '\0'.
17936
17937 2002-06-24 Juanma Barranquero <lektu@terra.es>
17938
17939 * w32select.c: Include composite.h.
17940
17941 * w16select.c: Likewise.
17942
17943 2002-06-24 Kenichi Handa <handa@etl.go.jp>
17944
17945 * callproc.c (Fcall_process): If code detection is necessary,
17946 call detect_coding directly here.
17947
17948 * coding.c (detect_eol): Preserve coding->cmp_data.
17949
17950 * w16select.c (Fw16_get_clipboard_data):
17951 * w32fns.c (w32_to_x_font):
17952 * w32select.c (Fw32_get_clipboard_data):
17953 * xselect.c (selection_data_to_lisp_data):
17954 * xterm.c (XTread_socket): Disable composition handling.
17955
17956 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
17957
17958 * print.c (temp_output_buffer_setup): Kill all local variables.
17959
17960 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
17961
17962 * lread.c (Fread): Remove redundant and imprecise declaration.
17963
17964 * xfns.c (check_x_display_info): Use check_x_frame.
17965
17966 * .gdbinit (xprintsym): Use the new `xname' field.
17967 (xsymbol): Use it.
17968
17969 2002-06-22 Jason Rumney <jasonr@gnu.org>
17970
17971 * w32fns.c (file_dialog_callback): New function.
17972 (Fx_file_dialog): Allow selecting directories as well as files.
17973
17974 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17975
17976 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
17977 OpenBSD. Add support for mipseb-*-netbsd* machines.
17978
17979 2002-06-17 Andrew Choi <akochoi@shaw.ca>
17980
17981 * macterm.c (mac_scroll_area): Set foreground and backcolor to
17982 black and white before scrolling. Restore frame background and
17983 foreground color after scrolling.
17984 (do_window_update): Call XClearWindow before calling expose_frame.
17985 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
17986 FRAME_FOREGROUND_PIXEL of frame.
17987
17988 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17989 test Mac command key as <ALT> key.
17990
17991 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
17992
17993 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
17994
17995 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
17996 Lookup keys in function-key-map immediately so that key-translation-map
17997 can be applied earlier.
17998 Remove function_key_possible and key_translation_possible, replaced
17999 by checking `keytran_start < t'.
18000
18001 * .gdbinit (xsymbol): Use the new `xname' field.
18002
18003 2002-06-17 Andrew Choi <akochoi@shaw.ca>
18004
18005 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
18006 test Mac command key as <ALT> key.
18007
18008 * mac.c (do_applescript): Call initialize_applescript if necessary
18009 when first called. Dispose of result_desc only when there is no error.
18010 (Fdo_applescript): Use %d format specifier instead of %ld.
18011
18012 2002-06-16 Andrew Choi <akochoi@shaw.ca>
18013
18014 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
18015 of FrontWindow for cases keyDown and autoKey.
18016
18017 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
18018 Vdefault_fontset to Monaco with mac-roman coding.
18019
18020 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
18021 init_process before and after inclusion of Carbon/Carbon.h, resp.
18022
18023 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
18024 cursor_gc.
18025 (add_font_name_table_entry): New function.
18026 (init_font_name_table): Use add_font_name_table_entry; add italic,
18027 bold, and bold-italic entries for truetype fonts.
18028
18029 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
18030 for Mac too.
18031 (try_font_list) [MAC_OS]: If no font matches given registry, try
18032 fonts with any registry matching face_family.
18033 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
18034
18035 * s/darwin.h: If autoconf detects the Ncurses library, define
18036 LIBS_TERMCAP to -lncurses to use it.
18037
18038 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
18039
18040 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
18041
18042 2002-06-15 Richard M. Stallman <rms@gnu.org>
18043
18044 * window.c (Fset_window_configuration): Explicitly preserve
18045 the point value that new_current_buffer had at the start.
18046
18047 2002-06-14 Juanma Barranquero <lektu@terra.es>
18048
18049 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
18050 Fix typos.
18051
18052 2002-06-14 Kim F. Storm <storm@cua.dk>
18053
18054 * insdel.c (insert_1_both, insert_from_string_1)
18055 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
18056 insert happened in the end_unchanged region. Otherwise, the
18057 redisplay may be confused and duplicate the last line in the
18058 buffer [seen after save-buffer when require-final-newline==t].
18059
18060 2002-06-13 Jason Rumney <jasonr@gnu.org>
18061
18062 * w32.c (init_environment): Remove EMACSLOCKDIR.
18063 (stat): Swap _S_IFDIR and _S_IFREG.
18064
18065 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18066
18067 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
18068 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
18069 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
18070 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
18071 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
18072 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
18073 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
18074 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
18075 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
18076 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
18077 SELECTION_REQUEST_EVENT, selection_clear_event to
18078 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
18079 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
18080 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
18081 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
18082 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
18083 no_event to NO_EVENT.
18084
18085 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18086
18087 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
18088
18089 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
18090
18091 * intervals.c (textget): Don't forget to `return'.
18092 (lookup_char_property): Use XCAR/XCDR.
18093
18094 2002-06-12 Juanma Barranquero <lektu@terra.es>
18095
18096 * xdisp.c (Fformat_mode_line): Fix typo.
18097
18098 2002-06-12 Kim F. Storm <storm@cua.dk>
18099
18100 * xdisp.c (Fformat_mode_line): New function.
18101 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
18102 (store_frame_title_char, store_frame_title): Use unconditionally.
18103 (init_xdisp): Defsubr Fformat_mode_line.
18104 Initialize frame_title_buf etc. unconditionally.
18105
18106 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
18107
18108 * keyboard.c (read_key_sequence):
18109 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
18110 things through those maps after downcasing events.
18111 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
18112 applies after function-key-map.
18113 Make sure that keytran can be done in the middle in the sequence.
18114 Be careful not to throw away events past the one we downcase.
18115
18116 * lread.c (read_integer): Remove unused var `tem'.
18117 (read1): Fix int/Lisp_Object mixup.
18118
18119 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
18120
18121 2002-06-11 Richard M. Stallman <rms@gnu.org>
18122
18123 * keyboard.c (readable_events): Ignore any number of
18124 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
18125
18126 2002-06-09 Miles Bader <miles@gnu.org>
18127
18128 * xfaces.c (Ftty_supports_face_attributes_p): New function.
18129 (parse_rgb_list, tty_lookup_color): New functions.
18130 (tty_defined_color): Use `tty_lookup_color' to do all the work.
18131 (color_distance, Fcolor_distance): New functions.
18132 (TTY_SAME_COLOR_THRESHOLD): New macro.
18133 (Qtty_color_standard_values): New variable.
18134 (syms_of_xfaces): Initialize new vars & functions.
18135
18136 2002-06-08 Colin Walters <walters@verbum.org>
18137
18138 * textprop.c (Vchar_property_alias_alist): New variable.
18139 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
18140
18141 * intervals.c (lookup_char_property): New function for looking up
18142 overlay and text properties, created from textget.
18143 (textget): Use it.
18144
18145 * intervals.h (lookup_char_property): Declare.
18146 (Vchar_property_alias_alist): Declare.
18147
18148 * buffer.c (Foverlay_get): Use lookup_char_property.
18149
18150 2002-06-07 Sam Steingold <sds@gnu.org>
18151
18152 * xselect.c (lisp_data_to_selection_data): Fix last change:
18153 *data_ret is not a Lisp string, while unibyte_string is.
18154
18155 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
18156
18157 * xselect.c (lisp_data_to_selection_data): Fix last change:
18158 set size_ret.
18159
18160 2002-06-07 Andreas Schwab <schwab@suse.de>
18161
18162 * m/amdx86-64.h: New file.
18163
18164 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
18165
18166 * fns.c (Fstring_make_unibyte): Doc fix.
18167
18168 * xselect.c (lisp_data_to_selection_data): If the requested type
18169 is STRING, call string_make_unibyte to encode the selected text
18170 as a string.
18171
18172 * window.c (Fset_window_hscroll): Doc fix.
18173
18174 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18175
18176 * fileio.c (choose_write_coding_system):
18177 Call select-safe-coding-system properly.
18178
18179 2002-06-03 Richard M. Stallman <rms@gnu.org>
18180
18181 * xdisp.c (message_with_string): Error if STRING is not a string.
18182
18183 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
18184
18185 * fileio.c (choose_write_coding_system): Pass FILE arg to
18186 Vselect_safe_coding_system_function.
18187
18188 2002-06-03 Ken Raeburn <raeburn@gnu.org>
18189
18190 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
18191
18192 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
18193
18194 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
18195 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
18196 * keymap.c (describe_command): Likewise.
18197 * minibuf.c (read_minibuf): Likewise.
18198
18199 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
18200 Cast `current_column' return value to int.
18201 (back_to_previous_visible_line_start)
18202 (reseat_at_next_visible_line_start, next_element_from_buffer):
18203 Cast `indented_beyond_p' 3rd arg to float.
18204
18205 * indent.c (last_known_column): Now a float.
18206 (current_column_1, position_indentation, current_column)
18207 (string_display_width): Return float.
18208 (Fcurrent_column): Cast `current_column' return value to int.
18209 (Fcurrent_indentation): Cast `position_indentation' retval to int.
18210 (indented_beyond_p): Third arg now a float.
18211 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
18212
18213 * lisp.h (current_column): Now returns float.
18214 (indented_beyond_p): 3rd arg now a float.
18215
18216 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
18217
18218 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
18219 is Qcompound_text_with_extensions.
18220
18221 * xselect.c (lisp_data_to_selection_data): Always set selection
18222 type as string if x_encode_text returns streingp non-NULL.
18223
18224 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
18225
18226 2002-05-30 Richard M. Stallman <rms@gnu.org>
18227
18228 * window.c (Fset_window_configuration): Correct the handling
18229 of point in current buffer, to work with multiple windows.
18230
18231 2002-05-29 Colin Walters <walters@verbum.org>
18232
18233 * lread.c (Fread_from_string): Don't depend on order of evaluation
18234 for C function parameters.
18235
18236 2002-05-28 Richard M. Stallman <rms@gnu.org>
18237
18238 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
18239 way for blinked-off state and for a nonselected window.
18240
18241 * window.c (window_scroll_pixel_based): Don't call Fbolp;
18242 instead, see if the new start pos is at beginning of line.
18243
18244 * fileio.c (Fwrite_region): If START is a string, don't
18245 make any annotations.
18246
18247 * eval.c (syms_of_eval): Doc fix.
18248
18249 2002-05-28 Colin Walters <walters@debian.org>
18250
18251 * emacs.c (USAGE1): Add --no-splash.
18252 (standard_args): Ditto.
18253
18254 2002-05-28 Colin Walters <walters@gnu.org>
18255
18256 * lread.c (readchar_count): New variable.
18257 (readchar): Increment it.
18258 (unreadchar): Decrement it.
18259 (read_multibyte): Decrement it.
18260 (Vread_with_symbol_positions): New variable.
18261 (Vread_symbol_positions_list): New variable.
18262 (read_internal_start): New function, created from Fread and
18263 Fread_from_string. Handle Vread_symbol_positions_list and
18264 Vread_with_symbol_positions.
18265 (readevalloop, Fread, Fread_from_string): Use it.
18266 (read1): Use readchar_count to add symbol positions to
18267 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
18268 (syms_of_lread): DEFVAR_LISP and initialize them.
18269
18270 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
18271 (substitute_object_recurse, substitute_object_in_subtree)
18272 (substitute_in_interval): Prototype.
18273 (read_multibyte): Return c if it's less than zero.
18274
18275 2002-05-28 Kim F. Storm <storm@cua.dk>
18276
18277 * fileio.c (Fread_file_name_internal): Added brute-force
18278 speed up for using predicate file-directory-p.
18279
18280 2002-05-28 Kim F. Storm <storm@cua.dk>
18281
18282 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
18283 New variables.
18284 (syms_of_fileio): DEFVAR_LISP them.
18285 (read_file_name_cleanup): New unwind function.
18286 (Fread_file_name_internal): Only return completions satifying
18287 Vread_file_name_predicate. Temporarily unwind protect and rebind
18288 default-directory while checking completions against the predicate.
18289 (Fread_file_name): Added PREDICATE argument. Specbind it to
18290 Vread_file_name_predicate during completion.
18291 Call Vread_file_name_function to read the file name if non-nil.
18292
18293 * lisp.h (Fread_file_name): Now has 6 args.
18294
18295 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
18296 predicate for Fread_file_name when reading directory name.
18297 Supply Qnil for predicate in other calls to Fread_file_name.
18298
18299 2002-05-26 Miles Bader <miles@gnu.org>
18300
18301 * term.c (tty_capable_p): New function.
18302 * dispextern.h (tty_capable_p): New function declaration.
18303 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
18304 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
18305
18306 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
18307
18308 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
18309 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
18310 (Vwrite_region_annotate_functions): Docstring fix.
18311
18312 2002-05-23 Kim F. Storm <storm@cua.dk>
18313
18314 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
18315 phys_cursor's hpos is overwritten. This is still not completely
18316 correct, as it doesn't really make sense to use hpos at all to
18317 get the cursor glyph (as that is relative to the width of the
18318 characters on the line, which may have changed during the update).
18319
18320 2002-05-22 Jason Rumney <jasonr@gnu.org>
18321
18322 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
18323 Lisp_Object.
18324 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
18325 Use modified enumfont_t struct.
18326
18327 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
18328
18329 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
18330 Handle the `hbar' cursor type.
18331 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
18332
18333 * w32fns.c (Qhbar): New variable.
18334 (x_specified_cursor_type): Use it.
18335
18336 2002-05-21 Ken Raeburn <raeburn@gnu.org>
18337
18338 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
18339 now, when the address is needed.
18340
18341 2002-05-21 Colin Walters <walters@gnu.org>
18342
18343 * Makefile.in (shortlisp): Add font-core.el.
18344
18345 2002-05-20 Richard M. Stallman <rms@gnu.org>
18346
18347 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
18348
18349 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
18350 equivalent key bindings here.
18351
18352 2002-05-20 Ken Raeburn <raeburn@gnu.org>
18353
18354 Change symbol structure to contain a lisp object for the symbol
18355 name:
18356 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
18357 object field named "xname".
18358 (SYMBOL_NAME): New macro.
18359 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
18360 name field.
18361 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
18362 (mark_object, gc_sweep): Use symbol xname field and XSTRING
18363 instead of name field.
18364 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
18365 SYMBOL_NAME instead of XSYMBOL and name field.
18366 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
18367 instead of XSYMBOL and name field.
18368 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
18369 and SYMBOL_NAME instead of XSYMBOL and name field.
18370 * coding.c (Fread_coding_system, code_convert_region1)
18371 (code_convert_string1, code_convert_string_norecord)
18372 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
18373 XSYMBOL and name field.
18374 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
18375 (Fmake_variable_buffer_local, Fmake_local_variable)
18376 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
18377 of XSYMBOL and name field.
18378 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
18379 XSYMBOL and name field.
18380 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
18381 instead of XSYMBOL and name field.
18382 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
18383 XSYMBOL and name field.
18384 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
18385 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18386 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
18387 instead of XSYMBOL and name field.
18388 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
18389 (parse_modifiers, apply_modifiers, Fevent_convert_list)
18390 (parse_solitary_modifier, Fexecute_extended_command):
18391 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18392 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
18393 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
18394 of XSYMBOL and name field.
18395 (describe_command, describe_translation): Use SYMBOL_NAME and
18396 assignment instead of XSYMBOL and name field and XSETSTRING.
18397 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
18398 instead of XSYMBOL and name field.
18399 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
18400 name field and XSETSTRING.
18401 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
18402 of XSYMBOL and name field.
18403 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
18404 assignment instead of XSYMBOL and name field and XSETSTRING.
18405 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
18406 XSTRING instead of XSYMBOL and name field.
18407 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
18408 and XSTRING instead of XSYMBOL and name field.
18409 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
18410 and XSTRING instead of XSYMBOL and name field.
18411 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
18412 XSTRING instead of XSYMBOL and name field.
18413 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
18414 of XSYMBOL and name field.
18415 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
18416 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18417
18418 2002-05-19 Ken Raeburn <raeburn@gnu.org>
18419
18420 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
18421 and XCDR real rvalues in most configurations.
18422
18423 * buffer.c (fix_overlays_in_range, fix_overlays_before):
18424 Don't take the address of the cdr part of a cons cell; instead, track
18425 the parent cell and call XSETCDR, or set the variable for the head
18426 of the list if we haven't started down the list yet.
18427
18428 2002-05-19 Richard M. Stallman <rms@gnu.org>
18429
18430 * doc.c (reread_doc_file): Don't ask for confirmation.
18431
18432 2002-05-18 Jason Rumney <jasonr@gnu.org>
18433
18434 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
18435 (xbm_load_image): Use it.
18436 (xbm_load): Ditto.
18437 (xbm_read_bitmap_data): Reverted to xfns.c version.
18438 From David Ponce <david@dponce.com>.
18439
18440 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
18441
18442 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
18443 2.02 and later.
18444
18445 2002-05-16 Juanma Barranquero <lektu@terra.es>
18446
18447 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
18448
18449 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
18450
18451 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
18452 meaningful test.
18453 (read_char_minibuf_menu_prompt): Fix typo.
18454
18455 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
18456
18457 * eval.c (Fcommandp): Doc fix.
18458
18459 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
18460
18461 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
18462 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
18463 (Fset_keymap_parent): Gcpro a bit more.
18464 (access_keymap): Gcpro around meta_map call and around the main loop.
18465 (get_keyelt): Gcpro when following indirect references.
18466 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
18467 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
18468 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
18469 Remove useless ad-hoc remap code.
18470
18471 2002-05-13 Richard M. Stallman <rms@gnu.org>
18472
18473 * search.c (search_buffer): Give up boyer moore search if inverse
18474 translation change charset_base.
18475
18476 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
18477
18478 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
18479 characters is carried over from the previous block of text, adjust
18480 coding->produced to account for the extra character.
18481
18482 2002-05-11 Andreas Schwab <schwab@suse.de>
18483
18484 * coding.c (intersection): Keep the elements of the returned list
18485 in the same order as in the first list.
18486
18487 2002-05-11 Kim F. Storm <storm@cua.dk>
18488
18489 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
18490 only update cmm_size if realloc actually succeeds.
18491 Testing with initial size of 2 elements revealed that using
18492 realloc on GNU/Linux would cause a random trap in xmalloc
18493 later on, so I rewrote the code to use malloc/bcopy/free instead
18494 of realloc.
18495
18496 2002-05-10 Jason Rumney <jasonr@gnu.org>
18497
18498 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
18499
18500 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
18501
18502 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
18503 parens, to ensure correct evaluation order.
18504
18505 2002-05-10 Kim F. Storm <storm@cua.dk>
18506
18507 * keymap.c (Vemulation_mode_map_alists): New variable.
18508 (syms_of_keymap): DEFVAR_LISP it.
18509 (current_minor_maps): Process keymap alists in that list before
18510 minor-mode-overriding-map-alist and minor-mode-map-alist.
18511
18512 2002-05-09 Richard M. Stallman <rms@gnu.org>
18513
18514 * search.c (Freplace_match): Doc fix.
18515
18516 2002-05-09 Kim F. Storm <storm@cua.dk>
18517
18518 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18519 Enlarge cursor rectangle drawn around image with non-zero relief.
18520
18521 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
18522 Enlarge cursor rectangle drawn around image with non-zero relief.
18523
18524 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18525 Enlarge cursor rectangle drawn around image with non-zero relief.
18526
18527 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
18528
18529 * xselect.c (lisp_data_to_selection_data): Don't set selection
18530 type if comes from the Lisp object's car. If the selection
18531 contains a pure ASCII text, always return QSTRING as its type.
18532
18533 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18534
18535 * mac.c (mac-cut-function): Doc fix.
18536
18537 2002-05-05 Richard M. Stallman <rms@gnu.org>
18538
18539 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
18540
18541 2002-05-04 Jason Rumney <jasonr@gnu.org>
18542
18543 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
18544 for event-click-count.
18545
18546 * process.c (init_process): Only add server subfeature if we can
18547 use non-blocking I/O.
18548
18549 2002-05-04 Andrew Choi <akochoi@shaw.ca>
18550
18551 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
18552 repeatedly.
18553
18554 2002-05-03 Jason Rumney <jasonr@gnu.org>
18555
18556 * process.c (Fmake_network_process): Only support server sockets
18557 when we can make them non-blocking.
18558
18559 * s/ms-w32.h (HAVE_SELECT): Define.
18560
18561 * w32.h (FILE_NDELAY): New flag.
18562
18563 * w32.c (sys_getpeername, fcntl): New functions.
18564 (_sys_read_ahead): Temporarily block on non-blocking sockets.
18565
18566 * w32proc.c: Include sys/file.h.
18567
18568 2002-05-03 Colin Walters <walters@verbum.org>
18569
18570 * callproc.c (Vgame_score_directory): Renamed to
18571 Vshared_game_score_directory.
18572
18573 2002-04-30 Richard M. Stallman <rms@gnu.org>
18574
18575 * s/gnu.h [emacs]: Include stdio.h.
18576 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
18577
18578 * eval.c (do_autoload): Error if called while preparing to dump.
18579
18580 * fns.c (Frequire): Error if need to load while preparing to dump.
18581
18582 2002-04-28 Colin Walters <walters@verbum.org>
18583
18584 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
18585 Default to "~/.emacs.d/games".
18586
18587 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
18588
18589 * lread.c (openp): Change arg exec_only to predicate.
18590 (build_load_history): Use XCAR/XCDR.
18591 (Flocate_file_internal): New fun.
18592 (syms_of_lread): Defsubr it.
18593 (Fload): Update call to openp.
18594
18595 * lisp.h (openp): Update prototype.
18596
18597 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
18598 * w32proc.c (sys_spawnve):
18599 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
18600 * w32.c (check_windows_init_file):
18601 * sound.c (Fplay_sound_internal):
18602 * process.c (Fstart_process):
18603 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
18604 * mac.c (run_mac_command):
18605 * emacs.c (init_cmdargs):
18606 * callproc.c (Fcall_process): Update call to openp.
18607
18608 * textprop.c (remove_properties): Don't use XCAR without CONSP.
18609
18610 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
18611
18612 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18613
18614 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
18615 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
18616
18617 2002-04-28 Richard M. Stallman <rms@gnu.org>
18618
18619 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
18620
18621 * eval.c (Fcommandp): New arg for_call_interactively.
18622 * lisp.h (Fcommandp): Declare new arg.
18623
18624 2002-04-28 Jason Rumney <jasonr@gnu.org>
18625
18626 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
18627
18628 * w32.c (stat, fstat): Use file index information to generate
18629 inodes for directories where available.
18630
18631 2002-04-26 Andrew Choi <akochoi@shaw.ca>
18632
18633 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
18634 [HAVE_CARBON]: Include Mac object files.
18635
18636 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
18637 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
18638 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
18639 MAC_OSX, and MAC_OS instead of macintosh.
18640
18641 * editfns.c [MAC_OS8]: Include stdio.h.
18642
18643 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
18644
18645 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
18646 Apple Monaco.
18647
18648 * process.c (QCfamily, QCfilte): Declare extern.
18649 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
18650 calling select.
18651
18652 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
18653
18654 * tparam.c [MAC_OSX]: Don't define BC and UP.
18655
18656 * config.in [HAVE_CARBON]: Add.
18657
18658 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
18659 Move here from mac/src and mac/inc.
18660
18661 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
18662
18663 2002-04-26 Gerd Moellmann <gerd@gnu.org>
18664
18665 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
18666 Compute phys_cursor_width from the x position returned
18667 by x_draw_glyhs, which is cheaper.
18668 (x_display_and_set_cursor): Compute the buffer-local value
18669 of `cursor-in-non-selected-windows' only when needed.
18670
18671 2002-04-25 Gerd Moellmann <gerd@gnu.org>
18672
18673 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
18674 cursor on a stretch glyph has a width that depends on
18675 x_stretch_cursor_p.
18676
18677 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18678
18679 * abbrev.c (abbrev-start-location): Doc fix.
18680
18681 * indent.c (Fvertical_motion): Fix last change.
18682
18683 2002-04-25 Gerd Moellmann <gerd@gnu.org>
18684
18685 * indent.c (Fvertical_motion): Move to the start of the line
18686 containing PT before moving up or down.
18687
18688 2002-04-24 Gerd Moellmann <gerd@gnu.org>
18689
18690 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
18691 case of writing a whole row, more or less analogous to the case of
18692 writing only parts of a row.
18693
18694 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
18695 0 for NO_CURSOR.
18696
18697 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
18698
18699 2002-04-23 Colin Walters <walters@verbum.org>
18700
18701 * buffer.c (syms_of_buffer): Doc fix.
18702
18703 2002-04-23 Gerd Moellmann <gerd@gnu.org>
18704
18705 * xterm.c (notice_overwritten_cursor): Handle the special case
18706 of the cursor being in the first blank non-text line at the
18707 end of a window.
18708
18709 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
18710 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
18711 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
18712 bar cursors only, to make phys_cursor_width contain what its name
18713 suggests.
18714 (notice_overwritten_cursor): Consider the cursor image erased if
18715 the output area intersects the cursor image in y-direction.
18716
18717 2002-04-23 Simon Marshall <simon@gnu.org>
18718
18719 * xfns.c (x_set_mouse_color): Change default for cross_cursor
18720 to XC_hand2.
18721
18722 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18723
18724 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
18725
18726 2002-04-22 Kim F. Storm <storm@cua.dk>
18727
18728 * textprop.c (remove_properties): Fixed trap for malformed plist.
18729
18730 2002-04-22 Richard M. Stallman <rms@gnu.org>
18731
18732 * cmds.c (Fend_of_line): Handle intangible text in mid line.
18733
18734 * window.c (make_window): Initialize height_fixed_p,
18735 last_cursor_off_p, and p->cursor_off_p slots.
18736
18737 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18738
18739 * fns.c (use-dialog-box): Doc fix.
18740
18741 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18742
18743 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
18744 variables `row', `i' and `area'.
18745 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
18746 toolkit library.
18747
18748 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
18749
18750 * xfaces.c (clear_font_table): Don't free the default font of
18751 a frame even if it's on another display.
18752 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
18753 that could be Qt.
18754
18755 2002-04-19 Juanma Barranquero <lektu@terra.es>
18756
18757 * indent.c (Fmove_to_column): Remove unused local variable
18758 `next_boundary_byte'.
18759 (current_column_1): Likewise.
18760
18761 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
18762
18763 * msdos.c (Qhbar): New variable.
18764 (syms_of_msdos): Intern and staticpro it.
18765 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
18766 cursor type.
18767
18768 2002-04-19 Dave Lambert <dlambert@acm.org>
18769
18770 Theses change implement an underscore-like (`hbar') cursor.
18771
18772 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
18773
18774 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
18775 Handle the `hbar' cursor type.
18776 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
18777
18778 * xfns.c (Qhbar): New variable.
18779 (syms_of_xfns): Intern and staticpro it.
18780 (x_specified_cursor_type): Handle `hbar' cursor.
18781
18782 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
18783 not defined.
18784
18785 2002-04-18 Richard M. Stallman <rms@gnu.org>
18786
18787 * textprop.c (remove_properties): New arg LIST allows scanning
18788 either a list or a plist.
18789 (interval_has_some_properties_list): New function, like
18790 interval_has_some_properties using list instead of plist.
18791 All callers changed.
18792 (Fremove_list_of_text_properties): New function.
18793 (syms_of_textprop): Defsubr it.
18794
18795 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
18796
18797 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
18798
18799 2002-04-17 Juanma Barranquero <lektu@terra.es>
18800
18801 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
18802
18803 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
18804
18805 * window.c (coordinates_in_window): Don't report on margin area
18806 if its width is zero.
18807
18808 2002-04-16 Jason Rumney <jasonr@gnu.org>
18809
18810 * w32fns.c (Fx_file_dialog): Decode file name before using.
18811
18812 * w32term.c (construct_drag_n_drop): Likewise.
18813
18814 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
18815
18816 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
18817 store load-history in pure space.
18818
18819 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
18820
18821 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
18822
18823 * xterm.c (Qlatin_1, Qutf_8): New vars.
18824 (syms_of_xterm): Initialize them.
18825 (XTread_socket): Eliminate incorrect optimization that tried to avoid
18826 decoding the output of X*LookupString.
18827 Always use latin-1 to decode the output of XLookupString.
18828 Try Xutf8LookupString if XmbLookupString failed.
18829
18830 * region-cache.c (new_region_cache): Use BEG.
18831
18832 2002-04-16 Gerd Moellmann <gerd@gnu.org>
18833
18834 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
18835 configuration files.
18836 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
18837 returns 0.
18838
18839 2002-04-15 Andreas Schwab <schwab@suse.de>
18840
18841 * config.in: Regenerated using autoheader.
18842
18843 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
18844 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
18845 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
18846 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
18847 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
18848 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
18849 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
18850 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
18851 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
18852 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
18853 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
18854 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
18855 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
18856 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
18857 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
18858 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
18859 STACK_DIRECTION, now set by autoconf.
18860
18861 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18862
18863 * dispnew.c (marginal_area_string): Sort arguments.
18864
18865 * dispextern.h (marginal_area_string): Add prototype.
18866
18867 2002-04-13 Richard M. Stallman <rms@gnu.org>
18868
18869 * fileio.c (Finsert_file_contents):
18870 Don't call temp_output_buffer_setup--do just part, by hand.
18871
18872 * coding.c (run_pre_post_conversion_on_str):
18873 Don't call temp_output_buffer_setup--do just part, by hand.
18874
18875 * keyboard.c (command_loop_1): Don't call start_hourglass
18876 or cancel_hourglass when executing a macro.
18877
18878 * marker.c (count_markers): New function.
18879
18880 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
18881 grow without limit. Move recently used elements to the front.
18882
18883 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
18884
18885 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
18886
18887 2002-04-12 Gerd Moellmann <gerd@gnu.org>
18888
18889 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
18890 rows marginal areas.
18891 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
18892 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
18893
18894 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
18895
18896 2002-04-12 Dave Love <fx@gnu.org>
18897
18898 * dispnew.c (marginal_area_string): New.
18899
18900 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
18901 (Qleft_margin, Qright_margin): Declare.
18902 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
18903
18904 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
18905 note_mode_line_highlight and extended.
18906
18907 * keyboard.c (Qleft_margin, Qright_margin): Declare.
18908 (make_lispy_event): Deal with mouse events in margins.
18909
18910 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
18911
18912 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
18913
18914 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
18915 than deactivating the mark if tmm is set to `lambda'.
18916 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
18917 Use a single event for HELP_EVENT.
18918 (Fexecute_extended_command): Save last_point_position.
18919
18920 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18921
18922 * lisp.h (Fpropertize): Add prototype.
18923
18924 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
18925
18926 2002-04-10 Colin Walters <walters@verbum.org>
18927
18928 * config.in: Add HAVE_SHARED_GAME_DIR.
18929
18930 * callproc.c (Vgame_score_directory): New variable.
18931 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
18932
18933 2002-04-10 Richard M. Stallman <rms@gnu.org>
18934
18935 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
18936
18937 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
18938
18939 * minibuf.c (read_minibuf): Use empty_string.
18940 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
18941 Short-circuit the search as soon as it "failed".
18942 (Fall_completions): Allow lambda forms and lists of strings for alist.
18943 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
18944 when require_match is nil.
18945 (Ftest_completion): Rename from `test_completion' and export to elisp.
18946 Call the predicate also when alist is a list.
18947 Obey Vcompletion_regexp_list.
18948 (do_completion, Fminibuffer_complete_and_exit): Use it.
18949 (Fassoc_string): Rename from `assoc_for_completion'.
18950 Allow list of strings as well and export to elisp.
18951
18952 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
18953
18954 * puresize.h (BASE_PURESIZE): Increase to 900KB.
18955
18956 2002-04-08 Juanma Barranquero <lektu@terra.es>
18957
18958 * w32.c (sys_accept): Don't hide variable `s'.
18959
18960 2002-04-05 Gerd Moellmann <gerd@gnu.org>
18961
18962 * callint.c (Fcall_interactively): Use INTEGERP instead of
18963 NUMBERP for checking Vhistory_length.
18964
18965 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18966
18967 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
18968 Doc fix to reflect it.
18969
18970 2002-04-04 Richard M. Stallman <rms@gnu.org>
18971
18972 * xdisp.c (display_mode_element): New arg RISKY.
18973 Disregard text props found or specified within a variable
18974 that isn't marked risky-local-variable.
18975 (Qrisky_local_variable): New variable.
18976 (syms_of_xdisp): Init and staticpro it.
18977
18978 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
18979
18980 * undo.c (record_point): New fun.
18981 (record_delete, record_insert): Use it.
18982
18983 2002-04-03 Juanma Barranquero <lektu@terra.es>
18984
18985 * doc.c (Fdocumentation): Add missing parentheses.
18986 (Fdocumentation_property): Likewise.
18987
18988 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
18989
18990 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
18991 data is 0, just return nil.
18992
18993 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
18994
18995 * msdos.c (syms_of_msdos): Fix last change with
18996 mouse_autoselect_window.
18997
18998 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18999
19000 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
19001 mouse_autoselect_window.
19002
19003 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
19004
19005 * keyboard.c (make_lispy_event): Handle unknown keysyms together
19006 with system-specific keysyms. Use it also for unknown function keys.
19007
19008 * doc.c (reread_doc_file): Return whether reload was attempted.
19009 (Fdocumentation, Fdocumentation_property): Don't try to reload
19010 if the doc is 0 and only ask once.
19011
19012 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
19013
19014 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
19015
19016 * keyboard.c (read_char): If the event was Qselect_window,
19017 restore timer_idleness_start_time to its previous value.
19018
19019 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
19020
19021 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
19022
19023 * region-cache.c (new_region_cache): Use BEG.
19024
19025 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
19026 Use BEG and BEG_BYTE.
19027
19028 * doc.c (get_doc_string): Return nil if the location is wrong.
19029 (reread_doc_file): New fun.
19030 (Fdocumentation, Fdocumentation_property):
19031 Call it if get_doc_string fails.
19032 (Fsnarf_documentation): Make it work for a dumped Emacs.
19033
19034 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
19035 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
19036
19037 * charset.c (Fstring): Allow 0 arguments.
19038
19039 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
19040
19041 * process.c (DATAGRAM_CONN_P, list_processes_1)
19042 (Fprocess_datagram_address, Fset_process_datagram_address)
19043 (Fset_network_process_options, server_accept_connection):
19044 Fix some int/Lisp_Object confusions (thank you union types).
19045
19046 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19047
19048 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
19049
19050 * w32term.c: Likewise.
19051 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
19052
19053 * keyboard.c (Qselect_window): New symbol.
19054 (head_table): Use it.
19055 (keys_of_keyboard): Bound select-window event to handle-select-window.
19056 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
19057
19058 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
19059 (last_window): New variable.
19060 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
19061 (note_mouse_movement): Remove reimplemented code in #if 0.
19062 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
19063 Emacs windows.
19064
19065 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
19066
19067 2002-03-31 Gerd Moellmann <gerd@gnu.org>
19068
19069 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
19070 Callers changed.
19071
19072 2002-03-30 Richard M. Stallman <rms@gnu.org>
19073
19074 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
19075 loop whenever it stops making progress.
19076
19077 * widget.c (set_frame_size): Don't call change_frame_size.
19078
19079 2002-03-30 Gerd Moellmann <gerd@gnu.org>
19080
19081 * dispnew.c (direct_output_for_insert):
19082 Call mark_window_display_accurate.
19083
19084 2002-03-29 Jason Rumney <jasonr@gnu.org>
19085
19086 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
19087
19088 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
19089
19090 * Makefile.in (lread.o): Depend on coding.h.
19091
19092 * lread.c (openp, Fload): Encode the file name before passing it
19093 to `stat', `access', and `emacs_open'.
19094 (openp): GCPRO the encoded file name. Don't recompute Lisp
19095 strings unnecessarily.
19096
19097 2002-03-29 Kim F. Storm <storm@cua.dk>
19098
19099 * fns.c (Flax_plist_put): Doc fix.
19100
19101 2002-03-28 Miles Bader <miles@gnu.org>
19102
19103 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
19104
19105 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19106
19107 * process.c (set-network-process-options): Add usage.
19108 (make-network-process): Doc fix.
19109
19110 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
19111
19112 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
19113
19114 2002-03-26 Richard M. Stallman <rms@gnu.org>
19115
19116 * fns.c (Fsubstring_no_properties): New function.
19117 (Flax_plist_get, Flax_plist_put): New functions.
19118 (syms_of_fns): defsubr them.
19119
19120 * xdisp.c (update_menu_bar): Test only update_mode_lines;
19121 don't test or alter w->update_mode_line.
19122
19123 * window.c (Fdisplay_buffer): Doc fix.
19124
19125 2002-03-24 Richard M. Stallman <rms@gnu.org>
19126
19127 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
19128
19129 2002-03-24 Gerd Moellmann <gerd@gnu.org>
19130
19131 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
19132 (Fdefmacro): Handle `(declare ...)'.
19133 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
19134 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
19135
19136 2002-03-24 Jason Rumney <jasonr@gnu.org>
19137
19138 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
19139 (xbm_file_p): Add prototypes.
19140 (xbm_format, xbm_image_p): Sync with xfns.c.
19141 (reflect_byte): New function.
19142 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
19143 (xbm_load_image): Create bitmaps with a depth of 1.
19144 (init_xfns): Enable XBM images.
19145
19146 2002-03-23 Jason Rumney <jasonr@gnu.org>
19147
19148 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
19149 correctly. Do not pass up_modifier to keyboard buffer.
19150
19151 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
19152
19153 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
19154
19155 * Makefile.in (bootstrapclean): New target.
19156 (bootstrap-temacs, bootstrap-doc): Remove.
19157 (bootstrap-emacs): Use a bog-standard `temacs'.
19158 Don't bother to build a DOC file.
19159
19160 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
19161
19162 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
19163 in temacs even if !CANNOT_DUMP.
19164 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
19165
19166 * alloc.c (check_pure_size): Only output a warning.
19167
19168 2002-03-22 Jason Rumney <jasonr@gnu.org>
19169
19170 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
19171 supported.
19172
19173 * w32term.c (zv_bits): Declare as short, for word alignment.
19174 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
19175 (syms_of_w32term): Define x-use-underline-position-properties.
19176
19177 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
19178 (clear_image_cache): Block input, fix logic, clear matrices in
19179 all frames that share this cache.
19180
19181 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
19182
19183 * emacs.c (main): Update the Copyright year in the blurb printed
19184 by "emacs --version".
19185
19186 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
19187
19188 * xterm.c (XTread_socket): If XK_ISO_Lock and
19189 XK_ISO_Last_Group_Lock are defined, handle keysyms between
19190 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
19191
19192 2002-03-21 Kim F. Storm <storm@cua.dk>
19193
19194 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
19195 menu-bar bindings in keymap and local-map properties _are_ used.
19196 But try keymap property first in accordance with 2002-01-03 patch.
19197 Added comment describing why this is not always reliable.
19198 (tool_bar_items): Ditto for tool-bar.
19199
19200 2002-03-21 Jason Rumney <jasonr@gnu.org>
19201
19202 * w32fns.c (x_clear_image_1): Disable color table code.
19203
19204 2002-03-21 Kim F. Storm <storm@cua.dk>
19205
19206 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
19207 removed the wrong version of the DEFUN macro; fixed it.
19208
19209 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
19210 Fmember rather than Fmemq).
19211 (Fprovide): Check that subfeatures is a list.
19212
19213 * process.c (QCfeature, QCdatagram): Removed variables.
19214 (QCtype, Qdatagram): New variables.
19215 (network_process_featurep): Removed function.
19216 (Fmake_network_process): Removed :feature check.
19217 Use :type 'datagram instead of :datagram t to create a datagram
19218 socket. This allows us to add other connection types (e.g. raw
19219 sockets) later in a consistent manner.
19220 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
19221 supported subfeatures for feature make-network-process.
19222 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
19223 Intern and staticpro QCtype and Qdatagram.
19224 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
19225
19226 * xfns.c (QCtype): Remove duplicate declaration and
19227 initialization (is now declared in process.c).
19228
19229 * w32fns.c (QCtype): Remove duplicate declaration and
19230 initialization (is now declared in process.c).
19231
19232 2002-03-21 Richard M. Stallman <rms@gnu.org>
19233
19234 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
19235 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
19236 when jumping to `fail' to avoid undoing reg changes in the
19237 last iteration of the loop.
19238 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
19239
19240 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
19241 Depend on process.h.
19242
19243 2002-03-20 Jason Rumney <jasonr@gnu.org>
19244
19245 Most of the following changes are still conditional on HAVE_IMAGES
19246 which is not set by default on Windows.
19247
19248 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
19249
19250 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
19251 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
19252 (four_corners_best, x_clear_image_1, x_clear_image)
19253 (x_alloc_image_color, postprocess_image)
19254 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
19255 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
19256 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
19257
19258 * w32gui.h (struct XImage): Define.
19259
19260 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
19261 extract mouse co-ordinates.
19262
19263 2002-03-20 Jason Rumney <jasonr@gnu.org>
19264
19265 * w32.c (init_winsock): Dynamically load new server and UDP
19266 socket functions.
19267 (socket_to_fd): New function.
19268 (sys_socket): Use it.
19269 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
19270 (sys_recvfrom, sys_sendto): New wrapper functions.
19271
19272 * process.c (QCfamily, QCfilter): Remove duplicate declaration
19273 and initialization.
19274
19275 * makefile.w32-in (LIBS): Remove $(WSOCK32).
19276
19277 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
19278
19279 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
19280 Don't use "sun" as a variable, it's a predefined constant on Sun
19281 machines.
19282
19283 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19284
19285 * bytecode.c (Fbyte_code): Revert last change.
19286
19287 2002-03-19 Kim F. Storm <storm@cua.dk>
19288
19289 * makefile.w32-in (LIBS): Add $(WSOCK32).
19290 From David Ponce <dponce@voila.fr>.
19291
19292 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19293
19294 * process.c (wait_reading_process_input): Move variables `pname'
19295 and `pnamelen' down where they are used.
19296
19297 * bytecode.c (Fbyte_code): Discard unused computed value to
19298 prevent gcc warning.
19299
19300 * lisp.h (Fplist_member): Add prototype.
19301
19302 2002-03-18 Kim F. Storm <storm@cua.dk>
19303
19304 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
19305 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
19306
19307 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
19308 Remove explicit GNU_LINUX settings for datagram support.
19309
19310 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19311
19312 * process.c (Fmake_network_process): Remove unused variable `sa'.
19313 Doc fix. Add usage:.
19314 (set_socket_options): Remove unused variables `optnum' and `opttype'.
19315
19316 2002-03-17 Richard M. Stallman <rms@gnu.org>
19317
19318 * xdisp.c (cursor_type_changed): New variable.
19319 (redisplay_internal): Redisplay all windows if cursor_type_changed.
19320 Clear it when clearing windows_or_buffers_changed.
19321 (try_cursor_movement, redisplay_window, try_window_id)
19322 (try_window_reusing_current_matrix): Test cursor_type_changed
19323 along with windows_or_buffers_changed.
19324
19325 * window.h (cursor_type_changed): New variable.
19326
19327 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
19328 not update_mode_lines, and always set it to 1.
19329
19330 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
19331 if no frames needed redrawing.
19332
19333 2002-03-17 Kim F. Storm <storm@cua.dk>
19334
19335 The following changes add support for network server processes,
19336 datagram connections, and local (unix) sockets.
19337
19338 * process.h (struct Lisp_Process): New member log.
19339 Doc fix: Member command used to indicate stopped network process.
19340 Doc fix: Member childp contains plist for network process.
19341 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
19342
19343 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
19344 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
19345 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
19346 New variables.
19347 (NETCONN1_P): New macro.
19348 (DATAGRAM_SOCKETS): New conditional symbol.
19349 (datagram_address): New array.
19350 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
19351 (status_message): Use concat3.
19352 (Fprocess_status): Add `listen' status to doc string. Return `stop'
19353 for a stopped network process.
19354 (Fset_process_buffer): Update contact plist for network process.
19355 (Fset_process_filter): Ditto. Don't enable input for stopped
19356 network processes. Server must listen, even if filter is t.
19357 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
19358 New functions.
19359 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
19360 (Fprocess_contact): Added KEY argument. Handle datagrams.
19361 (list_processes_1): Optionally show only processes with the query
19362 on exit flag set. Dynamically adjust column widths. Omit tty
19363 column if not needed. Report stopped network processes.
19364 Identify server and datagram network processes.
19365 (Flist_processes): New optional arg `query-only'.
19366 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
19367 (conv_lisp_to_sockaddr, set_socket_options)
19368 (network_process_featurep, unwind_request_sigio): New helper functions.
19369 (Fprocess_datagram_address, Fset_process_datagram_address):
19370 (Fset_network_process_options): New lisp functions.
19371 (Fopen_network_stream): Removed. Now defined in simple.el.
19372 (Fmake_network_process): New lisp function. Code is based on previous
19373 Fopen_network_stream, but heavily reworked with new property list based
19374 argument list, support for datagrams, server processes, and local
19375 sockets in addition to old client-only functionality.
19376 (server_accept_connection): New function.
19377 (wait_reading_process_input): Use it to handle incoming connects.
19378 Do not enable input on a new connection if process is stopped.
19379 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
19380 (send_process): Handle datagram sockets.
19381 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
19382 network process is indicated by setting command field to t .
19383 (Fprocess_send_eof): No-op if datagram connection.
19384 (Fstatus_notify): Don't read input for a stream server socket or a
19385 stopped network process.
19386 (init_process): Initialize datagram_address array.
19387 (syms_of_process): Intern and staticpro new variables, defsubr new
19388 functions.
19389
19390 2002-03-16 Jason Rumney <jasonr@gnu.org>
19391
19392 * w32fns.c (w32_to_all_x_charsets): Return correct type in
19393 startup case.
19394
19395 2002-03-16 Richard M. Stallman <rms@gnu.org>
19396
19397 * xdisp.c (redisplay_internal, redisplay_windows):
19398 Use list_of_error to call internal_condition_case_1.
19399 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
19400 so as to catch all errors with no possibility of debugger redisplay.
19401 (list_of_error): New variable.
19402 (syms_of_xdisp): Init and staticpro it.
19403
19404 * print.c (print_object): Delete `\ ' from printed rep of frame.
19405
19406 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
19407
19408 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
19409 until its implementation is fixed.
19410
19411 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19412
19413 * xfns.c (png_load): Remove unused variable `gamma_str'.
19414
19415 2002-03-14 Richard M. Stallman <rms@gnu.org>
19416
19417 * xfns.c (x_real_positions): Handle failure in XQueryTree.
19418
19419 2002-03-14 Miles Bader <miles@gnu.org>
19420
19421 * intervals.c (adjust_for_invis_intang): New function.
19422 (set_point_both): Use `adjust_for_invis_intang' to do most of the
19423 work for dealing with invisible+intangible regions. Do so before
19424 and after both forward and backward movements, to handle both
19425 front-sticky and rear-sticky cases.
19426 * textprop.c (text_property_stickiness): Function moved here from
19427 `editfns.c'.
19428 * intervals.h (text_property_stickiness): New declaration.
19429 * editfns.c (char_property_eq): Function removed.
19430 (text_property_stickiness): Function moved to `textprop.c'.
19431
19432 2002-03-13 Jason Rumney <jasonr@gnu.org>
19433
19434 * config.in: Add STRFTIME_NO_POSIX2.
19435
19436 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
19437 and %OX when underlying strftime does not.
19438
19439 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
19440
19441 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
19442 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
19443 line) to avoid annoying flicker.
19444 (xm_scroll_callback): Get rid of the now unnecessary kludge.
19445 (XTread_socket): Mark it static.
19446
19447 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
19448
19449 2002-03-13 Kim F. Storm <storm@cua.dk>
19450
19451 * puresize.h (BASE_PURESIZE): Increase to 775000.
19452
19453 2002-03-12 Juanma Barranquero <lektu@terra.es>
19454
19455 * editfns.c (syms_of_editfns): Fix typo.
19456
19457 2002-03-12 Gerd Moellmann <gerd@gnu.org>
19458
19459 * xsmfns.c: Include stdio.h because termhooks.h needs it.
19460 Include termopt.h for interrupt_input.
19461
19462 2002-03-11 Andreas Schwab <schwab@suse.de>
19463
19464 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
19465
19466 2002-03-11 Gerd Moellmann <gerd@gnu.org>
19467
19468 * xterm.c (note_mouse_movement): Put code for
19469 x_autoselect_window_p in #if 0.
19470
19471 * lread.c (Fload): Don't assume that message_with_string uses the
19472 string it is given like a C string.
19473
19474 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19475
19476 * xterm.h (x_session_check_input, x_session_initialize): Declare.
19477
19478 * xterm.c (XTread_socket): Add call to x_session_check_input and
19479 x_session_have_connection.
19480 (x_initialize): Add call to x_session_initialize.
19481
19482 * termhooks.h (enum event_kind): Add save_session_event.
19483
19484 * keyboard.c: Add Emacs event save_session_event.
19485
19486 * emacs.c (main): Add call to syms_of_xsmfns.
19487
19488 * lisp.h (syms_of_xsmfns): Declare extern.
19489
19490 * config.in: Add HAVE_X_SM.
19491
19492 * Makefile.in (LIBXT): Add -lSM -lICE
19493 if HAVE_X_SM and not USE_X_TOOLKIT.
19494 (XOBJ): New file xsmfns.c added.
19495
19496 * xsmfns.c: New file for X session management.
19497
19498 2002-03-09 Jason Rumney <jasonr@gnu.org>
19499
19500 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
19501 read-only when setting modified time.
19502
19503 2002-03-08 Gerd Moellmann <gerd@gnu.org>
19504
19505 * xdisp.c (move_it_vertically_backward): At the end of the function,
19506 when moving forward by lines, treat terminal frames specially.
19507
19508 * keyboard.c (echo_char): Make sure to add a separator between
19509 keys even if echo_dash hasn't been called.
19510
19511 * xdisp.c: Use new string macros.
19512 (update_echo_area): Pass number of bytes to message3 instead of
19513 number of chars.
19514 (set_message_1): Don't access a string's size_byte directly.
19515 (decode_mode_spec_coding): Use number of bytes of eoltype string
19516 instead number of chars.
19517
19518 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
19519
19520 2002-03-08 Juanma Barranquero <lektu@terra.es>
19521
19522 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
19523 24-bit.
19524
19525 2002-03-06 Jason Rumney <jasonr@gnu.org>
19526
19527 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
19528
19529 2002-03-06 Gerd Moellmann <gerd@gnu.org>
19530
19531 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
19532 (cancel_echoing, echo_length, echo_truncate): Changed to
19533 work with new kboard definition.
19534 (echo_now): Use message3_nolog instead of message2_nolog.
19535
19536 * alloc.c (mark_kboards): Mark echo_string.
19537
19538 * keyboard.h (ECHOBUFSIZE): Removed.
19539 (struct kboard): Member echoptr removed, member echobuf renamed
19540 to echo_string.
19541
19542 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
19543 message3 instead of message2 to display the message using STRING's
19544 text properties.
19545
19546 2002-03-05 Andreas Schwab <schwab@suse.de>
19547
19548 * xdisp.c (hscroll_margin): Change to EMACS_INT.
19549
19550 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
19551
19552 * frame.c (default-frame-alist): Explain that setting it doesn't
19553 affect existing frames.
19554
19555 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
19556
19557 * indent.c (skip_invisible): Fix my brain fart.
19558
19559 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
19560
19561 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
19562
19563 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
19564 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
19565 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
19566 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
19567 and variables to use EMACS_INT instead of just int.
19568
19569 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
19570
19571 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
19572
19573 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
19574 environment, pass it down with corrected value.
19575
19576 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19577
19578 * lread.c (read_filtered_event): Do not call start_hourglass
19579 before returning.
19580
19581 2002-03-04 Juanma Barranquero <lektu@terra.es>
19582
19583 * w32term.c (x_display_and_set_cursor): Fix typo.
19584
19585 2002-03-03 Richard M. Stallman <rms@gnu.org>
19586
19587 * fileio.c (Fmake_temp_name): Doc fix.
19588
19589 2002-03-03 Gary Wong <gtw@gnu.org>
19590
19591 * termcap.c [!emacs]: Replace ospeed for building standalone
19592 libtermcap, for binary compatibility.
19593
19594 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
19595
19596 2002-03-03 Richard M. Stallman <rms@gnu.org>
19597
19598 * xrdb.c (file_p): Rename arg `path' to `filename'.
19599
19600 * abbrev.c (Fexpand_abbrev): Increment plist as use count
19601 only if it is an integer.
19602
19603 * xfns.c (png_load): Set screen_gamma based on f->gamma.
19604 If png_get_sRGB gives an answer, call png_set_gamma
19605 using the default image gamma value.
19606
19607 * lread.c (read1): When reading from a file, default string to
19608 multibyte only if it has some multibyte characters.
19609
19610 * print.c (print_object): Output multibyte chars 128...255
19611 using \x even if ! print_escape_multibyte.
19612
19613 * xdisp.c (display_mode_element): Move the places where
19614 bytepos, charpos, this, and lisp_string are set.
19615 Use lisp_string to set bytepos.
19616
19617 * xdisp.c (redisplay_internal):
19618 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
19619
19620 * xdisp.c (display_mode_element): Merge properties specified with
19621 :propertize onto those that come with the string.
19622
19623 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
19624
19625 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
19626 automatic-hscrolling. Users changed.
19627 <hscroll-margin>: Renamed from automatic-hscroll-margin.
19628 Users changed.
19629 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
19630
19631 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
19632
19633 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
19634
19635 2002-03-02 Kim F. Storm <storm@cua.dk>
19636
19637 * window.c (Fminibuffer_selected_window): New function.
19638 (syms_of_window): Defsubr it.
19639
19640 2002-03-01 Kim F. Storm <storm@cua.dk>
19641
19642 * window.h (struct window): New member phys_cursor_width.
19643
19644 * window.c (make_window, replace_window): Init phys_cursor_width.
19645
19646 * xterm.c (x_display_and_set_cursor): Blink box cursor using
19647 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
19648
19649 * w32term.c (x_display_and_set_cursor): Blink box cursor using
19650 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
19651
19652 * lisp.h (GCPRO6): New macro.
19653
19654 * process.c (Fopen_network_stream): Use GCPRO6.
19655
19656 2002-03-01 Kim F. Storm <storm@cua.dk>
19657
19658 * process.c (Qconnect, Qfailed): New variables.
19659 (syms_of_process): Intern and staticpro them.
19660 (Fprocess_status): Document connect and failed return values.
19661 [NON_BLOCKING_CONNECT]: New conditional.
19662 (connect_wait_mask, num_pending_connects): New variables.
19663 (status_message): Convert Qfailed status.
19664 (Fopen_network_stream): Added support for non-blocking connect.
19665 New optional args: filter, sentinel, non_blocking. Doc updated.
19666 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
19667 (deactivate_process): Handle pending non-blocking connect.
19668 (wait_reading_process_input): Poll for status of non-blocking
19669 connects. Exec sentinel directly when connect succeeds.
19670 (status_notify): Don't read process output if not yet connected.
19671
19672 2002-02-28 Kim F. Storm <storm@cua.dk>
19673
19674 * window.c (minibuf_selected_window): Renamed from
19675 Vminibuf_selected_window. Users changed.
19676 (syms_of_window): Staticpro it.
19677
19678 2002-02-26 Kim F. Storm <storm@cua.dk>
19679
19680 The following changes add a new Vminibuf_selected_window variable
19681 which is similar to Vminibuf_scroll_window, but which is only set
19682 on entry to the minibuffer (from a non-minibuffer window):
19683
19684 * window.c (Vminibuf_selected_window): New variable.
19685 (struct save_window_data): New member minibuf_selected_window.
19686 (Fset_window_configuration): Restore Vminibuf_selected_window.
19687 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
19688 Set minibuf_scroll_window member to nil if minibuf_level is 0.
19689 (compare_window_configurations): Compare minibuf_selected_window.
19690
19691 * window.h (Vminibuf_selected_window): Declare extern.
19692
19693 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
19694 entry to minibuffer or on entry from a non-minibuffer window.
19695
19696 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
19697 Vminibuf_selected_window instead of Vminibuf_scroll_window.
19698
19699 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
19700 instead of Vminibuf_scroll_window when deciding in which window
19701 the region should be highlighted. Consequently, the region remains
19702 highlighteded even when a completion buffer is also displayed.
19703
19704 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
19705
19706 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
19707
19708 * xselect.c (Qcompound_text_with_extensions): Renamed from
19709 Qcompound_text_no_extensions.
19710 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
19711
19712 2002-02-26 Juanma Barranquero <lektu@terra.es>
19713
19714 * w32proc.c (syms_of_ntproc): Doc fix.
19715
19716 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19717
19718 * intervals.h: Include "dispextern.h" unconditionally.
19719
19720 2002-02-24 Jason Rumney <jasonr@gnu.org>
19721
19722 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
19723 and disp-table.elc.
19724 (lisp): Add emacs-lisp/backquote.elc.
19725
19726 2002-02-24 Kim F. Storm <storm@cua.dk>
19727
19728 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
19729 The validation of the event type was too strict as it didn't
19730 allow string events; buffer names are used in bindings for
19731 menu-bar-select-buffer (see `menu-bar-update-buffers').
19732
19733 2002-02-23 Kim F. Storm <storm@cua.dk>
19734
19735 The following changes rework my patch of 2002-02-06 which
19736 added command remapping by entering the commands directly into
19737 the keymaps. Now, command remapping uses an explicit `remap'
19738 prefix in the keymaps, i.e. [remap COMMAND].
19739
19740 * keymap.c (Qremap, remap_command_vector): New variables.
19741 (is_command_symbol): Remove function.
19742 (Fdefine_key): No longer accept a symbol for KEY.
19743 Added validation of [remap COMMAND] argument for KEY.
19744 The DEF is no longer required to be a symbol when remapping a command.
19745 (Fremap_command): New function to remap command through keymaps.
19746 (Flookup_key): Perform command remapping initiated by
19747 Fremap_command directly for speed.
19748 (Fkey_binding): Use Fremap_command for command remapping.
19749 (where_is_internal): Handle new command remapping representation.
19750 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
19751 staticpro them. Defsubr Fremap_command.
19752
19753 * keymap.h (Fremap_command): Declare extern.
19754 (is_command_symbol): Remove extern.
19755
19756 * keyboard.c (command_loop_1): Use Fremap_command for command
19757 remapping; now try command remapping for all symbols.
19758
19759 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
19760
19761 * coding.h (run_pre_post_conversion_on_str): Add prototype.
19762
19763 2002-02-23 Jason Rumney <jasonr@gnu.org>
19764
19765 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
19766 on the string before encoding it.
19767 (Fw32_get_clipboard_data): Run post-read-conversion on the string
19768 after decoding it.
19769
19770 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
19771
19772 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19773
19774 * w32term.c (enter_timestamp): Remove unused static variable to
19775 prevent warning.
19776
19777 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
19778
19779 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
19780
19781 * w16select.c (Fw16_get_clipboard_data): Fix last change.
19782
19783 * xselect.c (selection_data_to_lisp_data): Fix last change.
19784
19785 2002-02-22 Jason Rumney <jasonr@gnu.org>
19786
19787 * w32term.h (struct w32_output): New member menu_command_in_progress.
19788
19789 * w32menu.c (menubar_selection_callback): Free the menu and
19790 clear the menu_command_in_progress flag.
19791
19792 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
19793 (menu_free_timer): New variable.
19794 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
19795 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
19796 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
19797 menu command is in progress.
19798 <WM_COMMAND>: Set the menu_command_in_progress flag.
19799 Kill any menu_free_timer that is running.
19800
19801 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
19802 Call ExtTextOutA rather than ExtTextOut.
19803
19804 2002-02-22 Eli Zaretskii <eliz@gnu.org>
19805
19806 * puresize.h (BASE_PURESIZE): Increase to 755000.
19807
19808 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
19809
19810 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
19811 on the string before encoding it.
19812 (Fw16_get_clipboard_data): Run post-read-conversion on the string
19813 after decoding it.
19814
19815 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
19816
19817 Support for ICCCM Extended Segments in X selections:
19818
19819 * xselect.c <Qcompound_text_no_extensions>: New variable.
19820 (syms_of_xselect): Intern and staticpro it.
19821 (selection_data_to_lisp_data): Run post-read-conversion on decoded
19822 selection text.
19823 (lisp_data_to_selection_data): If next-selection-coding-system is
19824 compound-text-no-extensions, set the type of selection to be
19825 compound-text.
19826
19827 * xterm.h (x_encode_text): Update prototype.
19828
19829 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
19830 callers changed. If SELECTIONP is non-zero, run the
19831 pre-write-conversion function before encoding the selection text.
19832
19833 2002-02-21 Kim F. Storm <storm@cua.dk>
19834
19835 * frame.c (syms_of_frame): Change mouse-highlight default to t.
19836
19837 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
19838 Correct composing of language-change event.
19839
19840 2002-02-20 Kim F. Storm <storm@cua.dk>
19841
19842 * keyboard.c (menu_bar_items): Don't include keymap or local-map
19843 bindings at PT when building menu (the menu is not updated often
19844 enough for this to work reliable).
19845 (tool_bar_items): Likewise.
19846 (current_active_maps): Removed unused (and buggy) function.
19847
19848 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19849
19850 * xfns.c (gif_load): Use correct width and height for GIF images.
19851
19852 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
19853
19854 * floatfns.c (Fatan): Accept an optional second arg and call
19855 atan2 if passed 2 args.
19856
19857 2002-02-18 Jason Rumney <jasonr@gnu.org>
19858
19859 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
19860
19861 2002-02-17 Jason Rumney <jasonr@gnu.org>
19862
19863 * w32term.c (x_autoselect_window_p): New variable.
19864 (syms_of_w32term): DEFVAR_BOOL and initialize it.
19865 (note_mouse_movement): Use it.
19866
19867 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
19868
19869 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
19870
19871 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19872 New variables.
19873 (syms_of_w32fns): Intern and staticpro them.
19874 (x_frame_parms) <"fullscreen">: New parameter.
19875 (x_fullscreen_move, x_set_fullscreen): New functions.
19876 (x_set_frame_parameters): Support Qfullscreen.
19877 (x_real_positions): Save x/y_pixels_diff frame params.
19878 (x_figure_window_size): Support full-screen frames.
19879 (Fx_create_frame): Default the fullscreen parameter.
19880
19881 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
19882 (x_fullscreen_adjust): New functions.
19883 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
19884 fullscreen. Call x_check_fullscreen_move, and set the
19885 want_fullscreen member of output_data.w32
19886 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
19887
19888 * w32term.h: New enum for FULLSCREEN_* constants.
19889 (struct w32_output): New members want_fullscreen, x_pixels_diff,
19890 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
19891 (x-fullscreen-adjust): New prototype.
19892
19893 2002-02-17 Kim F. Storm <storm@cua.dk>
19894
19895 * frame.c (Vmouse_highlight): New variable.
19896 (syms_of_frame): DEFVAR_LISP it.
19897
19898 * frame.h (Vmouse_highlight): Declare extern.
19899
19900 * xterm.h (struct x_display_info): Add mouse_face_hidden.
19901
19902 * xterm.c (disable_mouse_highlight): Removed variable.
19903 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19904 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19905 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
19906 and on after keyboard input.
19907 (x_term_init): Initialize mouse_face_hidden.
19908
19909 * msdos.h (struct display_info): Add mouse_face_hidden.
19910
19911 * msdos.c (disable_mouse_highlight): Removed variable.
19912 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19913 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19914 (internal_terminal_init): Initialize mouse_face_hidden.
19915 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
19916 and on after keyboard input.
19917
19918 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
19919
19920 * w32term.c (disable_mouse_highlight): Removed variable.
19921 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
19922 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19923 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
19924 and on after keyboard input.
19925 (w32_initialize_display_info): Initialize mouse_face_hidden.
19926
19927 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
19928
19929 * msdos.c (last_mouse_window): New variable.
19930 (dos_rawgetc): Fix last change--if the mouse is in the same window
19931 as recorded in last_mouse_window, don't select this window.
19932
19933 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
19934
19935 * msdos.c (x_autoselect_window_p): New variable.
19936 (syms_of_msdos): Defvar it.
19937 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
19938 which the last mouse movement occured, unless it is already selected.
19939
19940 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
19941 New variables.
19942 (syms_of_xdisp): DEVFAR them.
19943 (hscroll_window_tree): Use automatic_hscroll_margin and
19944 Vautomatic_hscroll_step to compute the amount of window scrolling.
19945
19946 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19947
19948 * xterm.c (x-autoselect-window): New variable.
19949 (note_mouse_movement): Use it.
19950
19951 * keyboard.c: Do not include "systime.h" twice.
19952
19953 2002-02-15 Andreas Schwab <schwab@suse.de>
19954
19955 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
19956
19957 * alloc.c (NSTATICS): Increase to 1280.
19958
19959 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
19960
19961 * alloc.c (NSTATICS): Bump to 1026.
19962
19963 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
19964 (Vx_super_keysym): New variables.
19965 (syms_of_xterm): DEFVAR_LISP them.
19966 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
19967 variables to determine which keys to use for the various modifiers.
19968
19969 2002-02-13 Kim F. Storm <storm@cua.dk>
19970
19971 * window.c (Vmode_line_in_non_selected_windows): Removed.
19972 (mode_line_in_non_selected_windows): New variable.
19973 (syms_of_window): DEFVAR_BOOL it.
19974
19975 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
19976 Use mode_line_in_non_selected_windows.
19977 (mode_line_in_non_selected_windows): Declare extern.
19978 (Vmode_line_in_non_selected_windows): Removed extern.
19979
19980 2002-02-13 Richard M. Stallman <rms@gnu.org>
19981
19982 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
19983 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
19984 (Fclear_this_command_keys): Doc fixes.
19985
19986 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
19987 (update_face_from_frame_parameter): Increment face_change_count
19988 and windows_or_buffers_changed to force redisplay using changed faces.
19989
19990 * xdisp.c (QCpropertize): New variable.
19991 (mode_line_proptrans_alist): New variable.
19992 (display_mode_element): New arg PROPS; all calls changed.
19993 Implement this, for strings.
19994 Handle literal output of strings by sharing the
19995 main-line code for strings, using local var `literal'.
19996 Handle :propertize feature.
19997 (syms_of_xdisp): Initialze and staticpro QCpropertize and
19998 mode_line_proptrans_alist.
19999
20000 2002-02-11 Kim F. Storm <storm@cua.dk>
20001
20002 * window.c (Vmode_line_in_non_selected_windows): New variable.
20003 (syms_of_window): DEFVAR_LISP it.
20004
20005 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
20006 (CURRENT_MODE_LINE_FACE_ID): Use it.
20007 (Vmode_line_in_non_selected_windows): Declare extern.
20008
20009 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
20010 to get mode line face.
20011
20012 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
20013
20014 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
20015 variables; cus-start.el doesn't need them anymore.
20016
20017 2002-02-09 Kim F. Storm <storm@cua.dk>
20018
20019 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
20020 reduction. This fixes a display problem where stray newlines were
20021 inserted in the window (corrected by C-l). Clarified code (IMHO).
20022
20023 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
20024
20025 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
20026
20027 * xdisp.c (display_mode_lines): Fix last change.
20028
20029 2002-02-09 Jason Rumney <jasonr@gnu.org>
20030
20031 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
20032 match each other.
20033 (w32_load_system_font): Prevent Cleartype fonts from loading.
20034 (Fx_show_tip): Ensure tip frames are above other topmost windows.
20035
20036 2002-02-09 Kim F. Storm <storm@cua.dk>
20037
20038 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
20039 (CURRENT_MODE_LINE_HEIGHT): Use it.
20040 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
20041
20042 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
20043 (pos_visible_p, handle_face_prop): Likewise.
20044 (display_mode_lines): Likewise, but for the real selected window.
20045 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
20046
20047 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
20048 in non-selected windows.
20049 (realize_basic_faces): Realize it.
20050 (syms_of_term): Intern and staticpro it.
20051
20052 2002-02-08 Kim F. Storm <storm@cua.dk>
20053
20054 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
20055 Changed mail addresses to emacs-devel@gnu.org.
20056
20057 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
20058
20059 * fileio.c (Fsubstitute_in_file_name): If the file name includes
20060 ~user, and there's no such user, don't discard everything before ~user.
20061
20062 * floatfns.c (Fround): Doc fix.
20063
20064 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20065
20066 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
20067
20068 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
20069
20070 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
20071
20072 2002-02-07 Kim F. Storm <storm@cua.dk>
20073
20074 * keymap.c (where_is_internal): Only check whether definition is
20075 remapped if it fulfills is_command_symbol.
20076
20077 2002-02-07 Andreas Schwab <schwab@suse.de>
20078
20079 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
20080
20081 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
20082
20083 2002-02-06 Kim F. Storm <storm@cua.dk>
20084
20085 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
20086 defining command remapping. Doc updated.
20087 (Flookup_key): Remap command through keymap if KEY is a symbol.
20088 (is_command_symbol): New function.
20089 (Fkey_binding): Use it. New optional argument NO-REMAP.
20090 Doc updated. Callers changed. Perform command remapping via
20091 recursive call unless that arg is non-nil.
20092 (where_is_internal): New argument no_remap. Callers changed.
20093 Call recursively to find original key bindings for a remapped
20094 comand unless that arg is non-nil.
20095 (Fwhere_is_internal): New optional argument NO-REMAP.
20096 Doc updated. Callers changed. Pass arg to where_is_internal.
20097
20098 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
20099 (is_command_symbol): Add prototype.
20100
20101 * keyboard.c (Vthis_original_command): New variable.
20102 (syms_of_keyboard): DEFVAR_LISP it.
20103 (command_loop_1): Set it, and perform command remapping.
20104
20105 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20106
20107 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
20108
20109 2002-02-06 Jason Rumney <jasonr@gnu.org>
20110
20111 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
20112
20113 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
20114
20115 * charset.c (get_charset_id): Use if-else instead of ?:.
20116
20117 2002-02-06 Richard M. Stallman <rms@gnu.org>
20118
20119 * filelock.c (S_ISLNK): Define if not defined.
20120
20121 2002-02-03 Richard M. Stallman <rms@gnu.org>
20122
20123 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
20124
20125 * lread.c (read1): Redesign strategy for force_multibyte and
20126 force_singlebyte. Now is_multibyte records whether read_buffer
20127 is multibyte. Encountering any multibyte character makes it so.
20128
20129 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
20130
20131 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
20132 with the same sequence, map that sequence to f10 rather than f0.
20133
20134 2002-02-03 Andreas Schwab <schwab@suse.de>
20135
20136 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
20137 latter never being defined on GNU/Linux.
20138
20139 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
20140
20141 * xfaces.c (realize_default_face): Don't set the weight and slant of
20142 the default face to Qnormal, unless these attributes are unspecified.
20143
20144 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20145
20146 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
20147 Call cancel_hourglass unconditionally.
20148
20149 * eval.c (Fsignal): Remove duplicated declaration of
20150 the variable `display_hourglass_p'.
20151
20152 2002-01-31 Richard M. Stallman <rms@gnu.org>
20153
20154 * editfns.c (region_limit): Nicer error message.
20155
20156 * coding.c (decode_composition_emacs_mule):
20157 Give up if NCOMPONENT gets too large to index `component'.
20158
20159 * callint.c (check_mark): New arg to specify clearer error message.
20160 Callers changed.
20161
20162 2002-01-27 Richard M. Stallman <rms@gnu.org>
20163
20164 * minibuf.c (Fcompleting_read): Doc fix.
20165
20166 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20167
20168 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
20169 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
20170 Fix doc-strings.
20171
20172 2002-01-26 Richard M. Stallman <rms@gnu.org>
20173
20174 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
20175
20176 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
20177 and scroll_up_aggressively.
20178
20179 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20180
20181 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
20182
20183 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
20184
20185 * textprop.c (Fnext_property_change, Fnext_single_property_change)
20186 (Fprevious_property_change, Fprevious_single_property_change):
20187 Stay within the narrowed-buffer boundaries.
20188
20189 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
20190
20191 * term.c (Ftty_display_color_cells): New function.
20192 (syms_of_term): Defsubr it.
20193 (Ftty_display_color_cells, Ftty_display_color_p): Change the
20194 argument name to DISPLAY. Doc fix.
20195
20196 * dispextern.h: Add prototype for set_tty_color_mode and
20197 tty_setup_colors.
20198
20199 2002-01-24 Jason Rumney <jasonr@gnu.org>
20200
20201 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
20202 If region left to draw is not what was expected, mark the frame as
20203 garbaged.
20204
20205 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
20206 Combine the regions returned by BeginPaint and GetUpdateRect.
20207
20208 2002-01-23 Jason Rumney <jasonr@gnu.org>
20209
20210 * w32term.c (x_update_window_begin): Only hide caret if
20211 w32_use_visible_system_caret is set.
20212 (x_update_window_end): Only show caret if
20213 w32_use_visible_system_caret is set.
20214 (syms_of_w32term): Handle SystemParametersInfo call failing.
20215
20216 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
20217
20218 2002-01-22 Richard M. Stallman <rms@gnu.org>
20219
20220 * unexelf.c (unexec): Define n so as to cause compilation error
20221 for the code where people have often written n instead of nn.
20222
20223 * .gdbinit (hookpost-run): Defined.
20224
20225 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20226
20227 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
20228
20229 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20230
20231 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
20232 if fullscreen is being set.
20233
20234 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20235
20236 * minibuf.c (Fminibuffer_contents)
20237 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
20238 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
20239
20240 2002-01-21 Richard M. Stallman <rms@gnu.org>
20241
20242 * window.c (check_frame_size): Fix minimum height calculation.
20243
20244 2002-01-20 Ken Raeburn <raeburn@gnu.org>
20245
20246 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
20247 height before comparison.
20248 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
20249
20250 2002-01-20 Jason Rumney <jasonr@gnu.org>
20251
20252 * w32term.c (w32_system_caret_width): Remove.
20253 (w32_use_visible_system_caret): New user flag.
20254 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
20255 Windows reports a screen reader running.
20256 (x_update_window_begin): Hide the system caret.
20257 (x_update_window_end): Show the system caret.
20258 (x_display_and_set_cursor): Don't draw a cursor when
20259 w32_use_visible_system_caret is set. Do not adjust width.
20260
20261 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
20262 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
20263 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
20264 the user requests it. Use system default width when creating.
20265 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
20266
20267 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
20268 New window messages.
20269
20270 2002-01-20 Richard M. Stallman <rms@gnu.org>
20271
20272 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
20273
20274 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20275
20276 * doprnt.c (doprnt1): Fix typos in error call.
20277
20278 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
20279
20280 * unexelf.c (unexec) [__sgi]: Support the .got sections.
20281
20282 2002-01-20 Jason Rumney <jasonr@gnu.org>
20283
20284 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
20285 that Windows returns. If a double check fails, try to guess how
20286 ExtTextOut is going to act.
20287
20288 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
20289 in place of stricmp.
20290 (w32_list_synthesized_fonts): Removed.
20291 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
20292 (struct enumfont_t): New element; list.
20293 (enum_font_cb2): List all style and charset variations of a font.
20294 (Fw32_select_font): New optional argument; include_proportional.
20295 Exclude vertical fonts. Exclude proportional fonts unless
20296 include_proportional is non-nil.
20297 (w32_enable_synthesized_fonts): Change to a boolean.
20298 (Fw32_send_sys_command): Doc fix.
20299
20300 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20301
20302 * dispnew.c (update_frame): Move the variable `tem' to the block
20303 where it is used.
20304
20305 2002-01-19 Jason Rumney <jasonr@gnu.org>
20306
20307 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
20308 call to face-set-after-frame-default.
20309
20310 2002-01-18 Richard M. Stallman <rms@gnu.org>
20311
20312 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
20313 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
20314
20315 2002-01-17 Richard M. Stallman <rms@gnu.org>
20316
20317 * window.c (enlarge_window): When exceeding size of parent,
20318 directly delete all the siblings instead of trying to resize it.
20319
20320 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20321
20322 * term.c (set_tty_color_mode): Remove unused variable `tem'.
20323
20324 2002-01-16 Henrik Enberg <henrik@enberg.org>
20325
20326 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
20327
20328 2002-01-16 Kim F. Storm <storm@cua.dk>
20329
20330 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
20331 is invisible. This can happen if cursor is on top line of a
20332 window, and we switch to a buffer with a header line.
20333
20334 * w32term.c (x_erase_phys_cursor): Ditto.
20335
20336 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20337
20338 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
20339 `dont_resize' only when used.
20340
20341 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
20342
20343 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
20344
20345 * xdisp.c (display_mode_element): When computing charpos, depend
20346 on multibyteness of elt, not the text in field.
20347
20348 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20349
20350 * buffer.c (Fkill_all_local_variables):
20351 Increment `update_mode_lines' only once.
20352
20353 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20354
20355 * lisp.h (adjust_after_replace_noundo)
20356 (Fupdate_coding_systems_internal): Add prototypes.
20357
20358 * sound.c (Fplay_sound): Initialize header_size also for :data case.
20359
20360 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
20361
20362 Support for the --color command-line argument and tty-color-mode
20363 frame parameter:
20364
20365 * term.c (tty_default_color_capabilities, tty_setup_colors)
20366 (set_tty_color_mode): New functions.
20367 (term_init): Call tty_default_color_capabilities.
20368 (Qtty_color_mode_alist): New variable.
20369 (syms_of_term): Intern and staticpro it.
20370
20371 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
20372 frames.
20373 (do_switch_frame): For termcap frames, switch the tty
20374 color mode as specified by the frame's parameters.
20375 (Qtty_color_mode): New variable.
20376 (syms_of_frame): Intern and staticpro it.
20377
20378 * emacs.c (USAGE2): Add the --color option.
20379 (standard_args): Ditto.
20380
20381 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20382
20383 * xterm.h (struct x_output): New members want_fullscreen,
20384 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
20385 y_pixels_outer_diff.
20386 New enum for FULLSCREEN_* constants.
20387 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
20388 is NULL.
20389 (x_fullscreen_adjust): Add prototype.
20390
20391 * emacs.c (USAGE2): Add the new full-screen arguments.
20392 (standard_args): Ditto.
20393
20394 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
20395 New variables.
20396 (syms_of_xfns): Intern and staticpro them.
20397 (x_frame_parms) <"fullscreen">: New parameter.
20398 (x_fullscreen_move, x_set_fullscreen): New functions.
20399 (x_set_frame_parameters): Support for Qfullscreen.
20400 (x_real_positions): More accurate computation of the frame position.
20401 (x_figure_window_size): Support full-screen frames.
20402 (Fx_create_frame): Default the fullscreen parameter.
20403
20404 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
20405 (XTread_socket) <Expose>: Call x_check_fullscreen.
20406 <ConfigureNotify>: Don't resize to fullscreen.
20407 Call x_check_fullscreen_move, and set the want_fullscreen member of
20408 output_data.x.
20409
20410 2002-01-13 Jason Rumney <jasonr@gnu.org>
20411
20412 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
20413 for mice with more than 3 buttons.
20414
20415 * w32term.c (parse_button): New parameter xbutton. Callers changed.
20416 (w32_read_socket): Handle new "XBUTTON" messages.
20417
20418 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
20419 (syms_of_w32fns): DEFVAR_BOOL it.
20420 (w32_wnd_proc): Handle new "XBUTTON" messages.
20421
20422 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20423
20424 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
20425
20426 2002-01-13 Andreas Schwab <schwab@suse.de>
20427
20428 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
20429
20430 2002-01-12 Andreas Schwab <schwab@suse.de>
20431
20432 * .gdbinit (xbuffer): Remove address operator since data is now a
20433 pointer.
20434
20435 2002-01-11 Richard M. Stallman <rms@gnu.org>
20436
20437 * insdel.c (adjust_after_replace_noundo): New function.
20438
20439 * coding.c (code_convert_region): Don't copy old text if undo disabled.
20440
20441 2002-01-09 Jason Rumney <jasonr@gnu.org>
20442
20443 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
20444 when checking for multiple frames.
20445
20446 2002-01-08 Richard M. Stallman <rms@gnu.org>
20447
20448 * window.c (delete_window): Rewrite the code for changing the
20449 selected window to handle the case where WINDOW is not a leaf.
20450
20451 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
20452
20453 * process.c (send_process): Set src_multibyte to 1 after the call
20454 top setup_coding_system, not before the call.
20455
20456 2002-01-07 Jason Rumney <jasonr@gnu.org>
20457
20458 * xmenu.c (set_frame_menubar, xmenu_show):
20459 (xdialog_show): Initialize wv->help to Qnil.
20460
20461 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
20462 (w32_dialog_show): Initialize wv->help to Qnil.
20463
20464 2002-01-06 Jason Rumney <jasonr@gnu.org>
20465
20466 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
20467
20468 * w32menu.c (w32_menu_display_help): Revert last change.
20469
20470 * xmenu.c (menu_highlight_callback): Revert last change.
20471
20472 2002-01-06 Andreas Schwab <schwab@suse.de>
20473
20474 * insdel.c (make_gap_larger): Make sure buffer size does not
20475 overflow range of int.
20476
20477 2002-01-05 Jason Rumney <jasonr@gnu.org>
20478
20479 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20480 OVERLAPS_P.
20481
20482 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
20483
20484 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
20485 to the left or to the right of the pointer, put it against
20486 the left screen edge.
20487 (x_frame_parms): Add missing braces around initializer.
20488
20489 * w32term.c (x_setup_relief_colors): Don't compute an image's
20490 background color if it doesn't have a Pixmap.
20491 (notice_overwritten_cursor): Don't depend on
20492 output_cursor and updated_area. Compare pixel coordinates with
20493 window's cursor pixel coordinates.
20494 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20495 Call notice_overwritten_cursor with new arg list.
20496 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20497 unconditionally.
20498 (x_draw_image_relief): Use predefined macro instead of
20499 constant when the value of `tool_bar_button_relief' is negative.
20500
20501 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
20502
20503 2002-01-04 Richard M. Stallman <rms@gnu.org>
20504
20505 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
20506
20507 2002-01-03 Richard M. Stallman <rms@gnu.org>
20508
20509 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
20510 (Fkey_binding): Try the `keymap' property map first.
20511 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
20512 minor mode bindings.
20513
20514 2002-01-03 Kim F. Storm <storm@cua.dk>
20515
20516 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
20517
20518 2002-01-02 Richard M. Stallman <rms@gnu.org>
20519
20520 * keyboard.c (read_key_sequence): Handle the keymap property
20521 before minor mode maps.
20522
20523 * editfns.c (Fformat): Update thissize from field_width
20524 based on the actual width, in the string case.
20525
20526 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20527
20528 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
20529 when used as truth value to prevent gcc warnings.
20530
20531 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
20532 * w32proc.c: Include <config.h>.
20533
20534 2002-01-01 Andreas Schwab <schwab@suse.de>
20535
20536 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
20537 not EMACS_INT, to make them compatible with DEFVAR_INT.
20538 * lisp.h (max_specpdl_size): Adjust declaration.
20539
20540 2002-01-01 Richard M. Stallman <rms@gnu.org>
20541
20542 * print.c (print_object): Test print_escape_nonascii only for
20543 unibyte strings.
20544 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
20545 when outputting to a multibyte buffer.
20546
20547 2001-12-29 Richard M. Stallman <rms@gnu.org>
20548
20549 * print.c (print_object): In multibyte string, use hex escapes.
20550 Use octal only for unibyte strings.
20551 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
20552
20553 * lread.c (read_escape): New arg BYTEREP for reporting whether
20554 escape forces unibyte or multibyte.
20555 (read1): When reading a string, take note of that info.
20556
20557 2001-12-29 Ken Raeburn <raeburn@gnu.org>
20558
20559 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
20560 comparison to test lisp value returned by Fget.
20561
20562 2001-12-29 Richard M. Stallman <rms@gnu.org>
20563
20564 * lisp.h (max_specpdl_size): Add declaration.
20565
20566 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
20567
20568 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
20569 Handle modifier bits. Correct typo in error message.
20570
20571 2001-12-28 Richard M. Stallman <rms@gnu.org>
20572
20573 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
20574 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
20575 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20576 Update calls to Fdefine_abbrev.
20577 (write_abbrev): Update for changed data format.
20578 Don't list "system" abbrevs.
20579 (Fexpand_abbrev): Update use count with new data format.
20580 (describe_abbrev): Update for changed data format.
20581 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
20582
20583 * config.in (HAVE_MBSINIT): Add #undef.
20584
20585 * strftime.c (mbsinit): Define as no-op if not available.
20586
20587 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
20588 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
20589
20590 * keymap.c (Flookup_key): Error message if key has wrong data type.
20591 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
20592 (exclude_key): New variable.
20593
20594 2001-12-28 Gerd Moellmann <gerd@gnu.org>
20595
20596 * xterm.c (x_setup_relief_colors): Don't compute an image's
20597 background color if it doesn't have a Pixmap.
20598
20599 * xterm.c (notice_overwritten_cursor): Don't depend on
20600 output_cursor and updated_area. Compare pixel coordinates with
20601 window's cursor pixel coordinates.
20602 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20603 Call notice_overwritten_cursor with new arg list.
20604 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20605 unconditionally.
20606
20607 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
20608 height of the cursor line to the amount to scroll.
20609
20610 2001-12-27 Richard M. Stallman <rms@gnu.org>
20611
20612 * intervals.c (set_point_both): The position after an invisible,
20613 intangible character is not an acceptable stopping point.
20614
20615 2001-12-27 Ken Raeburn <raeburn@gnu.org>
20616
20617 * window.c (enlarge_window): In new preserve_before code, convert
20618 CURBEG from lisp object to integer before doing arithmetic.
20619
20620 2001-12-27 Richard M. Stallman <rms@gnu.org>
20621
20622 * bytecode.c (Fbyte_code): Undo previous change.
20623
20624 2001-12-26 Kim F. Storm <storm@cua.dk>
20625
20626 * keyboard.c (record_char): Ignore duplicate help-echo events only
20627 separated by mouse-movement. When tracking mouse, only record
20628 first and last mouse-movement event in same window.
20629 Don't record mouse-movement events in keyboard macros.
20630
20631 2001-12-25 Richard M. Stallman <rms@gnu.org>
20632
20633 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
20634 (Fenlarge_window): New arg PRESERVE_BEFORE.
20635
20636 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
20637 instead of Fstring_as_unibyte.
20638
20639 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20640
20641 The following changes remove mocklisp support:
20642
20643 * mocklisp.h, mocklisp.c: Files removed.
20644
20645 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
20646 `Qmocklisp' and `Qmocklisp_arguments'.
20647 Remove prototype of syms_of_mocklisp.
20648
20649 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
20650
20651 * callint.c: Do not include mocklisp.h.
20652 (Fcall_interactively): Do not test for mocklisp case.
20653
20654 * eval.c: Remove variables `Qmocklisp_arguments',
20655 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
20656 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
20657 Do not test for mocklisp case.
20658 (Fwhile): Remove unused variable `tem'.
20659 (syms_of_eval): Remove variable `moclisp-arguments'.
20660
20661 * data.c (wrong_type_argument): Remove mocklisp case.
20662
20663 * doc.c (Fdocumentation): Remove mocklisp case.
20664
20665 * emacs.c (main): Do not call syms_of_mocklisp.
20666
20667 2001-12-21 Richard M. Stallman <rms@gnu.org>
20668
20669 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
20670 to the left or to the right of the pointer, put it against
20671 the left screen edge.
20672
20673 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
20674
20675 * Makefile.in (distclean): Remove .gdbinit if we are building
20676 outside the source tree.
20677
20678 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
20679
20680 * w32.c (emacs_root_dir): New function.
20681
20682 * msdos.c (emacs_root_dir): New function.
20683
20684 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
20685 of the current drive as the fallback for default_directory.
20686
20687 * dired.c (file_name_completion): Run the elements of
20688 completion-ignored-extensions through ENCODE_FILE.
20689
20690 * lisp.h (scmp): Remove prototype, since it's now a static
20691 function private to dired.c.
20692
20693 2001-12-18 Richard M. Stallman <rms@gnu.org>
20694
20695 * dired.c (scmp): Function moved from minibuf.c.
20696 Delete multibyte handling--used only on encoded strings.
20697
20698 * minibuf.c (scmp): Function moved to dired.c.
20699
20700 * fns.c (merge): Add QUIT call.
20701
20702 2001-12-18 Dave Love <fx@gnu.org>
20703
20704 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
20705 language/georgian.el.
20706
20707 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
20708
20709 * Makefile.in (lisp, shortlisp): Synchronize with changes to
20710 lisp/Makefile.in:DONTCOMPILE.
20711
20712 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20713
20714 * xdisp.c (window_box_height): Do not return negative values.
20715 From Gerd Moellmann <gerd@gnu.org>.
20716
20717 * keyboard.c (head_table): Add missing braces around initializer.
20718
20719 * term.c (keys): Likewise.
20720
20721 * xfns.c (x_frame_parms, visual_classes): Likewise.
20722
20723 2001-12-17 Sam Steingold <sds@gnu.org>
20724
20725 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
20726 patch (COMPOSING_P, not COMPOSING).
20727
20728 2001-12-17 Richard M. Stallman <rms@gnu.org>
20729
20730 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
20731
20732 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
20733 before calling decode_coding.
20734
20735 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
20736
20737 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
20738 instead of only for COMPOSITION_DISABLED.
20739
20740 2001-12-16 Richard M. Stallman <rms@gnu.org>
20741
20742 * alloc.c (pure_alloc): After overflow, allocate just a small block.
20743
20744 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
20745
20746 * buffer.h (struct buffer): New field `display_error_modiff'.
20747 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
20748
20749 * window.c (Frecenter): Clear display_error_modiff field.
20750
20751 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
20752 Call redisplay_window, but not if display_error_modiff field says no.
20753 (redisplay_window_error): New function.
20754 (displayed_buffer): New variable.
20755 (redisplay_internal, redisplay_windows): Call the new functions
20756 instead of redisplay_window directly.
20757
20758 2001-12-15 Richard M. Stallman <rms@gnu.org>
20759
20760 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
20761
20762 2001-12-14 Andrew Innes <andrewi@gnu.org>
20763
20764 * makefile.w32-in (EMACSLOADPATH): Define.
20765 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
20766 (bootstrap-temacs): Remove dependency on bootstrap-clean.
20767
20768 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
20769
20770 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
20771 parameter have a numeric value all the time.
20772
20773 * w32fns.c (x_report_frame_params): Likewise.
20774
20775 2001-12-12 Richard M. Stallman <rms@gnu.org>
20776
20777 * fileio.c (Fwrite_region): Doc fix.
20778
20779 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
20780 (redisplay_internal): Call clear_image_cache only for window terminals.
20781
20782 2001-12-12 Gerd Moellmann <gerd@gnu.org>
20783
20784 * xdisp.c (move_it_vertically_backward): Change heuristic
20785 for the case that we didn't move far enough initially.
20786
20787 * window.c (Frecenter): Simplify computation in the case of window
20788 system frames and ARG < 0; use window_box_height.
20789
20790 2001-12-11 Richard M. Stallman <rms@gnu.org>
20791
20792 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
20793 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
20794
20795 2001-12-11 Andrew Innes <andrewi@gnu.org>
20796
20797 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
20798 arg is negative.
20799
20800 2001-12-11 Richard M. Stallman <rms@gnu.org>
20801
20802 * m/hp800.h: Split the __hpux conditional into the parts
20803 that are right for GNU/Linux too and the parts that are not.
20804 Use the former if GNU_LINUX.
20805 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
20806
20807 * s/gnu-linux.h (GNU_LINUX): Defined.
20808
20809 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20810
20811 * macros.c, msdos.c, w16select.c: Change doc-string comments to
20812 `new style' [w/`doc:' keyword].
20813
20814 2001-12-10 Jason Rumney <jasonr@gnu.org>
20815
20816 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
20817 before using.
20818
20819 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20820
20821 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
20822 keyword].
20823
20824 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
20825
20826 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
20827
20828 * s/hpux10.h (srand48): Don't undefine.
20829
20830 2001-12-09 Jason Rumney <jasonr@gnu.org>
20831
20832 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
20833 Add comment to explain where the struct came from.
20834 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
20835 (add_menu_item): Process pop-up menus first to avoid memory leak.
20836 (add_menu_item, w32_menu_display_help): Use `help' field as
20837 Lisp_Object.
20838 (w32_free_submenu_strings): Only free owner-drawn strings.
20839
20840 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20841
20842 * COPYING: Moved back.
20843
20844 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
20845 Add parentheses around && within ||.
20846
20847 * indent.c (compute_motion): Likewise.
20848
20849 * intervals.c (merge_properties_sticky): Likewise.
20850
20851 * coding.c (setup_coding_system, shrink_encoding_region)
20852 (Fdecode_sjis_char): Likewise.
20853
20854 2001-12-07 Andreas Schwab <schwab@suse.de>
20855
20856 * xdisp.c (display_mode_element): Don't read past end of string if
20857 it ends with '%'.
20858
20859 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
20860 can hold.
20861
20862 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
20863 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
20864 type changed to Lisp_Object.
20865 (syms_of_data): DEFVAR_LISP them.
20866
20867 2001-12-07 Richard M. Stallman <rms@gnu.org>
20868
20869 * callproc.c (init_callproc): Set Vdata_directory based on the source
20870 location whenever Emacs was run uninstalled.
20871
20872 2001-12-06 Paul Eggert <eggert@twinsun.com>
20873
20874 * config.in (HAVE_WORKING_VFORK): New #undefs.
20875 * process.c (create_process):
20876 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
20877 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
20878 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
20879 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
20880 * m/intel386.h (HAVE_VFORK): Likewise.
20881 * m/mips-siemens.h (HAVE_VFORK): Likewise.
20882 * m/mips.h (HAVE_VFORK): Likewise.
20883 * s/freebsd.h (vfork): Remove #define.
20884 * s/lynxos.h (HAVE_VFORK): Remove #undef.
20885 * s/usg5-4-2.h: Fix comment about vfork.
20886
20887 2001-12-06 Richard M. Stallman <rms@gnu.org>
20888
20889 * s/hpux10.h (random): Add undef.
20890 (HAVE_RANDOM): Define it just once.
20891
20892 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
20893
20894 * eval.c: Undo last change: the standard syntax is not wanted.
20895
20896 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
20897
20898 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
20899 scroll bars of the frame before deleting the frame itself. If the
20900 frame has a widget, delete the frame with XtDestroyWidget, and do
20901 not call XDestroyWindow before that.
20902
20903 2001-12-06 Kim F. Storm <storm@cua.dk>
20904
20905 * xfns.c (x_report_frame_params): Return actual fringe widths.
20906
20907 * w32fns.c (x_report_frame_params): Return actual fringe widths.
20908
20909 2001-12-05 Andrew Innes <andrewi@gnu.org>
20910
20911 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
20912 excessively large.
20913
20914 * insdel.c (make_gap_larger): New function.
20915 (make_gap_smaller): New function.
20916 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
20917 Call make_gap_smaller if arg is negative.
20918
20919 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
20920
20921 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
20922 Pass a dummy argument when calling interrupt_signal.
20923 (parse_menu_item): Mark disabled items before checking for empty def.
20924 (read_char_minibuf_menu_prompt): Make safety more visible.
20925 (read_key_sequence): Add a `first_unbound' variable.
20926 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
20927 unbound prefix as soon as we can detect it.
20928
20929 * doc.c (Fsnarf_documentation): Add prototype.
20930 (get_doc_string): Handle negative arguments.
20931 (Fdocumentation): Use AREF and ASIZE.
20932 Move the calls to get_doc_string to a single place.
20933 Don't confuse an interactive-spec for a docstring reference.
20934 (Fdocumentation_property): Take advantage of the fact that
20935 get_doc_string now ignores the sign of the docstring position.
20936
20937 * eval.c: Use standard syntax for usage in docstrings.
20938
20939 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20940
20941 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
20942
20943 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20944
20945 * xterm.c (x_draw_image_relief): Use predefined macro instead of
20946 constant when the value of `tool_bar_button_relief' is negative.
20947
20948 2001-12-02 Richard M. Stallman <rms@gnu.org>
20949
20950 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
20951 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
20952
20953 * fileio.c (read_non_regular): Delete Fsignal call.
20954
20955 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
20956
20957 * lisp.h (run_hook_list_with_args): Undo last change.
20958
20959 2001-12-01 Gerd Moellmann <gerd@gnu.org>
20960
20961 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
20962
20963 2001-12-01 Jason Rumney <jasonr@gnu.org>
20964
20965 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
20966
20967 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
20968 [!WM_MOUSELEAVE]: Define.
20969
20970 * w32menu.c (current_popup_menu, get_menu_item_info):
20971 (set_menu_item_info): New vars.
20972 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
20973 (w32_menu_show): Set current_popup_menu.
20974 (add_menu_item): Allocate new strings for owner-drawn menu items
20975 and help strings.
20976 Use owner-draw for disabled menu items again.
20977 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
20978 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
20979
20980 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
20981 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
20982 <WM_EXITMENULOOP>: Free menu strings.
20983 <WM_MOUSELEAVE>: Stop tracking mouse.
20984 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
20985
20986 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
20987 and mouse face.
20988
20989 2001-12-01 Kim F. Storm <storm@cua.dk>
20990
20991 The following changes add left-fringe and right-fringe
20992 frame parameters to adjust fringe widths, or remove one or
20993 both fringes.
20994
20995 * frame.h (struct frame): Remove trunc_area_pixel_width and
20996 trunc_area_cols fields.
20997 (Qleft_fringe, Qright_fringe): Declare.
20998 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
20999
21000 * frame.c (Qleft_fringe, Qright_fringe): New vars.
21001 (syms_of_frame): Initialize them.
21002
21003 * window.c (coordinates_in_window): Handle separate left and right
21004 fringe widths.
21005
21006 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
21007 and fringe_cols fields.
21008 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
21009 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
21010 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
21011 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
21012 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
21013 (x_compute_fringe_widths): Add prototype.
21014
21015 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
21016 fill fringe evenly with small dashes.
21017 (x_draw_fringe_bitmap): Clear background if necessary. Align and
21018 clip the new ZV bitmap to avoid jitter between rows.
21019 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
21020 background. Don't draw fringe bitmaps if fringe width is zero.
21021 (x_compute_fringe_widths): New function.
21022 (x_new_font, x_set_window_size_1): Use it.
21023
21024 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
21025 (x_set_frame_parameters): Process `font' parameter before other
21026 parameters as fringe widths depend on it.
21027 (x_set_fringe_width): New function.
21028 (x_figure_window_size): Use x_compute_fringe_widths.
21029 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
21030 parameters.
21031
21032 * widget.c (set_frame_size): Use x_compute_fringe_widths.
21033 (EmacsFrameSetCharSize): Ditto.
21034
21035 * w32term.h: Merged changes from xterm.h.
21036 * w32term.c: Merged changes from xterm.c.
21037 * w32fns.c: Merged changes from xfns.c.
21038
21039 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21040
21041 * COPYING: Removed.
21042
21043 2001-11-29 Dave Love <fx@gnu.org>
21044
21045 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
21046 extra extra slot.
21047 (detect_coding_mask): Fix call of detect_coding_iso2022.
21048
21049 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21050
21051 * fileio.c (file-name-coding-system)
21052 (default-file-name-coding-system): Doc fix (links to referenced
21053 variables added).
21054
21055 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
21056
21057 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
21058 Add dummy uses of gcproN variables.
21059
21060 * category.c (describe_category, describe_category_1)
21061 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
21062 (syms_of_category): Don't defsubr Sdescribe_categories.
21063
21064 2001-11-28 Richard M. Stallman <rms@gnu.org>
21065
21066 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
21067
21068 * Makefile.in (lispdir): New variable, referring to build dir.
21069 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
21070
21071 2001-11-28 Andrew Innes <andrewi@gnu.org>
21072
21073 * w32menu.c (w32_menu_display_help): Actually add the new argument
21074 OWNER.
21075
21076 2001-11-28 Jason Rumney <jasonr@gnu.org>
21077
21078 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
21079 menu items. From David Ponce <dponce@wanadoo.fr>.
21080 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
21081 conditionally.
21082 (w32_menu_display_help): New argument OWNER. Rewritten to store a
21083 help event in the owner frame's keyboard buffer.
21084
21085 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
21086 (Fx_show_tip): Don't subtract last width from row width.
21087
21088 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
21089 (w32_read_socket): Use EQ to compare frames.
21090
21091 2001-11-28 Gerd Moellmann <gerd@gnu.org>
21092
21093 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
21094 OVERLAPS_P.
21095
21096 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21097
21098 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
21099 `gcpro3' and `gcpro4'.
21100
21101 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
21102
21103 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
21104
21105 * ccl.c: Use AREF and ASIZE.
21106
21107 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
21108
21109 * lisp.h (run_hook_list_with_args): Remove.
21110 (LIST_END_P): Fix call to wrong_type_argument.
21111 (make_fixnum_or_float): Use EMACS_INT rather than int.
21112
21113 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
21114
21115 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
21116 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
21117
21118 * eval.c: Use AREF and ASIZE.
21119 (Ffetch_bytecode): Add the file name to the error message.
21120
21121 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
21122 which match the end of the file-name.
21123 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
21124 is not a valid env var, but leave it as is instead.
21125
21126 * keymap.c (access_keymap): Handle t bindings like nil bindings.
21127 Make nil bindings in char-tables transparent.
21128 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
21129
21130 2001-11-26 Richard M. Stallman <rms@gnu.org>
21131
21132 * textprop.c (set_text_properties_1): Allow START, END in either order.
21133 Do nothing if range is empty.
21134
21135 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
21136
21137 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
21138 (clean): Not here.
21139
21140 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
21141
21142 * textprop.c (set_text_properties_1): Clearly mark that the
21143 interval should not be empty.
21144
21145 * intervals.c (graft_intervals_into_buffer):
21146 Don't call set_text_properties_1 on an empty interval.
21147
21148 2001-11-25 Richard M. Stallman <rms@gnu.org>
21149
21150 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
21151
21152 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
21153 don't lose the data in it.
21154
21155 2001-11-25 Juanma Barranquero <lektu@terra.es>
21156
21157 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
21158
21159 * buffer.c (Fkill_buffer): Likewise.
21160
21161 * print.c (temp_output_buffer_setup): Likewise.
21162
21163 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
21164
21165 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
21166
21167 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
21168
21169 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
21170 Niemitalo <kon@iki.fi>.
21171
21172 2001-11-25 Jason Rumney <jasonr@gnu.org>
21173
21174 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
21175
21176 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
21177 (Fx_show_tip): Block input during frame creation.
21178 (Fx_show_tip, Fx_hide_tip): Enable.
21179
21180 2001-11-24 Richard M. Stallman <rms@gnu.org>
21181
21182 * lread.c (Fload): Detect recursive load error for more than 3
21183 nestings of the same file.
21184 (Vrecursive_load_depth_limit): Variable deleted.
21185 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
21186
21187 2001-11-24 Jason Rumney <jasonr@gnu.org>
21188
21189 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
21190 mouse position if either left or top is not specified.
21191
21192 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
21193 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
21194 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
21195 (my_create_tip_window): Assign tip_window.
21196 (x_create_tip_frame): Use same defaults as X.
21197 (compute_tip_xy): Remove unused variable. Use full screen width.
21198 (Fx_show_tip): Do not double height. Call ShowWindow directly.
21199
21200 * w32term.c (x_after_update_window_line): Doc fix.
21201 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
21202 frames.
21203 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
21204
21205 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
21206 for all Windowed systems.
21207
21208 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
21209
21210 * msdos.c (IT_clear_screen): If the frame's faces are not yet
21211 realized, use the initial screen colors to clear the screen.
21212
21213 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21214
21215 * textprop.c (Fset_text_properties): Remove unused variables
21216 `unchanged', `prev_changed', `s' and `len'.
21217
21218 * search.c (Freplace_match): Remove unused variable `inslen'.
21219
21220 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
21221
21222 2001-11-22 Jason Rumney <jasonr@gnu.org>
21223
21224 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
21225 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
21226 (my_create_tip_window): New function.
21227 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
21228 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
21229
21230 2001-11-20 Jason Rumney <jasonr@gnu.org>
21231
21232 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
21233 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
21234
21235 * w32fns.c (Vw32_system_coding_system): Remove.
21236 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
21237
21238 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
21239
21240 * fileio.c (Fwrite_region): Move choose_write_coding_system to
21241 after build_annotations.
21242
21243 * syntax.c (describe_syntax): Add dummy arg.
21244 (describe_syntax_1): Update call to describe_vector.
21245
21246 * category.c (describe_category): Add dummy arg.
21247 (describe_category_1): Update call to describe_vector.
21248
21249 * keymap.c (Fdescribe_vector): Add `describer' parameter.
21250 (describe_command, describe_translation): Add dummy second param.
21251 (describe_map): Call elt_describer with two arguments.
21252 (describe_vector_princ): Add `fun' parameter.
21253 Call it instead of the hardcoded `princ'.
21254 (describe_vector): Add arg `args'.
21255 Pass it as a new second argument to elt_describer.
21256
21257 * keymap.h (describe_vector): Update prototype.
21258
21259 * frame.c: Don't include keymap.h any more.
21260 (keys_of_frame): Remove.
21261
21262 * lisp.h (keys_of_frame): Remove declaration.
21263
21264 * emacs.c (main): Don't call `keys_of_frame' any more.
21265
21266 2001-11-14 Andreas Schwab <schwab@suse.de>
21267
21268 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
21269 if defined, 0 otherwise.
21270 (MAP_FAILED): Define if not defined and use it to test mmap failure.
21271 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
21272
21273 2001-11-19 Richard M. Stallman <rms@gnu.org>
21274
21275 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
21276
21277 2001-11-18 Jason Rumney <jasonr@gnu.org>
21278
21279 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
21280 (x_draw_bar_cursor): If the background color of the glyph under
21281 the cursor equals the frame's cursor color, use the glyph's
21282 foreground color for drawing the bar cursor.
21283 (x_after_update_window_line): Clear internal border in different
21284 circumstances.
21285 (w32_set_vertical_scroll_bar): Check for width and height > 0.
21286 (w32_draw_relief_rect): Correct relief by 1 pixel.
21287 (x_set_glyph_string_background_width):
21288 Set extends_to_end_of_line_p if the row's fill_line_p is set and
21289 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
21290 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
21291 if cursor_in_non_selected_windows is false.
21292 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
21293 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
21294 Notice if cursor gets overwritten.
21295 (notice_overwritten_cursor): Renamed from
21296 note_overwritten_text_cursor. Rewritten to take glyph widths
21297 into account, and to take X positions as parameters.
21298 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
21299 around call to x_draw_glyphs.
21300 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
21301 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
21302 color to use for image glyph reliefs.
21303 (x_draw_image_relief): Accept zero tool_bar_button_relief.
21304 (glyph_rect): Remove unused variable `area'.
21305
21306 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
21307 some items.
21308 (x_set_internal_border_width): Set frame garbaged when window
21309 doesn't exist yet.
21310 (Fx_create_frame): Accept zero tool_bar_button_relief.
21311 (x_clear_image_1, four_corners_best, image_background)
21312 (image_background_transparent): New functions.
21313 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
21314 (gs_format): Add `:background' entry.
21315 (lookup_image): Set IMG's background color if specified.
21316 (pbm_load, xbm_load_image, png_load): Set IMG's background field
21317 when appropriate.
21318 (x_clear_image_1): Reset `background_valid' and
21319 `background_transparent_valid' fields.
21320 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
21321 calculating it here. Set IMG's background_transparent field.
21322 (enum xpm_keyword_index): Add XPM_BACKGROUND.
21323 (enum png_keyword_index): Add PNG_BACKGROUND.
21324 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21325 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
21326 (enum gif_keyword_index): Add GIF_BACKGROUND.
21327 (enum gs_keyword_index): Add GS_BACKGROUND.
21328 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
21329 Pre-calculate image background color where necessary.
21330 (x_create_x_image_and_pixmap, xbm_load, gs_load):
21331 Use display info's n_cbits entry for screen depth.
21332 (Fx_show_tip): Remove unused variables `buffer', `top',
21333 `left', `max_width' and `max_height'.
21334
21335 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
21336
21337 2001-11-18 Gerd Moellmann <gerd@gnu.org>
21338
21339 * puresize.h (BASE_PURESIZE): Increase to 750000.
21340
21341 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21342
21343 * frame.c (Fframe_live_p): Doc fix.
21344
21345 2001-11-18 Richard M. Stallman <rms@gnu.org>
21346
21347 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
21348 (message_dolog_marker3): New static variables hold three markers.
21349 (syms_of_xdisp): Initialize and staticpro them.
21350 (message_dolog): Use message_dolog_marker1..3 instead of
21351 allocating markers each time. Unchain them when done.
21352
21353 2001-11-17 Richard M. Stallman <rms@gnu.org>
21354
21355 * doc.c (Fsnarf_documentation): Doc fix.
21356
21357 2001-11-17 Andreas Schwab <schwab@suse.de>
21358
21359 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
21360
21361 2001-11-17 Richard M. Stallman <rms@gnu.org>
21362
21363 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
21364
21365 2001-11-17 Jason Rumney <jasonr@gnu.org>
21366
21367 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
21368
21369 2001-11-17 Gerd Moellmann <gerd@gnu.org>
21370
21371 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
21372 with invalid position.
21373
21374 2001-11-16 Richard M. Stallman <rms@gnu.org>
21375
21376 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
21377
21378 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
21379 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
21380 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
21381
21382 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
21383
21384 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
21385
21386 * fileio.c (build_annotations): Split off the tail.
21387 (build_annotations_2): New fun. Extracted from build_annotations.
21388 (Fwrite_region): Split the call to build_annotations into two
21389 calls to build_annotations and build_annotations_2.
21390
21391 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21392
21393 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
21394 clear_waiting_for_input with argument.
21395
21396 * xterm.h (x_update_cursor): Remove duplicated prototype.
21397
21398 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
21399
21400 * xterm.c (waiting_for_input): Remove unnecessary declaration.
21401
21402 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
21403
21404 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
21405
21406 * fileio.c (choose_write_coding_system): New fun, extracted
21407 from Fwrite_region.
21408 (Fwrite_region): Use it.
21409
21410 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
21411 (funcall_lambda, run_hook_with_args): Make static and add prototype.
21412 (ml_apply, find_handler_clause): Add prototype.
21413
21414 2001-11-16 Eli Zaretskii <eliz@gnu.org>
21415
21416 * config.in: Add #undef HAVE_COFF_H.
21417
21418 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
21419 Required for ISC 4.1.
21420
21421 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
21422
21423 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
21424 Andrew Wiseman <a.wiseman@btclick.com>.
21425
21426 2001-11-16 Kim F. Storm <storm@cua.dk>
21427
21428 The following changes are made to clean up the various internal
21429 references to the fringes to actually use the term `fringe' for
21430 them. Previously, they were called `flags areas', `bitmap areas',
21431 `left/right side of windows', or implicitly as `flags' or
21432 `bitmaps':
21433
21434 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
21435 Comments fixed. Use renamed symbols.
21436
21437 * dispnew.c: Comment fix. Use renamed symbols.
21438
21439 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
21440 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
21441 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
21442
21443 * msdos.c: Comment fix.
21444
21445 * w32fns.c: Use renamed symbols.
21446
21447 * w32term.c: Comment fixes. Use renamed symbols.
21448 (fringe_bitmap_type): Renamed from bitmap_type.
21449 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21450 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
21451 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
21452
21453 * w32term.h: Comment fixes. Use renamed symbols.
21454 (fringes_extra): Renamed from flags_areas_extra.
21455 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21456 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21457 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21458 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21459 (FRAME_X_LEFT_FRINGE_WIDTH):
21460 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21461 (FRAME_X_RIGHT_FRINGE_WIDTH):
21462 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
21463
21464 * widget.c: Use renamed symbols.
21465
21466 * window.c: Comment fixes. Use renamed symbols.
21467 (coordinates-in-window-p): Doc fix.
21468
21469 * xdisp.c: Comment fixes. Use renamed symbols.
21470
21471 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
21472
21473 * xfns.c: Use renamed symbols.
21474
21475 * xterm.c: Comment fixes. Use renamed symbols.
21476 (fringe_bitmap_type): Renamed from bitmap_type.
21477 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21478 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
21479 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
21480
21481 * xterm.h: Comment fixes. Use renamed symbols.
21482 (fringes_extra): Renamed from flags_areas_extra.
21483 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21484 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21485 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21486 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21487 (FRAME_X_LEFT_FRINGE_WIDTH):
21488 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21489 (FRAME_X_RIGHT_FRINGE_WIDTH):
21490 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
21491
21492 2001-11-15 Jason Rumney <jasonr@gnu.org>
21493
21494 * w32menu.c (add-menu-item): Make help_echo and radio buttons
21495 work for most menu items. From David Ponce
21496 <david.ponce@wanadoo.fr>.
21497
21498 2001-11-15 Gerd Moellmann <gerd@gnu.org>
21499
21500 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
21501 Some x_set_* function expect to be called even if old and new
21502 value are equal.
21503
21504 * xdisp.c (build_desired_tool_bar_string): Accept zero
21505 tool_bar_button_relief.
21506
21507 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
21508
21509 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
21510
21511 * xterm.c (x_draw_bar_cursor): If the background color of the
21512 glyph under the cursor equals the frame's cursor color, use
21513 the glyph's foreground color for drawing the bar cursor.
21514
21515 * dispnew.c (direct_output_forward_char): Fix character/byte
21516 position comparison.
21517
21518 2001-11-15 Miles Bader <miles@gnu.org>
21519
21520 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
21521 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
21522 Update arguments to find_field.
21523 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
21524 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
21525 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
21526 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
21527
21528 2001-11-14 Richard M. Stallman <rms@gnu.org>
21529
21530 * editfns.c (Fpropertize): Allow call with 1 arg.
21531
21532 * dispextern.h (image_background, image_background_transparent):
21533 Conditionalize on HAVE_X_WINDOWS.
21534
21535 2001-11-13 Richard M. Stallman <rms@gnu.org>
21536
21537 * print.c (Fprin1_to_string): Doc fix.
21538
21539 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
21540
21541 * floatfns.c (Fceiling, Ffloor): Doc fixes.
21542
21543 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
21544
21545 * fileio.c (Ffile_accessible_directory_p): Doc fix.
21546
21547 * eval.c (syms_of_eval): Doc fix.
21548
21549 * coding.c (syms_of_coding): Doc fix.
21550
21551 * doc.c (Fsnarf_documentation): Doc fix.
21552
21553 * dispnew.c (syms_of_display): Doc fix.
21554
21555 * category.c (Fget_unused_category): Doc fix.
21556
21557 * buffer.c (syms_of_buffer): Doc fixes.
21558
21559 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
21560
21561 * print.c (prin1, print): Doc fix.
21562
21563 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21564
21565 * fontset.h: Remove declarations of variables
21566 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
21567
21568 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
21569 `Vclip_large_size_font'.
21570
21571 2001-11-13 Jason Rumney <jasonr@gnu.org>
21572
21573 * w32fns.c: Doc fix.
21574
21575 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21576
21577 * xfaces.c (Fface_attributes_as_vector): Doc fix.
21578
21579 * fns.c: Doc fix.
21580
21581 * emacs.c: Doc fix.
21582
21583 * coding.c: Doc fix.
21584
21585 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
21586 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
21587 `new style' [w/`doc:' keyword].
21588
21589 2001-11-12 Richard M. Stallman <rms@gnu.org>
21590
21591 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
21592 LeaveNotify events. Only FocusIn and FocusOut do that now.
21593 (x_display_and_set_cursor): Do display hollow cursors in active
21594 minibuffer windows when they are not selected.
21595
21596 2001-11-12 Jason Rumney <jasonr@gnu.org>
21597
21598 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
21599 * w32term.c: Change doc-string comments to `new style'
21600 [w/`doc:' keyword]. Doc fixes.
21601
21602 * w32fns.c: Don't define max.
21603 (Fx_open_connection): Only execute once.
21604
21605 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21606
21607 * ccl.c: Change macros to use do-while block instead of if-else.
21608 Use braces to follow GNU Coding Standards.
21609
21610 2001-11-11 Richard M. Stallman <rms@gnu.org>
21611
21612 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
21613
21614 * lread.c (read_escape): Use end_of_file_error for reporting eof.
21615
21616 * insdel.c (replace_range): Use adjust_markers_for_replace
21617 instead of adjust_markers_for_delete and adjust_markers_for_insert.
21618
21619 * intervals.h (set_text_properties, set_text_properties_1): Declare.
21620
21621 * textprop.c (set_text_properties_1): New subroutine
21622 broken out of set_text_properties.
21623 (set_text_properties): Use set_text_properties_1.
21624
21625 * intervals.c (graft_intervals_into_buffer):
21626 Use set_text_properties_1 to clear out properties.
21627
21628 * search.c (Freplace_match): Use replace_range to insert
21629 and delete. Don't request property inheritance from
21630 surrounding text.
21631
21632 2001-11-10 Jason Rumney <jasonr@gnu.org>
21633
21634 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
21635 vertical fonts. Allow them if face name is explicitly specified.
21636 Do not give up if we find a font that cannot be converted to an xlfd.
21637
21638 2001-11-10 Gerd Moellmann <gerd@gnu.org>
21639
21640 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
21641 instead of malloc/free.
21642
21643 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21644
21645 * xfaces.c (merge_face_vectors): Use braces to follow GNU
21646 Coding Standards.
21647 (Finternal_set_lisp_face_attribute): Likewise.
21648
21649 * buffer.c (Fbury_buffer): Likewise.
21650
21651 * indent.c (current_column_1): Remove unused variable `prev_col'.
21652
21653 * coding.c (encode_coding): Use precomputed value of `src'.
21654 (encode_coding): Remove unused variable `src_end'.
21655 (code_convert_region): Remove unused variables `count'.
21656
21657 2001-11-07 Jason Rumney <jasonr@gnu.org>
21658
21659 * w32term.c (x_display_and_set_cursor): Do not move system caret
21660 if cursor_glyph is NULL.
21661
21662 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21663
21664 * keymap.c (access_keymap): Fix compilation error.
21665
21666 2001-11-07 Miles Bader <miles@gnu.org>
21667
21668 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
21669
21670 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21671
21672 * intervals.c (graft_intervals_into_buffer):
21673 Remove #ifdef'd-out code.
21674 (graft_intervals_into_buffer): Remove unused variable `middle'.
21675
21676 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
21677 code (eval-current-buffer).
21678 Change doc-string comments to `new style' [w/`doc:' keyword].
21679
21680 2001-11-06 Richard M. Stallman <rms@gnu.org>
21681
21682 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
21683
21684 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
21685
21686 * lread.c (read1): Fix behavior with nested backquoting.
21687
21688 * keyboard.c (make_lispy_event): Check integerness and fix
21689 Lisp_Object/int mixup.
21690
21691 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21692
21693 * fns.c (copy_hash_table): Remove unused variable `v'.
21694
21695 * fontset.c (fontset_font_pattern): Remove unused variable
21696 `family_registry'.
21697
21698 * indent.c (current_column_1): Remove unused variable `prev_col'.
21699
21700 2001-11-05 Richard M. Stallman <rms@gnu.org>
21701
21702 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
21703
21704 * buffer.c (Fkill_buffer): Don't delete auto save file
21705 if buffer is modified.
21706
21707 2001-11-05 Andrew Innes <andrewi@gnu.org>
21708
21709 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
21710 CHECK_NUMBER_CDR.
21711
21712 2001-11-05 Richard M. Stallman <rms@gnu.org>
21713
21714 * unexelf.c (unexec): Minor changes; clean up comments.
21715
21716 2001-11-05 Sam Steingold <sds@gnu.org>
21717
21718 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
21719
21720 2001-11-05 Andreas Schwab <schwab@suse.de>
21721
21722 * sound.c (sound_perror): Save errno from being clobbered.
21723
21724 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
21725
21726 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
21727 the program image directly.
21728
21729 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21730
21731 * buffer.h (Fbuffer_local_value): Add prototype.
21732
21733 2001-11-04 Richard M. Stallman <rms@gnu.org>
21734
21735 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
21736 and CHECK_BUFFER.
21737
21738 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
21739 (record_char): Likewise.
21740
21741 * keyboard.c (make_lispy_event): Don't insist a drag event must
21742 move to a different buffer position. Instead, check for moving at
21743 least double_click_fuzz.
21744
21745 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
21746
21747 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
21748
21749 * indent.c (current_column_1, Fmove_to_column): Separate the code
21750 for display-table glyphs from the code for buffer text, to fix
21751 bugs in the former.
21752
21753 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
21754
21755 * buffer.c (Fbuffer_local_value): New function.
21756 (syms_of_buffer): Defsubr it.
21757
21758 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
21759 value of `cursor-in-non-selected-windows'.
21760
21761 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
21762 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
21763 (syms_of_xdisp): Initialize it.
21764
21765 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21766
21767 * xfns.c (Fx_create_frame): Doc fix.
21768
21769 * coding.c: Change doc-string comments to `new style' [w/`doc:'
21770 keyword].
21771
21772 * eval.c (top_level_value, top_level_set): Remove commented and
21773 #ifdef'd-out code.
21774 (Fdefvar): Fix usage in doc-string.
21775
21776 2001-11-03 Richard M. Stallman <rms@gnu.org>
21777
21778 * xfns.c: Include unistd.h, if it exists.
21779
21780 * editfns.c: Move the include of ctype.h after unistd.h.
21781
21782 * gmalloc.c: Test BROKEN_PROTOTYPES.
21783
21784 2001-11-03 Ken Raeburn <raeburn@gnu.org>
21785
21786 * lisp.h (CHECK_STRING_CAR): New macro.
21787 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
21788 treating XCAR and XCDR as lvalues.
21789 (openp): Use CHECK_STRING_CAR.
21790 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
21791
21792 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
21793
21794 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
21795 (SIGMASKTYPE): Define.
21796
21797 * syssignal.h (sigunblock): Don't define if already defined.
21798
21799 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21800
21801 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
21802 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
21803 Fix typos in comments.
21804
21805 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
21806 and #ifdef'd-out code.
21807 Fix and reindent comments.
21808
21809 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
21810
21811 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
21812 argument `i' in macros.
21813
21814 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
21815 `i' in macros.
21816
21817 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
21818 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
21819 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
21820 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
21821 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
21822 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
21823 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
21824 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
21825 in macros.
21826
21827 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
21828 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
21829 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
21830 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
21831 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
21832 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
21833 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
21834 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
21835 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
21836 (remove unused second argument).
21837
21838 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
21839
21840 * syntax.c (describe_syntax): New wrapper.
21841 (Finternal_describe_syntax_value): Rename from describe_syntax.
21842 Don't insert space at front and \n at the end.
21843 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
21844
21845 * regex.c (re_wctype): Try to fix some warnings.
21846 (regcomp, regexec): Don't forget the __restrict.
21847
21848 2001-11-02 Richard M. Stallman <rms@gnu.org>
21849
21850 * textprop.c (Fget_char_property): Doc fix.
21851
21852 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21853
21854 * process.c (Fstart_process): Add usage to doc-string.
21855
21856 * data.c (Fsetq_default): Ditto.
21857
21858 * callint.c (Finteractive): Ditto.
21859
21860 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
21861
21862 * macros.c: Don't include keymap.h any more.
21863
21864 2001-11-01 Richard M. Stallman <rms@gnu.org>
21865
21866 * data.c (Fmake_local_variable): Doc fix.
21867
21868 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
21869 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
21870
21871 * keymap.c (Fdescribe_buffer_bindings): Print character property
21872 bindings along with or instead of the buffer local map.
21873 Make the overriding maps override what they should.
21874
21875 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21876
21877 * window.c (grow_mini_window): Fix typo in comment.
21878
21879 2001-11-01 Gerd Moellmann <gerd@gnu.org>
21880
21881 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
21882 (XTset_vertical_scroll_bar): Likewise.
21883
21884 * xfns.c (x_build_heuristic_mask): Use four_corners_best
21885 instead of IMAGE_BACKGROUND.
21886
21887 * xfns.c (four_corners_best): Reindent.
21888
21889 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
21890 Handle :box so that it is possible to specify sexprs.
21891
21892 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
21893
21894 * s/hpux11.h: New file.
21895
21896 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21897
21898 * emacs.c (USAGE1): Show command line option --no-window-system
21899 instead of --no-windows in usage.
21900 (standard_args): Rename --no-windows to --no-window-system.
21901 (bug_reporting_address): Follow Emacs coding conventions.
21902
21903 * eval.c (Fcommandp): Doc fix.
21904 Change doc-string comments to `new style' [w/`doc:' keyword].
21905
21906 * frame.c (Fframe_live_p): Doc fix.
21907
21908 * buffer.c (selective-display-ellipses): Doc fix.
21909
21910 2001-10-31 Gerd Moellmann <gerd@gnu.org>
21911
21912 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
21913
21914 * xfaces.c (realize_x_face): If C is not a single-byte character,
21915 set the face's colors_copied_bitwise_p instead of the defaulted_p
21916 members which have a different meaning.
21917 (free_face_colors): Do nothing for a face whose colors have been
21918 copied bitwise.
21919
21920 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
21921
21922 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21923
21924 * marker.c, mocklisp.c: Change doc-string comments to `new style'
21925 [w/`doc:' keyword].
21926
21927 2001-10-31 Gerd Moellmann <gerd@gnu.org>
21928
21929 * fns.c (require_unwind): Return Lisp_Object.
21930
21931 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21932
21933 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
21934 (last-input-char): Revert doc-string to be the same as the
21935 doc-string of `last-input-event'.
21936
21937 * xdisp.c: Fix typos in comments.
21938
21939 2001-10-31 Gerd Moellmann <gerd@gnu.org>
21940
21941 * window.c (grow_mini_window): Handle case that the root
21942 window is already smaller than the nominal mininum height.
21943
21944 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
21945
21946 * emacs.c (main): Don't call keys_of_macros any more.
21947
21948 * lisp.h (keys_of_macros): Remove.
21949
21950 * macros.c (keys_of_macros): Remove.
21951
21952 * xfaces.c (Fface_attribute_relative_p): Declare args.
21953
21954 2001-10-30 Jason Rumney <jasonr@gnu.org>
21955
21956 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
21957 (enum_font_cb2): Ignore fonts with vertical orientation.
21958
21959 2001-10-30 Richard M. Stallman <rms@gnu.org>
21960
21961 * keyboard.c (Finput_pending_p): Doc fix.
21962
21963 2001-10-30 Gerd Moellmann <gerd@gnu.org>
21964
21965 * xterm.c (x_after_update_window_line): Don't run the code
21966 clearing in borders for rows whose visible height is 0.
21967
21968 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
21969 resized_p flag is set. If not set, use the much less flickering
21970 method previously used.
21971
21972 * dispnew.c (change_frame_size_1): Set frame's resized_p.
21973
21974 * frame.h (struct frame) <resized_p>: New member.
21975
21976 * lread.c (to_multibyte): Ensure read_buffer is at least twice
21977 as large as the number of bytes to convert.
21978
21979 * lread.c (to_multibyte): New function.
21980 (read1): Use it.
21981
21982 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
21983
21984 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
21985
21986 2001-10-30 Gerd Moellmann <gerd@gnu.org>
21987
21988 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
21989 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
21990 if the row's fill_line_p is set and drawing the last glyph with
21991 DRAW_IMAGE_{RAISED,SUNKEN}.
21992
21993 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
21994
21995 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
21996
21997 * xmenu.c: Include coding.h and charset.h.
21998 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
21999 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
22000 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
22001 Explicitly set wv->help. Use `TRUE' rather than `True'.
22002 (menu_help_callback): Use empty_string.
22003
22004 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
22005 (Fx_popup_dialog): Explicitly init f.
22006 (w32_menu_display_help): Use empty_string.
22007
22008 2001-10-29 Richard M. Stallman <rms@gnu.org>
22009
22010 * fns.c (Frequire): Detect recursive try to require the same
22011 feature 3 or more levels deep, and get error.
22012 (require_unwind): New subroutine.
22013 (require_nesting_list): New variable.
22014 (syms_of_fns): Init and staticpro it.
22015
22016 * print.c (print_object): Clarify indication of insertion type.
22017
22018 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
22019
22020 * coding.c (syms_of_coding): Document that locale-coding-system is
22021 used for decoding input on X.
22022
22023 * window.c (Fscroll_left, Fscroll_right): Doc fix.
22024
22025 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22026
22027 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
22028 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
22029
22030 2001-10-29 Gerd Moellmann <gerd@gnu.org>
22031
22032 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
22033 use NO_CURSOR if cursor_in_non_selected_windows is false.
22034
22035 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
22036 the slant attribute if FRAME is t.
22037
22038 * xfns.c (x_set_internal_border_width): Set frame garbaged
22039 when X window doesn't exist yet.
22040
22041 * xterm.c (x_after_update_window_line): Clear internal border
22042 in different circumstances.
22043
22044 * xterm.c (XTread_socket) <KeyPress>: Don't use
22045 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
22046 <handa@etl.go.jp>.
22047
22048 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
22049
22050 * m/ibms390.h: New file. From Adam Thornton
22051 <athornton@sinenomine.net>.
22052
22053 2001-10-28 Gerd Moellmann <gerd@gnu.org>
22054
22055 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
22056
22057 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
22058 a loop counter.
22059
22060 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22061
22062 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
22063
22064 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
22065 keyword].
22066 Fix typos in comments.
22067
22068 * emacs.c (bug_reporting_address): New function.
22069 Use it when displaying usage message.
22070
22071 * minibuf.c (read_minibuf): Remove unused external declaration of
22072 variable `Qread_only'.
22073
22074 * keymap.c (access_keymap): Remove unused variable `charset'.
22075
22076 2001-10-28 Miles Bader <miles@gnu.org>
22077
22078 * xfaces.c (merge_face_heights): Handle TO being relative as well.
22079 Remove #ifdef'd-out code.
22080 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
22081 (syms_of_xfaces): Initialize them.
22082
22083 2001-10-27 Jason Rumney <jasonr@gnu.org>
22084
22085 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
22086 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
22087 position using the system caret.
22088
22089 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
22090 (w32_system_caret_height, w32_system_caret_x)
22091 (w32_system_caret_y): New variables for tracking system caret.
22092 (w32_initialize): Initialize them.
22093 (x_display_and_set_cursor): Make system caret follow the active cursor.
22094
22095 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
22096 New messages types.
22097
22098 * w32term.c (note_mouse_highlight): Clear old help_echo.
22099
22100 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22101
22102 * xterm.c: Fix typo in a comment.
22103
22104 * emacs.c: Fix typos in comments.
22105 Remove unnecessary spaces.
22106 Change doc-string comments to `new style' [w/`doc:' keyword].
22107 (USAGE2): Fix typos in usage string.
22108
22109 * xterm.c: Fix typo in a comment.
22110
22111 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
22112 emacs.c.
22113
22114 2001-10-27 Gerd Moellmann <gerd@gnu.org>
22115
22116 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
22117 instead of 1/2 line_height in the heuristic for skipping
22118 farther backward when target_y was not reached.
22119
22120 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
22121 Display errno only if non-zero.
22122 (sound_warning): New function.
22123 (vox_configure): Don't treat failing to set sample rate as error.
22124 (various places): Improve error messages.
22125
22126 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
22127
22128 * fileio.c (Faccess_file): Run the argument filename through
22129 Fexpand_file_name, before using it.
22130
22131 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
22132 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
22133
22134 2001-10-26 Gerd Moellmann <gerd@gnu.org>
22135
22136 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
22137
22138 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
22139 Fix clearing in the case of scroll bars on the right.
22140
22141 2001-10-26 Juanma Barranquero <lektu@terra.es>
22142
22143 * w32gui.h (XImage): Add a dummy typedef.
22144
22145 2001-10-26 Gerd Moellmann <gerd@gnu.org>
22146
22147 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
22148
22149 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
22150
22151 * frame.c (Fframe_parameter): Fix last change.
22152
22153 * fileio.c: Revert last change (which removed old commented-out
22154 version of expand-file-name). Add a comment that explains why
22155 this old version should not be removed.
22156
22157 2001-10-25 Gerd Moellmann <gerd@gnu.org>
22158
22159 * frame.c (Fframe_parameter): Fix a bug whereby some
22160 ``artificial'' frame parameters, like `minibuffer' were not
22161 obtained by calling Fframe_parameters.
22162
22163 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
22164 cursor differently.
22165
22166 * xdisp.c (move_it_vertically_backward): Compute line height
22167 differently. Add heuristic to try to be more compatible to 20.x.
22168
22169 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
22170
22171 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
22172
22173 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
22174 boolean.
22175
22176 2001-10-25 Miles Bader <miles@gnu.org>
22177
22178 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
22179 BG is a pointer to a structure, not a structure.
22180 (gif_format, png_format): Add missing commas.
22181
22182 2001-10-24 Richard M. Stallman <rms@gnu.org>
22183
22184 * xfaces.c (Fface_attributes_as_vector): New function.
22185 (syms_of_xfaces): Defsubr it.
22186
22187 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22188
22189 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
22190 variable `area'.
22191
22192 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22193
22194 * search.c (scan_newline): Remove unused variable `selective_display'.
22195
22196 2001-10-25 Miles Bader <miles@gnu.org>
22197
22198 * dispextern.h (struct image): Add `background',
22199 `background_valid', and `background_transparent' fields.
22200 (image_background, image_background_transparent): New declarations.
22201 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
22202 * xfns.c (image_background, image_background_transparent)
22203 (four_corners_best): New functions.
22204 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
22205 (gs_format): Add `:background' entry.
22206 (lookup_image): Set IMG's background color if specified.
22207 (pbm_load, xbm_load_image, png_load): Set IMG's background field
22208 when appropriate.
22209 (x_clear_image_1): Reset `background_valid' and
22210 `background_transparent_valid' fields.
22211 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
22212 calculating it here. Set IMG's background_transparent field.
22213 (enum xpm_keyword_index): Add XPM_BACKGROUND.
22214 (enum png_keyword_index): Add PNG_BACKGROUND.
22215 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
22216 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
22217 (enum gif_keyword_index): Add GIF_BACKGROUND.
22218 (enum gs_keyword_index): Add GS_BACKGROUND.
22219 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
22220 Pre-calculate image background color where necessary.
22221 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
22222 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
22223 color to use for image glyph reliefs.
22224
22225 2001-10-24 Gerd Moellmann <gerd@gnu.org>
22226
22227 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
22228 in full-width rows.
22229
22230 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
22231 Fix clearing of area not covered by scroll bar.
22232
22233 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22234
22235 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
22236 and `real_start'.
22237 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
22238 (glyph_rect): Remove unused variable `area'.
22239
22240 2001-10-24 Gerd Moellmann <gerd@gnu.org>
22241
22242 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
22243
22244 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
22245 (row_containing_pos): Take additional argument DY.
22246 Treat rows ending in middle of char differently.
22247 (display_line): Handle tabs on window systems differently.
22248
22249 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
22250 with additional argument.
22251
22252 * dispextern.h (row_containing_pos): Adjust prototype.
22253
22254 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
22255 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
22256 (try_window_id, try_window_reusing_current_matrix)
22257 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
22258 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
22259
22260 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22261
22262 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
22263 gnuemacs).
22264 (HAVE_BOXES): Fix typo in comment.
22265 (push_menu_pane): Fix typo in comment.
22266
22267 * xdisp.c (display_prop_string_p): Remove unused local declaration
22268 of `Qwhen'.
22269 (single_display_prop_string_p): Remove unused local declarations
22270 of `Qwhen' and `Qmargin'.
22271 (string_buffer_position): Remove unused variable `around'.
22272 (store_frame_title): Remove unused variable `width'.
22273
22274 * window.c: Don't define max.
22275 (coordinates_in_window): Remove unused variable `uy'.
22276
22277 * widget.c: Don't define max.
22278
22279 * process.c: Don't define max.
22280 (create_process): Remove unused variable `buffer'.
22281
22282 2001-10-23 Gerd Moellmann <gerd@gnu.org>
22283
22284 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
22285
22286 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
22287
22288 * xfaces.c (Finternal_set_lisp_face_attribute)
22289 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
22290 frame is on a windowed display.
22291
22292 2001-10-23 Gerd Moellmann <gerd@gnu.org>
22293
22294 * dispnew.c (sync_window_with_frame_matrix_rows):
22295 Fix handling of windows which aren't full-width, fix handling
22296 of marginal areas.
22297
22298 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
22299
22300 2001-10-23 Andreas Schwab <schwab@suse.de>
22301
22302 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
22303 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
22304
22305 2001-10-23 Gerd Moellmann <gerd@gnu.org>
22306
22307 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
22308 REAL_END. Notice if cursor gets overwritten.
22309 (notice_overwritten_cursor): Take X positions as parameters.
22310 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
22311 around call to x_draw_glyphs.
22312
22313 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22314
22315 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
22316 instead of C) and usage.
22317
22318 * editfns.c (char-to-string): Fix argument names (use CHAR instead
22319 of C) and usage.
22320
22321 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
22322 `left', `max_width' and `max_height'.
22323
22324 2001-10-23 Gerd Moellmann <gerd@gnu.org>
22325
22326 * xdisp.c (display_line): For a tab continued to the next line,
22327 set row's ends_in_middle_of_char_p.
22328
22329 2001-10-22 Gerd Moellmann <gerd@gnu.org>
22330
22331 * xdisp.c (display_line): Fix computation of continuation lines
22332 width for TABs.
22333
22334 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22335
22336 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
22337 `Qlaplace'.
22338
22339 * fileio.c: Remove unused code.
22340
22341 2001-10-22 Miles Bader <miles@gnu.org>
22342
22343 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
22344 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
22345 Remove `DOC_STRINGS_IN_COMMENTS' cases.
22346
22347 2001-10-21 Jason Rumney <jasonr@gnu.org>
22348
22349 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
22350
22351 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
22352
22353 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
22354 (Finsert_string): Avoid the multi-line string literals warning.
22355
22356 2001-10-22 Miles Bader <miles@gnu.org>
22357
22358 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
22359 (Fdocumentation): Don't use it.
22360 (syms_of_doc): Don't initialize it.
22361
22362 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
22363 * print.c (Fwith_output_to_temp_buffer): Likewise.
22364 * window.c (Fsave_window_excursion): Likewise.
22365 * editfns.c (Fsave_excursion, Fsave_current_buffer)
22366 (Fsave_restriction): Likewise.
22367 * eval.c (Frun_hooks, Frun_hook_with_args)
22368 (Frun_hook_with_args_until_failure)
22369 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
22370 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
22371 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
22372 (Funwind_protect, Fcondition_case): Likewise.
22373 * coding.c (Ffind_operation_coding_system): Likewise.
22374 * keyboard.c (Ftrack_mouse): Likewise.
22375
22376 2001-10-21 Miles Bader <miles@gnu.org>
22377
22378 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
22379 (Fmake_hash_table): Add usage: string to doc string.
22380 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
22381 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
22382 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
22383 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
22384 (Fml_prefix_argument_loop): Likewise.
22385
22386 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22387
22388 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
22389
22390 * sysdep.c (init_sys_modes): Change doc-string comments to `new
22391 style' [w/`doc:' keyword].
22392
22393 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
22394 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
22395 comments to `new style' [w/`doc:' keyword].
22396
22397 2001-10-21 Jason Rumney <jasonr@gnu.org>
22398
22399 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
22400
22401 * w32term.c (remember_mouse_glyph): New function.
22402 (w32_mouse_position): Use it.
22403 (note_mouse_movement): If the mouse moved off the glyph, remember
22404 its new position.
22405
22406 * w32term.h (struct w32_output): Correct spelling of x_compatible.
22407 (w32_display_info): Add mouse_face_overlay.
22408
22409 * w32term.c (notice_overwritten_cursor): Renamed from
22410 note_overwritten_text_cursor. Rewritten to take glyph widths into
22411 account.
22412 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
22413 (fast_find_string_pos): New function.
22414 (fast_find_position): Return the correct vpos. Add parameter
22415 STOP. In the final row, stop before glyphs having STOP as object.
22416 Don't consider glyphs that are not from a buffer.
22417 (fast_find_position) [0]: Add a presumably more correct version
22418 for after 21.1.
22419 (expose_window_tree, expose_frame): Don't compute intersections here.
22420 (expose_window): Do it here instead.
22421 (expose_window_tree, expose_window, expose_line): Return 1 when
22422 overwriting mouse-face.
22423 (expose_window): If W is the window currently being updated, mark
22424 the frame garbaged.
22425 (expose_frame): If mouse-face was overwritten, redo it.
22426 (x_use_underline_position_properties): New variable.
22427 (syms_of_xterm): DEFVAR_BOOL it.
22428 (x_draw_glyph_string): Add comment to use it in future.
22429 (x_draw_glyph_string): Restore clipping after drawing box.
22430 Fix a computation of the underline position.
22431 (w32_get_glyph_string_clip_rect): Minor cleanup.
22432 (x_fill_stretch_glyph_string): Remove an assertion.
22433 (x_produce_glyphs): Don't convert multibyte characters
22434 to unibyte characters in unibyte buffers.
22435 (cursor_in_mouse_face_p): New function.
22436 (x_draw_stretch_glyph_string): Use it to choose a different GC
22437 when drawing a cursor within highlighted text. Don't draw
22438 background again if it has already been drawn.
22439 (x_draw_glyph_string_box): Don't draw a full-width
22440 box just because the glyph row's full_width_p flag is set.
22441 (x_draw_glyphs): Fix computation of rightmost x for
22442 full-width rows.
22443 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
22444 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
22445 change bottom shadow accordingly. Some cleanup.
22446 (x_update_window_end): Handle overwritten mouse face
22447 also for tool bar windows.
22448 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
22449 DRAW is DRAW_IMAGE_RAISED.
22450 (clear_mouse_face): Return 1 if text with mouse face was
22451 actually redrawn. Make the function static.
22452 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
22453 optimize away highlighting if we pass over that same overlay again.
22454 (note_mouse_highlight): Call mouse_face_overlay_overlaps
22455 to detect a case where we have to highlight a different region
22456 despite not having left the currently highlighted region.
22457 Set mouse_face_overlay in the x_display_info. Avoid changing the
22458 mouse pointer shape when show_mouse_face has already done it, or
22459 there is no need. Handle mouse-face and help-echo in strings.
22460 (glyph_rect): New function.
22461 (w32_mouse_position): Use it to raise the threshold for mouse
22462 movement event generation.
22463 (w32_initialize_display_info): Initialize the x_display_info's
22464 mouse_face_overlay.
22465 (w32_set_vertical_scroll_bar): Don't clear a zero height
22466 or width area.
22467 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
22468 a widget to zero height.
22469
22470 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
22471 Protect unibyte strings created by replacing their multibyte
22472 equivalents in menu_items.
22473 (w32_menu_show): Don't overwrite an item's name with its key
22474 description in case the description is a multibyte string.
22475 (single_submenu): Some cleanup.
22476
22477 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
22478 (postprocess_image): New function.
22479 (lookup_image): Call it for all image types except PostScript.
22480 (x_kill_gs_process): Call postprocess_image.
22481 (tiff_error_handler, tiff_warning_handler): New functions.
22482 (tiff_load): Install them as handlers.
22483 (x_kill_gs_process): Recognize if someone has cleared the image
22484 cache under us.
22485 (valid_image_p): Protect better against invalid image
22486 specifications. Previous code could signal an error.
22487 (Fx_hide_tip, Fshow_tip): Doc fix.
22488 (Fv_max_tooltip_size): New variable.
22489 (syns_of_xfns): DEFVAR_LISP it.
22490 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
22491 window buffer to *tip* right after creating the frame. Set frame's
22492 window_width. Use a maximum tooltip size specified by
22493 Vx_max_tooltip_size, if that has valid contents.
22494 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
22495 Make sure the tooltip is completely visible.
22496 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
22497 (Fx_create_frame): Adjust the frame's height for presence
22498 of the tool bar before calling x_figure_window_size.
22499 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
22500 when the window gets smaller.
22501 (x_set_foreground_color): Set frame's cursor_pixel.
22502 (x_set_foreground_color, x_set_background_color): Cleaned up.
22503 (x_set_font): Handle case of x_new_fontset returning the same name
22504 as before, although there was a change in fontsets.
22505
22506 2001-10-21 Miles Bader <miles@gnu.org>
22507
22508 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
22509 (Flogxor): Add usage: string to doc string.
22510 * charset.c (Fstring): Likewise.
22511 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
22512 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
22513
22514 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22515
22516 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
22517
22518 * alloc.c: Reindent DEFUNs with doc: keywords.
22519
22520 * abbrev.c (Finsert_abbrev_table_description): Reindent.
22521
22522 * frame.c: Change doc-string comments to `new style' [w/`doc:'
22523 keyword].
22524
22525 See ChangeLog.9 for earlier changes.
22526
22527 ;; Local Variables:
22528 ;; coding: iso-2022-7bit
22529 ;; End:
22530
22531 Copyright (C) 2001, 2002, 2003, 2004, 2005,
22532 2006 Free Software Foundation, Inc.
22533 Copying and distribution of this file, with or without modification,
22534 are permitted provided the copyright notice and this notice are preserved.
22535
22536 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4