b6cb540fa4ed31c141e2d4cd7537e9e15d3742fc
[bpt/emacs.git] / src / ChangeLog
1 2007-04-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
4 (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
5
6 2007-04-09 Martin Rudalics <rudalics@gmx.at>
7
8 * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
9
10 2007-04-08 Richard Stallman <rms@gnu.org>
11
12 * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
13
14 2007-04-07 Chong Yidong <cyd@stupidchicken.com>
15
16 * editfns.c (Ftranspose_regions): Validate interval before setting
17 text properties.
18
19 2007-04-03 Eli Zaretskii <eliz@gnu.org>
20
21 * emacs.c (main): Fix instructions for building Emacs for profiling.
22
23 2007-04-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24
25 * gtkutil.c (xg_update_menubar): Call g_list_next after moving
26 menu bar item.
27
28 2007-04-02 Juanma Barranquero <lekktu@gmail.com>
29
30 * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
31
32 2007-04-01 Chong Yidong <cyd@stupidchicken.com>
33
34 * keymap.c (Fcommand_remapping): New optional argument.
35 (where_is_internal): Use new keymaps argument.
36 (Fkey_binding): Caller changed.
37
38 * keyboard.c (command_loop_1): Caller changed.
39
40 2007-03-31 Eli Zaretskii <eliz@gnu.org>
41
42 * window.c (Fget_lru_window): Doc fix.
43
44 2007-03-30 Chong Yidong <cyd@stupidchicken.com>
45
46 * undo.c (Fprimitive_undo): Give clearer error message when trying
47 to change text properties outside accessible part of buffer.
48
49 2007-03-29 Kim F. Storm <storm@cua.dk>
50
51 * process.c (wait_reading_process_output) [HAVE_PTYS]:
52 When EIO happens, clear channel from descriptor masks before raising
53 SIGCHLD signal to avoid busy loop between read and sigchld_handler.
54 (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
55
56 2007-03-29 Juanma Barranquero <lekktu@gmail.com>
57
58 * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
59
60 * process.c (Fformat_network_address): Return nil when the
61 argument vector contains invalid values.
62
63 2007-03-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
64
65 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
66 [USE_PTHREAD]: Include pthread.h.
67 (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
68 (malloc_initialize_1): New function created from __malloc_initialize.
69 (__malloc_initialize): Use it.
70 (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
71 (_malloc_internal, _free_internal, _realloc_internal): Use them.
72
73 * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
74
75 2007-03-27 Juanma Barranquero <lekktu@gmail.com>
76
77 * process.c (Fformat_network_address): Make args array big enough
78 to format IPv6 addresses.
79
80 2007-03-27 Glenn Morris <rgm@gnu.org>
81
82 * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
83
84 2007-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
85
86 * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
87 screen size in pixels by millimeters per pixel of main display.
88
89 * macselect.c (get_scrap_target_type_list, x_own_selection):
90 Move assignments outside predicate macros.
91 (Vselection_converter_alist): Doc fix.
92
93 * macterm.c (create_text_encoding_info_alist): Move assignments
94 outside predicate macros.
95 (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
96 dpyinfo->width are those of whole screen.
97
98 2007-03-26 Sam Steingold <sds@gnu.org>
99
100 * process.c (sigchld_handler): Delay by 1ms instead of 1s to
101 alleviate sluggishness (the original problem is still fixed).
102
103 2007-03-25 Kim F. Storm <storm@cua.dk>
104
105 * intervals.c (merge_properties): Use explicit loop instead of
106 Fplist_member to avoid QUIT. Don't use Fcdr.
107 (intervals_equal): Likewise. Rewrite loop to perform length check
108 on the fly rather than calling Flength. Don't use Fcar.
109
110 2007-03-24 Eli Zaretskii <eliz@gnu.org>
111
112 * editfns.c (Fgoto_char): Doc fix.
113
114 * indent.c (Findent_to): Doc fix.
115
116 2007-03-24 Chong Yidong <cyd@stupidchicken.com>
117
118 * editfns.c (Ftranspose_regions): Use set_text_properties_1
119 instead of Fset_text_properties to avoid GC. Signal after change.
120
121 2007-03-24 Eli Zaretskii <eliz@gnu.org>
122
123 * xfns.c (Fx_show_tip): Doc fix.
124
125 * macfns.c (Fx_show_tip): Doc fix.
126
127 * w32fns.c (Fx_show_tip): Doc fix.
128
129 2007-03-23 Kim F. Storm <storm@cua.dk>
130
131 * intervals.c (merge_properties, intervals_equal):
132 Use Fplist_member instead of Fmemq to find properties.
133
134 2007-03-23 Glenn Morris <rgm@gnu.org>
135
136 * unexhp9k800.c: Restore file with clarified legal status.
137 * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
138
139 2007-03-22 Chong Yidong <cyd@stupidchicken.com>
140
141 * widget.c (EmacsFrameSetCharSize): Catch X errors.
142
143 2007-03-22 Kenichi Handa <handa@m17n.org>
144
145 * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
146 non-encoded file name.
147 (Frename_file): Likewise.
148 (Fadd_name_to_file): Likewise.
149 (Fmake_symbolic_link): Likewise.
150
151 2007-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
152
153 * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
154 (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
155 (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
156 systime.h.
157 (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
158 systime.h.
159 (macfns.o): Remove duplicate dependency on systime.h.
160
161 * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
162 (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
163
164 * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
165 (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
166
167 * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
168 (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
169
170 * lread.c: Include blockinput.h.
171 (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
172 (unreadchar): Add BLOCK_INPUT around ungetc.
173 (load_unwind): Add BLOCK_INPUT around fclose.
174
175 * print.c: Include blockinput.h.
176 (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
177
178 * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
179 Clear immediate_quit before calling freeaddrinfo.
180 Add BLOCK_INPUT around freeaddrinfo.
181
182 * term.c: Include blockinput.h.
183 (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
184
185 2007-03-19 Richard Stallman <rms@gnu.org>
186
187 * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
188
189 * buffer.c (syms_of_buffer): Doc fix.
190
191 2007-03-18 Chong Yidong <cyd@stupidchicken.com>
192
193 * image.c (pbm_load): Signal error for invalid image size.
194
195 2007-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
196
197 * macterm.c (note_mouse_movement): Don't return immediately for
198 LeaveNotify case.
199
200 * macmenu.c (popup_activated_flag): New variable.
201 (x_activate_menubar, mac_menu_show): Set it during menu tracking.
202 (popup_activated): New function.
203
204 * xdisp.c (redisplay_internal, note_mouse_highlight):
205 Check popup_activated for MAC_OS.
206
207 2007-03-17 Juanma Barranquero <lekktu@gmail.com>
208
209 * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
210 Reported by Nikolaj Schumacher <n_schumacher@web.de>.
211
212 2007-03-17 Richard Stallman <rms@gnu.org>
213
214 * dired.c (file_name_completion): gcpro NAME.
215
216 2007-03-17 Chong Yidong <cyd@stupidchicken.com>
217
218 * xdisp.c (try_window_id): Increment matrix positions if the
219 buffer's byte count has increased, but not the character count.
220
221 2007-03-12 Andreas Schwab <schwab@suse.de>
222
223 * lisp.h: Declare check_obarray.
224
225 * process.c (Fdelete_process): Properly handle deletion of first
226 element of deleted_pid_list.
227 (create_process): Declare pid as pid_t.
228
229 2007-03-12 Kim F. Storm <storm@cua.dk>
230
231 * process.c (sigchld_handler): Change type of pid to pid_t.
232 Scan deleted_pid_list explicitly to avoid using Fmember which don't
233 know about mark bits and make_fixnum_or_float which may malloc.
234 Reported by Andreas Schwab.
235
236 * keyboard.c (read_key_sequence): Store original event into keybuf
237 when replaying sequence with local keymap(s) from string.
238
239 2007-03-12 Glenn Morris <rgm@gnu.org>
240
241 * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
242 savings" to "daylight saving").
243
244 2007-03-11 Sam Steingold <sds@gnu.org>
245
246 * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
247
248 2007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
249
250 * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
251
252 2007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
253
254 * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
255 Ignore mouse wheel movement on title bar or tool bar.
256
257 2007-03-10 Chong Yidong <cyd@stupidchicken.com>
258
259 * keyboard.c (help_form_saved_window_configs): New var.
260 (read_char_help_form_unwind): New function.
261 (read_char): Don't restore window configuration if a mouse click
262 arrives while the help form is being displayed.
263
264 2007-03-10 Kim F. Storm <storm@cua.dk>
265
266 * xdisp.c (redisplay_window): Don't automatically select a new window
267 start for a contination line during mouse-click.
268
269 2007-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
270
271 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
272
273 2007-03-09 Juanma Barranquero <lekktu@gmail.com>
274
275 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
276
277 2007-03-08 Richard Stallman <rms@gnu.org>
278
279 * keyboard.c (syms_of_keyboard): Doc fix.
280
281 2007-03-08 Chong Yidong <cyd@stupidchicken.com>
282
283 * minibuf.c (Ftry_completion): Don't short circuit if
284 completion-ignore-case is non-nil.
285
286 2007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
287
288 * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
289 Undo 2006-03-06 changes.
290
291 * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
292 bar if its width is smaller than that of Aqua small scroll bar.
293
294 2007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
295
296 * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
297 to handle correctly prompts with read-only property.
298
299 2007-03-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
300
301 * sound.c (wav_play): Check header->data_length to see how much we
302 shall read.
303 (alsa_period_size): Convert ALSA period size in frames to bytes.
304 (alsa_write): Return if frames is zero.
305
306 2007-03-06 Kenichi Handa <handa@m17n.org>
307
308 * xselect.c (Vselection_coding_system): Documentation improved.
309
310 2007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
311
312 * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
313 USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
314 (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if
315 internal border width has changed.
316
317 * macterm.h (struct mac_output): New member `internal_border_width'.
318
319 2007-03-04 Richard Stallman <rms@gnu.org>
320
321 * window.c (Fdisplay_buffer): Doc fix.
322
323 2007-03-03 Glenn Morris <rgm@gnu.org>
324
325 * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
326 not include -lX11 on Solaris.
327
328 2007-03-02 Stuart D. Herring <herring@lanl.gov>
329
330 * keymap.c (Fkey_binding): Don't consider one-element lists as events.
331
332 2007-03-01 Kenichi Handa <handa@m17n.org>
333
334 * process.c (send_process_object): Check the process status and
335 signal an error if something is wrong.
336
337 2007-02-28 Chong Yidong <cyd@stupidchicken.com>
338
339 * insdel.c (Fcombine_after_change_execute): Return nil if
340 combine_after_change_buffer has been invalidated.
341
342 2007-02-25 Dan Nicolaescu <dann@ics.uci.edu>
343
344 * m/xtensa.h: New file.
345
346 2007-02-24 Nick Roberts <nickrob@snap.net.nz>
347
348 * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
349 as strings and not character arrays.
350
351 2007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
352
353 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
354 (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
355 scroll bar handle size in order to avoid `scroll backward' problem.
356 (x_scroll_bar_create, XTset_vertical_scroll_bar)
357 [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
358
359 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
360 New member `min_handle'.
361
362 2007-02-23 Kim F. Storm <storm@cua.dk>
363
364 * print.c (print): Reset print_number_index if Vprint_number_table
365 is nil.
366
367 2007-02-23 Eli Zaretskii <eliz@gnu.org>
368
369 * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
370 instead of strpbrk.
371
372 2007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
373
374 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
375 `menu_item_selection' as in W32 version.
376 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
377 braces to avoid ambiguous `else'.
378
379 * macterm.c (mac_display_info_for_display): Remove function.
380 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
381 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
382 flush_display_optional.
383 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
384 New argument MOUSE_POS. All uses changed. Set bar->dragging to
385 negative integer if scroll bar handle is pressed.
386 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
387 Negative bar->dragging means scroll bar handle is not dragged.
388 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
389 offset of scroll bar handle from negative bar->dragging.
390 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
391 bar click is compared against mapped one. Set down/up_modifier
392 for scroll bar click event with control key.
393
394 * macterm.h (x_display_info_for_display): Remove extern.
395 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
396 value to be unpacked to 32-bit on LP64 model.
397
398 2007-02-23 Kenichi Handa <handa@m17n.org>
399
400 * process.c (send_process_object_unwind): New function.
401 (send_process_object): New function.
402 (Fprocess_send_region): Call send_process_object.
403 (Fprocess_send_string): Likewise.
404
405 2007-02-22 Jason Rumney <jasonr@gnu.org>
406
407 * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
408 when popup menu finishes.
409
410 * w32fns.c (menubar_in_use): New flag.
411 (w32_wnd_proc) [WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND]:
412 Use it.
413
414 * w32menu.c (Fx_popup_menu): Don't free menu strings here.
415 (w32_menu_show): Do it here instead.
416
417 * w32fns.c (w32_wnd_proc) [WM_INITMENU]: Set menubar_active frame
418 parameter.
419
420 * w32menu.c (current_popup_menu): Make available globally.
421 (menubar_selection_callback): Free menu strings before pushing the
422 menu event into the keyboard buffer. Remove menu_command_in_progress.
423
424 * w32fns.c (current_popup_menu): Use from w32menu.c.
425 (w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active
426 and current_popup_menu to determine whether a menubar menu has
427 been cancelled.
428
429 * w32term.h (w32_output): Remove menu_command_in_progress.
430
431 2007-02-22 Kim F. Storm <storm@cua.dk>
432
433 * dispnew.c (update_frame, update_single_window): Set force_p here if
434 redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
435 (update_window, update_frame_1): ... instead of here.
436 (update_text_area): Clear mouse face on header lines.
437
438 2007-02-21 Kim F. Storm <storm@cua.dk>
439
440 * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too.
441
442 2007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
443
444 * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
445 [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
446 `mapped_modifiers'.
447 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
448 Layout Services routines to get current Unicode keyboard layout.
449
450 2007-02-20 Chong Yidong <cyd@stupidchicken.com>
451
452 * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
453 bgcolor.
454
455 2007-02-19 Kim F. Storm <storm@cua.dk>
456
457 * minibuf.c (Fassoc_string): Allow symbols as keys.
458
459 * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
460 handle while dragging, except when we get close to eob.
461 Fix position and size calculations so we don't scroll backwards
462 just by clicking on the handle.
463
464 2007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
465
466 * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
467 [HAVE_CARBON]: Remove target.
468 (macosx-app) [HAVE_CARBON]: Don't depend on it.
469
470 2007-02-17 Juanma Barranquero <lekktu@gmail.com>
471
472 * callproc.c (syms_of_callproc) <doc-directory>:
473 <configure-info-directory>:
474 (Fgetenv_internal): Fix typos in docstrings.
475
476 * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
477
478 2007-02-16 Andreas Schwab <schwab@suse.de>
479
480 * frame.c (Fmodify_frame_parameters): Return a value.
481
482 * editfns.c (Fformat): Add support for '+' flag.
483 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
484
485 2007-02-14 Chong Yidong <cyd@stupidchicken.com>
486
487 * s/umips.h: Unused file removed.
488
489 2007-02-14 Juanma Barranquero <lekktu@gmail.com>
490
491 * xfaces.c (Fcolor_distance): Don't continue checking a color for
492 errors after it has been correctly parsed as an RGB list.
493
494 2007-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
495
496 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
497
498 2007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
499
500 * macfns.c (Fx_focus_frame): Move current process to foreground if
501 it is not.
502 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
503 #ifdef MAC_OSX.
504 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
505 Fmac_set_font_panel_visibility. All uses changed. Rename argument
506 VISIBLE to FLAG.
507
508 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
509 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
510 MakeMeTheFrontProcess.
511
512 2007-02-12 Chong Yidong <cyd@stupidchicken.com>
513
514 * frame.c (x_set_screen_gamma): Clear face cache.
515
516 2007-02-11 Juanma Barranquero <lekktu@gmail.com>
517
518 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
519 Reflow docstrings.
520
521 2007-02-10 Eli Zaretskii <eliz@gnu.org>
522
523 * window.c (Fwindow_height, Fwindow_hscroll)
524 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
525 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
526 Document the effect of WINDOW arg being nil.
527
528 2007-02-08 Kim F. Storm <storm@cua.dk>
529
530 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
531 Use Qlambda as interim value of Vminibuffer_completing_file_name.
532 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
533 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
534
535 2007-02-07 Juanma Barranquero <lekktu@gmail.com>
536
537 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
538 of $(ALL_DEPS).
539
540 2007-02-07 Eli Zaretskii <eliz@gnu.org>
541
542 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
543 put into $(BLD).
544
545 2007-02-06 Chong Yidong <cyd@stupidchicken.com>
546
547 * frame.c (Fmodify_frame_parameters): Don't bind
548 Qinhibit_default_face_x_resources, which has no effect.
549 (Qinhibit_default_face_x_resources): Symbol deleted.
550
551 2007-02-03 Eli Zaretskii <eliz@gnu.org>
552
553 * indent.c (Fmove_to_column): Document that the argument COLUMN is
554 taken from prefix numeric argument.
555
556 2007-02-03 Juanma Barranquero <lekktu@gmail.com>
557
558 * lread.c (syms_of_lread) <load-history>: Doc fix.
559
560 2007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
561
562 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
563 Use the foreground color of the scroll-bar face when drawing
564 the scroll-bar's border.
565
566 2007-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
567
568 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
569 calling wm_supports.
570
571 2007-02-01 Juanma Barranquero <lekktu@gmail.com>
572
573 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
574 Wording by Eli Zaretskii.
575
576 2007-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
577
578 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
579
580 2007-01-30 Richard Stallman <rms@gnu.org>
581
582 * minibuf.c (read_minibuf):
583 Save and clear Vminibuffer_completing_file_name.
584 (read_minibuf_unwind): Restore it.
585 (Vminibuffer_completion_table, Qminibuffer_completion_table)
586 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
587 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
588 (Vminibuffer_completing_file_name): Definitions moved up.
589
590 2007-01-29 Chong Yidong <cyd@stupidchicken.com>
591
592 * m/hp800.h: Restore, removing HP-UX support.
593
594 2007-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
595
596 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
597
598 2007-01-28 Richard Stallman <rms@gnu.org>
599
600 * minibuf.c (Ftry_completion, Fall_completions)
601 (Fcompleting_read, Ftest_completion):
602 Rename arg ALIST or TABLE to COLLECTION.
603
604 2007-01-27 Chong Yidong <cyd@stupidchicken.com>
605
606 * unexhp9k800.c: Remove due to lack of legal papers.
607
608 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
609
610 2007-01-27 Eli Zaretskii <eliz@gnu.org>
611
612 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
613
614 * minibuf.c (Fcompleting_read): Doc fix.
615
616 2007-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
617
618 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
619
620 * Makefile.in: Use XFT_LIBS if defined.
621
622 2007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
623
624 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
625 BLOCK_INPUT/UNBLOCK_INPUT.
626
627 * blockinput.h (interrupt_input_blocked): Declare volatile.
628
629 * keyboard.c (interrupt_input_blocked): Declare volatile.
630
631 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
632
633 2007-01-24 Kim F. Storm <storm@cua.dk>
634
635 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
636
637 2007-01-23 Juanma Barranquero <lekktu@gmail.com>
638
639 * editfns.c (Finsert_char): Doc fix.
640 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
641
642 2007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
643
644 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
645 Don't pass keyboard modifiers to mac_store_drag_event, but put
646 them as kEventParamKeyModifiers Apple event parameter.
647
648 2007-01-21 Chong Yidong <cyd@stupidchicken.com>
649
650 * xdisp.c (try_window): Revert previous change.
651
652 * dispnew.c (update_text_area): Revert 2006-09-17 change.
653 Always redraw non-mode-line rows with mouse-face.
654
655 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
656
657 * xdisp.c (try_window): Clear mouse-face highlights first.
658
659 * window.c (set_window_buffer): Revert 2006-11-22 change.
660
661 2007-01-20 Eli Zaretskii <eliz@gnu.org>
662
663 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
664 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
665
666 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
667
668 * keyboard.c (read_key_sequence): Extract local map only if the
669 given position is in an accessible buffer region.
670
671 2007-01-19 Nick Roberts <nickrob@snap.net.nz>
672
673 * .gdbinit: Reformat documentation so that first sentence
674 displays properly with "help user-defined" (like apropos).
675
676 2007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
677
678 * epaths.in: Move PATH_DOC from local/info to local/share/info.
679
680 2007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
681
682 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
683 Create movable modal window instead of movable alert window.
684 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
685 of DisableControl.
686
687 * macselect.c (Fmac_resume_apple_event): Set error number when
688 descriptor type of reply is non-null.
689
690 2007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
691
692 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
693 Use DisableControl for disabled items. Set default button to first
694 enabled one. Use icon of application in execution.
695
696 2007-01-13 Eli Zaretskii <eliz@gnu.org>
697
698 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
699 Copy PID into EMACS_INT to avoid GCC warnings.
700
701 * fns.c (maybe_resize_hash_table): Copy new size of hash table
702 into EMACS_INT to avoid GCC warnings.
703
704 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
705 geteuid and getuid into EMACS_INT to avoid GCC warnings.
706
707 * dired.c (Ffile_attributes): Fix last change.
708
709 2007-01-12 Eli Zaretskii <eliz@gnu.org>
710
711 * dired.c (Ffile_attributes): Copy some members of `struct stat'
712 into int's to avoid GCC warnings about limited range of short in
713 arguments to FIXNUM_OVERFLOW_P.
714
715 2007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
716
717 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
718 (mac_handle_dialog_event, install_dialog_event_handler)
719 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
720 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
721 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
722 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
723 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
724 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
725 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
726 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
727 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
728 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
729
730 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
731 Call mac_prepare_for_quickdraw.
732 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
733 outside #ifdef MAC_OSX.
734 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
735 outside #ifdef MAC_OSX.
736 (mac_check_bundle) [MAC_OSX]: Remove unused function.
737
738 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
739 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
740
741 2007-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
742
743 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
744 block/unblock SIGIO.
745
746 2007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
747
748 * editfns.c (Fformat): Allow integer-format to work with floats of size
749 larger than most-positive-fixnum (but still smaller than MAXINT).
750
751 * dired.c (Ffile_attributes): Use floats for large uids/gids.
752
753 2007-01-09 Eli Zaretskii <eliz@gnu.org>
754
755 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
756
757 2007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
758
759 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
760 around mkstemp.
761
762 * image.c (XDrawLine) [MAC_OS]: Remove macro.
763 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
764 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
765 XCreateGC_pixmap.
766
767 * macgui.h (Display): Typedef to opaque type.
768
769 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
770 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
771 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
772 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
773 Use mac_quit_char_key_p.
774
775 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
776 (XCreateGC): Change type of 2nd argument to void *.
777 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
778 Fix last change.
779 (mac_to_emacs_modifiers): Change return type to int.
780 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
781 (mac_mapped_modifiers): New function.
782 (XTread_socket): Use it.
783 [USE_TSM] (mac_handle_text_input_event): Likewise.
784 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
785 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
786 Remove variables.
787 (mac_determine_quit_char_modifiers, init_quit_char_handler)
788 [MAC_OSX]: Remove functions.
789 (make_ctrl_char) [MAC_OSX]: Add extern.
790 (mac_quit_char_key_p) [MAC_OSX]: New function.
791 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
792
793 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
794 (XCreateGC): Change type in extern.
795 (XDrawLine): Rename from mac_draw_line_to_pixmap.
796 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
797
798 2007-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
799
800 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
801 interrupt_input_pending.
802
803 * xterm.h (x_display_info): New: net_supported_atoms,
804 nr_net_supported_atoms and net_supported_window.
805
806 * xterm.c (last_user_time): New variable.
807 (handle_one_xevent): Set last_user_time from events that have Time.
808 Set net_supported_window to 0 when reparented.
809 (wm_supports): New function.
810 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
811 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
812 and net_supported_window.
813
814 2007-01-05 Kim F. Storm <storm@cua.dk>
815
816 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
817 strings without embedded newlines immediately followed by newline.
818
819 2007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
820
821 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
822 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
823 gmtime/localtime/emacs_memftimeu/mktime.
824
825 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
826 instead of 'EMAx'.
827 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
828
829 * macgui.h (struct _XGC) [USE_CG_DRAWING
830 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
831 and cg_back_color.
832
833 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
834 (restore_show_help_function, menu_target_item_handler)
835 [TARGET_API_MAC_CARBON]: New functions.
836 (install_menu_target_item_handler): New function.
837 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
838 item property.
839
840 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
841 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
842 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
843 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
844 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
845 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
846 (mac_cg_color_black) [USE_CG_DRAWING
847 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
848 (init_cg_color) [USE_CG_DRAWING]: New function.
849 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
850 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
851 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
852 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
853 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
854 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
855 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
856 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
857 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
858 gc->cg_back_color.
859 (install_drag_handler, remove_drag_handler): Make extern.
860 (install_menu_target_item_handler): Add extern.
861 (install_window_handler): Call install_menu_target_item_handler.
862 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
863 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
864
865 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
866
867 2007-01-04 Juanma Barranquero <lekktu@gmail.com>
868
869 * window.c (Fwindow_end): Fix use of >= operator.
870
871 2007-01-03 Richard Stallman <rms@gnu.org>
872
873 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
874
875 2007-01-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
876
877 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
878 unhighlight_id.
879
880 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
881 parent of the menu item. Get menu item widget from event.
882 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
883 unhighlight_id has been removed.
884 (create_menus): Connect enter/leave-notify-event to the menu instead
885 of individual items.
886
887 2006-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
888
889 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
890 xg_tool_bar_menu_proxy.
891 (xg_tool_bar_menu_proxy): New function.
892 (xg_tool_bar_proxy_callback): New function.
893
894 2006-12-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
895
896 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
897 (xg_tool_bar_callback): Remove check for button.
898 (update_frame_tool_bar): Put an event box in the tool bar and a button
899 in the event box. Attach enter/leave-notify-event to the event box.
900
901 2006-12-30 Richard Stallman <rms@gnu.org>
902
903 * keymap.c (Fdefine_key): Doc fix.
904
905 2006-12-29 Kim F. Storm <storm@cua.dk>
906
907 * frame.h (struct frame): New member minimize_tool_bar_window_p.
908
909 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
910 (Vauto_resize_tool_bars): ... this.
911 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
912 to describe new value `grow-only', and use of C-l.
913 (display_tool_bar_line): Only use default face for border below
914 toolbar if not grow-only (to get acceptable visual appearence).
915 Explicitly set visible_height for empty toolbar lines.
916 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
917 minimize_tool_bar_window_p flag.
918
919 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
920 when called without arg to redraw with minimum toolbar height.
921 Update doc string.
922
923 2006-12-29 Jason Rumney <jasonr@gnu.org>
924
925 * s/ms-w32.h (tzname): Do not define in msvc8.
926 (utime): Do not define in msvc8.
927
928 * regex.c (regerror): Change parameter name err_code.
929
930 2006-12-26 Richard Stallman <rms@gnu.org>
931
932 * search.c (Fsearch_forward): Doc fix.
933
934 * callint.c (Finteractive): Doc fix.
935
936 2006-12-25 Kim F. Storm <storm@cua.dk>
937
938 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
939
940 2006-12-23 Eli Zaretskii <eliz@gnu.org>
941
942 * keyboard.c (some_mouse_moved): Fix last change.
943
944 2006-12-22 Eli Zaretskii <eliz@gnu.org>
945
946 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
947
948 2006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
949
950 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
951 * m/sh3el.h: New file.
952
953 2006-12-22 Eli Zaretskii <eliz@gnu.org>
954
955 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
956 $(BLD).
957 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
958 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
959 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
960 (clean): Delete stamp_BLD.
961
962 2006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
963
964 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
965 Call mac_update_proxy_icon also when buffer modification flag changed.
966 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
967 but compare FSRef/FSSpec of resolved alias.
968
969 2006-12-21 Kim F. Storm <storm@cua.dk>
970
971 * w32.c (_sys_wait_accept): Fix handle leak.
972
973 2006-12-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
974
975 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
976 defined.
977
978 2006-12-20 Kim F. Storm <storm@cua.dk>
979
980 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
981
982 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
983
984 * keyboard.c (syms_of_keyboard) <double-click-time>:
985 * mac.c (Fmac_code_convert_string):
986 * search.c (Fsearch_forward): Doc fixes.
987
988 2006-12-19 Kim F. Storm <storm@cua.dk>
989
990 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
991 a sigusr1 event instead of [signal usr1] sequence, and signal events
992 are now supposed to be handled via special-event-map.
993
994 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
995 (make_lispy_event): Don't generate Qsignal prefix for code 0.
996 Abort if signal code is unknown.
997 (store_user_signal_events): Don't make Qsignal prefix (code 0).
998 (Qsignal): Move declaration back to process.c.
999 (syms_of_keyboard): Don't intern or staticpro it here.
1000
1001 * process.c (Qsignal): Declare here.
1002 (syms_of_process): Intern or staticpro it.
1003
1004 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
1005
1006 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
1007
1008 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
1009
1010 * buffer.c (syms_of_buffer) <buffer-display-table>:
1011 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
1012
1013 2006-12-17 Richard Stallman <rms@gnu.org>
1014
1015 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
1016 to Ffile_name_completion.
1017
1018 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
1019 (Ffile_name_completion): New arg PREDICATE.
1020
1021 2006-12-17 Juanma Barranquero <lekktu@gmail.com>
1022
1023 * buffer.c (Fkill_buffer): Doc fix.
1024 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
1025
1026 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
1027
1028 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
1029
1030 2006-12-16 Eli Zaretskii <eliz@gnu.org>
1031
1032 * w32fns.c (w32-window-exists-p): New function.
1033 (syms_of_w32fns): Defsubr it.
1034
1035 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
1036
1037 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
1038
1039 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
1040
1041 2006-12-15 Eli Zaretskii <eliz@gnu.org>
1042
1043 * emacs.c (USAGE3): Clarify documentation of --color.
1044
1045 2006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1046
1047 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
1048 New variable.
1049 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
1050 [!MAC_OSX] (select): Use them.
1051 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
1052 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
1053
1054 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
1055 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
1056 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
1057
1058 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
1059 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
1060
1061 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
1062 ATSUGetGlyphBounds if not necessary.
1063 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
1064 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
1065 (fm_get_style_from_font, atsu_find_font_from_family_name)
1066 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
1067 [USE_ATSUI]: New functions.
1068 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
1069 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
1070 Don't get metrics for Latin-1 right half characters.
1071 (mac_load_query_font): Don't load font if space width is not positive.
1072 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
1073 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
1074 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
1075
1076 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
1077
1078 2006-12-15 Kim F. Storm <storm@cua.dk>
1079
1080 * keyboard.c (ignore_mouse_drag_p): New global var.
1081 (some_mouse_moved): Return 0 if it is non-zero.
1082 (make_lispy_event): Generate click event on mouse up if
1083 ignore_mouse_drag_p is non-zero, even if mouse moved.
1084 Clear ignore_mouse_drag_p on mouse down/up.
1085
1086 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
1087 is resized to avoid generating a mouse drag event.
1088
1089 2006-12-14 Juanma Barranquero <lekktu@gmail.com>
1090
1091 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
1092 minimum tracking size. Remove non-working old hack to do the same.
1093
1094 2006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1095
1096 * emacs.c (handle_user_signal): Move function to keyboard.c.
1097 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
1098
1099 * keyboard.c (make_lispy_event): Use find_user_signal_name.
1100 (read_avail_input): Store pending user signal events.
1101 (struct user_signal_info): New struct.
1102 (user_signals): New variable.
1103 (add_user_signal, store_user_signal_events)
1104 (find_user_signal_name): New functions.
1105 (handle_user_signal): Move function from emacs.c. Don't store
1106 USER_SIGNAL_EVENT here, but increment number of pending signals.
1107
1108 * keyboard.h (add_user_signals): Add extern.
1109
1110 2006-12-11 Juanma Barranquero <lekktu@gmail.com>
1111
1112 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
1113 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
1114 <line-spacing, left-margin>: Doc fixes.
1115
1116 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
1117
1118 2006-12-10 Kim F. Storm <storm@cua.dk>
1119
1120 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
1121
1122 2006-12-10 Juanma Barranquero <lekktu@gmail.com>
1123
1124 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
1125 * buffer.c (syms_of_buffer) <default-major-mode>:
1126 * keymap.c (Flookup_key):
1127 * lread.c (Feval_buffer, Feval_region):
1128 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
1129 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
1130 * marker.c (Fmarker_insertion_type):
1131 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
1132 * msdos.c (syms_of_msdos) <delete-exited-processes>:
1133 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
1134 <x-underline-at-descent-line>:
1135 * xdisp.c (format-mode-line):
1136 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
1137 <x-underline-at-descent-line>: Doc fixes.
1138
1139 2006-12-10 Andreas Schwab <schwab@suse.de>
1140
1141 * systime.h (EMACS_GET_TIME): Remove check for
1142 HAVE_STRUCT_TIMEZONE which is never defined.
1143
1144 2006-12-10 Alan Mackenzie <acm@muc.de>
1145
1146 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
1147 result is now neither the last elt nor optional for OLDSTATE.
1148
1149 2006-12-09 Eli Zaretskii <eliz@gnu.org>
1150
1151 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
1152 extract the process ID from a Lisp float.
1153
1154 2006-12-09 Chong Yidong <cyd@stupidchicken.com>
1155
1156 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
1157
1158 2006-12-08 Eli Zaretskii <eliz@gnu.org>
1159
1160 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
1161 platforms where long is 64-bit.
1162
1163 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
1164
1165 2006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
1166
1167 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
1168
1169 2006-12-08 Kenichi Handa <handa@m17n.org>
1170
1171 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
1172
1173 2006-12-08 Juanma Barranquero <lekktu@gmail.com>
1174
1175 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1176
1177 2006-12-07 Kim F. Storm <storm@cua.dk>
1178
1179 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
1180 (Fsignal_process): Don't use strncasecmp.
1181
1182 2006-12-05 Glenn Morris <rgm@gnu.org>
1183
1184 * abbrev.c (Qforce): New Lisp_Object.
1185 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
1186 abbrevs, unless 'force is applied.
1187 (syms_of_abbrev): Add Qforce.
1188
1189 2006-12-04 Kim F. Storm <storm@cua.dk>
1190
1191 * process.c (parse_signal): Rename macro from handle_signal.
1192 (Fsignal_process): Also accept lower-case variants of signal
1193 names (to align with signal names generated by Emacs itself).
1194
1195 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
1196 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
1197 first with code == 0 [signal] and one with code == sig number.
1198 (main): Use it as handler for SIGUR1 and SIGUSR2.
1199
1200 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
1201 if first event in [signal xxx] sequence.
1202 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
1203 (syms_of_keyboard): Don't intern and staticpro them.
1204 (Qsignal): Declare here.
1205 (syms_of_keyboard): Intern and staticpro it.
1206 (make_lispy_event): Use it. Intern symbols on the fly for other
1207 USER_SIGNAL_EVENTs events.
1208
1209 * process.c (Qsignal): Declare extern.
1210 (syms_of_process): Don't intern/staticpro it here.
1211
1212 * process.c (read_process_output): Abort if carryover < 0.
1213
1214 2006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1215
1216 * config.in: Regenerate.
1217
1218 * fileio.c [__NetBSD__]: Don't define `unix'.
1219 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
1220 `#ifdef unix'.
1221
1222 2006-12-04 Glenn Morris <rgm@gnu.org>
1223
1224 * Makefile.in (version): New variable, set by configure.
1225 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
1226
1227 2006-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1228
1229 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
1230 without an image.
1231
1232 2006-12-01 Eli Zaretskii <eliz@gnu.org>
1233
1234 * w32fns.c (Fw32_shell_execute): Doc fix.
1235
1236 2006-11-30 Chong Yidong <cyd@stupidchicken.com>
1237
1238 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
1239 lines ending in tab.
1240
1241 2006-11-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1242
1243 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
1244 property ...
1245 (XTframe_raise_lower): ... to here.
1246
1247 2006-11-30 Kenichi Handa <handa@m17n.org>
1248
1249 * regex.c (regex_compile): Fix previous change.
1250
1251 2006-11-29 Juanma Barranquero <lekktu@gmail.com>
1252
1253 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
1254
1255 2006-11-28 Chong Yidong <cyd@stupidchicken.com>
1256
1257 * config.in: Regenerate.
1258
1259 2006-11-28 Kenichi Handa <handa@m17n.org>
1260
1261 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
1262 multibyte character.
1263
1264 2006-11-27 Chong Yidong <cyd@stupidchicken.com>
1265
1266 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
1267
1268 2006-11-27 Kim F. Storm <storm@cua.dk>
1269
1270 * window.c (set_window_buffer): Refactor recent changes.
1271
1272 2006-11-27 Jason Rumney <jasonr@gnu.org>
1273
1274 * w32term.c (w32_msg_worker): Declare correctly.
1275 (w32_initialize): Don't cast w32_msg_worker.
1276
1277 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
1278
1279 2006-11-26 Chong Yidong <cyd@stupidchicken.com>
1280
1281 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
1282 directory exists.
1283
1284 2006-11-25 Eli Zaretskii <eliz@gnu.org>
1285
1286 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
1287 as per the calling sequence change on 2006-07-11.
1288
1289 2006-11-25 Chong Yidong <cyd@stupidchicken.com>
1290
1291 * window.c (set_window_buffer): Use BLOCK_INPUT.
1292
1293 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
1294
1295 * fns.c (substring_both): Add missing address operator.
1296
1297 2006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1298
1299 * fns.c: Use AREF/ASIZE macros.
1300 (concat): Provide the full ANSI prototype.
1301
1302 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
1303
1304 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
1305
1306 2006-11-23 William Smith <William.Smith@global360.com> (tiny change)
1307
1308 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
1309
1310 2006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
1311
1312 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
1313 /usr/pkg/lib from the library search path.
1314 (LD_SWITCH_X_DEFAULT): New macro.
1315
1316 2006-11-22 Chong Yidong <cyd@stupidchicken.com>
1317
1318 * window.c (set_window_buffer): Clear mouse highlight if it is in
1319 this window.
1320
1321 2006-11-21 Chong Yidong <cyd@stupidchicken.com>
1322
1323 * xfaces.c (realize_default_face): Check if the default font name
1324 exists on this display before trying to use it.
1325
1326 2006-11-21 Richard Stallman <rms@gnu.org>
1327
1328 * fileio.c: Break line before &&, not after.
1329
1330 2006-11-20 Eli Zaretskii <eliz@gnu.org>
1331
1332 * fns.c (concat) [!__GNUC__]: Add prototype.
1333
1334 2006-11-20 Kenichi Handa <handa@m17n.org>
1335
1336 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
1337 check the tailing slash of a filename.
1338
1339 2006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
1340
1341 * indent.c (Fvertical_motion): Include composition in the case of
1342 overshoot expected.
1343
1344 2006-11-19 Andreas Schwab <schwab@gnu.org>
1345
1346 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
1347
1348 * xmenu.c (Fx_popup_menu): Initialize selection.
1349
1350 2006-11-18 Andreas Schwab <schwab@suse.de>
1351
1352 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
1353
1354 2006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1355
1356 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
1357 to avoid gcc 2.96 error.
1358
1359 2006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
1360
1361 * search.c (simple_search): In the loop of backward searching,
1362 check also the byte position against the limit.
1363
1364 2006-11-14 Romain Francoise <romain@orebokech.com>
1365
1366 * minibuf.c (Fcompleting_read): Fix typo in docstring.
1367
1368 2006-11-14 Kenichi Handa <handa@m17n.org>
1369
1370 * coding.c (code_convert_region): Initialize coding->heading_ascii.
1371 (decode_coding_string, code_convert_region): Likewise.
1372
1373 2006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1374
1375 * config.in: Regenerate.
1376
1377 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
1378 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1379 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1380 CGDisplayScreenSize is available.
1381
1382 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
1383 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
1384 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
1385 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1386 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1387 CancelMenuTracking is available.
1388
1389 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
1390 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1391 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1392 CGContextShowGlyphsWithAdvances is available.
1393
1394 2006-11-13 Jason Rumney <jasonr@gnu.org>
1395
1396 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
1397
1398 2006-11-13 Nozomu Ando <nand@mac.com>
1399
1400 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
1401 Fix address calculations for case END < START.
1402 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
1403
1404 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
1405
1406 * coding.c (Fencode_sjis_char, Fencode_big5_char):
1407 Improve argument/docstring consistency.
1408
1409 * editfns.c (Fmessage): Doc fixes.
1410
1411 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
1412
1413 2006-11-12 Chong Yidong <cyd@stupidchicken.com>
1414
1415 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
1416
1417 2006-11-12 Romain Francoise <romain@orebokech.com>
1418
1419 * xselect.c (selection-coding-system): Fix docstring.
1420
1421 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
1422
1423 * category.c (Fchar_category_set): Improve arg/docstring consistency.
1424
1425 * data.c (Flogxor):
1426 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
1427 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
1428 (Fstring_make_unibyte): Fix typos in docstrings.
1429
1430 2006-11-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1431
1432 * xterm.h (struct x_display_info): Fix indentation.
1433
1434 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
1435 (x_check_fullscreen): Call do_ewmh_fullscreen.
1436 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
1437
1438 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
1439
1440 * term.c: Define fullscreen_hook.
1441 (syms_of_term): Initialize fullscreen_hook to NULL.
1442
1443 * termhooks.h: Add fullscreen_hook.
1444
1445 2006-11-08 Juanma Barranquero <lekktu@gmail.com>
1446
1447 * bytecode.c (Fbyte_code):
1448 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
1449
1450 2006-11-06 Juanma Barranquero <lekktu@gmail.com>
1451
1452 * lread.c (syms_of_lread):
1453 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
1454
1455 2006-11-06 Martin Rudalics <rudalics@gmx.at>
1456
1457 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1458
1459 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1460 Return nil if building without menus.
1461
1462 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1463 Return nil if building without menus.
1464
1465 2006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
1466
1467 * s/netbsd.h (POSIX_SIGNALS): Define.
1468
1469 2006-11-05 Martin Rudalics <rudalics@gmx.at>
1470
1471 * macmenu.c (Fmenu_or_popup_active_p): New function.
1472 (syms_of_macmenu): Defsubr it.
1473
1474 * w32menu.c (Fmenu_or_popup_active_p): New function.
1475 (syms_of_w32menu): Defsubr it.
1476 (popup_activated_flag, popup_activated): Remove.
1477
1478 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
1479 check popup_activated.
1480
1481 * xmenu.c (Fmenu_or_popup_active_p): New function.
1482 (syms_of_xmenu): Defsubr it.
1483
1484 2006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1485
1486 * unexmacosx.c (malloc_cookie): Remove unused variable.
1487 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
1488 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
1489 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
1490 (num_unexec_regions, unexec_regions): Make variables static.
1491 (print_regions, find_emacs_zone_regions): Make static.
1492 (unexec_region_info): New typedef.
1493 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
1494 All uses changed.
1495 (unexec_regions_recorder): Subtract size of trailing null pages from
1496 filesize. Show filesize.
1497 (unexec_regions_merge): Don't merge if null pages of preceding region
1498 is not too small. Use long format in printf.
1499 (copy_segment, copy_data_segment): Show filesize.
1500 (copy_data_segment): Write filesize bytes of region data.
1501 Adjust filesize in segment command accordingly.
1502 (dump_it): Use long format in printf.
1503
1504 2006-11-05 Juanma Barranquero <lekktu@gmail.com>
1505
1506 * dosfns.c (Finsert_startup_screen):
1507 * fns.c (Ffeaturep, syms_of_fns):
1508 * frame.c (syms_of_frame): Fix typos in docstrings.
1509
1510 * unexcw.c (unexec): Fix typo in output message.
1511
1512 2006-11-04 Ralf Angeli <angeli@caeruleus.net>
1513
1514 * w32fns.c (w32_createwindow): Remove code for handling -geometry
1515 command line option and `initial-frame-alist' which is superfluous
1516 after the last change to `w32_createwindow'.
1517
1518 2006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
1519
1520 * w32proc.c (sys_wait): Only wait for processes with fd<0.
1521 Others should be handled by sys_select instead. Fixes problems
1522 with (progn (start-process "" nil "ls") (call-process "ls")).
1523
1524 2006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1525
1526 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
1527 avoid gcc 2.95 error.
1528
1529 2006-11-04 Chong Yidong <cyd@stupidchicken.com>
1530
1531 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
1532 wicon is null, insert an empty button.
1533
1534 2006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1535
1536 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
1537 window.
1538
1539 2006-11-02 Juanma Barranquero <lekktu@gmail.com>
1540
1541 * emacs.c (Fkill_emacs): Fix typo in docstring.
1542
1543 2006-11-02 Nozomu Ando <nand@mac.com>
1544
1545 * unexmacosx.c (mach_header, segment_command, vm_region, section)
1546 [_LP64]: New defines.
1547 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
1548 (MH_MAGIC) [_LP64]: Redefine.
1549 (delta): Remove variable.
1550 (curr_file_offset, pagesize): New variables.
1551 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
1552 (data_segment_old_fileoff): Initialize explicitly.
1553 (print_region, unexec_regions_recorder, print_load_command_name)
1554 (copy_segment, copy_data_segment): Use long format in printf.
1555 (MAX_UNEXEC_REGIONS): Increase to 400.
1556 (unexec_regions_recorder): Don't warn too many regions here.
1557 (find_emacs_zone_regions): Warn too many regions here.
1558 (print_load_command_name) [_LP64]: Show correct load command name.
1559 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
1560 Show starting virtual memory address. Don't show ending file offset.
1561 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
1562 (dump_it): Use new local variable `linkedit_delta' and pass to them.
1563 Error if trying to handle multiple DATA segments.
1564 (unexec): Initialize variable `pagesize'.
1565
1566 2006-11-01 Juanma Barranquero <lekktu@gmail.com>
1567
1568 * eval.c (Fcatch): Doc fix.
1569
1570 2006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1571
1572 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
1573 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
1574 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
1575 (xpm_load_image): Add const qualifier to arguments.
1576 [MAC_OS] (xpm_color_key_strings): Make static const.
1577
1578 * mac.c (create_apple_event_from_event_ref)
1579 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
1580 (parse_include_file, parse_binding, parse_component)
1581 (parse_resource_name, parse_value, parse_resource_line)
1582 (xrm_merge_string_database, xrm_get_resource)
1583 (xrm_get_preference_database): Add const qualifier to arguments.
1584 [MAC_OSX] (sys_select): Make variable `context' static const.
1585
1586 * macfns.c (mac_color_map): Make static const.
1587 (mac_color_map_lookup): Add const qualifier to arguments.
1588
1589 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
1590 static const.
1591 (name_is_separator): Add const qualifier to arguments.
1592
1593 * macselect.c (init_service_handler): Make variable `specs' static
1594 const.
1595
1596 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
1597 `swap_nibbles' static const.
1598 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
1599 `tags', `sizes', `values' static const.
1600 (mac_draw_string_common): Make variables `context' static.
1601 Make variables `tags', `sizes', and `values' static const.
1602 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
1603 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
1604 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
1605 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
1606 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
1607 qualifier to arguments.
1608 (xlfd_scalable_fields, keycode_to_xkeysym_table)
1609 (fn_keycode_to_keycode_table): Make static const.
1610 (mac_load_query_font): Make variables `tags', `sizes', `values',
1611 `types', and `selectors' static const.
1612 (mac_handle_command_event, mac_handle_window_event):
1613 Make variables `names' and `types' static const.
1614 (init_command_handler, install_window_handler): Make variables
1615 `specs*' static const.
1616 (mac_handle_font_event, mac_handle_text_input_event)
1617 (mac_store_service_event): Make variables `names' and `types'
1618 const. Make variables `names_*' and `types_*' static const.
1619
1620 * macterm.h (create_apple_event_from_event_ref)
1621 (create_apple_event_from_drag_ref, xrm_merge_string_database)
1622 (xrm_get_resource, xrm_get_preference_database): Add const
1623 qualifier to arguments in externs.
1624
1625 2006-10-31 Kenichi Handa <handa@m17n.org>
1626
1627 * xfns.c (xic_create_xfontset): Fix previous change.
1628
1629 2006-10-30 Chong Yidong <cyd@stupidchicken.com>
1630
1631 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
1632 /usr/pkg/lib to library search path.
1633
1634 2006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
1635
1636 * ralloc.c (relinquish): Use a long for excess space counter to
1637 handle 64-bit case correctly.
1638
1639 2006-10-29 Jeramey Crawford <jeramey@jeramey.com>
1640
1641 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
1642
1643 2006-10-29 Juanma Barranquero <lekktu@gmail.com>
1644
1645 * window.c (Fdisplay_buffer): Fix typo in docstring.
1646
1647 2006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
1648
1649 * w32term.c (x_draw_glyph_string_foreground): Set background mode
1650 to TRANSPARENT before using overstrike to simulate bold faces.
1651
1652 * xfaces.c (best_matching_font): Fix logic to decide whether to
1653 use overstriking to simulate bold-face (it was reversed).
1654
1655 2006-10-23 Kim F. Storm <storm@cua.dk>
1656
1657 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
1658 initialized.
1659
1660 * keyboard.c (read_char): Make an element (t . EVENT) in
1661 unread-command-events add EVENT to the current command's key sequence.
1662 (syms_of_keyboard) <unread-command-events>: Update doc.
1663
1664 2006-10-21 Richard Stallman <rms@gnu.org>
1665
1666 * minibuf.c (Vread_expression_map): Define here.
1667 (Qread_expression_history): New variable.
1668 (syms_of_minibuf): Initialize them.
1669 (Feval_minibuffer): Use Vread_expression_map and
1670 Qread_expression_history.
1671
1672 2006-10-21 Kenichi Handa <handa@m17n.org>
1673
1674 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
1675 card, change it to "*".
1676 (xic_create_xfontset): Call XCreateFontSet for each single
1677 fontname in fontsetname.
1678
1679 2006-10-19 Chong Yidong <cyd@stupidchicken.com>
1680
1681 * callint.c (callint_message): Convert to a Lisp string.
1682 (syms_of_callint): Initialize it.
1683 (callint_message_size): Var deleted.
1684 (Fcall_interactively): Use Fformat instead of doprnt to construct
1685 prompt string.
1686
1687 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1688
1689 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
1690
1691 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1692
1693 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
1694 New variable.
1695 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
1696
1697 2006-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1698
1699 * xselect.c (x_handle_selection_request): If the converted_selection
1700 is nil or XCDR (converted_selection) is nil, decline the request.
1701
1702 2006-10-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1703
1704 * gtkutil.c (get_utf8_string): Remove warnings with casts.
1705 (xg_tool_bar_button_cb): Ditto.
1706 (xg_tool_bar_callback): Ditto.
1707
1708 2006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1709
1710 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
1711 variable ch_dim.
1712 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
1713 menu bar window matrices on non-X systems.
1714
1715 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
1716
1717 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
1718 adjustment is needed.
1719 (mac_load_query_font): Check if width and height are positive.
1720
1721 2006-10-14 Richard Stallman <rms@gnu.org>
1722
1723 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
1724
1725 2006-10-13 Chong Yidong <cyd@stupidchicken.com>
1726
1727 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
1728 title.
1729
1730 2006-10-12 Chong Yidong <cyd@stupidchicken.com>
1731
1732 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
1733 XCAR and XINT.
1734
1735 2006-10-12 Romain Francoise <romain@orebokech.com>
1736
1737 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
1738
1739 2006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
1740
1741 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
1742
1743 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
1744
1745 * xterm.c (x_check_expected_move): Remove unused var `count'.
1746
1747 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
1748 Fdefalias is not declared in any *.h file.
1749
1750 2006-10-09 Chong Yidong <cyd@stupidchicken.com>
1751
1752 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
1753
1754 * keyboard.c (command_loop_1): Handle non-number values of
1755 `minibuffer-message-timeout'.
1756 (Fexecute_extended_command): Fix typo.
1757
1758 * minibuf.c (temp_echo_area_glyphs): Sit for
1759 `minibuffer-message-timeout' seconds.
1760
1761 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1762
1763 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
1764 Add argument OVERSTRIKE_P.
1765 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
1766 Support overstrike.
1767 (mac_draw_string, mac_draw_string_16): Remove functions.
1768 (x_draw_glyph_string_foreground): Use overstrike when needed.
1769 (x_draw_composite_glyph_string_foreground): Likewise.
1770 Use mac_draw_image_string_16 instead of mac_draw_string_16.
1771 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
1772 F instead of DPY. All uses changed. Don't save/restore font.
1773
1774 2006-10-07 Ralf Angeli <angeli@caeruleus.net>
1775
1776 * w32fns.c (w32_createwindow): Honour left and top positions if
1777 supplied explicitly.
1778
1779 2006-10-06 Kim F. Storm <storm@cua.dk>
1780
1781 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
1782
1783 2006-10-05 Chong Yidong <cyd@stupidchicken.com>
1784
1785 * frame.c (Qinhibit_face_set_after_frame_default): New var.
1786 (syms_of_frame): Initialize it.
1787 (x_set_frame_parameters): Avoid resetting :font attributes to the
1788 new-frame defaults.
1789
1790 2006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
1791
1792 * lisp.h (clear_regexp_cache): Declare.
1793
1794 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
1795 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
1796 (clear_regexp_cache): Only flush those regexps which depend on
1797 a syntax-table.
1798
1799 * regex.c (regex_compile): Set the new `used_syntax' bit.
1800
1801 * regex.h: Remove file local variables.
1802 (struct re_pattern_buffer): New field `used_syntax'.
1803
1804 2006-10-03 Kim F. Storm <storm@cua.dk>
1805
1806 * process.c (list_processes_1): Run sentinels before removing dead
1807 processes. Also remove `closed' network connections.
1808
1809 2006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1810
1811 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
1812
1813 2006-09-30 Eli Zaretskii <eliz@gnu.org>
1814
1815 * config.in: Regenerated.
1816
1817 2006-09-29 Juri Linkov <juri@jurta.org>
1818
1819 * buffer.c (syms_of_buffer): Reorder coding systems in the
1820 docstring of %z to the real order displayed in the modeline.
1821
1822 2006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1823
1824 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
1825
1826 2006-09-26 Chong Yidong <cyd@stupidchicken.com>
1827
1828 * indent.c (Fvertical_motion): Do move back if the Lisp string
1829 being displayed contains newlines.
1830
1831 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1832
1833 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
1834 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
1835
1836 2006-09-26 Kenichi Handa <handa@m17n.org>
1837
1838 * keymap.c (Fsingle_key_description): For an invalid char, return
1839 "Invalid char code NNNNN".
1840
1841 2006-09-25 Chong Yidong <cyd@stupidchicken.com>
1842
1843 * callint.c (Fcall_interactively): Doc fix.
1844
1845 2006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1846
1847 * macterm.c (x_underline_at_descent_line): New variable.
1848 (syms_of_macterm): DEFVAR_BOOL it.
1849 (x_draw_glyph_string): Use it.
1850 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
1851
1852 2006-09-25 Kenichi Handa <handa@m17n.org>
1853
1854 * keymap.c (Fsingle_key_description): Return unique names for
1855 generic characters.
1856
1857 2006-09-24 Richard Stallman <rms@gnu.org>
1858
1859 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
1860
1861 2006-09-24 Eli Zaretskii <eliz@gnu.org>
1862
1863 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
1864 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
1865
1866 * w32proc.c (nl_langinfo): New function.
1867
1868 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
1869 (w32-pass-lwindow-to-system, w32-enable-num-lock)
1870 (w32-enable-caps-lock, w32-scroll-lock-modifier)
1871 (w32-lwindow-modifier, w32-rwindow-modifier)
1872 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
1873
1874 2006-09-23 Juanma Barranquero <lekktu@gmail.com>
1875
1876 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
1877 (Fdisplay_completion_list): Fix typos in docstrings.
1878
1879 2006-09-23 Romain Francoise <romain@orebokech.com>
1880
1881 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
1882
1883 2006-09-23 Kenichi Handa <handa@m17n.org>
1884
1885 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
1886
1887 2006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
1888
1889 * regex.c (analyse_first): For eight-bit-control chars, mark both the
1890 char's value and its leading byte in the fastmap.
1891 (re_search_2): When fast-scanning without translation, be careful to
1892 check that we only match the leading byte of a multibyte char.
1893
1894 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
1895 byte sequence.
1896 (AT_CHAR_BOUNDARY): New macro.
1897
1898 2006-09-22 Kenichi Handa <handa@m17n.org>
1899
1900 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
1901 whose default value is non-nil.
1902
1903 2006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1904
1905 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
1906 Gtk+ versions < 2.10.
1907
1908 * xfns.c (syms_of_xfns): Fix typo in help text for
1909 x-gtk-file-dialog-help-text.
1910
1911 2006-09-21 Kim F. Storm <storm@cua.dk>
1912
1913 * fns.c (Fmemq): Refill doc string.
1914 (Fmemql): New defun, like memq but using eql.
1915 (syms_of_fns): Defsubr it.
1916
1917 2006-09-20 Kim F. Storm <storm@cua.dk>
1918
1919 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
1920 last visible glyph in window.
1921
1922 * window.c (Fset_window_hscroll, Fwindow_line_height):
1923 Doc fix. Use "off-window" instead of "off-screen".
1924 (Fpos_visible_in_window_p): Likewise.
1925 If POS is t, return info for last visible glyph in window.
1926
1927 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
1928
1929 * search.c (struct regexp_cache): New entry syntax_table.
1930 (compile_pattern_1): Set it.
1931 (syms_of_search): Initialize it.
1932 (compile_pattern): Require the syntax_table entry of the cache
1933 element to match the current syntax table entry.
1934
1935 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
1936
1937 * window.c (Fwindow_end): Fix recent change.
1938
1939 2006-09-19 Kim F. Storm <storm@cua.dk>
1940
1941 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
1942 Doc fix. Use "off-screen" instead of "invisible".
1943 (Fwindow_line_height): Make line numbers 0-based. Make line arg
1944 optional; if nil, use current cursor row. Handle text terminals
1945 properly. Return nil if non-interactive or pseudo-window.
1946
1947 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
1948
1949 * keymap.c: Include alloca.h if available.
1950 (Fkey_binding): Only use AREF after checking it's a vector.
1951 Remove unused var `window'.
1952
1953 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1954
1955 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
1956 inhibit_sentinels.
1957
1958 * mac.c [!MAC_OSX] (select): Fix argument name.
1959
1960 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
1961 menu ID for Apple menu.
1962 (menubar_selection_callback): Remove function.
1963 (find_and_call_menu_selection): New function from xmenu.c.
1964 (x_activate_menubar): Use it.
1965 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
1966
1967 * macterm.c (menubar_selection_callback): Remove extern.
1968 (M_APPLE): Change to 234.
1969 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
1970 (do_menu_choice): Remove function.
1971
1972 * macterm.h (struct mac_output): Remove member menubar_active.
1973 (do_menu_choice): Remove extern.
1974 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
1975
1976 2006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1977
1978 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
1979 x_gtk_file_dialog_help_text.
1980
1981 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
1982 to x-gtk-use-old-file-dialog.
1983 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
1984 x_gtk_file_dialog_help_text.
1985
1986 * xfns.c (syms_of_xfns): Ditto.
1987
1988 2006-09-18 Kim F. Storm <storm@cua.dk>
1989
1990 * window.c (Fwindow_line_visibility): Remove.
1991 (Fwindow_line_height): New defun replacing it.
1992 (syms_of_window): Defsubr it.
1993
1994 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1995
1996 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
1997 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
1998
1999 2006-09-17 Jay Belanger <belanger@truman.edu>
2000
2001 * gmalloc.c:
2002 * md5.c:
2003 * md5.h:
2004 * strftime.c: Replace "GNU Library General Public License" by "GNU
2005 General Public License" throughout.
2006
2007 2006-09-17 Kim F. Storm <storm@cua.dk>
2008
2009 * dispnew.c (update_text_area): Undo 2000-07-18 change.
2010 Always redrawing whole row if line has mouse-face in it causes
2011 excessive flickering of the mode line.
2012
2013 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
2014
2015 * search.c (clear_regexp_cache): New function.
2016
2017 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
2018
2019 2006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2020
2021 * gtkutil.c (xg_get_file_with_chooser):
2022 Check x-gtk-show-chooser-help-text before adding the help text.
2023
2024 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
2025
2026 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
2027 will simply crash if we fail.
2028
2029 2006-09-16 Richard Stallman <rms@gnu.org>
2030
2031 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
2032
2033 2006-09-15 Kim F. Storm <storm@cua.dk>
2034
2035 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
2036 (syms_of_window): Defsubr it.
2037 (Fwindow_end): Use window's buffer rather than current buffer.
2038
2039 2006-09-15 Jay Belanger <belanger@truman.edu>
2040
2041 * COPYING: Replace "Library Public License" by "Lesser Public
2042 License" throughout.
2043
2044 2006-09-15 David Kastrup <dak@gnu.org>
2045
2046 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
2047
2048 * keymap.c: include "window.h".
2049 (Fcommand_remapping): New optional POSITION argument.
2050 (Fkey_binding): New optional POSITION argument. Completely rework
2051 handling of mouse clicks to get the same order of keymaps as
2052 `read-key-sequence' and heed POSITION. Also temporarily switch
2053 buffers to location of mouse click and back.
2054
2055 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
2056 for additional argument.
2057 (parse_menu_item): Adjust call of `Fkey_binding' for additional
2058 argument.
2059 (read_key_sequence): If there are both `local-map' and `keymap'
2060 text properties at some buffer position, heed both.
2061
2062 * keymap.h: Declare additional optional arguments of
2063 `Fcommand_remapping' and `Fkey_binding'.
2064
2065 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
2066
2067 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
2068
2069 2006-09-14 Andreas Schwab <schwab@suse.de>
2070
2071 * print.c: Whitespace fixup.
2072
2073 2006-09-14 Kim F. Storm <storm@cua.dk>
2074
2075 * xdisp.c (produce_image_glyph): Automatically crop wide images at
2076 right window edge so we can draw the cursor on the same row to
2077 avoid confusing redisplay by placing the cursor outside the visible
2078 window area.
2079
2080 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2081
2082 * xterm.c (x_initialize): Don't install Xt event timer here.
2083 (x_timeout_atimer_activated_flag): New var.
2084 (x_activate_timeout_atimer): New function to install Xt timer.
2085 (x_send_scroll_bar_event, x_process_timeouts): Use it.
2086
2087 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
2088 (create_and_show_popup_menu, create_and_show_dialog): Use it.
2089
2090 * xterm.h (x_activate_timeout_atimer): Add prototype.
2091
2092 2006-09-13 Richard Stallman <rms@gnu.org>
2093
2094 * print.c (print_string): When printcharfun is t,
2095 copy string contents and call strout on the copy.
2096
2097 * keyboard.c (read_char): If end_time specified, don't put the
2098 event into this_command_keys.
2099 (read_key_sequence): If Voverriding_terminal_local_map is specified,
2100 don't check Voverriding_local_map at all.
2101
2102 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2103
2104 * textprop.c (Fnext_property_change, Fnext_single_property_change)
2105 (Fprevious_property_change, Fprevious_single_property_change):
2106 Avoid changing limit, so we can correctly catch the case where the
2107 property is constant up to limit.
2108
2109 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2110
2111 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2112 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2113 Undo 2006-09-08 change.
2114
2115 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
2116
2117 * keymap.c (Fkey_binding): Use string position for string objects.
2118
2119 2006-09-11 Kim F. Storm <storm@cua.dk>
2120
2121 * keymap.c (Fkey_binding): Fix last change.
2122
2123 * editfns.c (Fmessage): Recommend using (message "%s" ...).
2124
2125 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
2126
2127 * keymap.c (Fkey_binding): Check for local keymap for mouse click
2128 events.
2129
2130 2006-09-10 Kim F. Storm <storm@cua.dk>
2131
2132 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
2133 and Vunread_post_input_method_events.
2134
2135 * dispnew.c (Fredisplay): Document return value.
2136
2137 2006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2138
2139 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
2140
2141 * gtkutil.c (xg_display_close): Always change default display if needed,
2142 check for < Gtk+ version 2.10 before calling gdk_display_close.
2143
2144 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2145
2146 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
2147 Make variable `ofds' static. Remove variable `maxfd'.
2148
2149 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
2150 Call check_mac.
2151
2152 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
2153 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
2154 Apply 2006-09-08 change for xmenu.c.
2155
2156 * xfns.c (Fx_file_dialog): Call check_x.
2157
2158 2006-09-10 Kim F. Storm <storm@cua.dk>
2159
2160 * xdisp.c (get_window_cursor_type): Use hollow cursor on
2161 non-transparent images.
2162
2163 2006-09-09 Eli Zaretskii <eliz@gnu.org>
2164
2165 * editfns.c (Fsystem_name): Mention "host" in the doc string.
2166 (syms_of_editfns) <system-name>: Likewise.
2167
2168 2006-09-08 Martin Rudalics <rudalics@gmx.at>
2169
2170 * xdisp.c (mouse_autoselect_window): Remove.
2171 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
2172
2173 * dispextern.h (mouse_autoselect_window): Remove extern.
2174 (Vmouse_autoselect_window): Add extern.
2175
2176 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
2177 instead of mouse_autoselect_window.
2178
2179 * msdos.c (dos_rawgetc): Likewise.
2180
2181 * w32term.c (w32_read_socket): Likewise.
2182
2183 * xterm.c (handle_one_xevent): Likewise.
2184
2185 2006-09-08 Richard Stallman <rms@gnu.org>
2186
2187 * xdisp.c (Vmenu_updating_frame): Define here.
2188 (syms_of_xdisp): DEFVAR it here.
2189 (update_menu_bar): Always return hooks_run.
2190 Set Vmenu_updating_frame.
2191
2192 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
2193 before calculating SELECTED_FRAME.
2194
2195 * xmenu.c (Vmenu_updating_frame): Don't define here.
2196 (syms_of_xmenu): Don't DEFVAR it here.
2197
2198 * xterm.c (x_error_quitter): For BadName error, just return.
2199
2200 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
2201
2202 * casetab.c (init_casetab_once): Call set_case_table.
2203
2204 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
2205
2206 * process.c (inhibit_sentinels): New variable.
2207 (exec_sentinel): Test inhibit_sentinels.
2208 (init_process): Initialize it.
2209
2210 * process.h (inhibit_sentinels): Add decl.
2211
2212 * search.c (looking_at_1, string_match_1, search_command):
2213 Make syntax table's canon table point to eqv table.
2214
2215 2006-09-08 Andreas Schwab <schwab@suse.de>
2216
2217 * print.c (strout): Fix whitespace.
2218
2219 2006-09-08 Kim F. Storm <storm@cua.dk>
2220
2221 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
2222
2223 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2224
2225 * mac.c [!MAC_OSX]: Don't include keyboard.h.
2226 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
2227 in the same BLOCK_INPUT block, in case that some input has already
2228 been read asynchronously. Pretend to be interrupted by a signal
2229 if some input is available.
2230 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
2231 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
2232 Now used for ReceiveNextEvent timeout instead of select timeout.
2233 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
2234 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
2235 support. Quit event loop.
2236 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
2237 connect support. Reuse previously allocated CFRunLoopSource.
2238 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
2239 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2240
2241 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2242 Specify kWindowAsyncDragAttribute.
2243
2244 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
2245 (mac_get_ideal_size): New functions.
2246 (x_set_offset, x_set_window_size, x_make_frame_visible)
2247 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
2248 (install_window_handler, mac_handle_window_event)
2249 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
2250 kEventWindowBoundsChanged.
2251 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
2252 DragWindow.
2253
2254 2006-09-07 Andreas Schwab <schwab@suse.de>
2255
2256 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
2257 use lib64 instead of lib.
2258
2259 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
2260
2261 * Makefile.in: Avoid double quotes when possible.
2262
2263 2006-09-06 Kenichi Handa <handa@m17n.org>
2264
2265 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
2266 a Lisp string from the result of emacs_memftimeu call.
2267
2268 2006-09-06 Kim F. Storm <storm@cua.dk>
2269
2270 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
2271 so calculate heights even when pos-visible-in-window-p is called
2272 with partially = t. Don't overshoot last_visible_y in move_it_to.
2273 Return row height and row number in new rowh and vpos args.
2274 (cursor_row_fully_visible_p): First line is always "fully visible".
2275 (try_window): Don't clear matrix if vscrolled.
2276
2277 * lisp.h (pos_visible_p): Update prototype.
2278
2279 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
2280 Return row height and row number for partially visible rows.
2281 Modify return value to a 2 element list for fully visible rows and
2282 6 for partially visible row.
2283 (window_scroll_pixel_based): Use pos_visible_p directly instead of
2284 Fpos_visible_in_window_p. Fix auto vscrolling for partially
2285 visible lines. Only vscroll backwards if already vscrolled
2286 forwards. Unconditionally vscroll forwards if PT is first (and
2287 only) line. Set new window start instead of scrolling at
2288 start/end of tall line.
2289
2290 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2291
2292 * macterm.c (install_window_handler, mac_handle_window_event)
2293 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
2294 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
2295 ASCII keystroke event.
2296
2297 2006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2298
2299 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
2300 the file chooser message. Only call gtk_file_chooser_set_current_name
2301 when action is SAVE.
2302
2303 2006-09-04 Andreas Schwab <schwab@suse.de>
2304
2305 * Makefile.in: Double all single and back quotes in C-style
2306 comments to help fontifier.
2307
2308 2006-09-03 Jason Rumney <jasonr@gnu.org>
2309
2310 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
2311 (globals_of_w32): Register it as a signal handler.
2312
2313 2006-09-02 Juri Linkov <juri@jurta.org>
2314
2315 * marker.c (Fmarker_position): Doc fix.
2316
2317 2006-09-03 Eli Zaretskii <eliz@gnu.org>
2318
2319 * window.c (syms_of_window) <split-height-threshold>:
2320 <window-min-height, window-min-width>: Doc fix.
2321
2322 2006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2323
2324 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
2325 for writing files. Call gtk_file_chooser_set_current_name to keep
2326 default filename.
2327
2328 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
2329
2330 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
2331
2332 * fns.c (concat) [__GNUC__]: Declare with
2333 `__attribute__((noinline))'.
2334
2335 * eval.c (apply1, call2) [__GNUC__]: Declare with
2336 `__attribute__((noinline))'.
2337
2338 2006-09-02 Stuart D. Herring <herring@lanl.gov>
2339
2340 * minibuf.c (Finternal_complete_buffer): New function.
2341 (syms_of_minibuf): Defsubr it.
2342 (Fread_buffer): Use it, instead of Vbuffer_alist.
2343
2344 2006-09-01 Martin Rudalics <rudalics@gmx.at>
2345
2346 * buffer.h (struct buffer_text): New field chars_modiff.
2347 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
2348 * buffer.c (Fbuffer_chars_modified_tick): New function returning
2349 value of BUF_CHARS_MODIFF.
2350 (syms_of_buffer): Defsubr it.
2351 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
2352 * insdel.c (modify_region): New argument preserve_chars_modiff.
2353 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
2354 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
2355 (adjust_after_replace, adjust_after_replace_noundo)
2356 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
2357 * lisp.h (modify_region): Add fourth argument in extern.
2358 * casefiddle.c (casify_region): Call modify_region with fourth
2359 argument zero to assert that CHARS_MODIFF is updated.
2360 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
2361 (Ftranspose_regions): Likewise.
2362 * textprop.c (Fadd_text_properties, Fset_text_properties)
2363 (Fremove_text_properties, Fremove_list_of_text_properties):
2364 Call modify_region with fourth argument 1 to avoid that
2365 CHARS_MODIFF is updated.
2366
2367 2006-08-31 Richard Stallman <rms@gnu.org>
2368
2369 * editfns.c (Fformat): Don't sign-extend for %o or %x.
2370
2371 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
2372
2373 * indent.c (Fvertical_motion): Don't move back if we were
2374 displaying a Lisp string, either.
2375
2376 2006-08-28 Kim F. Storm <storm@cua.dk>
2377
2378 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
2379 Don't attempt to replace cursor on image glyphs.
2380
2381 2006-08-28 Kenichi Handa <handa@m17n.org>
2382
2383 * coding.c (Fdetect_coding_region, Fdetect_coding_string):
2384 Fix docstring about ISO-2022 control characters.
2385
2386 2006-08-28 Kim F. Storm <storm@cua.dk>
2387
2388 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
2389 with a hollow box cursor if image is larger than 32x32 (or the default
2390 frame font if that is bigger). Replace any other cursor on images
2391 with hollow box cursor, as redisplay doesn't support bar and hbar
2392 cursors on images.
2393
2394 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2395
2396 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
2397 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
2398
2399 * dired.c (directory_files_internal_unwind, directory_files_internal)
2400 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
2401
2402 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
2403 of OSErr.
2404
2405 * keyboard.c (in_sighandler): Remove variable.
2406 (Fcurrent_idle_time): Add missing `doc:'.
2407 (input_available_signal, init_keyboard): Undo previous change.
2408
2409 * keyboard.h (in_sighandler): Remove extern.
2410
2411 * mac.c (create_apple_event_from_event_ref, select)
2412 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2413 (Fmac_set_file_type, cfstring_create_normalized)
2414 (mac_get_system_locale, select_and_poll_event, sys_select):
2415 Use OSStatus instead of OSErr.
2416
2417 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
2418 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
2419 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
2420
2421 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
2422 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
2423 (get_scrap_private_timestamp, get_scrap_target_type_list)
2424 (x_own_selection, x_get_foreign_selection)
2425 (Fx_disown_selection_internal, Fx_selection_owner_p)
2426 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
2427
2428 * macterm.c (mac_draw_string_common, mac_query_char_extents)
2429 (x_iconify_frame, XLoadQueryFont, install_window_handler)
2430 (mac_handle_command_event, init_command_handler, init_menu_bar):
2431 Use OSStatus instead of OSErr.
2432 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
2433 FRAME_FILE_NAME.
2434 (x_query_font): Apply 2006-08-04 change for xterm.c.
2435 (Qhi_command): Rename from Qhicommand. All uses changed.
2436
2437 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
2438 file_name.
2439 (FRAME_FILE_NAME): Remove macro.
2440 (install_window_handler, create_apple_event_from_event_ref):
2441 Return OSStatus instead of OSErr.
2442
2443 2006-08-26 Kim F. Storm <storm@cua.dk>
2444
2445 * buffer.c (Fset_buffer_multibyte):
2446 * editfns.c (Fcurrent_time, Fget_internal_run_time):
2447 * macfns.c (Fxw_color_values):
2448 * w32fns.c (Fxw_color_values):
2449 * xfns.c (Fxw_color_values): Simplify; use list3.
2450
2451 * fileio.c (Fmake_directory_internal, Fdelete_directory)
2452 (Fdelete_file): Simplify; use list1.
2453 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
2454 Simplify; remove NO_ARG_ARRAY stuff, use list2.
2455
2456 2006-08-25 Richard Stallman <rms@gnu.org>
2457
2458 * buffer.c (Fswitch_to_buffer): Fix previous change.
2459
2460 2006-08-25 Kim F. Storm <storm@cua.dk>
2461
2462 * keyboard.c (Fcurrent_idle_time): Simplify.
2463
2464 2006-08-25 Richard Stallman <rms@gnu.org>
2465
2466 * fns.c (sxhash_string): Rotate properly; don't lose bits.
2467
2468 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
2469
2470 * xdisp.c (overline_margin): New variable.
2471 (x_produce_glyphs): Use it.
2472 (syms_of_xdisp): DEFVAR_INT it.
2473
2474 * xterm.c (x_underline_at_descent_line): New variable.
2475 (syms_of_xterm): DEFVAR_BOOL it.
2476 (x_draw_glyph_string): Use it.
2477 Draw underline and overline up to the end of line if the face
2478 extends to the end of line.
2479
2480 * macterm.c: Likewise.
2481
2482 * w32term.c: Likewise.
2483
2484 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
2485
2486 * buffer.c (Fswitch_to_buffer): Move buffer to front of
2487 buffer-alist if necessary.
2488
2489 2006-08-22 Kim F. Storm <storm@cua.dk>
2490
2491 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
2492 number of items changes.
2493
2494 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
2495
2496 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
2497
2498 2006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2499
2500 * keyboard.c: Clarify difference between in_sighandler and
2501 handling_signal.
2502
2503 2006-08-21 Kim F. Storm <storm@cua.dk>
2504
2505 * macterm.c (x_draw_stretch_glyph_string):
2506 * w32term.c (x_draw_stretch_glyph_string):
2507 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
2508 stretch glyph in left marginal areas on header and mode lines.
2509
2510 2006-08-21 Kenichi Handa <handa@m17n.org>
2511
2512 * keyboard.c (syms_of_keyboard): Docstring of
2513 Vunread_post_input_method_events and Vunread_input_method_events
2514 fixed.
2515
2516 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
2517
2518 * keyboard.c (show_help_echo): Preserve mouse movement flag if
2519 tracking mouse.
2520
2521 2006-08-20 Richard Stallman <rms@gnu.org>
2522
2523 * xfaces.c (load_pixmap): Add quotes in error message.
2524
2525 * keyboard.c (Fcurrent_idle_time): New function.
2526 (syms_of_keyboard): defsubr it.
2527
2528 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
2529
2530 * window.c (Fset_window_fringes): Do nothing on a tty.
2531 (Fwindow_fringes): Put ? operator after the line break.
2532
2533 2006-08-16 Andreas Schwab <schwab@suse.de>
2534
2535 * print.c (debug_output_compilation_hack): Fix return type.
2536
2537 2006-08-16 Richard Stallman <rms@gnu.org>
2538
2539 * print.c (debug_output_compilation_hack): New function.
2540
2541 2006-08-16 Kenichi Handa <handa@m17n.org>
2542
2543 * fileio.c (choose_write_coding_system): Use LF for end-of-line
2544 in auto-saving.
2545
2546 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
2547
2548 * keyboard.c (read_char): Don't change idle timer state at all if
2549 end_time is supplied.
2550
2551 2006-08-15 Kenichi Handa <handa@m17n.org>
2552
2553 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
2554 is exhausted, return with RET.
2555 (detect_coding_emacs_mule, detect_coding_iso2022)
2556 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2557 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
2558 change.
2559
2560 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
2561
2562 * keyboard.c (read_char): Don't reset idle timers if a time limit
2563 is supplied.
2564
2565 2006-08-14 Kim F. Storm <storm@cua.dk>
2566
2567 * .gdbinit (pitx): Print iterator position.
2568 Limit stack dump in case iterator is not initialized.
2569
2570 2006-08-12 Eli Zaretskii <eliz@gnu.org>
2571
2572 * frame.c (Fmouse_position, Fmouse_pixel_position)
2573 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
2574
2575 2006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2576
2577 * xselect.c (Fx_register_dnd_atom): New function.
2578 (syms_of_xselect): Defsubr it.
2579 (x_handle_dnd_message): Check that message_type is in
2580 dpyinfo->x_dnd_atoms before generating lisp event.
2581
2582 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
2583 of drag and drop Atoms.
2584
2585 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
2586
2587 2006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2588
2589 * keyboard.c: Define in_sighandler.
2590 (input_available_signal): Set in_sighandler.
2591 (init_keyboard): Initialize in_sighandler.
2592
2593 * keyboard.h: Declare in_sighandler.
2594
2595 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
2596 to check if mutex should be locked or not.
2597
2598 2006-08-09 Richard Stallman <rms@gnu.org>
2599
2600 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
2601 (read_key_sequence): Always start fkey.start and fkey.end at 0,
2602 and likewise for keytran.
2603
2604 2006-08-09 Kenichi Handa <handa@m17n.org>
2605
2606 * coding.c (syms_of_coding): Improve the docstring
2607 of file-coding-system-alist.
2608
2609 2006-08-07 Andreas Schwab <schwab@suse.de>
2610
2611 * puresize.h (BASE_PURESIZE): Increase to 1120000.
2612
2613 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
2614
2615 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
2616 (Fkill_all_local_variables): Use it.
2617 (syms_of_buffer): Defvar it.
2618
2619 2006-08-05 Eli Zaretskii <eliz@gnu.org>
2620
2621 * w32.c (w32_valid_pointer_p): New function.
2622
2623 * w32.h: Add prototype for w32_valid_pointer_p.
2624
2625 * alloc.c: Include w32.h.
2626 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
2627 the job.
2628
2629 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
2630 is exactly equal to end_time, not only when it is past that.
2631
2632 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
2633
2634 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
2635
2636 * process.c: Reapply 2006-08-01 change.
2637
2638 2006-08-04 Eli Zaretskii <eliz@gnu.org>
2639
2640 * w32fns.c (w32_query_font): Fix last change: use stricmp.
2641
2642 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2643
2644 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
2645 the before-change-functions since they may have altered the buffer.
2646
2647 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
2648
2649 * w32fns.c (w32_createwindow): Handle -geometry command line option
2650 and the geometry settings in the Registry.
2651
2652 2006-08-04 Kenichi Handa <handa@m17n.org>
2653
2654 * w32fns.c (w32_query_font): Compare names by ignoring case.
2655
2656 * xterm.c (x_query_font): Compare names by ignoring case.
2657
2658 2006-08-03 Jason Rumney <jasonr@gnu.org>
2659
2660 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
2661 when no option selected.
2662
2663 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
2664
2665 * process.c: Revert last change.
2666
2667 2006-08-01 Kim F. Storm <storm@cua.dk>
2668
2669 * process.c (wait_reading_process_output_unwind): New function.
2670 Restores waiting_for_user_input_p to saved value.
2671 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
2672 instead of save/restore old value on stack.
2673
2674 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
2675
2676 * editfns.c: Undo 2006-06-27 change.
2677
2678 2006-07-29 Eli Zaretskii <eliz@gnu.org>
2679
2680 * coding.c (Ffind_operation_coding_system): Revert the change from
2681 2006-05-29.
2682
2683 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
2684
2685 2006-07-28 Richard Stallman <rms@gnu.org>
2686
2687 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
2688 Add conditional aborts for clarity.
2689
2690 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
2691 Used to avoid running the hooks over and over for each frame.
2692 (prepare_menu_bars): Pass value from update_menu_bar
2693 as HOOKS_RUN of next call.
2694
2695 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
2696
2697 2006-07-28 Kim F. Storm <storm@cua.dk>
2698
2699 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
2700 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
2701
2702 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
2703
2704 * keyboard.c (read_char): New arg END_TIME specifying timeout.
2705 All callers changed. Turn off echoing if END_TIME is non-NULL.
2706 (kbd_buffer_get_event): New arg END_TIME.
2707
2708 * lread.c (read_filtered_event): New arg SECONDS to wait until.
2709 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
2710
2711 * lisp.h: Update read-char, read-event, and read_filtered_event
2712 prototypes.
2713
2714 * keyboard.h: Include systime.h. Update read_char prototype.
2715
2716 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2717
2718 * alloc.c (find_string_data_in_pure): New function.
2719 (make_pure_string): Use it to reuse existing string data if possible.
2720
2721 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
2722
2723 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
2724
2725 * keymap.c (Fdefine_key): If the key binding definition looks like an
2726 XEmacs-style key sequence, convert it to Emacs's format.
2727
2728 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
2729
2730 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
2731 parameters are bound to some values, use that instead of
2732 CW_USEDEFAULT.
2733
2734 2006-07-21 Eli Zaretskii <eliz@gnu.org>
2735
2736 * w32.c (convert_time): Use explicit long double constants to
2737 ensure long double arithmetics is used throughout.
2738
2739 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2740
2741 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
2742 (init_alloc_once): Initialize them.
2743 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
2744 without alignment.
2745
2746 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
2747
2748 2006-07-18 Francis Litterio <franl@world.std.com>
2749
2750 * w32term.c (x_calc_absolute_position): Fix frame positioning
2751 with negative X/Y coordinates.
2752
2753 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2754
2755 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
2756
2757 * textprop.c (text_read_only): Likewise.
2758
2759 * lread.c (end_of_file_error): Likewise.
2760
2761 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
2762 Likewise.
2763
2764 * eval.c (unwind_to_catch): Likewise.
2765
2766 * buffer.h (buffer_slot_type_mismatch): Likewise.
2767
2768 2006-07-18 Kim F. Storm <storm@cua.dk>
2769
2770 Cleanup Fsignal calls that never returns; now only use it for Qquit.
2771
2772 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
2773 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
2774 (signal_error): New no-return function (from xfaces.c).
2775 (Fthrow): Use xsignal2 instead of Fsignal + abort.
2776 (error): Use xsignal1 instead of Fsignal + abort.
2777 (FletX, Flet, grow_specpdl): Use signal_error.
2778 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
2779
2780 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
2781 (list1): New function.
2782
2783 * lisp.h (list1): Add EXFUN.
2784 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
2785 Add prototypes. Mark them as no-return.
2786
2787 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
2788 Use xsignal1.
2789
2790 * callint.c (check_mark): Use xsignal0.
2791
2792 * casefiddle.c (casify_object): wrong_type_argument is no-return.
2793
2794 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
2795
2796 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
2797 (Fdefine_coding_system_internal): Use xsignal1.
2798
2799 * data.c (circular_list_error): Use xsignal.
2800 (wrong_type_argument): Use xsignal2. Don't care about return value.
2801 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
2802 Remove loop around Fsignal.
2803 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
2804 (indirect_function, Findirect_function, Fstring_to_number)
2805 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
2806 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
2807 Use xsignal0.
2808
2809 * doc.c (Fdocumentation): Use xsignal1.
2810
2811 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
2812
2813 * fileio.c (report_file_error): Use xsignal.
2814 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
2815 (Finsert_file_contents): Use xsignal2.
2816 (syms_of_fileio): Use list2, list3.
2817
2818 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
2819 (range_error2, domain_error2): Use xsignal3.
2820 (rounding_driver, fmod_float): Use xsignal0.
2821 (float_error): Use xsignal1.
2822 (matherr): Use xsignal.
2823
2824 * fns.c (Flength): wrong_type_argument is no-return.
2825 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
2826 (Fmd5): Use xsignal1.
2827
2828 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
2829
2830 * keyboard.c (recursive_edit_1): Use xsignal1.
2831
2832 * keymap.c (Fmap_keymap): Use xsignal1.
2833
2834 * lread.c (Fload): Use xsignal2, signal_error.
2835 (end_of_file_error): Use xsignal0, xsignal1.
2836 (read0): Use xsignal1.
2837 (invalid_syntax): New error function marked no-return.
2838 (read_integer, read1, read_list): Use it.
2839
2840 * macselect.c (x_get_local_selection): Use signal_error.
2841
2842 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
2843
2844 * search.c (compile_pattern_1): Use xsignal1.
2845 (signal_failure): Remove (was only called once).
2846 (search_command): Use xsignal1 instead of signal_failure.
2847
2848 * syntax.c (scan_lists): Use xsignal3.
2849
2850 * textprop.c (text_read_only): Use xsignal0, xsignal1.
2851
2852 * unexsol.c (unexec): Use xsignal.
2853
2854 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2855 Use xsignal0.
2856
2857 * xfaces.c (signal_error): Move to eval.c.
2858 (resolve_face_name): Use xsignal1.
2859
2860 * xfns.c (x_decode_color): Use signal_error.
2861
2862 * xselect.c (x_get_local_selection, copy_multiple_data)
2863 (x_get_window_property_as_lisp_data)
2864 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
2865 (Fx_get_cut_buffer_internal): Use signal_error.
2866
2867 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2868
2869 * macterm.c (XTread_socket): Undo previous change.
2870
2871 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2872
2873 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
2874 directly lookup keycode_to_xkeysym_table.
2875 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
2876 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
2877 (XTread_socket): Use character codes to construct keypad key events.
2878 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
2879 (x_delete_display): Apply 2006-07-04 change for xterm.c.
2880
2881 2006-07-17 Richard Stallman <rms@gnu.org>
2882
2883 * keyboard.c (Vcommand_error_function): New variable.
2884 (syms_of_keyboard): Defvar it.
2885 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
2886
2887 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
2888
2889 2006-07-17 Kim F. Storm <storm@cua.dk>
2890
2891 * xdisp.c (handle_single_display_spec): Ensure the right value of
2892 it->position is saved by push_it.
2893 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
2894 (reseat_1): Don't setup it->object twice.
2895 (set_iterator_to_next): No need to set it->object after pop_it.
2896 (move_it_to): Explicitly check to see if last move reached to_charpos.
2897
2898 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
2899
2900 * xdisp.c (display_mode_line): Preserve match data.
2901
2902 2006-07-14 Kim F. Storm <storm@cua.dk>
2903
2904 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
2905 (init_winsock): Load them. Use ws2_32.dll.
2906 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
2907 (sys_accept): Undo last change. Instead, set child status to
2908 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
2909 sys_select will wakeup the reader thread.
2910 (_sys_wait_accept): New function used by reader thread to wait for
2911 an incoming connection on a server socket.
2912
2913 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
2914
2915 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
2916 server socket (FILE_LISTEN flag).
2917
2918 2006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2919
2920 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
2921
2922 2006-07-14 Kim F. Storm <storm@cua.dk>
2923
2924 * w32.c: Fix high cpu load for server sockets.
2925 (pfn_WSAEventSelect): New function ptr.
2926 (init_winsock): Load it.
2927 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
2928 char_avail event object to FD_ACCEPT.
2929 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
2930 socket's char_avail event object to FD_READ|FD_CLOSE.
2931
2932 * w32.h (FILE_LISTEN): New filedesc flag value.
2933
2934 2006-07-13 Kim F. Storm <storm@cua.dk>
2935
2936 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
2937 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
2938 Simplify loops and use CAR for Bnth and Belt.
2939
2940 * data.c (Findirect_function): Optimize for no indirection.
2941
2942 * eval.c (Fthrow): Remove loop around Fsignal.
2943 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
2944 Use original function name in all signaled errors.
2945 Simplify Fsignal calls (no return).
2946 (funcall_lambda): Simplify Fsignal calls (no return).
2947
2948 2006-07-13 Andreas Schwab <schwab@suse.de>
2949
2950 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
2951 out_charpos.
2952
2953 2006-07-13 Kenichi Handa <handa@m17n.org>
2954
2955 * editfns.c (Fformat): Fix calculation of text property positions
2956 of format string.
2957
2958 2006-07-12 Kim F. Storm <storm@cua.dk>
2959
2960 * lisp.h (CHECK_TYPE): New macro for generic type checking.
2961 (CAR_SAFE, CDR_SAFE): New macros.
2962 (ARRAYP, CHECK_ARRAY): New macros.
2963 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
2964 (CHECK_WINDOW_CONFIGURATION): New macro.
2965 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
2966 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2967 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
2968 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
2969 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
2970 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
2971 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2972 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
2973
2974 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
2975 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
2976
2977 * callint.c (Fcall_interactively):
2978 * casefiddle.c (casify_object):
2979 * editfns.c (general_insert_function):
2980 * fns.c (Flength, Felt, Ffillarray):
2981 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
2982
2983 * data.c (wrong_type_argument): Remove loop around Fsignal.
2984 (Farrayp, Fsequencep): Use ARRAYP.
2985 (Fcar): Use CAR.
2986 (Fcar_safe): Use CAR_SAFE.
2987 (Fcdr): Use CDR.
2988 (Fcdr_safe): Use CDR_SAFE.
2989 (Fsetcar, Fsetcdr): Use CHECK_CONS.
2990 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
2991 (Faset): Use CHECK_ARRAY.
2992
2993 * fns.c (Felt): Use CHECK_ARRAY.
2994 (concat): Use CHECK_NUMBER.
2995 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
2996 (Fmemq): Use CHECK_LIST.
2997 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
2998 (assq_no_quit): Use CAR_SAFE.
2999 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
3000 Use CHECK_LIST_CONS.
3001 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
3002
3003 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
3004
3005 * casetab.c (check_case_table):
3006 * category.c (check_category_table):
3007 * marker.c (Fcopy_marker):
3008 * syntax.c (check_syntax_table):
3009 * xfaces.c (load_pixmap): Use CHECK_TYPE.
3010
3011 * fns.c (Fcopy_sequence, concat):
3012 * fringe.c (Fdefine_fringe_bitmap):
3013 * lread.c (check_obarray): Cleanup wrong_type_argument use.
3014
3015 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
3016
3017 * keymap.c (Fdefine_key, Flookup_key):
3018 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
3019
3020 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
3021
3022 * search.c (Fset_match_data): Use CHECK_LIST.
3023
3024 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
3025
3026 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
3027 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
3028
3029 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3030
3031 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
3032
3033 * dired.c: Include blockinput.h.
3034 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
3035
3036 * editfns.c: Include blockinput.h.
3037 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
3038 getpwuid/getpwnam.
3039
3040 * fileio.c: Include blockinput.h.
3041 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
3042 around getpwnam.
3043 (search_embedded_absfilename): Remove spurious xfree.
3044
3045 2006-07-11 Kim F. Storm <storm@cua.dk>
3046
3047 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
3048 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
3049 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
3050 Signal error if TIMEOUT is not a number.
3051 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
3052 The rework of sit_for args also fixes several incorrect Qt args
3053 which should have been 1.
3054 (Fredisplay): Pass 1 instead of Qt to swallow_events and
3055 detect_input_pending_run_timers.
3056
3057 * lisp.h (sit_for): Update prototype.
3058 (Fredisplay): Add EXFUN.
3059
3060 * dispextern.h (sit_for): Remove prototype.
3061
3062 * callint.c (Fcall_interactively):
3063 * minibuf.c (temp_echo_area_glyphs):
3064 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
3065 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
3066
3067 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
3068
3069 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
3070
3071 2006-07-11 Kim F. Storm <storm@cua.dk>
3072
3073 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
3074 input is available. Fix test for redisplay_dont_pause non-nil.
3075 Specbind redisplay-dont-pause to t if FORCE non-nil.
3076
3077 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
3078
3079 * puresize.h (BASE_PURESIZE): Increment to 1211000.
3080
3081 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
3082 (Fsit_for): Function deleted.
3083
3084 * keyboard.c (command_loop_1, Fexecute_extended_command):
3085 Call sit_for instead of Fsit_for.
3086
3087 * minibuf.c (temp_echo_area_glyphs): Likewise.
3088
3089 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
3090
3091 * syntax.c (Fforward_comment): Revert the reversion.
3092 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
3093
3094 2006-07-09 John Paul Wallington <jpw@pobox.com>
3095
3096 * syntax.c (Fforward_comment): Revert previous change.
3097
3098 2006-07-09 Kim F. Storm <storm@cua.dk>
3099
3100 * window.c (Fforce_window_update): Doc fix.
3101
3102 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
3103
3104 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
3105 directory unreadable for better user privacy.
3106
3107 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
3108
3109 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
3110
3111 * lread.c (read_filtered_event): Remove `register' qualifier because it
3112 causes compilation problem with gcc-4.0.2-20051125 on amd64.
3113 (readevalloop): Remove unused var `bpos'.
3114 Yet another int/Lisp_Object mixup (YAILOM).
3115
3116 2006-07-07 Eli Zaretskii <eliz@gnu.org>
3117
3118 * keyboard.c (Fexecute_extended_command): Mention the argument
3119 PREFIXARG in the doc string.
3120
3121 2006-07-07 Kim F. Storm <storm@cua.dk>
3122
3123 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3124
3125 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
3126
3127 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
3128 clash detection using the base buffer.
3129
3130 * puresize.h (BASE_PURESIZE): Increment to 1210500.
3131
3132 2006-07-04 Kim F. Storm <storm@cua.dk>
3133
3134 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
3135
3136 2006-07-04 Kenichi Handa <handa@m17n.org>
3137
3138 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
3139 to update Voverriding_fontspec_alist.
3140
3141 2006-07-03 Richard Stallman <rms@gnu.org>
3142
3143 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
3144
3145 * xfaces.c (Fface_attribute_relative_p): Doc fix.
3146
3147 * textprop.c (Fget_char_property_and_overlay): Doc fix.
3148
3149 * eval.c (Fdefvaralias): Doc fix.
3150
3151 2006-07-03 Kim F. Storm <storm@cua.dk>
3152
3153 * dispnew.c (sit_for): Fix preempt condition.
3154
3155 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
3156
3157 * lread.c (read_filtered_event): Treat select-window just like
3158 switch-frame.
3159
3160 2006-07-02 Kim F. Storm <storm@cua.dk>
3161
3162 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
3163 to ever fit the tool-bar,
3164 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
3165 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
3166 (redisplay_tool_bar): Only clear desired matrix if we actually
3167 change the tool-bar window height. Only try to make the tool-bar
3168 window bigger if there is actually room for it.
3169
3170 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
3171
3172 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
3173 SPI_GETWORKAREA to find the dimensions of the screen work area,
3174 and adjust vertical position of the frame in order to avoid being
3175 covered by the task bar.
3176
3177 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
3178 f->left_pos and SH_SHOW instead of f->top_pos in the call to
3179 CreateWindow. Record the actual position in f->left_pos and
3180 f->top_pos.
3181
3182 2006-06-30 John Paul Wallington <jpw@pobox.com>
3183
3184 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
3185 Doc fix - default value has changed.
3186
3187 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3188
3189 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
3190
3191 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
3192
3193 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
3194
3195 * macterm.c (Qeql): Add extern.
3196 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
3197 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
3198 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
3199 Change keys of Vmac_atsu_font_table from strings to numbers.
3200 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
3201 (init_font_name_table) [USE_ATSUI]: Use it.
3202 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
3203 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
3204 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
3205 only when saved_ts_script_language_on_focus coincides with
3206 Vmac_ts_script_language_on_focus.
3207 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
3208 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
3209 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
3210 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
3211
3212 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
3213
3214 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
3215 (Ffield_string_no_properties, Ffield_end): Mention
3216 args-out-of-range error condition in docstring.
3217
3218 2006-06-27 Kim F. Storm <storm@cua.dk>
3219
3220 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
3221
3222 2006-06-25 Kim F. Storm <storm@cua.dk>
3223
3224 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
3225 version 2.4 and later.
3226
3227 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
3228
3229 * xfns.c (Fx_create_frame): Set font parameter directly instead of
3230 using x_default_parameter, since x_get_args clears the parm alist.
3231
3232 2006-06-24 Eli Zaretskii <eliz@gnu.org>
3233
3234 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
3235 case-insensitively.
3236
3237 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
3238
3239 * lread.c (read_escape): When an unknown Unicode code point is
3240 encountered as a string or character escape, signal an error.
3241
3242 2006-06-23 Kim F. Storm <storm@cua.dk>
3243
3244 * .gdbinit (pitx): Dump iterator stack.
3245
3246 * xdisp.c (handle_composition_prop): Push iterator on stack.
3247 (set_iterator_to_next): Pop iterator at end of composition.
3248
3249 2006-06-23 Martin Rudalics <rudalics@gmx.at>
3250
3251 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
3252 itself on DOS_NT platforms, if the old and new names are identical
3253 but for the letter-case.
3254
3255 2006-06-21 Kim F. Storm <storm@cua.dk>
3256
3257 * dispextern.h (struct it): Add `position' member to iterator stack.
3258 Rename `pos' member to `current'. Rearrange and add comments.
3259
3260 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
3261 if we get any overlays.
3262 (set_cursor_from_row): Don't clobber `end' if we rescan from
3263 start_string.
3264 (push_it, pop_it): Save it->position.
3265
3266 2006-06-19 Richard Stallman <rms@gnu.org>
3267
3268 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
3269 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
3270 for the case of a top-level window and the following minibuffer.
3271 Don't exit because of no `next' when there is a parent.
3272 Use the FIRST_ONLY feature when resizing following windows.
3273
3274 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
3275
3276 2006-06-17 Kim F. Storm <storm@cua.dk>
3277
3278 * dispnew.c (update_frame): Check for input pending on entry.
3279 (update_window, update_frame_1): Break loop if input is detected.
3280
3281 2006-06-16 Francis Litterio <flitterio@gmail.com>
3282
3283 * xterm.c (x_check_expected_move, handle_one_xevent)
3284 (x_set_offset, x_check_fullscreen): Extensive changes to make
3285 frame positioning deterministic under X.
3286
3287 * xterm.h (x_output): Add members left_before_move and
3288 top_before_move. Removed members expected_left and expected_top.
3289
3290 2006-06-16 Kim F. Storm <storm@cua.dk>
3291
3292 * dispextern.h (struct it): Add union to iterator stack to save
3293 image, composition, and stretch specific paramters.
3294
3295 * xdisp.c (next_overlay_string): Fix assert.
3296 (push_it, pop_it): Handle composition and stretch specific values.
3297 Only handle it->slice in image (for now).
3298 (back_to_previous_visible_line_start): Continue search if newline is
3299 part of a compisition. Simplify.
3300 (reseat_1): Set it->object to buffer.
3301 (set_iterator_to_next): Set it->object to string or buffer, when
3302 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
3303 (next_element_from_composition): Set it->object to buffer if not
3304 from string.
3305 (set_cursor_from_row): Only save start of string if not already
3306 done to handle multiple strings in a row.
3307
3308 * .gdbinit (pitx): Show composition parameters.
3309 (pgx, pg): New commands to print a glyph structure.
3310 (pgi, pgn): New commands to print specific/next glyph.
3311 (pgrowx, pgrow): New commands to print all glyphs in a row.
3312
3313 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3314
3315 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
3316 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
3317
3318 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
3319 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
3320 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
3321 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
3322 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3323 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
3324 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
3325 Services functions to get size of main display in pixels.
3326
3327 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
3328
3329 * xdisp.c (back_to_previous_visible_line_start):
3330 Reset it->continuation_lines_width.
3331
3332 2006-06-14 Richard Stallman <rms@gnu.org>
3333
3334 * eval.c (Fdefconst): Mark variable as risky.
3335
3336 * callproc.c (Fcall_process): Doc fix.
3337
3338 * window.c (adjust_window_trailing_edge): Don't break out of the loop
3339 because there's no next window, if there are parallel windows.
3340 Do break out when WINDOW is nil.
3341
3342 2006-06-14 Kim F. Storm <storm@cua.dk>
3343
3344 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
3345 iterator stack (instead of hardcoded number). Increase from 2 to
3346 4 to make room for propertized overlay strings before and after a
3347 display string, image or composition.
3348 (struct it): Add image_id and method members to iterator stack.
3349
3350 * xdisp.c (init_from_display_pos): Don't set it->method and
3351 overlay_string_index after pop_it. Add asserts.
3352 (handle_stop): Look for overlay strings around a display string,
3353 image, or composition. Handle properties on those strings.
3354 (next_overlay_string): Don't set string, pos or method after pop_it.
3355 (get_overlay_strings_1): Split from get_overlay_strings; don't
3356 modify it if no overlay strings are found.
3357 (get_overlay_strings): Use get_overlay_strings_1. Always set
3358 it->string and it->method.
3359 (push_it): Push it->image_id and it->method. Push it->object
3360 instead of it->string if method is GET_FROM_IMAGE.
3361 (pop_it): Pop it->image_id and it->method. Ppo it->object
3362 instead of it->string if method is GET_FROM_IMAGE.
3363 Reset it->current.string_pos if popped it->string is nil.
3364 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
3365 whether a given change was correct; but the change is correct.
3366 Clear it->string_from_display_prop_p.
3367 (set_iterator_to_next): Rely on it->method and it->image_id from
3368 iterator stack, instead of setting them explicitly after pop_it.
3369
3370 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
3371 negative time forces redisplay even when input is available.
3372 (Fsit_for): Doc fix.
3373
3374 2006-06-13 Kim F. Storm <storm@cua.dk>
3375
3376 * dispnew.c: Modify preemptive redisplay to be based on periodic
3377 checks for input.
3378 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
3379 (Vredisplay_preemption_period): New variable.
3380 (syms_of_display): DEFVAR_LISP and initialize it.
3381 (preemption_period, preemption_next_check): New variables.
3382 (update_frame, update_single_window): Initialize them based on
3383 Vredisplay_preemption_period if !force_p.
3384 (update_window, update_frame_1): Use them to determine when to
3385 check for input.
3386
3387 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
3388
3389 * lread.c (read_escape): Provide a Unicode character escape
3390 syntax; \u followed by exactly four or \U followed by exactly
3391 eight hex digits in a comment or string is read as a Unicode
3392 character with that code point.
3393
3394 2006-06-09 Eli Zaretskii <eliz@gnu.org>
3395
3396 * window.c (window_scroll_pixel_based): Signal "Beginning of
3397 buffer" when scroll-down at the beginning of an empty buffer.
3398
3399 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3400
3401 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
3402 Exclude 0x7f from ASCII range.
3403
3404 2006-06-05 Jason Rumney <jasonr@gnu.org>
3405
3406 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
3407 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
3408 (x_scroll_bar_report_motion): Remove workarounds for
3409 versions of Windows NT < 3.51.
3410 [!SIF_ALL]: Remove.
3411 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
3412 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
3413
3414 2006-06-04 David Kastrup <dak@gnu.org>
3415
3416 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
3417 `sit-for'.
3418
3419 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3420
3421 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
3422
3423 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
3424
3425 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
3426 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
3427 [USE_MAC_TSM]: Likewise.
3428 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
3429 (Qbefore_string) [USE_MAC_TSM]: Add extern.
3430 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
3431 ActivateTSMDocument/DeactivateTSMDocument.
3432 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
3433 (mac_handle_window_event) [USE_MAC_TSM]: Handle
3434 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
3435 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
3436 (install_window_handler) [USE_MAC_TSM]: Install it. Register
3437 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
3438 (keycode_to_xkeysym_table): Add entry for f16.
3439 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
3440 before/after passing keystroke event to toolbox dispatcher.
3441 (init_tsm) [USE_MAC_TSM]: New function.
3442 (mac_initialize) [USE_MAC_TSM]: Call it.
3443 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
3444
3445 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
3446
3447 2006-06-02 John Paul Wallington <jpw@gnu.org>
3448
3449 * xfns.c (x_set_name_internal): Set icon to `text', derived from
3450 name, when frame's icon_name isn't a string rather than only when
3451 it is nil.
3452
3453 2006-06-03 Eli Zaretskii <eliz@gnu.org>
3454
3455 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
3456 and not nil.
3457
3458 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
3459
3460 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
3461 string.
3462
3463 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3464
3465 * xdisp.c (next_element_from_composition): Set it->object to
3466 it->string if composition is coming from string.
3467 (set_cursor_from_row): Don't return 0 unless row displays a
3468 continued line.
3469 (dump_glyph): Dump composite glyph.
3470
3471 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3472
3473 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
3474
3475 2006-06-01 Richard Stallman <rms@gnu.org>
3476
3477 * window.c (Fsplit_window): Doc fix.
3478
3479 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
3480
3481 * process.c (deleted_pid_list): New variable to store the pids
3482 of deleted processes. Declare it only if SIGCHLD is defined.
3483 (init_process): Initialize it.
3484 (syms_of_process): Staticpro it.
3485 (Fdelete_process): Add pid of the deleted process to it. Check after
3486 the addition and before the kill if the process is already stopped,
3487 in which case it is deleted from the list and not killed.
3488 (sigchld_handler): Define it only if SIGCHLD is. Search the process
3489 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
3490 Original idea by Stefan Monnier.
3491
3492 2006-06-01 Kim F. Storm <storm@cua.dk>
3493
3494 * dispnew.c (sit_for): Perform redisplay even if input is pending
3495 when redisplay-dont-pause is non-nil.
3496
3497 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3498
3499 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
3500 (XTread_socket): Remove obsolete comment.
3501
3502 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3503
3504 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
3505 menu-bar-open.
3506
3507 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3508
3509 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
3510 menu-bar-open.
3511
3512 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
3513
3514 2006-05-31 Juri Linkov <juri@jurta.org>
3515
3516 * minibuf.c (Vhistory_add_new_input): New variable.
3517 (read_minibuf): Use it.
3518 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
3519 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
3520
3521 2006-05-31 Kim F. Storm <storm@cua.dk>
3522
3523 * process.c (select_wrapper): Add wrapper around select to work around
3524 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
3525 select called from wait_reading_process_output.
3526
3527 2006-05-30 Andreas Schwab <schwab@suse.de>
3528
3529 * xmenu.c (Fmenu_bar_start): Return a value.
3530
3531 2006-05-30 Richard Stallman <rms@gnu.org>
3532
3533 * coding.c (Ffind_operation_coding_system): Doc fix.
3534
3535 2006-05-30 Eli Zaretskii <eliz@gnu.org>
3536
3537 * w32term.c (x_draw_hollow_cursor): Fix last change.
3538
3539 2006-05-29 Kim F. Storm <storm@cua.dk>
3540
3541 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
3542
3543 2006-05-29 Eli Zaretskii <eliz@gnu.org>
3544
3545 * coding.c (Ffind_operation_coding_system): Doc fix.
3546
3547 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3548
3549 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
3550 Call mac_set_font_info_for_selection if font panel is made visible.
3551
3552 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
3553 (mac_font_panel_visible_p, mac_show_hide_font_panel)
3554 [USE_MAC_FONT_PANEL]: New functions.
3555 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
3556 Return immediately if font panel is not visible.
3557
3558 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
3559 Add externs.
3560
3561 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
3562
3563 * search.c (matcher_overflow): Mark as NO_RETURN.
3564
3565 * xterm.c (x_connection_closed): Likewise.
3566
3567 * sysdep.c (croak): Likewise.
3568
3569 * sound.c (sound_perror, alsa_sound_perror): Likewise.
3570
3571 * lisp.h (die, nsberror): Likewise.
3572
3573 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3574
3575 * sound.c (alsa_open, alsa_configure, alsa_write):
3576 Move assignment to err out of if-statement.
3577
3578 * gtkutil.c (menu_nav_ended): New function.
3579 (create_menus): Connect menu_nav_ended to "selection-done" to fix
3580 grabs.
3581
3582 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
3583
3584 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
3585
3586 * charset.h (invalid_character): Mark as NO_RETURN.
3587
3588 2006-05-29 Kenichi Handa <handa@m17n.org>
3589
3590 * coding.c (Ffind_operation_coding_system): Call a function by
3591 safe_call1 instead of call1.
3592
3593 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3594
3595 * window.c (struct saved_window): Add `dedicated'.
3596 (Fset_window_configuration, save_window_save): Save/restore the
3597 `dedicated' flag.
3598
3599 2006-05-28 Kim F. Storm <storm@cua.dk>
3600
3601 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
3602 don't update w->cursor and return 0. Return 1 on success.
3603 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
3604 until it succeeds.
3605
3606 * dispextern.h (set_cursor_from_row): Update prototype.
3607
3608 2006-05-28 Kim F. Storm <storm@cua.dk>
3609
3610 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
3611 parameters. Adjust x and width in case cursor in on a partially
3612 visible stretch glyph on the left edge.
3613 (erase_phys_cursor): Don't erase into left fringe/margin in case
3614 previous cursor glyph is a partially visible stretch glyph on left.
3615
3616 * dispextern.h (get_phys_cursor_geometry): Update prototype.
3617
3618 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
3619 cursor and erasing cursor on partially visible stretch glyph on left.
3620 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
3621
3622 * macterm.c: Likewise.
3623
3624 * w32term.c: Likewise.
3625
3626 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3627
3628 * macselect.c (mac_handle_apple_event):
3629 Return errAEEventNotHandled if key binding is not found.
3630
3631 2006-05-26 Eli Zaretskii <eliz@gnu.org>
3632
3633 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
3634 [__MINGW32__]: MinGW-specific declaration of `etext'.
3635
3636 * w32heap.c (etext, edata): Remove unused definitions.
3637
3638 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
3639
3640 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
3641 Incorporate the exclusive file-opening functionality into the behavior
3642 when OK-IF-ALREADY-EXISTS is nil.
3643 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
3644
3645 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3646
3647 * sound.c (alsa_configure): Move get period/buffer_size after
3648 setting hwparams.
3649
3650 2006-05-26 Kenichi Handa <handa@m17n.org>
3651
3652 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
3653 . BUFFER) in TARGET.
3654
3655 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
3656
3657 * image.c (png_load): Don't call fclose on NULL.
3658
3659 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
3660
3661 * fns.c (Fyes_or_no_p):
3662 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
3663 only seven args.
3664
3665 2006-05-25 Juri Linkov <juri@jurta.org>
3666
3667 * lisp.h (Fread_from_minibuffer): Decrement number of args.
3668
3669 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
3670 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
3671
3672 * buffer.c (mode-line-format): Fix docstring.
3673
3674 2006-05-25 Richard Stallman <rms@gnu.org>
3675
3676 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
3677
3678 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
3679
3680 * puresize.h (BASE_PURESIZE): Increase to 1210000.
3681
3682 2006-05-24 Alan Mackenzie <acm@muc.de>
3683
3684 * lread.c (Vload_history): Enhance doc-string to say that the file
3685 is the absolute truename of the loaded file.
3686
3687 * lread.c (Vafter_load_alist): doc-string: state that an element
3688 now has a regexp to match file names, not a file name as such.
3689
3690 * lread.c (readevalloop): Call file-truename on the name for
3691 load-history, except at preloading time.
3692
3693 * lread.c (Fload): At preloading time, preserve the extension of
3694 the filename which goes into load-history. New var hist_file_name.
3695
3696 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
3697 function do-after-load-evaluation.
3698
3699 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3700
3701 * mac.c (ae_attr_table): New variable.
3702 (syms_of_mac): Intern and staticpro its elements.
3703 (mac_aelist_to_lisp): Also convert Apple event attributes.
3704 (mac_ae_put_lisp): New function.
3705 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
3706
3707 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
3708
3709 * macselect.c (Qemacs_suspension_id): New variable.
3710 (syms_of_macselect): Intern and staticpro it.
3711 (struct suspended_ae_info): New struct.
3712 (deferred_apple_events, defer_apple_events)
3713 (Fmac_process_deferred_apple_events): Use it.
3714 (suspended_apple_events): New variable.
3715 (mac_handle_apple_event_1): New function.
3716 (mac_handle_apple_event): Use it. Don't process previously
3717 suspended events.
3718 (cleanup_suspended_apple_events, get_suspension_id)
3719 (cleanup_all_suspended_apple_events): New functions.
3720 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
3721 at exit.
3722 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
3723 (Fmac_resume_apple_event): New defuns.
3724 (syms_of_macselect): Defsubr them.
3725
3726 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
3727 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
3728
3729 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
3730 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
3731 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
3732 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3733 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3734 Likewise.
3735 (typeUTF8Text, kEventParamWindowMouseLocation)
3736 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
3737 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
3738
3739 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3740
3741 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
3742 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
3743 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
3744 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
3745 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
3746 resource to backtranslate key with modifiers.
3747 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
3748
3749 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3750
3751 * xterm.c: Remove declarations already in xterm.h
3752
3753 * xterm.h: Add extern declarations for x_clear_errors,
3754 x_fully_uncatch_errors, x_catching_errors and
3755 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
3756
3757 2006-05-21 Richard Stallman <rms@gnu.org>
3758
3759 * xfaces.c (best_matching_font): Abort for best == NULL
3760 before we start to use it.
3761
3762 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
3763
3764 2006-05-20 Kim F. Storm <storm@cua.dk>
3765
3766 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
3767
3768 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3769
3770 * macterm.c (convert_fn_keycode): Fix last change.
3771
3772 2006-05-19 Eli Zaretskii <eliz@gnu.org>
3773
3774 * w32.c (init_environment): Perform the processing of environment
3775 variables on a copy of default variables and their values, not on
3776 the original. Simplify code that calls ExpandEnvironmentStrings
3777 and make buf1[] and buf2[] more visible for easier debugging.
3778
3779 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3780
3781 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
3782
3783 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
3784
3785 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
3786
3787 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
3788 Forward keyUp events to toolbox_dispatcher.
3789
3790 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
3791
3792 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3793
3794 * config.in: Regenerated (HAVE_ALSA).
3795
3796 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
3797 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
3798 (snd_error_quiet, alsa_init): New functions.
3799 (vox_init): Return 0 if unable to open device.
3800 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
3801 a fallback.
3802 (struct sound_device): Add period_size.
3803 (wav_play, au_play): Use period_size if set.
3804
3805 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
3806 (ALL_CFLAGS): Add CFLAGS_SOUND.
3807
3808 2006-05-18 Kenichi Handa <handa@m17n.org>
3809
3810 * callproc.c (Fcall_process): Reject encoding arguments by
3811 ascii-incompatible coding systems (e.g. utf-16).
3812
3813 * coding.c (Qascii_incompatible): New variable.
3814 (syms_of_coding): Setup Qascii_incompatible.
3815 (setup_coding_system): Be sure to initialize coding->common_flags.
3816 Check `ascii-incompatible' property of the coding system.
3817
3818 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
3819
3820 2006-05-18 Kim F. Storm <storm@cua.dk>
3821
3822 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
3823 geometry when backtracking in case last image doesn't fit on line.
3824
3825 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
3826
3827 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
3828 more than height of one frame default line.
3829
3830 2006-05-17 Richard Stallman <rms@gnu.org>
3831
3832 * xfaces.c (better_font_p): Any font beats no font.
3833 (best_matching_font): Simplify based on above change.
3834
3835 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
3836
3837 2006-05-16 Kim F. Storm <storm@cua.dk>
3838
3839 * xterm.c (handle_one_xevent): Check that f is not NULL before
3840 calling x_kill_gs_process.
3841
3842 2006-05-14 Richard Stallman <rms@gnu.org>
3843
3844 * textprop.c (Fnext_single_char_property_change)
3845 (Fprevious_single_char_property_change): Don't allow returning
3846 value beyond LIMIT in any cases.
3847 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
3848
3849 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
3850
3851 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3852
3853 * xterm.c (handle_one_xevent): Check that f is not NULL before
3854 calling _XEditResCheckMessages.
3855
3856 2006-05-14 Kim F. Storm <storm@cua.dk>
3857
3858 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
3859
3860 2006-05-13 Eli Zaretskii <eliz@gnu.org>
3861
3862 * frame.c (x_set_border_width): Fix error message to say "frame",
3863 not "window".
3864
3865 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
3866
3867 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
3868
3869 * intervals.c (set_point_both): Fix mixup before before and after
3870 in variable names.
3871
3872 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
3873 while setting point temporarily.
3874
3875 2006-05-11 Richard Stallman <rms@gnu.org>
3876
3877 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
3878
3879 2006-05-11 Kim F. Storm <storm@cua.dk>
3880
3881 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
3882
3883 2006-05-11 Kenichi Handa <handa@m17n.org>
3884
3885 * fileio.c (Finsert_file_contents): Fix for the case of IO error
3886 while handling replace operation.
3887
3888 2006-05-10 Kenichi Handa <handa@m17n.org>
3889
3890 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
3891 chosen for the default face was different from the frame font,
3892 adjust the frame font.
3893
3894 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3895
3896 * image.c (Qduration) [MAC_OS]: Undo previous change.
3897 (syms_of_image) [MAC_OS]: Likewise.
3898 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
3899
3900 * macfns.c (x_to_mac_color): Fix shift amount change.
3901 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
3902 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
3903
3904 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
3905 Vmac_services_selection. All uses changed.
3906 (mac_store_service_event): Rename from mac_store_services_event in
3907 extern and calls.
3908
3909 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
3910 changed.
3911 [MAC_OSX] (mac_store_service_event): Rename from
3912 mac_store_services_event. All callers changed.
3913 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
3914 FACE_ID and C. All callers changed.
3915 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
3916 mac_set_font_info_for_selection when focus frame is destroyed.
3917 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
3918
3919 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
3920 args in extern.
3921
3922 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
3923
3924 * keymap.c (describe_map): Avoid generating duplicate entries if
3925 the shadowed binding has the same definition.
3926
3927 2006-05-09 Kenichi Handa <handa@m17n.org>
3928
3929 * keymap.c (push_key_description): Handle invalid character key.
3930
3931 2006-05-08 Kenichi Handa <handa@m17n.org>
3932
3933 * callproc.c (Fcall_process): Use system_eol_type for encoding
3934 arguments if eol_type is not yet decided.
3935
3936 * coding.h (system_eol_type): Extern it.
3937
3938 * coding.c (setup_coding_system): For invalid coding-system, set
3939 coding->eol_type to CODING_EOL_UNDECIDED.
3940 (encode_coding): Cancel previous change.
3941 (shrink_encoding_region): Likewise.
3942 (code_convert_region1): Likewise.
3943 (code_convert_string1): Likewise.
3944 (code_convert_string_norecord): Likewise.
3945
3946 * fileio.c (choose_write_coding_system): Use system_eol_type for
3947 encoding if eol_type is not yet decided.
3948
3949 * process.c (setup_process_coding_systems): Use system_eol_type
3950 for encoding if eol_type is not yet decided.
3951 (read_process_output): Likewise.
3952 (send_process): Likewise.
3953
3954 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
3955
3956 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
3957
3958 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3959
3960 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
3961 (syms_of_mac): Likewise for defsubr.
3962
3963 * macfns.c (mac_set_font): New function.
3964 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
3965 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
3966 kWindowToolbarButtonAttribute when creating window.
3967 (Fmac_clear_font_name_table): Move from macfns.c.
3968 (syms_of_macfns): Likewise for defsubr.
3969 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
3970 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
3971
3972 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
3973 and build is done on Mac OS X 10.2 and later.
3974
3975 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
3976 (mac_store_services_event): Change return type in extern.
3977
3978 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
3979 FMFontFamily value.
3980 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
3981 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
3982 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
3983 (QWindow) [MAC_OSX]: Likewise.
3984 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
3985 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
3986 (syms_of_macterm) [USE_ATSUI]: Defvar it.
3987 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
3988 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
3989 (syms_of_macterm): Intern and staticpro them.
3990 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
3991 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
3992 New function.
3993 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
3994 [MAC_OSX] (mac_store_services_event): Likewise.
3995 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
3996 kEventWindowToolbarSwitchMode event.
3997 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
3998 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
3999 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
4000 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
4001 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
4002
4003 * macterm.h (mac_set_font_info_for_selection): Add extern.
4004
4005 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4006
4007 * image.c (Qduration) [MAC_OS]: New variable.
4008 (syms_of_image) [MAC_OS]: Intern and staticpro it.
4009 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
4010 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
4011 instead of cfstring_create_with_string.
4012
4013 2006-05-06 Kim F. Storm <storm@cua.dk>
4014
4015 * .gdbinit (xframe): Print frame name.
4016 (xlist): New command to print a list (max 10 elements).
4017 (xpr): Print lisp object of any type.
4018 (pitx): Print it->pixel_width.
4019
4020 2006-05-05 Kenichi Handa <handa@m17n.org>
4021
4022 * xdisp.c (handle_composition_prop): Fix for the case of empty
4023 composition component.
4024
4025 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4026
4027 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
4028 from event->arg.
4029
4030 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
4031 MAC_APPLE_EVENT.
4032
4033 * macterm.h (mac_make_lispy_event_code): Remove extern.
4034 (mac_post_mouse_moved_event): Add extern.
4035 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
4036 `const AEDesc *' in externs.
4037 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
4038
4039 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
4040 `const AEDesc *'.
4041 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
4042 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
4043 Use xrealloc instead of repeated xmalloc/xfree.
4044 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
4045 New function.
4046
4047 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
4048
4049 * macselect.c: Update copyright year.
4050 (mac_store_apple_event): Change return type to void in extern.
4051 (mac_handle_apple_event): Don't get return value from
4052 mac_store_apple_event.
4053 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
4054 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
4055 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
4056 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
4057 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
4058 implementation using create_apple_event_from_drag_ref.
4059 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4060 (mac_do_receive_dragUPP): Move variables from macterm.c.
4061 (install_drag_handler, remove_drag_handler): New functions.
4062
4063 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
4064 path select also for proxy icon click.
4065 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
4066 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
4067 (xlfdpat_create): Remove unused label `error' and trailing sentences.
4068 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
4069 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
4070 macselect.c.
4071 (install_drag_handler, remove_drag_handler): Add extern.
4072 (mac_store_apple_event): Change return type to void. All uses changed.
4073 Create Lisp object from Apple event and store it into input event.
4074 (mac_make_lispy_event_code): Remove function.
4075 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
4076 (install_window_handler): Call install_drag_handler.
4077 (remove_window_handler): Call remove_drag_handler.
4078
4079 2006-05-03 Richard Stallman <rms@gnu.org>
4080
4081 * sound.c (Fplay_sound_internal): Dynamically allocate
4082 current_sound_device and current_sound.
4083 (sound_cleanup): Free them.
4084
4085 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
4086 when inside a keyboard macro.
4087
4088 2006-05-02 Andreas Schwab <schwab@suse.de>
4089
4090 * xmenu.c (restore_menu_items): Return a value.
4091
4092 2006-05-01 Martin Rudalics <rudalics@gmx.at>
4093
4094 * syntax.c (Fforward_comment): Detect generic comment at beginning of
4095 buffer when moving backwards.
4096
4097 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4098
4099 * dispnew.c (update_window): Don't set changed_p when mode/header
4100 line is updated.
4101
4102 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
4103 (get_glyph_face_and_encoding, get_char_face_and_encoding):
4104 Don't distinguish known faces from others.
4105
4106 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
4107 through typeFileURL failed.
4108
4109 * macfns.c (mac_update_title_bar): New function.
4110 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
4111 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
4112 Call mac_prepare_for_quickdraw.
4113
4114 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
4115 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
4116 (enum pcm_status): New enum.
4117 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
4118 (XCharStructRow): Remove. Now validity is represented by
4119 non-negativeness of sum of ascent and descent.
4120 (struct MacFontStruct): Change type of member `rows'.
4121 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
4122
4123 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
4124 Adjust endpoints of strictly horizontal/vertical lines.
4125 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
4126 (pcm_init, pcm_get_status): New functions.
4127 (x_per_char_metric, XLoadQueryFont): Use them instead of
4128 XCharStructRow and related macros.
4129 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
4130 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
4131 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
4132 and window path pop-up menu on title bar.
4133 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
4134
4135 * macterm.h (mac_update_title_bar): Add extern.
4136 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
4137 (FRAME_FILE_NAME): New macro.
4138
4139 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
4140
4141 2006-04-30 Richard Stallman <rms@gnu.org>
4142
4143 * keymap.c (Fdefine_key): Improve error message
4144 when KEY begins with a non-prefix key.
4145
4146 2006-04-30 Martin Rudalics <rudalics@gmx.at>
4147
4148 * syntax.c (Fforward_comment): Don't forget to break out of the loop
4149 when we skipped backward over a generic comment.
4150
4151 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
4152
4153 * .gdbinit (pp1, pv1): Only print value as expression is now
4154 printed out by gud-print.
4155 (pv1): Correct doc string.
4156
4157 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
4158
4159 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
4160 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
4161 keymap.c:895: error: address of register variable `def' requested.
4162
4163 2006-04-26 Jason Rumney <jasonr@gnu.org>
4164
4165 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
4166
4167 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
4168 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
4169 where we preempt mouse_button_timer.
4170
4171 2006-04-25 Miles Bader <miles@gnu.org>
4172
4173 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
4174
4175 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
4176
4177 * process.h: Include headers for pid_t.
4178
4179 2006-04-24 Kim F. Storm <storm@cua.dk>
4180
4181 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
4182 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
4183 (produce_stretch_glyph): Assume that face box height and width is
4184 already included in stretch glyph size so caller doesn't have to
4185 consider the extra space otherwise added (fixes problem in ses.el).
4186
4187 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
4188 matrices to force recalculation of tool-bar height after font change.
4189
4190 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
4191 Clear it when done, so we don't accidentally draw a second copy of
4192 the tool-bar after resetting f->n_tool_bar_rows.
4193 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
4194 we recalculate f->n_tool_bar_rows.
4195
4196 2006-04-23 Lars Hansen <larsh@soem.dk>
4197
4198 * editfns.c (find_field): Fix comment.
4199 (Ffield_beginning): Fix bug when POS is at field beginning.
4200
4201 2006-04-22 Eli Zaretskii <eliz@gnu.org>
4202
4203 * puresize.h (BASE_PURESIZE): Increase to 1205000.
4204
4205 2006-04-21 Kim F. Storm <storm@cua.dk>
4206
4207 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
4208 window start is at BEGV.
4209
4210 * dispextern.h (struct image): New member `corners'.
4211 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
4212
4213 * image.c (four_corners_best): New arg CORNERS specifies what pixels
4214 to look at in case image has margin.
4215 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
4216 (image_background, image_background_transparent)
4217 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
4218 (gif_load): Set img->corners according to image's margin spec.
4219 Use img->corners values directly where applicable.
4220 Save image extension data in img->data.lisp_val.
4221 (gif_clear_image): New function to free img->data.lisp_val.
4222 (gif_type): Use it instead of generic x_clear_image.
4223 (Fimage_extension_data): New defun.
4224 (syms_of_image): Defsubr it.
4225
4226 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
4227
4228 * window.c (Fdisplay_buffer): Doc fix.
4229
4230 2006-04-21 Eli Zaretskii <eliz@gnu.org>
4231
4232 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
4233
4234 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4235
4236 * image.c [MAC_OS] (xpm_load_image): Fill in background field
4237 while we have ximg handy.
4238
4239 * macmenu.c (restore_menu_items, save_menu_items): New functions
4240 from xmenu.c.
4241 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
4242 changes for xmenu.c.
4243
4244 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
4245 (add_mac_font_name): New function.
4246 (init_font_name_table): Use it. Adopt the first found font from
4247 those having the same family name.
4248
4249 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
4250
4251 * xdisp.c (note_mouse_highlight): Use build_string.
4252
4253 2006-04-20 Lars Hansen <larsh@soem.dk>
4254
4255 * textprop.c (Fremove_list_of_text_properties):
4256 Ensure modify_region is called only when buffer is modified and that
4257 signal_after_change is allways called in that case.
4258
4259 * print.c (PRINTFINISH): Call signal_after_change.
4260
4261 2006-04-20 Kim F. Storm <storm@cua.dk>
4262
4263 * xdisp.c (redisplay_window): Fix last change.
4264
4265 * xdisp.c (redisplay_window): If current window start is not at the
4266 beginning of a line, select a new window start if buffer is modified
4267 and window start is in the modified region, but the first change is
4268 before window start.
4269
4270 2006-04-18 Richard Stallman <rms@gnu.org>
4271
4272 * xmenu.c (restore_menu_items, save_menu_items): New fns.
4273 (set_frame_menubar): Use save_menu_items. Save updated vector in
4274 the frame before unwinding it. Don't use unuse_menu_items.
4275 Don't use discard_menu_items.
4276 (digest_single_submenu): Abort if an item is not in a pane.
4277 (init_menu_items): Put the error check at the top.
4278
4279 * keymap.c (describe_map): Make "shadowed" warning more verbose.
4280
4281 * window.c (adjust_window_trailing_edge): Correctly distinguish
4282 series vs parallel cases, even when window has no parent.
4283
4284 * abbrev.c (record_symbol): New function.
4285 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
4286
4287 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4288
4289 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
4290 value of xmalloc.
4291
4292 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
4293 (create_apple_event_from_event_ref, xrm_get_preference_database)
4294 (cfstring_create_normalized): Don't check return value of xmalloc.
4295
4296 * macselect.c (get_scrap_target_type_list, defer_apple_events)
4297 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
4298 return value of xmalloc/xrealloc.
4299
4300 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
4301 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
4302 (XLoadQueryFont, mac_store_apple_event): Don't check return value
4303 of xmalloc.
4304
4305 2006-04-17 Kim F. Storm <storm@cua.dk>
4306
4307 * window.c (coordinates_in_window): On the vertical border,
4308 calculate the row number measured from the top of the window, not
4309 the top of the frame.
4310 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
4311 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
4312
4313 2006-04-16 Eli Zaretskii <eliz@gnu.org>
4314
4315 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
4316
4317 2006-04-16 Romain Francoise <romain@orebokech.com>
4318
4319 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
4320
4321 2006-04-16 Andreas Schwab <schwab@suse.de>
4322
4323 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
4324
4325 2006-04-15 Romain Francoise <romain@orebokech.com>
4326
4327 * puresize.h (BASE_PURESIZE): Increment to 1210000.
4328
4329 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
4330
4331 * print.c (Fprin1_to_string): Mention in the `doc' that the
4332 behavior is modified by `print-level' and `print-length'.
4333
4334 2006-04-13 Kenichi Handa <handa@m17n.org>
4335
4336 * coding.c (setup_coding_system): If eol-type is not yet decided
4337 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
4338 If coding_system is nil, return 0.
4339 (code_convert_region1): Even if coding_system is nil, don't skip
4340 conversion if system_eol_type is not LF.
4341 (code_convert_string1): Likewise.
4342 (code_convert_string_norecord): Likewise.
4343
4344 2006-04-13 Kenichi Handa <handa@m17n.org>
4345
4346 * coding.c (setup_coding_system): Fix previous change.
4347 (encode_coding): If eol_type is not yet decided, use system_eol_type.
4348 (shrink_encoding_region): If eol_type is not yet decided and
4349 system_eol_type is not LF, don't shrink.
4350
4351 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
4352
4353 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
4354 line.
4355
4356 2006-04-12 Richard Stallman <rms@gnu.org>
4357
4358 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
4359
4360 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
4361 (Fprocess_send_eof): Abort if fail to open null device.
4362
4363 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4364
4365 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
4366
4367 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
4368 assignment used as truth value. Add explicit braces to avoid
4369 ambiguous `else'.
4370 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
4371
4372 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
4373 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
4374 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
4375 Put externs in #ifdef HAVE_X_WINDOWS.
4376 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
4377 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
4378 (init_mac_osx_environment) [MAC_OSX]: Add extern.
4379
4380 * mac.c (init_process): Remove undef.
4381 (select) [MAC_OSX]: Undefine before including sysselect.h.
4382 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
4383 Remove functions and prototypes.
4384 (parse_value): Add parentheses around + inside shift.
4385 (path_from_vol_dir_name): Make static.
4386 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
4387 [!MAC_OSX] (get_path_to_system_folder): Likewise.
4388 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
4389 variable `cCode'.
4390 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
4391 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
4392
4393 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
4394 (x_set_mouse_color): Remove unused variable `dpy'.
4395 (Fx_create_frame): Remove unused variable `x_frame_count'.
4396 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
4397 (x_sync): Move from macterm.c.
4398 (Fx_file_dialog): Remove unused variable `default_filter_index'.
4399
4400 * macmenu.c (min_menu_id): Make element type explicit.
4401
4402 * macselect.c (get_flavor_type_from_symbol): Remove unused
4403 variable `val'.
4404 (get_scrap_private_timestamp, x_get_foreign_selection)
4405 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
4406 (Fmac_process_deferred_apple_events): Remove unused variables
4407 `keyword', `reply', `apple_event', `count', and `err'.
4408
4409 * macterm.c: Don't include gnu.h.
4410 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
4411 (x_sync): Move to macfns.c.
4412 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
4413 variable `mask_bits'.
4414 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
4415 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
4416 (x_mac_to_emacs_modifiers): Remove function.
4417 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
4418 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
4419 Add explicit braces to avoid ambiguous `else'.
4420 (x_make_frame_visible): Remove unused variables `type',
4421 `original_top', and `original_left'.
4422 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
4423 (x_load_font): Remove unused variables `full_name', and `value'.
4424 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
4425 Remove functions.
4426 (do_zoom_window): Reorganize variables with respect to conditionals.
4427 (init_command_handler): Remove unused variable `err'.
4428 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
4429
4430 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
4431 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
4432 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
4433 (do_menu_choice, have_menus_p, x_real_positions)
4434 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
4435 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
4436 (free_frame_menubar): Add externs.
4437
4438 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
4439 (malloc, realloc, free): Add undefs.
4440 (read_load_commands): Remove unused variable `n' and `j'.
4441 (copy_data_segment): Remove unused variable `r'.
4442
4443 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
4444 within ||. Add explicit braces to avoid ambiguous `else'.
4445 (dump_glyph_row): Remove label for `inverse_p' from legend.
4446
4447 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
4448 Add explicit braces to avoid ambiguous `else'.
4449
4450 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
4451
4452 * dispnew.c (init_display): Don't init X display if the user asked
4453 for a non-X display.
4454
4455 2006-04-12 Kenichi Handa <handa@m17n.org>
4456
4457 * coding.c (setup_coding_system): Use system_eol_type for default
4458 coding->eol_type.
4459
4460 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4461
4462 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
4463
4464 * data.c (wrong_type_argument): Try to avoid compiler warnings due
4465 to the fact the function is now marked as NO_RETURN.
4466
4467 2006-04-10 Eli Zaretskii <eliz@gnu.org>
4468
4469 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
4470
4471 2006-04-10 Romain Francoise <romain@orebokech.com>
4472
4473 * xrdb.c (gethomedir): Use xstrdup.
4474
4475 2006-04-10 Andreas Schwab <schwab@suse.de>
4476
4477 * xrdb.c (gethomedir): Make sure to always return a pointer that
4478 can be passed to free.
4479
4480 2006-04-09 Richard Stallman <rms@gnu.org>
4481
4482 * lisp.h (Fkill_emacs): Undo previous change.
4483
4484 2006-04-08 Richard Stallman <rms@gnu.org>
4485
4486 * search.c (boyer_moore): Test ch >= 0400, not >.
4487
4488 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
4489
4490 * puresize.h (pure_write_error): Mark as NO_RETURN.
4491
4492 * lisp.h (args_out_of_range, args_out_of_range_3)
4493
4494 2006-04-08 Eli Zaretskii <eliz@gnu.org>
4495
4496 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
4497 if a menu is active on this frame.
4498
4499 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
4500
4501 * lisp.h (report_file_error): Mark as NO_RETURN.
4502
4503 2006-04-08 Eli Zaretskii <eliz@gnu.org>
4504
4505 * alloc.c [STDC_HEADERS]: Include stddef.h.
4506
4507 * lisp.h (PSEUDOVECSIZE): Fix last change.
4508
4509 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4510
4511 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
4512 `raw_status_high', and `raw_status_low' with plain integers, and move
4513 them to the end of the structure.
4514
4515 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
4516 pseudovector's size field so only the Lisp_Object fields get GC'd.
4517
4518 * process.c (update_status, make_process, Fdelete_process)
4519 (Fprocess_status, list_processes_1, start_process_unwind)
4520 (create_process, Fmake_network_process, server_accept_connection)
4521 (wait_reading_process_output, send_process, Fprocess_running_child_p)
4522 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
4523 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
4524 `pid' and `raw_status'.
4525 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
4526 representing PIDs that are larger than most-positive-fixnum.
4527
4528 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
4529
4530 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
4531
4532 2006-04-08 Eli Zaretskii <eliz@gnu.org>
4533
4534 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
4535
4536 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
4537
4538 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
4539 ../lib-src/b2m.c and ../lib-src/editfns.c.
4540 (Fcurrent_time_string): Use it.
4541 Document that the year might not consume 4 columns if it's outside
4542 the range 1000-9999.
4543 Check for asctime failure.
4544 Don't assume that the output string length is always exactly 24.
4545
4546 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4547
4548 * macterm.c (XTread_socket): Initialize variable `f' before its use.
4549
4550 2006-04-03 Kenichi Handa <handa@m17n.org>
4551
4552 * image.c: Include "charset.h" and "coding.h".
4553 (x_find_image_file): Return an encoded file name.
4554
4555 2006-04-01 Eli Zaretskii <eliz@gnu.org>
4556
4557 * configure: Regenerated.
4558
4559 2006-03-31 Kenichi Handa <handa@m17n.org>
4560
4561 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
4562
4563 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4564
4565 * xdisp.c (syms_of_xdisp): Fix variable name.
4566
4567 2006-03-30 Kenichi Handa <handa@m17n.org>
4568
4569 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
4570
4571 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
4572
4573 * keyboard.c (process_tool_bar_item): Reorder dummy args.
4574
4575 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4576
4577 * keyboard.c (tool_bar_items): Use map_keymap.
4578 (process_tool_bar_item): Add dummy args to fit the required interface.
4579
4580 2006-03-25 Eli Zaretskii <eliz@gnu.org>
4581
4582 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
4583 to zero before calling debug_print or safe_debug_print.
4584
4585 * print.c (print_output_debug_flag): New global variable.
4586 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
4587 OutputDebugString if print_output_debug_flag is zero.
4588
4589 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
4590
4591 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
4592 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
4593 (Fdecode_time): Cast tm_year to EMACS_INT.
4594 (Fcurrent_time_string): Report an invalid time specification if
4595 the argument is invalid. Also, check for out-of-range time stamps.
4596
4597 2006-03-24 Kim F. Storm <storm@cua.dk>
4598
4599 * xterm.c (handle_one_xevent):
4600 * w32term.c (w32_read_socket):
4601 * macterm.c (XTread_socket): Don't let key-press clear mouse face
4602 on in toolbar window if mouse-highlight is an integer.
4603
4604 * fns.c (sxhash_list): Include last non-nil CDR in hash.
4605
4606 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4607
4608 * macmenu.c (enum mac_menu_kind): New enum.
4609 (min_menu_id): New variable.
4610 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
4611 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
4612 min_menu_id and enumerators in enum mac_menu_kind.
4613 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
4614 All uses changed. Add range check for menu ID.
4615 (fill_menubar): Add range check for menu ID.
4616 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
4617 GetEventParameter.
4618 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
4619 for each menu kind.
4620
4621 2006-03-22 Kim F. Storm <storm@cua.dk>
4622
4623 * xdisp.c: Undo 2006-03-21 change.
4624
4625 * term.c: Define aliases for append_glyph and produce_stretch_glyph
4626 when `static' is defined to avoid name clash with those in xdisp.c.
4627
4628 * process.c (Faccept_process_output): Fix to comply with lisp
4629 reference. Change arg "timeout" to "seconds" and allow both
4630 integer and float value. Change arg "timeout-msec" to "millisec"
4631 and interpret" as milliseconds rather than microseconds. Fix doc
4632 string accordingly.
4633
4634 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
4635
4636 * xdisp.c (store_next_glyph): Rename from append_glyph.
4637 (generate_stretch_glyph): Rename from produce_stretch_glyph.
4638 All callers changed accordingly.
4639
4640 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4641
4642 * xterm.c: x_session_initialized new variable.
4643 (x_term_init): Use x_session_initialized to check if
4644 x_session_initialize should be called.
4645 (x_initialize): Initialize x_session_initialized.
4646
4647 2006-03-21 Kim F. Storm <storm@cua.dk>
4648
4649 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
4650 bitmap here, but ...
4651 (update_window_fringes): ... here, so we can test if it has changed.
4652
4653 2006-03-20 Andreas Schwab <schwab@suse.de>
4654
4655 * dispnew.c (init_display): Check DISPLAY here.
4656
4657 * emacs.c (main): Don't check here.
4658
4659 * xterm.c (x_display_ok): Don't use DISPLAY env var.
4660
4661 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4662
4663 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
4664 mixup (YAILOM).
4665
4666 2006-03-20 Eli Zaretskii <eliz@gnu.org>
4667
4668 * emacs.c (main): Fix last change.
4669
4670 2006-03-20 Kenichi Handa <handa@m17n.org>
4671
4672 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
4673
4674 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
4675
4676 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
4677
4678 * xterm.c (x_term_init): Remove unnecessary GCPRO.
4679
4680 2006-03-19 Kim F. Storm <storm@cua.dk>
4681
4682 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
4683 so it doesn't associate overlay string with following glyph by default.
4684 Allow integer property value to specify explicit number of buffer
4685 positions associate with overlay string.
4686
4687 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
4688
4689 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
4690
4691 2006-03-18 Nozomu Ando <nand@mac.com>
4692
4693 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
4694 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
4695 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
4696 Don't redefine.
4697
4698 * m/mips.h: Don't use unexmips on NetBSD.
4699 (LIBS_MACHINE): Move definition lower, so it doesn't use
4700 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
4701 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
4702
4703 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
4704 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
4705 option is broken (e.g., MIPS/NetBSD).
4706
4707 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
4708
4709 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
4710 Remove the HAVE_X_WINDOWS conditional.
4711
4712 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
4713
4714 * emacs.c (main): If user asks for a display that is unavailable,
4715 simulate -nw.
4716
4717 * xterm.c (x_display_ok): New function.
4718
4719 * xterm.h: Add prototype for x_display_ok.
4720
4721 2006-03-18 Eli Zaretskii <eliz@gnu.org>
4722
4723 * w32fns.c (Fw32_select_font): Doc fix.
4724
4725 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4726
4727 * image.c [MAC_OS] (XPutPixel, XGetPixel)
4728 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
4729 version when depth is 32.
4730 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
4731 New function.
4732 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
4733 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
4734
4735 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
4736 Create GWorld in ARGB pixel format.
4737 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
4738 Remove functions.
4739 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
4740 instead of mac_copy_area/mac_copy_area_with_mask.
4741
4742 2006-03-15 Kim F. Storm <storm@cua.dk>
4743
4744 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
4745 empty row. Fixes memory corruption revealed by 2006-03-02 change.
4746 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
4747 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
4748 width is exactly the same as the window width. Don't count a final
4749 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
4750
4751 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
4752
4753 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
4754 conditional on HAVE_NTGUI, not WINDOWS_NT.
4755
4756 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4757
4758 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
4759
4760 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
4761
4762 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
4763 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
4764 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
4765 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
4766 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
4767 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
4768 instead of mac_draw_bitmap.
4769 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
4770 define_fringe_bitmap and destroy_fringe_bitmap.
4771
4772 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
4773
4774 * xterm.c (x_uncatch_errors): Block input for entire function.
4775
4776 2006-03-12 Jason Rumney <jasonr@gnu.org>
4777
4778 * w32fns.c (Fx_create_frame): Remove call to
4779 Qface_set_after_frame_default (from xfns.c 2003-05-26).
4780
4781 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
4782 finished with the menu.
4783
4784 * w32term.c: Sync 2005-10-24 xterm.c changes.
4785 (last_mouse_glyph_frame): New var.
4786 (note_mouse_movement): Say mouse moved if current frame differs
4787 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4788 (w32_mouse_position): Set last_mouse_glyph_frame.
4789 Remove OLD_REDISPLAY_CODE block.
4790
4791 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4792
4793 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
4794
4795 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
4796 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
4797
4798 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4799
4800 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
4801
4802 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
4803 (x_draw_composite_glyph_string_foreground)
4804 (x_draw_image_foreground): Undo previous changes.
4805 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
4806 argument of mac_draw_rectangle.
4807 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
4808 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
4809 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
4810 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
4811 [USE_CG_DRAWING]: New functions.
4812 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
4813 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
4814 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
4815 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
4816 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
4817 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
4818 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4819
4820 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4821
4822 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
4823
4824 2006-03-11 Jason Rumney <jasonr@gnu.org>
4825
4826 * w32fns.c (signal_user_input): New function.
4827 (post_character_message): Use it for keyboard input.
4828 (w32_msg_pump): Use it for mouse input.
4829
4830 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
4831
4832 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
4833 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
4834
4835 2006-03-11 Eli Zaretskii <eliz@gnu.org>
4836
4837 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
4838 if a menu is already active (the menubar_active flag is on).
4839
4840 2006-03-11 David Ponce <david@dponce.com>
4841
4842 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
4843
4844 2006-03-11 Eli Zaretskii <eliz@gnu.org>
4845
4846 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
4847 the list of unused display error handling functions.
4848
4849 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
4850 HAVE_X_WINDOWS.
4851 (internal_condition_case, internal_condition_case_1)
4852 (internal_condition_case_2): Call x_catching_errors only if
4853 HAVE_X_WINDOWS.
4854
4855 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
4856 Don't include sys/resource.h unless defined.
4857
4858 2006-03-11 Richard Stallman <rms@gnu.org>
4859
4860 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
4861
4862 * vm-limit.c (get_lim_data, lim_data, data_space_start):
4863 Move from mem-limits.h.
4864 (enum warnlevel): New data type.
4865 (check_memory_limits): Rewrite the logic about warnings.
4866 Use standard `struct rlimit'. Check return values for nonsense.
4867 (memory_warnings): Always clear lim_data.
4868
4869 * mem-limits.h (get_lim_data, lim_data, data_space_start):
4870 Move to vm-limit.c.
4871
4872 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
4873
4874 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
4875 (internal_condition_case_1, internal_condition_case_2):
4876 Abort if within unclosed x_catch_errors.
4877
4878 2006-03-11 Romain Francoise <romain@orebokech.com>
4879
4880 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
4881
4882 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4883
4884 * lisp.h: Remove duplicate prototypes. Make the prototype of
4885 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
4886
4887 2006-03-11 Eli Zaretskii <eliz@gnu.org>
4888
4889 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
4890 argument of XDrawRectangle.
4891
4892 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
4893
4894 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
4895 (x_draw_glyph_string_foreground)
4896 (x_draw_composite_glyph_string_foreground)
4897 (x_draw_image_foreground): Don't subtract 1 from width and height
4898 arguments to mac_draw_rectangle.
4899 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
4900
4901 2006-03-10 Kim F. Storm <storm@cua.dk>
4902
4903 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
4904
4905 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
4906
4907 * alloc.c (USE_POSIX_MEMALIGN): New macro.
4908 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
4909
4910 2006-03-09 Kenichi Handa <handa@m17n.org>
4911
4912 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
4913 ASCII component of a composition.
4914
4915 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
4916
4917 * window.c: Declare preserve_y as a static global variable.
4918 (window_scroll_pixel_based): No longer declare preserve_y;
4919 it is global now.
4920 (syms_of_window): Set preserve_y to -1.
4921
4922 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4923
4924 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
4925 depth is 32.
4926 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4927 depth is 32.
4928
4929 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
4930
4931 * xdisp.c (handle_invisible_prop): Don't update it->position with
4932 a buffer position if we're in a display string.
4933
4934 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4935
4936 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
4937 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
4938
4939 * macfns.c (x_default_scroll_bar_color_parameter)
4940 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
4941 Remove unnecessary prototypes.
4942 (x_set_scroll_bar_default_width):
4943 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
4944 (mac_set_scroll_bar_width): New function.
4945 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
4946
4947 * macterm.c (get_control_part_bounds): Fix type of return value.
4948 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4949 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
4950 scroll bar if it is not tall enough to display scroll bar thumb.
4951 [USE_CARBON_EVENTS] (mac_convert_event_ref)
4952 (mac_handle_command_event, mac_handle_window_event)
4953 (mac_handle_mouse_event): Check error code of GetEventParameter.
4954 (convert_fn_keycode) [MAC_OSX]: Likewise.
4955
4956 2006-03-05 Andreas Schwab <schwab@suse.de>
4957
4958 * xselect.c (x_catch_errors_unwind): Fix missing return value.
4959
4960 2006-03-02 Kim F. Storm <storm@cua.dk>
4961
4962 * frame.h (struct frame): New member n_tool_bar_rows.
4963
4964 * xdisp.c: Minimize the unpleasent visual impact of the requirement
4965 that non-toolkit tool-bars must occupy an integral number of screen
4966 lines, by distributing the rows evenly over the tool-bar screen area.
4967 (Vtool_bar_border): New variable.
4968 (syms_of_xdisp): DEFVAR_LISP it.
4969 (display_tool_bar_line): Add HEIGHT arg for desired row height.
4970 Make tool-bar row the desired height. Use default face for border
4971 below tool-bar.
4972 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
4973 actual tool-bar rows.
4974 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
4975 Adjust the height of the tool-bar rows to fill tool-bar screen area.
4976 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
4977 is resized.
4978
4979 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
4980
4981 * search.c (Fregexp_quote): Do not precede a literal `]' with two
4982 backslashes to try to make clear that it has a literal meaning; it
4983 does not do that. (It could close a character alternative
4984 containing a backslash.)
4985
4986 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
4987
4988 * xselect.c (x_catch_errors_unwind): New function.
4989 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
4990 (Fx_get_atom_name): Call x_uncatch_errors earlier.
4991
4992 * window.c (Qscroll_up, Qscroll_down): New syms.
4993 (window_scroll_pixel_based): Make preserve_y static to avoid
4994 getting point stuck when scrolling 1 line.
4995
4996 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
4997
4998 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4999
5000 * xterm.c (x_load_font, x_term_init, XTmouse_position)
5001 (handle_one_xevent, x_connection_closed, x_list_fonts):
5002 No arg for x_uncatch_errors.
5003
5004 * xselect.c (x_own_selection, x_decline_selection_request)
5005 (x_reply_selection_request, x_get_foreign_selection)
5006 (Fx_get_atom_name, Fx_send_client_event): Likewise.
5007
5008 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
5009 Likewise.
5010
5011 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
5012
5013 * lread.c: Declare Vload_file_rep_suffixes instead of
5014 deleted variable default_suffixes.
5015 (Fget_load_suffixes): New function.
5016 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
5017 No longer use deleted variable default_suffixes. Update docstring.
5018 (syms_of_lread): defsubr Sget_load_suffixes.
5019 Expand `load-suffixes' docstring.
5020 Delete default_suffixes and DEFVAR_LISP the new variable
5021 `load-file-rep-suffixes'.
5022
5023 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
5024 of Vload_suffixes.
5025
5026 * lisp.h: EXFUN Fget_load_suffixes.
5027 Extern Vload_file_rep_suffixes.
5028
5029 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
5030 with lisp.h.
5031
5032 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5033
5034 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
5035 qualifier which was trying to avoid the bug that was fixed by
5036 yesterday's changes to xterm.c.
5037
5038 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
5039
5040 * xterm.h (x_catch_errors) Return value changed to void.
5041 (x_uncatch_errors): Delete unused count argument.
5042
5043 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
5044 it can be called in a signal handler.
5045 (x_catch_errors_unwind): Function deleted.
5046 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
5047 (x_check_errors): Call x_uncatch_errors before signalling error.
5048
5049 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
5050 (x_connection_closed, x_list_fonts): Use new versions of
5051 x_catch_errors and x_uncatch_errors.
5052
5053 * xselect.c (x_own_selection, x_decline_selection_request)
5054 (x_reply_selection_request, x_get_foreign_selection)
5055 (Fx_get_atom_name, Fx_send_client_event): Likewise.
5056
5057 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
5058 Likewise.
5059
5060 * eval.c (record_unwind_protect): Add an assertion.
5061
5062 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5063
5064 * process.c (Fmake_network_process): Init the process's mark.
5065
5066 2006-02-25 Kim F. Storm <storm@cua.dk>
5067
5068 * buffer.c (modify_overlay): Force redisplay if we modify an
5069 overlay at the end of the buffer.
5070
5071 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5072
5073 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
5074 nil the image file has been removed, in that case use the (cached)
5075 pixmap.
5076
5077 2006-02-24 Kenichi Handa <handa@m17n.org>
5078
5079 * fileio.c (Finsert_file_contents): When a text is replaced
5080 partially, be sure to set point before the inserted characters.
5081
5082 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
5083
5084 * xfns.c (Fx_file_dialog): Return a decoded file name.
5085
5086 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5087
5088 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
5089 glyph whose face is extended to the text area end.
5090
5091 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
5092 values if control is not visible or values are not changed.
5093
5094 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5095
5096 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
5097 The default `window' should not be "on a different frame".
5098
5099 2006-02-22 Kim F. Storm <storm@cua.dk>
5100
5101 * indent.c (Fvertical_motion): Only try to move back if we can.
5102
5103 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5104
5105 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
5106 n_clip_rects.
5107
5108 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
5109 xmenu.c.
5110
5111 * macterm.c (GC_CLIP_REGION): Remove macro.
5112 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
5113 All uses changed. Don't do clipping if n_clip_rects is zero.
5114 (mac_set_clip_rectangles): Use xassert instead of abort.
5115 Set n_clip_rects. Don't make clip_region empty when number of
5116 clipping rectangles is zero.
5117 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
5118 calling mac_set_clip_rectangles.
5119 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
5120 avoid multiple redraws.
5121
5122 2006-02-22 Kim F. Storm <storm@cua.dk>
5123
5124 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
5125
5126 2006-02-21 Kim F. Storm <storm@cua.dk>
5127
5128 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
5129
5130 2006-02-21 Zhang Wei <brep@newsmth.org>
5131
5132 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
5133 returning it.
5134
5135 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5136
5137 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
5138 (standard_bitmaps): Use it.
5139
5140 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5141
5142 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
5143 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
5144 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
5145 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
5146 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
5147 Draw background if BG_WIDTH is not zero. Use float constants as
5148 divisors instead of double. Use alloca instead of xmalloc/xfree.
5149 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5150 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
5151 mac_draw_image_string* functions.
5152 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
5153 some fonts when srcCopy text transfer mode might be used.
5154 (mac_begin_clip, mac_end_clip): Check if region is empty.
5155 (mac_set_clip_rectangles): When resetting clip region, make it
5156 empty instead of disposing of it.
5157
5158 2006-02-20 Kim F. Storm <storm@cua.dk>
5159
5160 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
5161
5162 * buffer.h (struct buffer): New members fringe_indicator_alist and
5163 fringe_cursor_alist.
5164
5165 * buffer.c (init_buffer_once): Set dummy default values for
5166 fringe-indicator-alist and fringe-cursor-alist. The proper
5167 default values are set by pre-loading fringe.el.
5168 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
5169 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
5170 corresponding default- variables.
5171
5172 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
5173 to use `int'.
5174 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
5175 Define explicitly.
5176 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
5177 (Qhollow_small): New variables.
5178 (syms_of_fringe): Intern and staticpro them.
5179 (question_mark_bits): Rename from unknown_bits.
5180 (left_curly_arrow_bits): Rename from continuation_bits.
5181 (right_curly_arrow_bits): Rename from continued_bits.
5182 (left_triangle_bits): Rename from ov_bits.
5183 (right_triangle_bits): Add.
5184 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
5185 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
5186 (filled_square_bits): Add.
5187 (vertical_bar_bits): Rename from bar_cursor_bits.
5188 (horizontal_bar_bits): Rename from hbar_cursor_bits.
5189 (empty_line_bits): Rename from zv_bits.
5190 (standard_bitmaps): Update to use new names.
5191 (draw_fringe_bitmap_1): Make static.
5192 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
5193 to map from logical cursors and indicators to physical bitmaps.
5194 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
5195 bitmaps using symbol names instead of bitmap numbers.
5196 (update_window_fringes): Use logical indicator symbol names
5197 instead of bitmap numbers for logical. Add bitmap cache.
5198 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
5199
5200 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
5201
5202 * regex.c: Revert 2006-02-19 change.
5203 (xmalloc, xrealloc): Define these when not linked to Emacs.
5204 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
5205
5206 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
5207
5208 * regex.c (extend_range_table_work_area): Fix typo.
5209
5210 2006-02-19 Richard M. Stallman <rms@gnu.org>
5211
5212 * xterm.c (x_catch_errors): Use xmalloc.
5213
5214 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
5215 (regex_compile): Likewise.
5216 (regcomp): Use xmalloc.
5217
5218 * gtkutil.c (malloc_widget_value): Use xmalloc.
5219
5220 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
5221 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
5222
5223 * xmenu.c (digest_single_submenu): When pane_string is empty,
5224 do initialize save_wv.
5225
5226 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5227
5228 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
5229 w->update_mode_line if arg F is not the selected frame.
5230
5231 * macmenu.c (popup_activated_flag, submenu_id)
5232 (next_menubar_widget_id): Remove variables.
5233 (initialize_frame_menubar): Remove function.
5234 (pop_down_menu, mac_menu_show): Simplify save value.
5235 (dispose_menus): New function.
5236 (pop_down_menu, fill_menubar): Use it.
5237 (fill_submenu): Remove function. All uses changed to fill_menu.
5238 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
5239 POS. Don't call SetMenuItemHierarchicalID here.
5240 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
5241 used next. Call SetMenuItemHierarchicalID here.
5242 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
5243 objects if needed. Reuse existing menu bar titles if possible.
5244 (set_frame_menubar): Don't clean up menu objects here.
5245
5246 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
5247
5248 * window.c (window_min_size_1): Ensure room for the scroll bar and
5249 fringes.
5250
5251 2006-02-17 Romain Francoise <romain@orebokech.com>
5252
5253 * puresize.h (BASE_PURESIZE): Increment to 1200000.
5254
5255 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
5256
5257 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
5258 addition of the BLOCK_INPUTs.
5259
5260 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
5261
5262 * window.c (Fset_window_scroll_bars): Doc fix.
5263
5264 2006-02-17 Kenichi Handa <handa@m17n.org>
5265
5266 * xdisp.c (display_mode_element): Call display_string with correct
5267 PREC arg (which must be a number of characters, not column width).
5268
5269 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5270
5271 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
5272
5273 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
5274
5275 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
5276
5277 2006-02-14 Richard M. Stallman <rms@gnu.org>
5278
5279 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
5280
5281 * m/ibms390x.h: New file.
5282
5283 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5284
5285 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
5286 value of x-gtk-whole-detached-tool-bar.
5287 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
5288
5289 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
5290
5291 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5292
5293 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
5294
5295 * xterm.h: Declare x_x_to_emacs_modifiers.
5296
5297 * gtkutil.c (xg_tool_bar_button_cb): New function.
5298 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
5299 store modifiers in event.
5300 (update_frame_tool_bar): Connect button-release-event to
5301 xg_tool_bar_button_cb.
5302
5303 2006-02-13 Richard M. Stallman <rms@gnu.org>
5304
5305 * .gdbinit (xwindow): Update the code to show the window box.
5306
5307 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5308
5309 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
5310
5311 2006-02-12 Richard M. Stallman <rms@gnu.org>
5312
5313 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
5314
5315 2006-02-11 Eli Zaretskii <eliz@gnu.org>
5316
5317 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
5318 (syms_of_keyboard): DEVFAR_LISP and initialize it.
5319 (parse_tool_bar_item, parse_menu_item): If that variable is
5320 non-nil, don't disable menu items and tool-bar buttons.
5321
5322 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
5323
5324 * doc.c (Fsubstitute_command_keys): Doc fix.
5325
5326 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
5327
5328 * data.c (Findirect_function): Rewrite docstring.
5329 Fix omission bug: Declare new arg NOERROR.
5330
5331 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5332
5333 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
5334 if window_desc is not set yet.
5335 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
5336 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
5337 parameter `visibility' is `icon'.
5338 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
5339 instead of "fontset-mac".
5340 (Fx_focus_frame): New defun.
5341 (syms_of_macfns): Defsubr it.
5342
5343 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
5344 for unfocused frame.
5345 (x_raise_frame): Call BringToFront instead of SelectWindow.
5346 (x_lower_frame): Use NULL instead of nil.
5347 (x_make_frame_visible): Don't call SelectWindow.
5348 (XTread_socket): Increment handling_signal at the start, decrement
5349 it at the end.
5350 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
5351 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
5352
5353 2006-02-10 Kim F. Storm <storm@cua.dk>
5354
5355 * data.c (Findirect_function): Add NOERROR arg. All callers changed
5356 to pass Qnil for NOERROR.
5357
5358 * keymap.c (current_minor_maps_error): Remove.
5359 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
5360 instead of using internal_condition_case_1+current_minor_maps_error.
5361
5362 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5363
5364 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
5365 frames for GTK, in that case it is the tool bar. This is so that
5366 highlighted text get reset properly.
5367
5368 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
5369
5370 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
5371
5372 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5373
5374 * window.c (adjust_window_trailing_edge): Check that shrinking
5375 does not set a window to size zero or less.
5376
5377 2006-02-08 Miles Bader <miles@gnu.org>
5378
5379 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
5380 of Fget_text_property (other field functions work with overlays as
5381 well as text-properties).
5382
5383 2006-02-07 Kenichi Handa <handa@m17n.org>
5384
5385 * dispextern.h (unibyte_display_via_language_environment): Extern it.
5386
5387 * xterm.h (unibyte_display_via_language_environment):
5388 * w32term.h (unibyte_display_via_language_environment):
5389 * macterm.h (unibyte_display_via_language_environment): Delete extern.
5390
5391 2006-02-07 Kenichi Handa <handa@m17n.org>
5392
5393 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
5394 (produce_glyphs): Set the character to print in
5395 it->char_to_display. Handle unibyte-display-via-language-environment.
5396 (produce_stretch_glyph): Set character to print in it->char_to_display.
5397
5398 2006-02-06 Kenichi Handa <handa@m17n.org>
5399
5400 * lread.c (openp): Initialize encoded_fn before GCPRO it.
5401
5402 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
5403
5404 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
5405
5406 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
5407 Cast bitfield value to EMACS_INT, to suppress gcc warning.
5408
5409 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
5410 defining.
5411
5412 2006-02-03 Kim F. Storm <storm@cua.dk>
5413
5414 * xdisp.c: Cache last merged escape glyph face.
5415 (last_escape_glyph_frame, last_escape_glyph_face_id)
5416 (last_escape_glyph_merged_face_id): New variables.
5417 (get_next_display_element): Use/update them.
5418 (redisplay_internal): Reset them before redisplay.
5419
5420 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
5421 Only recheck faces after displaying ellipsis.
5422
5423 2006-02-02 Kenichi Handa <handa@m17n.org>
5424
5425 * coding.c (decode_composition_emacs_mule): Fix handling of
5426 incorrect format data.
5427
5428 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5429
5430 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
5431 gtk_toolbar_insert() so we can have tool bars of different sizes.
5432
5433 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
5434
5435 * data.c (Flistp): Doc fix.
5436
5437 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
5438
5439 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
5440 Fix typos in docstrings.
5441
5442 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
5443
5444 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
5445
5446 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
5447
5448 * alloc.c (make_interval, allocate_string)
5449 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
5450 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
5451 global variables.
5452
5453 2006-01-27 Eli Zaretskii <eliz@gnu.org>
5454
5455 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
5456 the MSDOS definition.
5457
5458 2006-01-26 Richard M. Stallman <rms@gnu.org>
5459
5460 * alloc.c (check_pure_size): Make overflow message an "error message".
5461
5462 * keymap.c (Fmap_keymap): Doc fix.
5463
5464 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
5465 unless they were cleared out.
5466
5467 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
5468
5469 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5470
5471 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
5472 (find_field): Set before_field to after_field when pos is at BEGV.
5473 (Fline_beginning_position, Fline_end_position):
5474 Clarify confusing doc string.
5475
5476 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
5477 string.
5478
5479 2006-01-26 Kenichi Handa <handa@m17n.org>
5480
5481 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
5482 current_dir, and error_file. On reporting an error, decode them
5483 back.
5484
5485 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5486
5487 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
5488 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
5489 Don't check for quit, since any loop will go through fail or jump.
5490
5491 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
5492
5493 * alloc.c (allocate_string_data): Update next_free immediately, to
5494 reduce risk of memory clobberage.
5495
5496 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5497
5498 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
5499 display when point moves across an ellipsis. If there are
5500 adjacent invisible texts, don't lose the second one's ellipsis.
5501 (x_produce_glyphs): Doc fix.
5502
5503 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
5504
5505 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
5506
5507 2006-01-23 Kim F. Storm <storm@cua.dk>
5508
5509 * xdisp.c (handle_single_display_spec): Fix handling of space
5510 property on char from string: set *position rather than
5511 it->current.pos.
5512 (produce_stretch_glyph): Reduce width of stretch glyphs so they
5513 don't get wider than the window (unless truncate-lines is on).
5514
5515 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
5516
5517 * xterm.c: Avoid allocating Lisp data from a signal handler.
5518 (x_error_message): New var to replace x_error_message_string.
5519 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
5520 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
5521 (syms_of_xterm): Use it instead of x_error_message_string.
5522
5523 * alloc.c (lisp_align_free): Add an assertion.
5524 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
5525 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
5526 a signal handler.
5527
5528 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
5529
5530 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
5531
5532 2006-01-21 Romain Francoise <romain@orebokech.com>
5533
5534 * xdisp.c (get_window_cursor_type): Fix last change.
5535 Update copyright year.
5536
5537 2006-01-20 Eli Zaretskii <eliz@gnu.org>
5538
5539 * lread.c (Fload): Don't leak the file descriptor returned by
5540 openp if we are going to signal an error.
5541
5542 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
5543 directly to _close.
5544 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
5545 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
5546 to _read.
5547 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
5548 directly to _write.
5549
5550 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
5551 if it is NULL.
5552
5553 2006-01-20 Kenichi Handa <handa@m17n.org>
5554
5555 * puresize.h (BASE_PURESIZE): Increment to 1190000.
5556
5557 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
5558
5559 * xdisp.c (get_window_cursor_type): Use cursor type specified by
5560 the selected buffer for the echo area too.
5561
5562 2006-01-19 Richard M. Stallman <rms@gnu.org>
5563
5564 * keymap.c (Fmap_keymap): Doc fix.
5565
5566 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
5567
5568 * keyboard.c (echo_char): Don't omit the space between first two
5569 echoed chars.
5570
5571 * minibuf.c (read_minibuf): Fix previous change.
5572
5573 2006-01-19 Kenichi Handa <handa@m17n.org>
5574
5575 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5576
5577 2006-01-17 Richard M. Stallman <rms@gnu.org>
5578
5579 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
5580 value in f->param_alist.
5581
5582 2006-01-15 Andreas Schwab <schwab@suse.de>
5583
5584 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
5585
5586 2006-01-13 Richard M. Stallman <rms@gnu.org>
5587
5588 * Makefile.in: Define new macro WINDOW_SUPPORT.
5589 (lisp): Use it.
5590 (SOME_MACHINE_LISP): Add conditionally loaded files.
5591
5592 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5593
5594 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
5595 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
5596 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
5597 decomposed form.
5598
5599 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
5600 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
5601 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
5602 macro. Also try member ifr_addr when getting netmask.
5603
5604 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
5605
5606 * fileio.c (Fexpand_file_name): Remove redundant tests.
5607 Fix elimination of // so that it doesn't prevent elimination of an
5608 immediately following /. or /..
5609
5610 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5611
5612 * gtkutil.c (xg_toggle_notify_cb): New function.
5613 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
5614 xg_toggle_notify_cb.
5615 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
5616 parameter value changes so the toggle button gets updated.
5617
5618 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
5619
5620 * .gdbinit: Fix typo.
5621
5622 2006-01-05 Eli Zaretskii <eliz@gnu.org>
5623
5624 * .gdbinit: Fix last change.
5625
5626 2006-01-05 Kim F. Storm <storm@cua.dk>
5627
5628 * process.c (Fmake_network_process): Use AF_INET instead of
5629 AF_UNSPEC when AF_INET6 is not defined.
5630
5631 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5632
5633 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
5634 Don't check that the other type is known file-related one.
5635
5636 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
5637 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
5638 OS X 10.4 and later.
5639
5640 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5641
5642 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
5643 let GTK do all image processing. Importing Emacs own pixmaps to GTK
5644 looks bad for inactive tool bar items with some Gnome themes.
5645
5646 2006-01-04 Eli Zaretskii <eliz@gnu.org>
5647
5648 * .gdbinit: Avoid a warning message when x_error_quitter is not
5649 compiled in.
5650
5651 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
5652 for w32.
5653
5654 2006-01-04 Kim F. Storm <storm@cua.dk>
5655
5656 * process.c: Add IPv6 support.
5657 (Qipv4, Qipv6): New vars.
5658 (syms_of_process): Intern and staticpro them.
5659 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
5660 with or without port number. Handle 4 element vector as IPv4 address
5661 without port number.
5662 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5663 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
5664 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
5665 request that address family only. :family nil or omitted means to
5666 determine address family from the specified :host and :service.
5667 (ifflag_table): Add missing OpenBSD IFF_ flags.
5668 (server_accept_connection): Handle IPv6 addresses.
5669 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
5670
5671 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
5672 determine which breakpoints to set.
5673
5674 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
5675
5676 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
5677
5678 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
5679
5680 2006-01-03 Romain Francoise <romain@orebokech.com>
5681
5682 * emacs.c (main): Update copyright year.
5683
5684 2006-01-03 Ken Raeburn <raeburn@gnu.org>
5685
5686 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
5687 nil for the call to internal_delete_file.
5688
5689 2006-01-01 Ken Raeburn <raeburn@gnu.org>
5690
5691 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
5692 to nil for the call to Fwrite_region.
5693
5694 2005-12-31 Richard M. Stallman <rms@gnu.org>
5695
5696 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
5697
5698 2005-12-31 Eli Zaretskii <eliz@gnu.org>
5699
5700 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
5701
5702 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
5703
5704 * textprop.c (set_text_properties): Reword description of return value.
5705 Return Qnil if caller wants to remove all text properties from a
5706 string and the string already has no intervals.
5707
5708 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
5709
5710 * term.c (visible_cursor): New boolean var.
5711 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
5712 visible_cursor.
5713 (syms_of_term): Export the new var as "visible-cursor".
5714
5715 2005-12-30 Eli Zaretskii <eliz@gnu.org>
5716
5717 * .gdbinit: Tell users not to worry about GDB warnings that some
5718 functions do not exist in the binary.
5719
5720 2005-12-30 Andreas Schwab <schwab@suse.de>
5721
5722 * process.c (Fnetwork_interface_info): Correctly terminate the
5723 loop over ifflag_table.
5724
5725 2005-12-29 Richard M. Stallman <rms@gnu.org>
5726
5727 * lread.c (readevalloop): Test for reading a whole buffer
5728 before actually reading anything. Handle all cases, including
5729 START = END = nil and an already-narrowed buffer.
5730 Convert END to a marker if it is a number.
5731
5732 * keymap.c (describe_map): Put sparse map elements into an array,
5733 sort them, then output a sequence of identical bindings on one line.
5734 (struct describe_map_elt): New data type.
5735 (describe_map_compare): New function.
5736
5737 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5738
5739 * gtkutil.c (xg_get_file_with_chooser): Change message shown
5740 in file chooser.
5741
5742 2005-12-27 Richard M. Stallman <rms@gnu.org>
5743
5744 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
5745 not the current one.
5746
5747 * minibuf.c (Fminibuffer_message): Doc fix.
5748 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
5749
5750 * eval.c (do_autoload): Ignore elements of Vautoload_queue
5751 where car is not symbol.
5752
5753 2005-12-27 Kenichi Handa <handa@m17n.org>
5754
5755 * charset.c (lisp_string_width): Check multibyteness of STRING.
5756
5757 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5758
5759 * xfns.c (x_show_hidden_files): New variable.
5760 (syms_of_xfns): Defvar it.
5761
5762 * gtkutil.c (xg_toggle_visibility_cb): New function.
5763 (xg_get_file_with_chooser): Add toggle hidden files and a message
5764 to the new file chooser dialog. Show hidden files if
5765 x_show_hidden_files is non-zero.
5766
5767 2005-12-26 Richard M. Stallman <rms@gnu.org>
5768
5769 * keyboard.h: Undo previous change.
5770
5771 * Makefile.in (undo.o): Undo previous change.
5772
5773 * undo.c: Undo previous change.
5774
5775 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
5776
5777 * keyboard.h: extern last_point_position_window.
5778
5779 * undo.c: include keyboard.h.
5780
5781 * Makefile.in (undo.o): Depend on keyboard.h.
5782
5783 2005-12-26 Richard M. Stallman <rms@gnu.org>
5784
5785 * commands.h (last_point_position_window): Declare.
5786
5787 * undo.c: Depend on window.h.
5788 (record_point): Save old point from the correct window.
5789
5790 * keyboard.c (last_point_position_window): New variable.
5791 (command_loop_1): Set last_point_position_window.
5792 (syms_of_keyboard): Init it.
5793
5794 * Makefile.in (undo.o): Depend on window.h.
5795
5796 2005-12-25 Richard M. Stallman <rms@gnu.org>
5797
5798 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
5799 to undo a `provide'.
5800
5801 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
5802
5803 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
5804
5805 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
5806 define for FreeBSD on this platform.
5807
5808 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5809
5810 * macterm.h (TYPE_FILE_NAME): New define.
5811 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
5812
5813 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
5814 Add prototypes. Make static.
5815 (mac_aedesc_to_lisp): Initialize err to noErr.
5816 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5817 (init_coercion_handler): New functions.
5818 (Fmac_coerce_ae_data): Use coercion of Apple event data for
5819 translation from/to file names.
5820
5821 * macterm.c: Don't include sys/param.h.
5822 (init_coercion_handler): Add extern.
5823 [MAC_OS8] (main): Call init_coercion_handler.
5824 (mac_initialize) [MAC_OSX]: Likewise.
5825 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
5826 Apple event data for translation from/to file names.
5827
5828 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5829
5830 * image.c [MAC_OS] (find_image_fsspec): Likewise.
5831
5832 2005-12-23 Martin Rudalics <rudalics@gmx.at>
5833
5834 * insdel.c (insert, insert_and_inherit, insert_before_markers)
5835 (insert_before_markers_and_inherit): Make sure FROM is correct
5836 when `after-change-functions' are called.
5837
5838 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5839
5840 * xfns.c (Fx_uses_old_gtk_dialog): New function.
5841
5842 * gtkutil.c (xg_uses_old_file_dialog): New function.
5843 (xg_get_file_name): Use xg_uses_old_file_dialog.
5844
5845 * gtkutil.h: Declare xg_uses_old_file_dialog.
5846
5847 2005-12-22 Richard M. Stallman <rms@gnu.org>
5848
5849 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
5850
5851 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5852
5853 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
5854
5855 * macgui.h (XCharStruct): Remove member `valid_p'.
5856 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
5857 (XCharStructRow): New typedef.
5858 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
5859 New macros.
5860 (struct MacFontStruct): Add member `bounds'. Remove member
5861 `per_char'. All uses for QuichDraw Text fonts are changed to
5862 `bounds.per_char'. ATSUI font bounds are represented as an array
5863 `bounds.rows' of XCharStructRow's, each of which consists of a
5864 bitmap of valid entries and an array of char bounds.
5865
5866 * macterm.c (mac_per_char_metric): Add prototype.
5867 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
5868 (mac_query_char_extents): New function.
5869 (x_per_char_metric): Use it.
5870 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
5871 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
5872 Use mac_per_char_metric instead of x_per_char_metric.
5873 (mac_text_extents_16): New function.
5874 (mac_compute_glyph_string_overhangs): Use it.
5875 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
5876
5877 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5878
5879 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
5880 (Fminibuffer_completion_help): Remove duplicates before display.
5881
5882 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5883
5884 * print.c (print_preprocess): Don't lose print_depth levels while
5885 iterating.
5886
5887 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5888
5889 * macmenu.c (Qmac_apple_event): Add extern.
5890 (set_frame_menubar, mac_menu_show keymp_panes)
5891 (single_keymap_panes, list_of_panes, list_of_item)
5892 (single_menu_item): Add argument types to prototypes.
5893 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
5894 (struct skp): New struct (from xmenu.c).
5895 (single_keymap_panes, single_menu_item, list_of_panes)
5896 (list_of_item): Sync with xmenu.c.
5897 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
5898 POSITION if it is mac-apple-event event.
5899 (menubar_selection_callback): Don't use menu_command_in_progress.
5900 (set_frame_menubar): First parse all submenus, then make
5901 widget_value trees from them. Don't allocate any widget_value
5902 objects until we are done with the parsing.
5903 (parse_single_submenu, digest_single_submenu): New functions.
5904 (single_submenu): Function deleted, replaced by those two.
5905 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
5906 or dispose of EventHandlerUPP. Install hander to all submenus.
5907 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
5908 instead of ENCODE_SYSTEM.
5909 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
5910 integer values.
5911 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
5912 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
5913 format menu item string. Don't use NULL for integer value.
5914
5915 * macterm.h (struct mac_output): Remove unused member
5916 menu_command_in_progress.
5917
5918 2005-12-20 Juri Linkov <juri@jurta.org>
5919
5920 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
5921 position is non-nil, else set it to nil.
5922
5923 * macmenu.c (Fx_popup_menu): Add `else' to set
5924 Vmenu_updating_frame to nil only if position is nil.
5925
5926 * w32menu.c (Fx_popup_menu): Add `else' to set
5927 Vmenu_updating_frame to nil only if position is nil.
5928
5929 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5930
5931 * keyboard.c (make_lispy_event): Drag-and-drop items are now
5932 stored in member `args' of struct input_event.
5933
5934 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
5935
5936 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
5937 stored in member `args' of struct input_event.
5938
5939 * w32term.c (construct_drag_n_drop): Likewise.
5940
5941 * macterm.c (mac_do_receive_drag): Likewise.
5942 (x_use_underline_position_properties): Undo 2005-07-13 change.
5943 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
5944 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
5945 (mac_pass_command_to_system, mac_pass_control_to_system):
5946 New boolean variables renamed from Lisp_Object ones
5947 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
5948 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
5949 All uses changed.
5950 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
5951 Make them user options.
5952 (mac_handle_command_event, mac_store_services_event):
5953 Call create_apple_event_from_event_ref without 5th argument.
5954 (backtranslate_modified_keycode): Mask off modifier keys that are
5955 mapped to some Emacs modifiers before passing it to KeyTranslate.
5956 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
5957 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
5958 Fix docstrings of `mac-*-modifier'.
5959
5960 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
5961 (do_applescript): Change argument types to Lisp_Object.
5962 All uses changed.
5963
5964 * macterm.h (create_apple_event_from_event_ref): Remove 5th
5965 argument from extern.
5966
5967 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5968
5969 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
5970 the answer, return `lambda', not nil.
5971
5972 2005-12-17 Eli Zaretskii <eliz@gnu.org>
5973
5974 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
5975 enclosed in $(ARGQUOTE)s should not be split between two lines, as
5976 that will break with GNU Make >3.80, when sh.exe is used and
5977 arg quoting is with '..'.
5978
5979 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
5980
5981 * print.c (print_preprocess): Just signal an error if print_depth
5982 is exceeded.
5983
5984 2005-12-17 Eli Zaretskii <eliz@gnu.org>
5985
5986 * .gdbinit: Set a breakpoint on w32_abort.
5987
5988 2005-12-16 Juri Linkov <juri@jurta.org>
5989
5990 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
5991 created from minibuffer_completion_contents.
5992 (minibuffer_completion_contents): Remove.
5993 (do_completion, Fminibuffer_complete_word)
5994 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
5995 with Fminibuffer_completion_contents.
5996 (syms_of_minibuf): Add Sminibuffer_completion_contents.
5997 (Fdisplay_completion_list): Doc fix.
5998 (display_completion_list_1): Use `nil' for second arg of
5999 `Fdisplay_completion_list'.
6000
6001 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6002
6003 * xfns.c (compute_tip_xy): Handle negative dx and dy.
6004
6005 * w32fns.c (compute_tip_xy): Ditto.
6006
6007 * macfns.c (compute_tip_xy): Ditto.
6008
6009 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
6010
6011 * print.c (print_preprocess): Go to a deeper print_depth to avoid
6012 print_object loop.
6013
6014 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
6015
6016 * coding.c (code_convert_region_unwind): GCPRO arg.
6017
6018 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6019
6020 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
6021 i.e. dy is offset from top of frame instead of bottom.
6022
6023 * macfns.c (compute_tip_xy): Ditto.
6024
6025 * w32fns.c (compute_tip_xy): Ditto.
6026
6027 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
6028 (xg_get_image_for_pixmap, xg_create_frame_widgets)
6029 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
6030
6031 * xmenu.c (menubar_selection_callback): Do nothing if the callback
6032 is for an unselected radio menu item.
6033
6034 2005-12-11 Richard M. Stallman <rms@gnu.org>
6035
6036 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
6037
6038 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
6039
6040 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
6041 (Flookup_key): Doc fix.
6042 (syms_of_keymap) <function-key-map>: Doc fix.
6043
6044 * fns.c (Frequire): Treat evaluating from a source file
6045 like loading the file.
6046
6047 * floatfns.c (Flog): Doc fix.
6048
6049 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
6050 when we change the buffer.
6051
6052 2005-12-11 Juri Linkov <juri@jurta.org>
6053
6054 * minibuf.c (display_completion_list_1):
6055 Call `minibuffer_completion_contents' instead of using `nil' as
6056 second arg of `Fdisplay_completion_list'.
6057 (keys_of_minibuf): Unbind SPC in
6058 Vminibuffer_local_filename_completion_map (see also related
6059 change on 2005-12-06).
6060
6061 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6062
6063 * emacs.c (main) [MAC_OS8]: Undo previous change.
6064
6065 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
6066 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
6067
6068 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6069
6070 * Makefile.in (macselect.o): Depend on keymap.h.
6071
6072 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
6073 syms_of_macselect.
6074
6075 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
6076 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
6077
6078 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
6079 (syms_of_keyboard) [MAC_OS]: Initialize it.
6080 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
6081
6082 * mac.c (Qundecoded_file_name): New variable.
6083 (syms_of_mac): Initialize it.
6084 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
6085 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
6086 (Fmac_coerce_ae_data): New defun.
6087 (syms_of_mac): Defsubr it.
6088
6089 * macselect.c: Include keymap.h.
6090 (mac_ready_for_apple_events): New variable.
6091 (Vmac_apple_event_map, Qmac_apple_event_class)
6092 (Qmac_apple_event_id): New variables.
6093 (syms_of_macselect): Initialize them.
6094 (Qundefined, mac_store_apple_event): Add externs.
6095 (struct apple_event_binding): New struct.
6096 (find_event_binding_fun, find_event_binding)
6097 (mac_find_apple_event_spec, defer_apple_events)
6098 (mac_handle_apple_event, init_apple_event_handler)
6099 (copy_scrap_flavor_data): New functions.
6100 (Fmac_process_deferred_apple_events): New defun.
6101 (syms_of_macselect): Defsubr it.
6102 (mac_store_services_event): Fix extern.
6103 (mac_handle_service_event): Don't allocate Lisp objects during
6104 asynchronous input processing. Use mac_store_services_event
6105 instead of mac_store_application_menu_event.
6106
6107 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
6108 (Qpreferences): Remove variables.
6109 (syms_of_macterm) : Don't initialize them.
6110 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
6111 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
6112 (init_required_apple_events, do_ae_open_application)
6113 (do_ae_print_documents, do_ae_open_documents)
6114 (do_ae_quit_application): Remove functions and prototypes.
6115 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
6116 (mac_find_apple_event_spec): Add externs.
6117 (mac_store_application_menu_event): Remove function.
6118 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
6119 (mac_handle_command_event): Create Apple event from Carbon event.
6120 Use mac_store_apple_event instead of mac_store_application_menu_event.
6121 [MAC_OSX] (mac_store_services_event): Likewise.
6122 (struct SelectionRange, SelectionRange): Remove struct and typedef.
6123 [MAC_OS8] (main): Call init_apple_event_handler instead of
6124 init_required_apple_events.
6125 (mac_initialize) [MAC_OSX]: Likewise.
6126 [!USE_CARBON_EVENTS] (mac_wait_next_event):
6127 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
6128
6129 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
6130 Add externs.
6131 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
6132 (Fmac_get_preference): Add EXFUN.
6133
6134 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
6135 event.
6136
6137 2005-12-09 Richard M. Stallman <rms@gnu.org>
6138
6139 * xfns.c (Fx_create_frame): Reinstate previous change.
6140
6141 2005-12-09 Eli Zaretskii <eliz@gnu.org>
6142
6143 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
6144 GDB to the abort dialog.
6145
6146 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
6147
6148 * indent.c (Fvertical_motion): Force move if starting on
6149 stretch glyph.
6150
6151 2005-12-08 Richard M. Stallman <rms@gnu.org>
6152
6153 * lread.c (read_escape) <\s>: Don't treat strings specially.
6154
6155 * xfns.c (Fx_create_frame): Comment out previous change.
6156
6157 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6158
6159 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
6160 when needed.
6161
6162 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
6163
6164 * minibuf.c (keys_of_minibuf): Just unbind SPC in
6165 Vminibuffer_local_filename_completion_map rather than forcing it
6166 explicitly to the same binding as the global map.
6167
6168 2005-12-06 Ken Raeburn <raeburn@gnu.org>
6169
6170 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
6171 * bytecode.c (Fbyte_code): Likewise.
6172 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
6173 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
6174 * undo.c (truncate_undo_list): Likewise.
6175
6176 2005-12-05 Richard M. Stallman <rms@gnu.org>
6177
6178 * window.c (enlarge_window): Eliminate arg preserve_before.
6179 Assume it is 0. All callers changed.
6180 (Fenlarge_window, Fshrink_window): Likewise.
6181
6182 2005-12-02 Eli Zaretskii <eliz@gnu.org>
6183
6184 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
6185 fit below.
6186
6187 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6188
6189 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
6190
6191 * xfns.c (x_real_positions): int ign => unsigned int.
6192 (xg_set_icon_from_xpm_data): Remove unused variable err.
6193 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
6194 to remove compiler warning.
6195 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
6196
6197 2005-12-02 David Reitter <david.reitter@gmail.com>
6198
6199 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
6200 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
6201 and Vminibuffer_local_must_match_filename_map keymaps.
6202 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
6203
6204 * keymap.c (Vminibuffer_local_filename_completion_map)
6205 (Vminibuffer_local_must_match_filename_map): New variables.
6206 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
6207 parent to be Vminibuffer_local_completion_map and
6208 Vminibuffer_local_must_match_map, respectively.
6209
6210 * commands.h (Vminibuffer_local_filename_completion_map)
6211 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
6212
6213 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
6214
6215 * window.c (Fset_window_configuration): Don't accidentally copy the
6216 window-point of one window to another.
6217
6218 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6219
6220 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6221
6222 2005-11-30 Kim F. Storm <storm@cua.dk>
6223
6224 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
6225 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
6226 passing it to `emacs_write'.
6227
6228 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
6229
6230 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
6231
6232 2005-11-27 Richard M. Stallman <rms@gnu.org>
6233
6234 * window.c (adjust_window_trailing_edge): New function.
6235 (Fadjust_window_trailing_edge): New function.
6236 (syms_of_window): Defsubr it.
6237 (window_deletion_count): New variable.
6238 (delete_window): Update window_deletion_count.
6239
6240 2005-11-26 Eli Zaretskii <eliz@gnu.org>
6241
6242 * minibuf.c (syms_of_minibuf): Mention the extension of
6243 `completion-auto-help's meaning by complete.el.
6244
6245 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
6246
6247 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
6248 Handle :inherit property as a lisp expression.
6249
6250 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6251
6252 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
6253 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
6254 Qsuper, and Qmodifier_value.
6255 (Vmac_control_modifier, Vmac_option_modifier)
6256 (Vmac_command_modifier, Vmac_function_modifier)
6257 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
6258 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
6259 (Vmac_charset_info_alist): Doc fixes.
6260
6261 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6262
6263 * emacs.c (main) [MAC_OSX]: Change working directory to home
6264 directory if `-psn_*' option is specified.
6265
6266 * mac.c (DECODE_UTF_8): Remove macro.
6267 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
6268 created from cfstring_to_lisp.
6269 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
6270 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
6271
6272 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
6273 Add prototype.
6274
6275 2005-11-21 Ken Raeburn <raeburn@gnu.org>
6276
6277 * keymap.c (shadow_lookup): Use make_number to pass a number to
6278 Fsubstring.
6279
6280 2005-11-21 Juri Linkov <juri@jurta.org>
6281
6282 * puresize.h (BASE_PURESIZE): Increment to 1180000.
6283
6284 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
6285
6286 * xfaces.c (Finternal_set_lisp_face_attribute):
6287 Use :ignore-defface for new frame defaults when `unspecified' is
6288 supplied.
6289 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
6290 (merge_face_vectors): Don't do :ignore-defface overwriting here.
6291 (Finternal_merge_in_global_face): Do it here.
6292
6293 2005-11-20 Juri Linkov <juri@jurta.org>
6294
6295 * charset.c (invalid_character): Use Lisp-readable syntax
6296 for octal and hex. Reorder decimal, octal and hex values.
6297
6298 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
6299
6300 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
6301 this type is recognised when debugging.
6302
6303 2005-11-19 Andreas Schwab <schwab@suse.de>
6304
6305 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
6306 Lisp_Cons and Lisp_Float.
6307
6308 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6309
6310 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
6311 New variable.
6312 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
6313 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
6314 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
6315 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
6316
6317 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
6318
6319 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
6320
6321 * xfaces.c (Qignore_defface): New variable.
6322 (syms_of_xfaces): Provide `:ignore-defface'.
6323 (IGNORE_DEFFACE_P): New macro.
6324 (check_lface_attrs, lface_fully_specified_p)
6325 (Finternal_set_lisp_face_attribute)
6326 (Fface_attribute_relative_p, Fmerge_face_attribute):
6327 Handle Qignore_defface as a possible value.
6328 (merge_face_vectors): The merged face is `unspecified' if the
6329 mergee specifies `:ignore-defface'.
6330
6331 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
6332
6333 * lread.c (readevalloop): Add missing GCPROs.
6334
6335 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
6336
6337 * xfns.c (xg_set_icon_from_xpm_data): New function.
6338
6339 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
6340 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
6341
6342 * xterm.c (x_bitmap_icon): Use the xpm if available.
6343
6344 * image.c (x_create_bitmap_from_xpm_data): New function.
6345 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
6346
6347 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
6348
6349 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
6350
6351 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
6352
6353 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
6354
6355 2005-11-15 Andreas Schwab <schwab@suse.de>
6356
6357 * lisp.h (struct Lisp_Cons): Make cdr a union.
6358 (XCDR_AS_LVALUE): Adjust.
6359 (struct Lisp_Float): Make data a union.
6360 (XFLOAT_DATA): Adjust.
6361
6362 * alloc.c (free_float): Make free list chaining aliasing-safe.
6363 (make_float): Likewise.
6364 (free_cons): Likewise.
6365 (Fcons): Likewise.
6366 (check_cons_list): Likewise.
6367 (Fmake_symbol): Likewise.
6368 (allocate_misc): Likewise.
6369 (free_misc): Likewise.
6370 (gc_sweep): Likewise.
6371
6372 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6373
6374 * mac.c (HASHKEY_QUERY_CACHE): New define.
6375 (xrm_create_database, xrm_q_put_resource): Empty query cache.
6376 (xrm_get_resource): Use query cache.
6377
6378 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
6379 inhibit_window_system is set.
6380
6381 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6382
6383 * macgui.h (USE_CG_TEXT_DRAWING): New define.
6384 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
6385 and cg_glyphs.
6386
6387 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
6388 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
6389 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
6390 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
6391 not used and font substitution never occurs for ASCII and Latin-1
6392 characters.
6393 (XLoadQueryFont): Maximum and minimum metrics are now those among
6394 ASCII characters.
6395 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
6396 height adjustments for Courier, Helvetica, and Times.
6397
6398 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
6399
6400 2005-11-11 David Reitter <david.reitter@gmail.com>
6401
6402 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
6403 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
6404 Vmac_control_modifier / mac-control-modifier,
6405 Vmac_option_modifier / mac-option-modifier,
6406 Vmac_command_modifier / mac-command-modifier.
6407 (mac_to_emacs_modifiers): Use the new style modifier
6408 variables. Return UInt32 (modifiers are longs now.)
6409 (backtranslate_modified_keycode): New function (refactoring).
6410 (XTread_socket): Use new modifier variables and refactored function.
6411 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
6412 no dedicated meta key. Not in use anyway.)
6413 (convert_fn_keycode): Map Fn-keys to their original keycode
6414 using a table (english keyboard only).
6415
6416 2005-11-11 Kim F. Storm <storm@cua.dk>
6417
6418 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
6419 Add post hook to "backtrace" to always dump lisp call stack to
6420 increase chance of people sending it to us when reporting bugs.
6421
6422 * doc.c (Fsubstitute_command_keys): Doc fix.
6423
6424 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
6425
6426 * xdisp.c (handle_stop): Skip overlay string handling if
6427 ignore_overlay_strings_at_pos_p is set.
6428 (set_iterator_to_next): At end of display vector, set
6429 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
6430 string, so we skip those overlay strings at current pos.
6431
6432 2005-11-10 Lars Hansen <larsh@soem.dk>
6433
6434 * fileio.c (file-regular-p): Doc fix.
6435
6436 2005-11-10 Kim F. Storm <storm@cua.dk>
6437
6438 * alloc.c (valid_lisp_object_p): New function to validate that
6439 an object is really a valid Lisp_Object.
6440
6441 * lisp.h (valid_lisp_object_p): Add prototype.
6442
6443 * print.c (safe_debug_print): New function to be called from gdb
6444 to print Lisp objects; use valid_lisp_object_p to avoid crashing
6445 if user tries to print something which is not a Lisp object.
6446
6447 * .gdbinit (pp, pp1): Use safe_debug_print.
6448 (pv, pv1): New commands to print value of a lisp variable.
6449
6450 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
6451
6452 * .gdbinit (pp1): New user-defined function.
6453
6454 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6455
6456 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
6457
6458 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
6459 related variables for dumped executable.
6460
6461 * unexmacosx.c (unexec_write_zero): New function.
6462 (copy_data_segment): Clear uninitialized local variables in
6463 statically linked libraries.
6464
6465 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
6466
6467 2005-11-09 Juri Linkov <juri@jurta.org>
6468
6469 * keymap.c (shadow_lookup): If Flookup_key returns a number,
6470 call it again with a sub-key-sequence, and if its return value
6471 is non-nil (sub-key is bound), return nil.
6472
6473 2005-11-08 Kim F. Storm <storm@cua.dk>
6474
6475 * process.c (Fsignal_process): Recognize signal names with and
6476 without SIG prefix, e.g. SIGHUP and HUP.
6477
6478 * search.c (search_buffer): No need to initialize base_pat.
6479
6480 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
6481
6482 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
6483 Don't abuse the `mini' arg. Use the `obj' arg instead.
6484
6485 2005-11-04 Kim F. Storm <storm@cua.dk>
6486
6487 * xdisp.c (show_mouse_face): Clear mouse face to eol.
6488
6489 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
6490
6491 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
6492 font-lock.elc and jit-lock.elc.
6493
6494 2005-11-03 Richard M. Stallman <rms@gnu.org>
6495
6496 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
6497 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
6498 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
6499
6500 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
6501
6502 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
6503
6504 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6505
6506 * window.c (Fdisplay_buffer): Fix last change to not use
6507 a dedicated window.
6508
6509 2005-11-01 Kim F. Storm <storm@cua.dk>
6510
6511 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
6512 Instead, rotate the bottom angle bitmap 180 degrees to indicate
6513 that the bottom row does not end in a newline.
6514
6515 2005-11-01 Andreas Schwab <schwab@suse.de>
6516
6517 * unexelf.c (unexec): Handle .plt section in BSS segment.
6518
6519 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6520
6521 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
6522
6523 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
6524 determine whether to consider dedicated windows as well.
6525 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
6526 (Fdisplay_buffer): Do consider dedicated windows in those cases where
6527 we will split the window rather than reuse it.
6528 Don't try to use windows on other displays.
6529
6530 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
6531
6532 * puresize.h (BASE_PURESIZE): Increment to 1170000.
6533
6534 2005-10-31 Romain Francoise <romain@orebokech.com>
6535
6536 * macfns.c: Update copyright year.
6537 * m/gould.h: Likewise.
6538
6539 2005-10-30 Kim F. Storm <storm@cua.dk>
6540
6541 * xdisp.c (display_line): Restore it->current_x and call
6542 extend_face_to_end_of_line when last glyph doesn't fit on line.
6543 (set_glyph_string_background_width): Remove specific tests here
6544 to see if face background should extend to end of line. Simplify.
6545
6546 2005-10-30 Richard M. Stallman <rms@gnu.org>
6547
6548 * alloc.c (BYTES_USED): Use uordblks, not arena.
6549 (bytes_used_when_reconsidered): New variable.
6550 (emacs_blocked_free): Set that.
6551
6552 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
6553
6554 * alloc.c (emacs_blocked_free): Fix typo.
6555
6556 2005-10-29 Richard M. Stallman <rms@gnu.org>
6557
6558 * data.c (Fmake_variable_frame_local): Doc fix.
6559
6560 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
6561 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
6562 controls whether to save and restore mode_line_proptrans_alist.
6563 Callers changed.
6564 (unwind_format_mode_line): Work with that feature.
6565 (redisplay_internal): Don't call prepare_menu_bars if memory full.
6566 (move_elt_to_front): New function.
6567 (display_mode_element): Use move_elt_to_front.
6568 Don't bother munging text props on a null string.
6569 Delete obsolete elts from mode_line_proptrans_alist.
6570 (decode_mode_spec): Test Vmemory_full, not spare_memory.
6571 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
6572
6573 * lisp.h (memory_full_cons_threshold): Declare.
6574 (internal_lisp_condition_case): Declare.
6575
6576 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
6577 (Fmemory_full_p): Function deleted.
6578 (syms_of_alloc): Don't defsubr it.
6579 (memory_full_cons_threshold): New variable.
6580 (spare_memory): Now a vector of 7 elts.
6581 (buffer_memory_full): Don't set Vmemory_full here.
6582 (xfree): Don't try to refill here.
6583 (emacs_blocked_free): Record BYTES_USED in local var.
6584 (memory_full): Now free all the slots in spare_memory.
6585 (refill_memory_reserve): Allocate each slot in spare_memory.
6586 (init_alloc_once): Call refill_memory_reserve.
6587
6588 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
6589
6590 * eval.c (internal_lisp_condition_case): New function.
6591 (Fcondition_case): Use internal_lisp_condition_case.
6592 (Feval): Test Vmemory_full and memory_full_cons_threshold.
6593 (Ffuncall): Likewise.
6594
6595 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
6596
6597 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
6598
6599 * syntax.c (Fparse_partial_sexp): Fix docstring.
6600
6601 2005-10-28 Romain Francoise <romain@orebokech.com>
6602
6603 * puresize.h (BASE_PURESIZE): Increment to 1130000.
6604
6605 2005-10-28 Richard M. Stallman <rms@gnu.org>
6606
6607 * xfns.c (syms_of_xfns): Provide `x' as feature.
6608
6609 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
6610
6611 * editfns.c (Fformat): Don't include string padding
6612 between info[n].start and info[n].end.
6613
6614 * alloc.c (spare_memory): No longer static.
6615 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
6616
6617 * puresize.h (BASE_PURESIZE): Increment to 1120000.
6618
6619 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
6620
6621 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
6622
6623 * fringe.c (update_window_fringes): Handle case where buffer ends
6624 with a newline.
6625
6626 2005-10-27 Kenichi Handa <handa@m17n.org>
6627
6628 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
6629
6630 2005-10-24 Kenichi Handa <handa@m17n.org>
6631
6632 * charset.h (charset_mule_unicode_0100_24ff)
6633 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
6634 Extern them.
6635
6636 * charset.c (charset_mule_unicode_0100_24ff)
6637 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
6638 New variables.
6639 (Fsetup_special_charsets): Initialize them.
6640
6641 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6642 supported Unicode characters.
6643
6644 2005-10-25 Jason Rumney <jasonr@gnu.org>
6645
6646 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
6647
6648 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6649
6650 * image.c [MAC_OS] (image_load_qt_1): Check image size.
6651 Use GraphicsImportGetImageDescription instead of
6652 GraphicsImportGetNaturalBounds.
6653 [MAC_OSX] (image_load_quartz2d): Check image size.
6654 [MAC_OS] (xpm_load_image): Likewise.
6655
6656 * macterm.c (last_mouse_glyph_frame): New var.
6657 (note_mouse_movement): Say mouse moved if current frame differs
6658 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6659 (XTmouse_position): Set last_mouse_glyph_frame.
6660 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
6661 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
6662 Use EndianU16_BtoN.
6663 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
6664 (x_per_char_metric, XLoadQueryFont)
6665 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
6666 glyph bounds.
6667 (mac_to_x_fontname, mac_do_list_fonts)
6668 (mac_initialize_display_info): Change screen resolutions to 72dpi.
6669
6670 2005-10-25 Masatake YAMATO <jet@gyve.org>
6671
6672 * minibuf.c (Fdisplay_completion_list): Small doc fix.
6673
6674 2005-10-24 Kim F. Storm <storm@cua.dk>
6675
6676 * xterm.c: Undo 2005-10-23 change.
6677 (last_mouse_glyph_frame): New var.
6678 (note_mouse_movement): Say mouse moved if current frame differs
6679 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6680 (XTmouse_position): Set last_mouse_glyph_frame.
6681 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
6682 last_mouse_glyph] on mouse up/down event.
6683
6684 * editfns.c (Fcompare_buffer_substrings): Fix last change.
6685
6686 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6687
6688 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
6689
6690 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6691
6692 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
6693 so tool tips don't interfere with press on tool bar button.
6694
6695 2005-10-23 Richard M. Stallman <rms@gnu.org>
6696
6697 * casetab.c (Fset_case_table): Doc fix.
6698
6699 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
6700 (readevalloop): Compute ENTIRE properly.
6701 (syms_of_lread) <load-history>: Doc fix.
6702
6703 2005-10-21 Richard M. Stallman <rms@gnu.org>
6704
6705 * lread.c (Fload): Simplify gcpro structure.
6706 Gcpro FOUND as well as FILE, but not EFOUND.
6707 Unless preloading, record FOUND instead of FILE in Vload_history.
6708 Rename repeat local FILE to MSG_FILE.
6709 (syms_of_lread) <load-history>: Doc fix.
6710
6711 2005-10-21 Kenichi Handa <handa@m17n.org>
6712
6713 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
6714
6715 2005-10-20 Kim F. Storm <storm@cua.dk>
6716
6717 * buffer.c (clone_per_buffer_values): Remove unused var tem.
6718 (init_buffer): Remove unused vars dotstat, pwdstat.
6719
6720 * ccl.c (check_ccl_update): Remove unused var vp.
6721
6722 * fileio.c (auto_save_error): Call SAFE_FREE.
6723
6724 * fns.c (Fchar_table_range): Remove unused var i.
6725
6726 * minibuf.c (display_completion_list_1): New wrapper function
6727 for Fdisplay_completion_list.
6728 (Fminibuffer_completion_help): Use it.
6729
6730 * term.c (encode_terminal_code): Remove unused var src_start.
6731
6732 * window.c (Fwindow_tree): Remove unused var alist.
6733
6734 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
6735
6736 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
6737
6738 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
6739
6740 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
6741
6742 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
6743
6744 2005-10-20 Andreas Schwab <schwab@suse.de>
6745
6746 * minibuf.c (Fdisplay_completion_list): Doc fix.
6747
6748 2005-10-19 Kim F. Storm <storm@cua.dk>
6749
6750 * image.c (check_image_size): Handle integer Vmax_image_size value
6751 directly as max pixel value. Use default frame size for null frame.
6752 (syms_of_image) <max-image-size>: Describe integer value.
6753
6754 2005-10-19 Romain Francoise <romain@orebokech.com>
6755
6756 * emacs.c (main): Update copyright year.
6757
6758 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
6759
6760 * image.c (Vmax_image_size): New variable.
6761 (check_image_size): New function.
6762 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
6763 (gif_load, gs_load): Use it.
6764 (lookup_image): Try loading again if previous load failed.
6765 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
6766 to display in, NULL if none.
6767 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
6768 argument.
6769
6770 2005-10-18 Richard M. Stallman <rms@gnu.org>
6771
6772 * search.c (Fstring_match): Doc fix.
6773
6774 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6775
6776 * macterm.c (note_mouse_movement): Use PtInRect.
6777 (XTread_socket): Also ignore mouse motion just before a button
6778 release event. Don't process button release event when mouse is
6779 not grabbed.
6780
6781 2005-10-16 Masatake YAMATO <jet@gyve.org>
6782
6783 * minibuf.c (Fdisplay_completion_list): Add new optional
6784 argument COMMON_SUBSTRING. Bind `completion-common-substring'
6785 to the optional argument during running `completion-setup-hook'.
6786
6787 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6788
6789 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
6790 Allow nil as argument.
6791 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
6792 for encoding arguments as UTF-16 in native byte order, no BOM.
6793
6794 * macfns.c (Fx_create_frame): Add debugging code.
6795 (Fx_show_tip): Set frame pixel width and height.
6796
6797 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
6798 (FRAME_NORMAL_GC): New macro.
6799 (mac_draw_line, mac_clear_area, mac_clear_window)
6800 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
6801 (mac_draw_image_string, mac_draw_image_string_16): Rename from
6802 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
6803 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
6804 All uses changed.
6805 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
6806 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
6807 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
6808 (mac_draw_string_16, mac_draw_image_string)
6809 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
6810 (mac_scroll_area): Drawing functions now take frame as destination.
6811 All uses changed.
6812 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
6813 (x_draw_fringe_bitmap): Set clipping area in face->gc.
6814
6815 * macterm.h (mac_clear_area): Add extern.
6816
6817 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6818
6819 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
6820 changes for xterm.c.
6821
6822 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
6823
6824 2005-10-14 Kenichi Handa <handa@m17n.org>
6825
6826 * search.c (search_buffer): Give up BM search on case-fold-search
6827 if one of a target character has a case-equivalence of different
6828 charset even if that target charcter is an ASCII.
6829
6830 * casefiddle.c (casify_object): Fix for the case that case
6831 conversion change the byte length.
6832
6833 2005-10-14 Kim F. Storm <storm@cua.dk>
6834
6835 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
6836 (handle_one_xevent): Only clear help_echo_string; restore it if
6837 note_mouse_movement didn't record any mouse movement.
6838
6839 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
6840 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
6841
6842 * keyboard.c (make_lispy_position): Adjust wx for left margin if
6843 ON_TEXT.
6844 (Fposn_at_x_y): Fix calculation of x coordinate.
6845 (Fposn_at_point): Return nil if point is hscrolled out of view.
6846
6847 2005-10-13 Andreas Schwab <schwab@suse.de>
6848
6849 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
6850 non-interactive mode.
6851
6852 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6853
6854 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
6855
6856 2005-10-12 Kim F. Storm <storm@cua.dk>
6857
6858 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
6859
6860 2005-10-12 Romain Francoise <romain@orebokech.com>
6861
6862 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
6863
6864 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6865
6866 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
6867 get end of text rows. Obtain header-line/mode-line rows directly.
6868
6869 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
6870 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
6871
6872 2005-10-12 Kim F. Storm <storm@cua.dk>
6873
6874 * xdisp.c (remember_mouse_glyph): New generic version based on
6875 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
6876 properly handle all different window areas.
6877
6878 * dispextern.h (remember_mouse_glyph): Add prototype.
6879
6880 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
6881 (note_mouse_movement, XTmouse_position): Use generic
6882 remember_mouse_glyph, add last_mouse_glyph arg.
6883
6884 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
6885 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
6886 (note_mouse_movement, w32_mouse_position): Use generic
6887 remember_mouse_glyph, add last_mouse_glyph arg.
6888
6889 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
6890 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
6891 (XTmouse_position): Adapt to use generic remember_mouse_glyph
6892 instead of pixel_to_glyph_coords.
6893
6894 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
6895 Fix x position for ON_TEXT when left margin width > 0.
6896
6897 2005-10-11 Kim F. Storm <storm@cua.dk>
6898
6899 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
6900
6901 * keyboard.c (make_lispy_position): Fix buffer calculations for
6902 mouse click or movement in right fringe and the margins.
6903
6904 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
6905
6906 * image.c (fn_jpeg_stdio_src): Don't define it.
6907 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
6908 (our_common_init_source): Rename from `our_init_source'.
6909 (our_common_term_source): Rename from `our_term_source'.
6910 (our_memory_fill_input_buffer): Rename from
6911 `our_fill_input_buffer'.
6912 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
6913 (jpeg_memory_src): Use the new names.
6914 (struct jpeg_stdio_mgr): New struct.
6915 (JPEG_STDIO_BUFFER_SIZE): New constant.
6916 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
6917 (jpeg_file_src): New functions.
6918 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
6919
6920 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6921
6922 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
6923 (fm_font_family_alist): New variable.
6924 (syms_of_macterm): Initialize and staticpro it.
6925 (decode_mac_font_name): Replace '-' in family name with '_' if it
6926 occurs just once. Lower family name.
6927 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
6928 All uses changed. Remove argument MF and code conversion for it.
6929 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
6930 to CHARSET. Parse font size. Lower family name. Return integer
6931 value for status of parsing.
6932 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
6933 Don't use Fdowncase because family name is already lowered by
6934 decode_mac_font_name.
6935 (init_font_name_table): Always call decode_mac_font_name.
6936 Add pair of family name and its reference to fm_font_family_alist.
6937 (mac_clear_font_name_table): Clear fm_font_family_alist.
6938 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
6939 Lookup fm_font_family_alist to get font family reference.
6940 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
6941 name is already lowered by parse_x_font_name.
6942
6943 2005-10-11 Kim F. Storm <storm@cua.dk>
6944
6945 * xterm.c (glyph_rect): Return 0 if position is outside text area.
6946
6947 * keyboard.c (make_lispy_position): Fix buffer position calculation for
6948 mouse click or movement in fringe.
6949
6950 2005-10-10 Jason Rumney <jasonr@gnu.org>
6951
6952 * xterm.c (remember_mouse_glyph): New function.
6953 (note_mouse_movement): Use it to remember the current glyph if changed.
6954 (XTmouse_position): Fix calculation of fake glyph under mouse.
6955 Move code to calculate glyph under mouse into remember_mouse_glyph.
6956
6957 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6958
6959 * emacs.c (USAGE3, standard_args): -nb => -nbi.
6960
6961 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
6962
6963 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
6964 (next_frame, prev_frame, set_term_frame_name): Make static.
6965
6966 * window.c (Fwindow_tree): Fix spelling.
6967
6968 2005-10-09 Romain Francoise <romain@orebokech.com>
6969
6970 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
6971
6972 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6973
6974 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
6975 Add options -nb, --no-bitmap-icon.
6976
6977 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
6978
6979 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6980
6981 * macgui.h (MAX_CLIP_RECTS): New define.
6982 (struct _XGC): New member clip_region.
6983 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
6984 clip_rects.
6985
6986 * macterm.c (GC_CLIP_REGION): New macro.
6987 (saved_port_clip_region): New variable.
6988 (mac_begin_clip, mac_end_clip): New functions.
6989 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
6990 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
6991 (mac_copy_area_with_mask, mac_scroll_area): Use them.
6992 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
6993 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
6994 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
6995 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
6996 rectangles stored in gc.
6997 (XFreeGC): Dispose of clipping region.
6998 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
6999 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
7000 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
7001 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
7002 (x_draw_bar_cursor): Use them.
7003 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
7004 get multiple clipping rectangles.
7005
7006 * macterm.h (mac_term_init): Add types to extern.
7007 (struct mac_output): Remove members mWP and pending_menu_activation.
7008 Put members scroll_bar_foreground_pixel and
7009 scroll_bar_background_pixel in #if 0.
7010 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
7011
7012 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
7013 Add debugging code.
7014
7015 2005-10-08 Kim F. Storm <storm@cua.dk>
7016
7017 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
7018
7019 2005-10-07 Kim F. Storm <storm@cua.dk>
7020
7021 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
7022 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
7023 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
7024
7025 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7026
7027 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
7028 to for_overlaps. Now occupy 3 bits.
7029 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
7030 (OVERLAPS_ERASED_CURSOR): New defines.
7031 (struct redisplay_interface): Add new OVERLAPS arg to member
7032 fix_overlapping_area.
7033 (x_fix_overlapping_area): Add new OVERLAPS arg.
7034 (get_glyph_string_clip_rects): Add extern.
7035
7036 * dispnew.c (redraw_overlapping_rows):
7037 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
7038
7039 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
7040 for_overlaps.
7041 (get_glyph_string_clip_rects): New function created from
7042 get_glyph_string_clip_rect. Set clipping rectangles according to the
7043 value of for_overlaps. Enable to store multiple clipping rectangles.
7044 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
7045 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
7046 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
7047 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
7048 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
7049 calculating clipping rectangles later. Call x_fix_overlapping_area
7050 with new OVERLAPS arg to draw only erased cursor area.
7051 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
7052 to draw overlaps in both preceding and succeeding rows.
7053
7054 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
7055 struct glyph_string to for_overlaps.
7056
7057 2005-10-04 Richard M. Stallman <rms@gnu.org>
7058
7059 * alloc.c (refill_memory_reserve): Conditionalize the body,
7060 not the function's existence.
7061
7062 2005-10-04 Kim F. Storm <storm@cua.dk>
7063
7064 * window.c (window_split_tree): New function.
7065 (Fwindow_split_tree): New defun.
7066 (syms_of_window): Defsubr it.
7067
7068 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7069
7070 * macterm.c (mac_invert_rectangle): New function.
7071 (XTflash): Use it.
7072
7073 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
7074
7075 * regex.h (re_char): Don't expose it in the interface.
7076 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
7077
7078 * regex.c (re_char): Move it back here.
7079 (re_set_whitespace_regexp): Change the arg's type to not use it.
7080
7081 * keyboard.c (make_lispy_event): If point has moved between down and up
7082 event, make it a drag, not a click, to mirror what
7083 mouse-drag-region expects.
7084
7085 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7086
7087 * lisp.h (fatal): Undo previous change.
7088 * term.c (fatal): Undo previous change.
7089
7090 2005-10-01 Richard M. Stallman <rms@gnu.org>
7091
7092 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
7093
7094 2005-10-01 Kim F. Storm <storm@cua.dk>
7095
7096 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
7097
7098 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7099
7100 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
7101
7102 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
7103 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
7104 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
7105 Try ATSUI-compatible 12pt Monaco font first.
7106
7107 * macgui.h (struct _XCharStruct): New member valid_p.
7108 (STORE_XCHARSTRUCT): Set valid_p.
7109 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
7110
7111 * macterm.c (mac_draw_string_common, x_per_char_metric)
7112 (mac_compute_glyph_string_overhangs, init_font_name_table)
7113 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
7114 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
7115 (x_draw_glyph_string_background)
7116 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
7117 XDrawImageString. Always draw background and foreground separately.
7118 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
7119 functions for one-byte chars when using ATSUI-compatible fonts.
7120 (atsu_font_id_hash) [USE_ATSUI]: New variable.
7121 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
7122 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
7123 max_char_or_byte2 more in detail.
7124 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
7125
7126 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
7127
7128 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
7129 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
7130
7131 * unexelf.c (fatal): Fix prototype.
7132
7133 * term.c (fatal): Implement using varargs.
7134
7135 * regex.c (re_char): Move typedef ...
7136 * regex.h (re_char): ... here.
7137 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
7138
7139 * emacs.c (malloc_set_state): Fix return type.
7140 (endif): Fix type.
7141
7142 * lisp.h (fatal): Add argument types.
7143
7144 * dispextern.h (fatal): Delete prototype.
7145
7146 * systime.h (make_time): Prototype moved from ...
7147 * editfns.c (make_time): ... here.
7148
7149 * editfns.c: Move systime.h include after lisp.h.
7150 * dired.c:
7151 * xsmfns.c:
7152 * process.c: Likewise.
7153
7154 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
7155 Add parameter types.
7156 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
7157 (emacs_blocked_free): Change definition to match __free_hook.
7158 (emacs_blocked_malloc): Change definition to match __malloc_hook.
7159 (emacs_blocked_realloc): Change definition to match __realloc_hook.
7160
7161 2005-09-30 Romain Francoise <romain@orebokech.com>
7162
7163 * minibuf.c (Fread_buffer): Follow convention for reading from the
7164 minibuffer with a default value. Doc fix.
7165
7166 2005-09-29 Juri Linkov <juri@jurta.org>
7167
7168 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
7169 Rename argument name `string' to `format-string'.
7170 (Fformat): Doc fix.
7171
7172 2005-09-28 Kim F. Storm <storm@cua.dk>
7173
7174 * image.c (gif_load): Fix size of allocated image buffer
7175 for images where a sub-image may be larger than the image's
7176 total height/width specifications.
7177
7178 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7179
7180 * macgui.h (struct _XCharStruct): Each member now takes short value.
7181
7182 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
7183
7184 * xfaces.c (lookup_derived_face): Add parameter type.
7185
7186 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
7187
7188 * marker.c (verify_bytepos): Add parameter type.
7189
7190 * process.c (get_operating_system_release): Move prototype ...
7191
7192 * systime.h (get_operating_system_release): ... here.
7193
7194 * xterm.c (handle_one_xevent): Refer to union field to match the
7195 type required by the function definition.
7196 (set_vertical_scroll_bar): Move prototype ...
7197
7198 * xterm.h: ... here.
7199
7200 * fns.c (internal_equal, seed_random): Fix prototypes.
7201 (internal_equal): Add missing parameter.
7202
7203 2005-09-25 Richard M. Stallman <rms@gnu.org>
7204
7205 * keyboard.c (update_menu_bindings): Variable deleted.
7206 (syms_of_keyboard): Don't defvar it.
7207 (parse_menu_item): Don't test it.
7208
7209 2005-09-23 Richard M. Stallman <rms@gnu.org>
7210
7211 * editfns.c (Fformat): Explicitly test for end of format string
7212 and don't use `index'.
7213
7214 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
7215
7216 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
7217 Define BROKEN_GET_CURRENT_DIR_NAME.
7218
7219 * sysdep.c (get_current_dir_name): Also define if
7220 BROKEN_GET_CURRENT_DIR_NAME.
7221
7222 * m/ibmrs6000.h: Test for USG5, not USG5_4.
7223
7224 2005-09-22 Kim F. Storm <storm@cua.dk>
7225
7226 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
7227 (message2): Fix commentary. Ok to use alloca'ed memory.
7228 Still not ok to use Lisp string data (because of GC).
7229 (set_message): Add comment why GC cannot happen.
7230
7231 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7232
7233 * macterm.c (xlfdpat_block_match_1): Fix assertion.
7234 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
7235 variants for a scalable font multiple times.
7236
7237 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7238
7239 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
7240 Setup slave tty options before forking.
7241
7242 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7243
7244 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
7245 positions have been set for the frame (as is done for frames in
7246 special-display-buffer-names).
7247
7248 2005-09-19 Kim F. Storm <storm@cua.dk>
7249
7250 * editfns.c (Fformat): Don't scan past end of format string that
7251 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
7252
7253 2005-09-18 Andreas Schwab <schwab@suse.de>
7254
7255 * window.h (struct window): Remove height_fixed_p, no longer set.
7256
7257 * window.c (make_window): Don't initialize height_fixed_p.
7258 (window_fixed_size_p): Don't use it.
7259
7260 2005-09-18 John Paul Wallington <jpw@pobox.com>
7261
7262 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
7263
7264 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7265
7266 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
7267
7268 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7269 New variables.
7270 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
7271 file selection.
7272
7273 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
7274
7275 2005-09-17 Eli Zaretskii <eliz@gnu.org>
7276
7277 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
7278 (obj): Use XMENU_OBJ, not a literal xmenu.o.
7279
7280 2005-09-16 Romain Francoise <romain@orebokech.com>
7281
7282 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
7283
7284 2005-09-15 Richard M. Stallman <rms@gnu.org>
7285
7286 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
7287 (display_mode_element): Instead of `lisp_string' and `this',
7288 record `offset' and increment that.
7289 `last_offset' replaces `last'.
7290
7291 * Makefile.in (XMENU_OBJ): Variable deleted.
7292 (obj): Use xmenu.o unconditionally.
7293 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
7294
7295 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
7296
7297 2005-09-15 Kim F. Storm <storm@cua.dk>
7298
7299 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
7300 (reseat_at_next_visible_line_start): Likewise (in xassert).
7301
7302 2005-09-14 Romain Francoise <romain@orebokech.com>
7303
7304 * fileio.c (write_region_inhibit_fsync): New variable.
7305 (Fwrite_region): Use it to skip call to fsync.
7306 (syms_of_fileio): Initialize it.
7307
7308 2005-09-14 Kenichi Handa <handa@m17n.org>
7309
7310 * coding.c (code_convert_region_unwind): Argument format changed.
7311 (run_pre_post_conversion_on_str): If pre-write-conversion function
7312 changed the current buffer, delete the new buffer.
7313 (run_pre_write_conversin_on_c_str): Likewise.
7314
7315 * fileio.c (Fexpand_file_name): Check multibyteness of
7316 default_directory.
7317
7318 2005-09-13 Kenichi Handa <handa@m17n.org>
7319
7320 * composite.c (compose_chars_in_text): Delete it.
7321
7322 * composite.h (compose_chars_in_text): Delete extern.
7323
7324 2005-09-13 Kim F. Storm <storm@cua.dk>
7325
7326 * print.c (print_error_message): Fix last change.
7327
7328 2005-09-12 Kim F. Storm <storm@cua.dk>
7329
7330 * composite.c (compose_chars_in_text): Fix setup of `pend'.
7331 Unconditionally reload `ptr' and `pend' after eval.
7332
7333 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
7334
7335 * print.c (print_error_message): Pass copy of caller name to
7336 message_dolog.
7337
7338 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
7339
7340 2005-09-12 Kenichi Handa <handa@m17n.org>
7341
7342 * xdisp.c (display_mode_element): Be sure to make variables THIS
7343 and LISP_STRING point into a string data of ELT.
7344
7345 2005-09-12 Kim F. Storm <storm@cua.dk>
7346
7347 * editfns.c (Ftranslate_region_internal): Reload `tt' after
7348 signal_after_change that may have GC'ed.
7349 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
7350
7351 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
7352 after insert while runs signal_after_change.
7353
7354 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
7355 declaration to where it is used.
7356
7357 * w32.c (check_windows_init_file): Fix allocation of error buffer.
7358
7359 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
7360 (x_set_name_internal): Call x_encode_text with new FREEP arg to
7361 know if xfree is needed instead of guessing.
7362
7363 * xterm.h (x_encode_text): Remove prototype.
7364
7365 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
7366
7367 * w32term.c (x_bitmap_icon): Load small icons too.
7368
7369 2005-09-10 Romain Francoise <romain@orebokech.com>
7370
7371 * buffer.c (init_buffer): Grow buffer to add directory separator
7372 and terminal zero. Fix typos.
7373
7374 2005-09-10 Eli Zaretskii <eliz@gnu.org>
7375
7376 * buffer.c (init_buffer): Fix error message for failed call to
7377 get_current_dir_name.
7378 (get_current_dir_name): Remove prototype.
7379
7380 * xsmfns.c (get_current_dir_name): Remove prototype.
7381
7382 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
7383 Add prototype.
7384
7385 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
7386 Don't #undef NULL after including blockinput.h.
7387
7388 * config.in: Regenerated.
7389
7390 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
7391
7392 Remove the MAXPATHLEN limitations:
7393
7394 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
7395 New function.
7396
7397 * buffer.c (init_buffer): Use it.
7398
7399 * xsmfns.c (smc_save_yourself_CB): Ditto.
7400
7401 2005-09-09 Kim F. Storm <storm@cua.dk>
7402
7403 * doc.c (Fsubstitute_command_keys): Lookup key binding for
7404 commands that are remapped from some other command.
7405
7406 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
7407 flag in disabled rows below the window.
7408
7409 * frame.h (struct frame): New member updated_p.
7410
7411 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
7412 member. Remove local `updated' array and associated variables.
7413
7414 2005-09-07 Kim F. Storm <storm@cua.dk>
7415
7416 * xdisp.c (handle_display_prop): Respect overlay window property.
7417
7418 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
7419 Fixes crash reported by YAMAMOTO Mitsuharu.
7420
7421 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7422
7423 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
7424 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
7425 (xlfdpat_block_match_1, xlfdpat_match): New functions.
7426 (xlfdpat_block_match): New macro.
7427 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
7428 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
7429 (add_font_name_table_entry): Increase font_name_table_size more
7430 rapidly.
7431 (mac_c_string_match): Remove function.
7432 (mac_do_list_fonts): Use XLFD pattern match instead of regular
7433 expression match.
7434
7435 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
7436
7437 2005-09-03 Richard M. Stallman <rms@gnu.org>
7438
7439 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
7440 (move_it_in_display_line_to): Stop after last char on line even
7441 on a windowing terminal, if that's the specified stop position.
7442
7443 * fns.c (Fsort): Doc fix.
7444
7445 * editfns.c (Fpropertize): Don't insist that properties be symbols.
7446
7447 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
7448
7449 * dired.c (directory_files_internal_unwind, directory_files_internal)
7450 (file_name_completion): Use a Save_Value object rather than a cons of
7451 two 16bit ints to store the DIR*.
7452 (directory_files_internal, file_name_completion): Handle both EINTR and
7453 EAGAIN consistently after `readdir'.
7454
7455 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
7456
7457 * intervals.c (update_interval): Add position info in error.
7458
7459 * dispnew.c (window_to_frame_hpos, update_window):
7460 Avoid gcc warning about unused variable `f'.
7461
7462 2005-08-31 Jason Rumney <jasonr@gnu.org>
7463
7464 * w32menu.c (add_menu_item): If unicode_append_menu returns an
7465 error, revert to using AppendMenu.
7466
7467 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7468
7469 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
7470 All uses changed.
7471 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
7472 cases.
7473 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
7474 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
7475 Use posix_pathname_to_fsspec.
7476 [MAC_OS] (xpm_load_image): Fill in background_transparent field
7477 while we have mask.
7478
7479 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
7480
7481 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
7482
7483 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7484
7485 * syntax.c (update_syntax_table): Properly reproduce the special +1
7486 setting of e_property at the end of the buffer when bumping into the
7487 INTERVALS_AT_ONCE limit.
7488
7489 2005-08-27 Eli Zaretskii <eliz@gnu.org>
7490
7491 * emacs.c (USAGE1): Fix the description of the -Q option.
7492
7493 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
7494
7495 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
7496
7497 2005-08-26 Kim F. Storm <storm@cua.dk>
7498
7499 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
7500 Don't move PT to new window start.
7501
7502 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7503
7504 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
7505 ICONIFY/DEICONIFY_EVENT.
7506
7507 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
7508 Restore background color.
7509 (mac_handle_visibility_change): New function.
7510 (x_make_frame_invisible, x_iconify_frame)
7511 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
7512 [USE_CARBON_EVENTS] (mac_handle_window_event)
7513 (install_window_handler): Handle visibility change events.
7514 (x_make_frame_visible): Don't reposition window if it is iconified
7515 or asked for visible before. Select and uncollapse window when it
7516 is made visible.
7517 (x_make_frame_invisible): Don't reset x_highlight_frame.
7518 (x_iconify_frame): Likewise. Make invisible frame visible before
7519 it is iconified.
7520 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
7521 (do_window_update): Don't change visibility of invisible frame.
7522
7523 2005-08-22 Juri Linkov <juri@jurta.org>
7524
7525 * term.c (turn_on_face): Check for TS_set_foreground and
7526 TS_set_background depending on standout_mode. Simplify.
7527
7528 2005-08-21 Kim F. Storm <storm@cua.dk>
7529
7530 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
7531 bitmaps on fully visible rows.
7532
7533 * fringe.c (update_window_fringes): Replace FORCE_P arg with
7534 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
7535 and return 0.
7536
7537 * xdisp.c (redisplay_window): Call update_window_fringes with
7538 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
7539
7540 2005-08-20 Richard M. Stallman <rms@gnu.org>
7541
7542 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
7543 (resize_mini_window): Set w->start, and PT, so as to display the tail
7544 end of the buffer, if it doesn't all fit.
7545
7546 2005-08-18 Kim F. Storm <storm@cua.dk>
7547
7548 * xdisp.c (calc_pixel_width_or_height): Use actual display
7549 resolution when available instead of Vdisplay_pixels_per_inch.
7550
7551 2005-08-17 Kim F. Storm <storm@cua.dk>
7552
7553 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
7554
7555 * dispnew.c (buffer_posn_from_coords): Check that target row is
7556 within matrix.
7557
7558 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7559
7560 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
7561 xg_set_frame_icon and call it.
7562
7563 * gtkutil.c (xg_set_frame_icon): New function.
7564
7565 * gtkutil.h (xg_set_frame_icon): Declare it.
7566
7567 2005-08-16 Kim F. Storm <storm@cua.dk>
7568
7569 * dispnew.c (increment_row_positions): Skip non-enabled rows.
7570
7571 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
7572 (Fcurrent_window_configuration): Use VECSIZE macro instead.
7573
7574 2005-08-15 Richard M. Stallman <rms@gnu.org>
7575
7576 * xdisp.c (message3_nolog): Clear echo_message_buffer.
7577
7578 2005-08-15 Kim F. Storm <storm@cua.dk>
7579
7580 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
7581
7582 * process.c (deactivate_process, status_notify, read_process_output)
7583 (update_status, status_convert, decode_status, allocate_pty)
7584 (make_process, remove_process, list_processes_1)
7585 (create_process_1, unwind_request_sigio, read_process_output)
7586 (send_process, keyboard_bit_set): Declare static.
7587 (Fdelete_process): Simplify. Pass process to status_notify, so we
7588 don't try to read output from it.
7589 (status_notify): New arg deleting_process--don't try to read
7590 output from that process.
7591
7592 * lisp.h (deactivate_process, status_notify, read_process_output):
7593 Remove prototypes.
7594
7595 2005-08-14 Richard M. Stallman <rms@gnu.org>
7596
7597 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
7598 define_image_type.
7599
7600 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7601
7602 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
7603 (xg_get_image_for_pixmap): Move some code to
7604 xg_get_pixbuf_from_pix_and_mask, and call it.
7605
7606 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
7607
7608 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
7609 to get an GTK icon and set it with GTK functions to avoid having GTK
7610 override an icon set with just X functions.
7611
7612 2005-08-11 Richard M. Stallman <rms@gnu.org>
7613
7614 * image.c (syms_of_image): Init image_types here, and call
7615 define_image_type.
7616 (init_image): Not here.
7617
7618 2005-08-09 Richard M. Stallman <rms@gnu.org>
7619
7620 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
7621
7622 * lisp.h (QUIT): Throw t to Vthrow_on_input.
7623
7624 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
7625
7626 * floatfns.c (Fexpt): Use floats for negative exponent.
7627
7628 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7629
7630 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
7631 should not be there, causing menu display errors with GTK 2.6.9.
7632
7633 2005-08-07 Richard M. Stallman <rms@gnu.org>
7634
7635 * floatfns.c (Fexpt): Undo previous change.
7636
7637 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
7638 so it can be used with various state vectors.
7639
7640 * emacs.c (endif): Convert -script into -scriptload.
7641 (standard_args): Add -scriptload. Allow -basic-display with one dash.
7642
7643 * fns.c (syms_of_fns): Add `emacs' to features.
7644
7645 * term.c (set_terminal_modes): If no TS_termcap_modes string,
7646 output newlines to scroll the old screen contents off the screen.
7647
7648 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
7649
7650 * floatfns.c (Fexpt): Use floats for negative exponent.
7651 Reported by D Goel.
7652
7653 2005-08-02 Richard M. Stallman <rms@gnu.org>
7654
7655 * frame.c (Fframe_char_width): Doc fix.
7656
7657 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
7658
7659 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
7660 Defvar it.
7661
7662 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
7663
7664 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
7665 (my_create_window, my_create_tip_window): Make static.
7666
7667 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
7668 (my_set_foreground_window, my_destroy_window): Make static.
7669
7670 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
7671
7672 Merge gnulib getopt implementation into Emacs.
7673
7674 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
7675 now part of lib-src.
7676
7677 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
7678
7679 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
7680
7681 2005-07-25 Jason Rumney <jasonr@gnu.org>
7682
7683 * w32menu.c (w32_menu_display_help): Suppress tooltip when
7684 navigating menus with the keyboard.
7685
7686 2005-07-23 Richard M. Stallman <rms@gnu.org>
7687
7688 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
7689
7690 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
7691 gc_relative_threshold, one by one.
7692
7693 * keyboard.c (read_char): Test gc_cons_threshold.
7694 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
7695
7696 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
7697 gc_relative_threshold, one by one.
7698
7699 * alloc.c (gc_cons_threshold): Not static.
7700 (gc_cons_combined_threshold): Var deleted.
7701 (gc_relative_threshold): New variable.
7702 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
7703 instead of gc_cons_combined_threshold.
7704
7705 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
7706 (gc_cons_combined_threshold): Declaration deleted.
7707
7708 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7709
7710 * mac.c: Don't include stdlib.h or string.h.
7711 (Fdo_applescript, Fmac_file_name_to_posix)
7712 (Fmac_file_name_to_posix): Doc fixes.
7713 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
7714 (Fmac_code_convert_string): Likewise.
7715 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
7716 if the executable is not contained in a bundle.
7717
7718 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
7719 (gray_width, gray_height): Remove defines.
7720 (gray_bits, gray_bitmap_width, gray_bitmap_height)
7721 (gray_bitmap_bits): Remove variables.
7722 (lispy_function_keys): Remove extern.
7723 (free_frame_menubar): Add extern.
7724 (x_window_to_frame): Remove function.
7725 (unwind_create_tip_frame): Add declaration.
7726 (x_set_name_internal): New function.
7727 (x_set_name, x_set_title): Use it.
7728 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
7729 (Fx_display_pixel_height, Fx_display_planes)
7730 (Fx_display_color_cells, Fx_server_max_request_size)
7731 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7732 (Fx_display_mm_height, Fx_display_mm_width)
7733 (Fx_display_backing_store, Fx_display_visual_class)
7734 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
7735
7736 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7737
7738 * macselect.c (Fx_own_selection_internal): Follow error conventions.
7739 (Fx_get_selection_internal, Fx_selection_owner_p)
7740 (Fx_selection_exists_p): Doc fixes.
7741 (syms_of_macselect) <selection-converter-alist>: Likewise.
7742
7743 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
7744
7745 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7746
7747 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
7748 (Fccl_execute_on_string): Likewise; add usage info.
7749
7750 * composite.c (Fcompose_region_internal)
7751 (Fcompose_string_internal):
7752 Improve argument/docstring consistency.
7753
7754 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
7755 Fix typos in docstrings.
7756
7757 * textprop.c (Fnext_char_property_change)
7758 (Fprevious_char_property_change): Doc fixes.
7759
7760 * window.c (Fset_window_margins, Fset_window_fringes):
7761 Improve argument/docstring consistency.
7762
7763 * xfaces.c (Finternal_lisp_face_p): Doc fix.
7764
7765 2005-07-21 Andreas Schwab <schwab@suse.de>
7766
7767 * eval.c (restore_stack_limits): Return a value.
7768
7769 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
7770
7771 * eval.c (Fdefvar): Doc fix.
7772
7773 2005-07-20 Kim F. Storm <storm@cua.dk>
7774
7775 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
7776 Use make_save_value to unwind protect stream.
7777
7778 * lread.c (Fload, load_unwind):
7779 Use make_save_value to unwind protect stream.
7780
7781 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
7782
7783 * eval.c (Fprog2, Fcalled_interactively_p),
7784 (syms_of_eval) <debug-on-quit>: Doc fixes.
7785 (syms_of_eval) <max-specpdl-size>:
7786 (Finteractive_p): Fix typos in docstrings.
7787
7788 2005-07-19 Kim F. Storm <storm@cua.dk>
7789
7790 * w32fns.c (Vx_hand_shape): Variable removed.
7791 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
7792
7793 2005-07-19 Kenichi Handa <handa@m17n.org>
7794
7795 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
7796
7797 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
7798
7799 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
7800
7801 2005-07-18 Kim F. Storm <storm@cua.dk>
7802
7803 * frame.h (struct frame): New member already_hscrolled_p.
7804
7805 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
7806 to avoid redisplay looping hscrolling back and forth ad infinitum.
7807
7808 2005-07-18 Juri Linkov <juri@jurta.org>
7809
7810 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
7811 * keymap.c (Fminor_mode_key_binding):
7812 * macterm.c (mac-emulate-three-button-mouse):
7813 Delete duplicate duplicate words.
7814
7815 2005-07-18 Ken Raeburn <raeburn@gnu.org>
7816
7817 * minibuf.c (Ftest_completion): Fix odd syntax in test.
7818
7819 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7820
7821 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
7822
7823 * macgui.h (struct _XGC): New struct.
7824 (GC): Use it.
7825 (GCForeground, GCBackground, GCFont): Use X11 mask values.
7826 (XCreateGC, XParseGeometry): Move externs to macterm.h.
7827
7828 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
7829 (XSetFont): Add declaration.
7830 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
7831 Remove functions.
7832 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
7833 New defines.
7834 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
7835 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
7836 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
7837 Use them.
7838 (mac_erase_rectangle): New function.
7839 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
7840 (x_draw_stretch_glyph_string): Use it.
7841 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
7842 (XSetBackground, XSetFont): Adjust for new GC implementation.
7843 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
7844 (XTset_vertical_scroll_bar): Clear area under scroll bar.
7845
7846 * macterm.h (struct mac_display_info): Change types of
7847 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
7848 (XCreateGC, XParseGeometry): Move externs from macgui.h.
7849
7850 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
7851
7852 2005-07-16 Richard M. Stallman <rms@gnu.org>
7853
7854 * buffer.c (Fmake_overlay): Doc fix.
7855
7856 2005-07-16 Eli Zaretskii <eliz@gnu.org>
7857
7858 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
7859 Vw32_valid_locale_ids, and Vw32_valid_codepages.
7860
7861 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7862
7863 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
7864 Use Fstring_as_unibyte instead of string_make_unibyte.
7865
7866 2005-07-15 Richard M. Stallman <rms@gnu.org>
7867
7868 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
7869
7870 2005-07-15 Kim F. Storm <storm@cua.dk>
7871
7872 * xdisp.c: Fix redisplay loop in last change.
7873 (IT_POS_VALID_AFTER_MOVE_P): New macro.
7874 (move_it_vertically_backward, move_it_by_lines): Use it.
7875
7876 2005-07-14 Jason Rumney <jasonr@gnu.org>
7877
7878 * w32.c (init_environment): Default HOME directory to user's
7879 appdata directory if possible.
7880
7881 2005-07-14 Kim F. Storm <storm@cua.dk>
7882
7883 * .gdbinit (pitx): Fix output format. Print string charpos.
7884
7885 * lread.c (syms_of_lread): Initialize seen_list.
7886
7887 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
7888
7889 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
7890 Staticpro re_match_object.
7891
7892 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7893
7894 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
7895 dereference.
7896
7897 * macterm.c (mac_window_to_frame): Remove duplicate define.
7898
7899 2005-07-14 Kenichi Handa <handa@m17n.org>
7900
7901 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
7902 (code_convert_region): Adjust for the above change.
7903 (set_conversion_work_buffer): If the work buffer is already in
7904 use, generate a new buffer and return it. Otherwise return Qnil.
7905 (run_pre_post_conversion_on_str): Adjust for the above change.
7906 (run_pre_write_conversin_on_c_str): Likewise.
7907
7908 2005-07-13 Kim F. Storm <storm@cua.dk>
7909
7910 * xdisp.c (start_display): Don't reseat to next visible line start
7911 if current start position is in a string or image.
7912 (move_it_vertically_backward): Be sure to move out of strings and
7913 images when moving it2 forward.
7914 (move_it_by_lines): When moving forward, move to next buffer
7915 position if we end up in a string or image. When moving backward,
7916 count rows moved over when moving to start of current row in case
7917 row starts in middle of a string or image. Also move further
7918 backward if we end up in a string or image.
7919 (try_cursor_movement): If overlay string spans multiple lines,
7920 move backward to set cursor on start of an overlay string.
7921 (cursor_row_p): Row is ok if cursor is at newline from string, but
7922 string starts on this line (so we always position cursor at start
7923 of string).
7924
7925 * indent.c (Fvertical_motion): If start position is on an image,
7926 don't move back if we move too far (that's almost certain to happen).
7927
7928 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
7929 row in minibuffer windows.
7930 (try_window): Don't check margins in minibuffer windows.
7931
7932 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7933
7934 * macterm.c: Don't include stdlib.h or composite.h.
7935 (x_use_underline_position_properties, last_mouse_press_frame)
7936 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
7937 (syms_of_macterm, mac_initialize): Don't initialize them.
7938 (waiting_for_input, initial_argv, initial_argc)
7939 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
7940 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
7941 (extra_keyboard_modifiers): Fix type in extern.
7942 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
7943 (x_scroll_bar_report_motion): Add argument types to declaration.
7944 (mac_compute_glyph_string_overhangs): Add declaration.
7945 (disable_mouse_highlight): Remove unused variable.
7946 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
7947 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
7948 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
7949 All callers changed.
7950 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
7951 timestamp.
7952 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
7953 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
7954 only when its width is less than the height.
7955 (XTredeem_scroll_bar): Sync with xterm.c.
7956 (font_name_table, font_name_table_size, font_name_count):
7957 Make static.
7958 (drag_and_drop_file_list): Remove variable. Previous use is now
7959 local to function.
7960 (do_ae_open_documents): Move DRAG_N_DROP event construction part
7961 from XTread_socket.
7962 (XTread_socket): Consolidate setting of event timestamp.
7963 Move DRAG_N_DROP event construction part to do_ae_open_documents.
7964 Support extra_keyboard_modifiers.
7965
7966 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
7967 beginning with that for ASCII.
7968
7969 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
7970
7971 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
7972 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
7973 (syms_of_alloc): Declare gc-cons-percentage.
7974
7975 * eval.c (Feval, Ffuncall):
7976 * keyboard.c (read_char):
7977 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
7978
7979 * lisp.h (gc_cons_combined_threshold): Declare.
7980
7981 2005-07-12 Kim F. Storm <storm@cua.dk>
7982
7983 * coding.c (Qprocess_argument):
7984 * coding.h (Qprocess_argument): Remove unused var.
7985
7986 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
7987
7988 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7989
7990 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
7991 Endian.h.
7992 [!MAC_OSX] (fchmod, fchown): New functions.
7993 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
7994 Use SBYTES and EndianU32_BtoN.
7995 (mac_get_object_from_code): Return 4 byte string even if argument
7996 is 0. Use make_unibyte_string and EndianU32_NtoB.
7997 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
7998 (Fmac_set_file_type): Fix documents and argument declarations.
7999 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
8000
8001 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
8002
8003 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
8004
8005 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8006
8007 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
8008 Lucid if X_I18N, font otherwise.
8009
8010 2005-07-10 Steven Tamm <steventamm@mac.com>
8011
8012 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
8013 (Fmac_set_file_type, Fmac_set_file_creator): Add.
8014 (mac_get_object_from_code, mac_get_code_from_arg): Add.
8015
8016 2005-07-10 Richard M. Stallman <rms@gnu.org>
8017
8018 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
8019 (syms_of_lread): Set up eval-buffer-list.
8020 (Feval_buffer, Feval_region): Bind eval-buffer-list.
8021
8022 2005-07-08 Richard M. Stallman <rms@gnu.org>
8023
8024 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
8025
8026 2005-07-08 Kim F. Storm <storm@cua.dk>
8027
8028 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
8029 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
8030
8031 2005-07-07 Kim F. Storm <storm@cua.dk>
8032
8033 * window.c (Frecenter): Fix last change (set iarg before use).
8034
8035 2005-07-06 Richard M. Stallman <rms@gnu.org>
8036
8037 * window.c (Frecenter): When arg is inside the scroll margin,
8038 move it out of the margin.
8039
8040 2005-07-06 Jason Rumney <jasonr@gnu.org>
8041
8042 * w32console.c (initialize_w32_display): Detect when the console
8043 dimensions are insane, and default to 80x25 instead.
8044 (w32_use_full_screen_buffer): Default to nil.
8045
8046 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8047
8048 * macterm.c (mac_draw_vertical_window_border): Use foreground of
8049 VERTICAL_BORDER_FACE_ID for vertical border line.
8050 (mac_encode_char): Call check_ccl_update in advance.
8051 (mac_to_x_fontname, x_font_name_to_mac_font_name)
8052 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
8053 Don't assume that font family length is less than 32.
8054 (x_compute_min_glyph_bounds): Make static.
8055 (x_load_font): Never set fonts_changed_p to zero.
8056
8057 2005-07-04 Lute Kamstra <lute@gnu.org>
8058
8059 * Update FSF's address in GPL notices.
8060
8061 2005-07-03 Richard M. Stallman <rms@gnu.org>
8062
8063 * xdisp.c (try_window): Fix previous change in how it handles
8064 a partially-visible line or one only partly past the margin.
8065
8066 * window.c (window_scroll_pixel_based): Take account
8067 of this_scroll_margin when finding point when scrolling up.
8068
8069 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
8070
8071 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8072 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
8073 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
8074
8075 2005-07-02 Juri Linkov <juri@jurta.org>
8076
8077 * w32term.c (w32_draw_vertical_window_border): Use foreground of
8078 VERTICAL_BORDER_FACE_ID for vertical border line.
8079
8080 2005-07-02 Eli Zaretskii <eliz@gnu.org>
8081
8082 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
8083 fchmod so that chmod doesn't get called on MSDOS before the file
8084 is closed.
8085
8086 2005-07-01 Jason Rumney <jasonr@gnu.org>
8087
8088 * w32term.c (cleartype_active): New flag for enabling sub-pixel
8089 workaround.
8090 (w32_initialize): Initialize it.
8091 (w32_native_per_char_metric): Allow a couple of extra pixels when
8092 Cleartype is active.
8093
8094 * w32term.c (w32_initialize): Move check for screen reader here
8095 from syms_of_w32term.
8096
8097 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8098
8099 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
8100 is not zero.
8101
8102 2005-07-01 Masatake YAMATO <jet@gyve.org>
8103
8104 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
8105
8106 2005-06-30 Juri Linkov <juri@jurta.org>
8107
8108 * xdisp.c (x_draw_vertical_border): If left fringe is not present
8109 decrease x coord of vertical border by 1 pixel to not occupy text
8110 area of the right window.
8111
8112 * xterm.c (x_draw_vertical_window_border): Use foreground of
8113 VERTICAL_BORDER_FACE_ID for vertical border line.
8114
8115 * term.c (turn_on_face): In standout mode apply specified
8116 fg to bg, and specified bg to fg (this makes the logic of
8117 inversion on terminal consistent with X).
8118
8119 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
8120
8121 * eval.c (user_variable_p_eh): New function.
8122 (Fuser_variable_p): Use it. Clarify docstring.
8123 Return t for aliases of user options, nil for alias loops.
8124
8125 2005-06-27 Richard M. Stallman <rms@gnu.org>
8126
8127 * eval.c (Fdefvar): Improve error message.
8128
8129 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8130
8131 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
8132 change.
8133
8134 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
8135
8136 * eval.c (Fdefvar): Don't try to set constant symbols.
8137
8138 2005-06-25 Richard M. Stallman <rms@gnu.org>
8139
8140 * macfns.c (Fx_show_tip): Pass new arg to try_window.
8141
8142 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
8143
8144 * xfns.c (Fx_show_tip): Pass new arg to try_window.
8145
8146 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
8147 (redisplay_window): Handle try_window reporting point in scroll margin.
8148
8149 * dispextern.h (try_window): Declare new arg.
8150
8151 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
8152 Use fchmod to copy the file modes.
8153 (Frename_file): Don't copy UID and GID here;
8154 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
8155
8156 * eval.c (call_debugger): Take full care of extending stack limits
8157 to make space for the debugger, and restore the change afterward.
8158 Bind debug-on-error to nil.
8159 (restore_stack_limits): New subroutine.
8160 (Fsignal): Extend specpdl bound along with eval depth bound,
8161 for calling edebug. Don't do either one, for calling debugger.
8162 (find_handler_clause): Don't bind debug-on-error here.
8163 Don't unbind anything either.
8164 Temporarily advance max_specpdl_size for calling
8165 internal_with_output_to_temp_buffer.
8166 (grow_specpdl): Don't alter max_specpdl_size before signaling
8167 an error.
8168 (syms_of_eval) <max-specpdl-size>: Doc fix.
8169
8170 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
8171
8172 2005-06-24 Eli Zaretskii <eliz@gnu.org>
8173
8174 * fileio.c (Frename_file): Undo last change: no need to ifdef away
8175 chown on DOS_NT platforms.
8176
8177 * w32.c (sys_chown): New function.
8178
8179 * s/ms-w32.h (chown): New; define to sys_chown.
8180
8181 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
8182
8183 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
8184 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
8185
8186 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
8187
8188 2005-06-23 Richard M. Stallman <rms@gnu.org>
8189
8190 * xdisp.c (get_next_display_element): Finish reversing the tests of
8191 Vnobreak_char_display.
8192
8193 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
8194 All uses changed.
8195 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
8196 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
8197
8198 * fileio.c (Frename_file): Preserve owner and group, if possible,
8199 when copying.
8200
8201 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
8202
8203 * abbrev.c (Funexpand_abbrev):
8204 * category.c (Fmake_category_set):
8205 * dispnew.c (Fsleep_for, Fsit_for):
8206 * editfns.c (Fsubst_char_in_region):
8207 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
8208 * frame.c (make_frame_without_minibuffer):
8209 * lread.c (read_vector):
8210 * macfns.c (check_x_frame):
8211 * process.c (Fstop_process, Fcontinue_process):
8212 * search.c (Freplace_match):
8213 * syntax.c (Fstring_to_syntax):
8214 * w32fns.c (check_x_frame, check_x_display_info):
8215 * xfaces.c (x_supports_face_attributes_p):
8216 * xselect.c (Fx_own_selection_internal): Follow error conventions.
8217
8218 * image.c (fn_png_init_io): Don't define it.
8219 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
8220 (png_read_from_file): New function, based on png_read_from_memory.
8221 (png_load): Use it, instead of fn_png_init_io.
8222
8223 2005-06-23 Kim F. Storm <storm@cua.dk>
8224
8225 * search.c (Fmatch_data): Remove evaporate option.
8226 (Fset_match_data): Do not mention evaporate option in doc string.
8227 Add commentary explaining evaporate arg (for internal use only).
8228 (unwind_set_match_data): Add comment on evaporate use.
8229
8230 2005-06-22 Miles Bader <miles@gnu.org>
8231
8232 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
8233 (realize_basic_faces, syms_of_xfaces): Update references to it.
8234 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
8235 to `VERTICAL_BORDER_FACE_ID'.
8236 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
8237
8238 2005-06-21 Juri Linkov <juri@jurta.org>
8239
8240 * dispextern.h: Add extern Qframe_set_background_mode.
8241
8242 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
8243 Qframe_set_background_mode.
8244
8245 * frame.c (Fmodify_frame_parameters):
8246 Call frame-set-background-mode after changing the background color
8247 on non-window non-dos branch.
8248
8249 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
8250
8251 * fns.c (Fchar_table_range):
8252 * process.c (Fmake_network_process): Fix spellings.
8253
8254 2005-06-20 Kim F. Storm <storm@cua.dk>
8255
8256 * fns.c (Fsort): Doc fix.
8257
8258 2005-06-20 Miles Bader <miles@gnu.org>
8259
8260 * xfaces.c (Qvertical_divider): New variable.
8261 (realize_basic_faces): Realize its face.
8262 (syms_of_xfaces): Initialize it.
8263
8264 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
8265
8266 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
8267 window-separator on ttys using `vertical-divider' face by default.
8268
8269 2005-06-17 Richard M. Stallman <rms@gnu.org>
8270
8271 * xdisp.c (get_next_display_element):
8272 Reverse test of Vshow_nonbreak_escape.
8273
8274 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
8275 (Ftty_no_underline): New function.
8276 (syms_of_term): defsubr it.
8277
8278 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
8279
8280 * dispnew.c (spec_glyph_lookup_face): New function.
8281 (build_frame_matrix_from_leaf_window): Use it.
8282
8283 * dispextern.h (spec_glyph_lookup_face): Add declaration.
8284
8285 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
8286
8287 2005-06-12 Richard M. Stallman <rms@gnu.org>
8288
8289 * keyboard.c (read_char): After catching a longjmp,
8290 call restore_getcjmp.
8291
8292 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
8293
8294 * xselect.c (lisp_data_to_selection_data): Fix spelling.
8295
8296 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8297
8298 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
8299 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
8300 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
8301 events.
8302 (XTread_socket): Don't pass keyboard events with the option
8303 modifier to the system when Vmac_command_key_is_meta is nil or
8304 Vmac_option_modifier is non-nil.
8305 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
8306 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
8307 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
8308 handler function.
8309 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
8310 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
8311 handler part to mac_handle_mouse_event.
8312
8313 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
8314
8315 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
8316 NEW-ALIAS and BASE-VARIABLE, respectively.
8317
8318 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8319
8320 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
8321 (get_phys_cursor_geometry, format_mode_line_unwind_data)
8322 (get_line_height_property, x_produce_glyphs): Remove unused vars.
8323
8324 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
8325
8326 2005-06-13 Eli Zaretskii <eliz@gnu.org>
8327
8328 * w32term.c (x_use_underline_position_properties): New variable.
8329 (x_draw_glyph_string): Remind in a comment to change doc string of
8330 x-use-underline-position-properties if/when underline positioning
8331 is implemented.
8332 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
8333 and initialize it to nil.
8334
8335 2005-06-12 Jason Rumney <jasonr@gnu.org>
8336
8337 * w32fns.c (NEWOPENFILENAME): New struct.
8338 (Fx_file_dialog): Use it to trick the system into giving us up to
8339 date dialogs on systems that are documented to support it.
8340 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
8341
8342 2005-06-12 Eli Zaretskii <eliz@gnu.org>
8343
8344 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
8345 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
8346
8347 2005-06-11 Eli Zaretskii <eliz@gnu.org>
8348
8349 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
8350 to CreateDIBSection to avoid a compiler warning.
8351 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
8352 warning.
8353 (png_load): Cast return values of fn_png_create_read_struct and
8354 fn_png_create_info_struct, to avoid compiler warnings on W32.
8355 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
8356 to avoid compiler warnings.
8357 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
8358 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
8359 avoid a compiler warning.
8360 (tiff_load): Cast return values of fn_TIFFOpen and
8361 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
8362 to IMAGE_BACKGROUND to avoid a compiler warning.
8363 (gif_load): Cast return values of fn_DGifOpenFileName and
8364 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
8365 IMAGE_BACKGROUND to avoid a compiler warning.
8366 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
8367 before redefining.
8368
8369 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
8370 the call to CreateDIBSection, to avoid a compiler warning.
8371
8372 2005-06-11 Jason Rumney <jasonr@gnu.org>
8373
8374 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
8375 minibuffer.
8376 * macfns.c (Fx_file_dialog): Likewise.
8377
8378 2005-06-10 Eli Zaretskii <eliz@gnu.org>
8379
8380 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
8381
8382 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
8383
8384 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
8385 * w32fns.c (syms_of_w32fns): Fix spellings.
8386
8387 2005-06-10 Eli Zaretskii <eliz@gnu.org>
8388
8389 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
8390 `verbose'; print diagnostic messages only if it is non-zero.
8391 All callers changed to pass a zero value unless DEBUG_DUMP is defined
8392 in the environment.
8393 (copy_executable_and_dump_data): Print section names with %.8s.
8394
8395 2005-06-10 Masatake YAMATO <jet@gyve.org>
8396
8397 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
8398 when mouse_face is not given.
8399
8400 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
8401
8402 * window.c (Fselect_window): Adapt call to Fselect_frame.
8403
8404 * lisp.h: Update EXFUN of Fselect_frame.
8405
8406 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
8407
8408 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
8409 no_enter.
8410 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
8411 Adapt to above change.
8412
8413 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
8414
8415 * fns.c (Fmemq, Fmaphash): Doc fixes.
8416
8417 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
8418
8419 * xfaces.c (Fdisplay_supports_face_attributes_p):
8420 Fix typo in docstring.
8421
8422 2005-06-08 Steven Tamm <steventamm@mac.com>
8423
8424 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
8425 used by gcc4 on intel mac.
8426
8427 2005-06-09 Kim F. Storm <storm@cua.dk>
8428
8429 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
8430 in REUSE list if non-nil; free them if equal to evaporate.
8431 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
8432 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
8433 (restore_search_regs): Rename from restore_match_data. Uses changed.
8434 (unwind_set_match_data): New function.
8435 (record_unwind_save_match_data): New function like save-match-data.
8436
8437 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
8438 (record_unwind_save_match_data): Add prototype.
8439 (restore_search_regs): Rename from restore_match_data.
8440
8441 * composite.c (compose_chars_in_text):
8442 * eval.c (do_autoload):
8443 * macmenu.c (set_frame_menubar):
8444 * process.c (read_process_output, exec_sentinel):
8445 * xmenu.c (set_frame_menubar):
8446 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
8447 * w32menu.c (set_frame_menubar):
8448 Use record_unwind_save_match_data.
8449
8450 2005-06-08 Richard M. Stallman <rms@gnu.org>
8451
8452 * xdisp.c (get_next_display_element): Alter previous change:
8453 Distinguish Vshow_nonbreak_escape = t or not t.
8454 For t, use escape_glyph once again, as before previous change.
8455 Use space or hyphen for display, instead of the non-ASCII char.
8456 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
8457
8458 * process.c (Fstart_process): Don't touch command_channel_p slot.
8459
8460 * process.h (struct process): Delete command_channel_p.
8461
8462 2005-06-07 Masatake YAMATO <jet@gyve.org>
8463
8464 * xdisp.c (note_mode_line_or_margin_highlight):
8465 Check the overlapping of re-rendering area to avoid flickering.
8466 (note_mouse_highlight): Call clear_mouse_face if PART
8467 is not ON_MODE_LINE nor ON_HEADER_LINE.
8468
8469 2005-06-07 Kim F. Storm <storm@cua.dk>
8470
8471 * process.c: Improve commentary for adaptive read buffering.
8472
8473 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
8474
8475 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
8476 if available.
8477
8478 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8479
8480 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
8481 New functions for popping down menus on C-g.
8482 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
8483
8484 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
8485 non-static.
8486
8487 * config.in: Add HAVE_CANCELMENUTRACKING.
8488
8489 2005-06-06 Eli Zaretskii <eliz@gnu.org>
8490
8491 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
8492
8493 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
8494
8495 * w32proc.c (RVA_TO_PTR): New macro.
8496
8497 * w32heap.c (RVA_TO_PTR): No need to #undef now.
8498
8499 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
8500 Depend on w32heap.h.
8501
8502 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
8503
8504 * keyboard.c (command_loop_1): Update Vthis_original_command.
8505
8506 2005-06-06 Richard M. Stallman <rms@gnu.org>
8507
8508 * xmenu.c (popup_get_selection): Undo previous change.
8509
8510 2005-06-06 Juri Linkov <juri@jurta.org>
8511
8512 * xdisp.c (Qno_break_space): New variable.
8513 (syms_of_xdisp): Initialize it.
8514 (get_next_display_element): Add no-break space and soft hypen
8515 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
8516 Use `no-break-space' face for no-break spaces.
8517
8518 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8519
8520 * window.c (delete_window): Handle the case where a h/vchild has
8521 a h/vchild.
8522
8523 2005-06-05 Eli Zaretskii <eliz@gnu.org>
8524
8525 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
8526 call to pfn_setsockopt, cast optval to `const char *'.
8527
8528 2005-06-04 Eli Zaretskii <eliz@gnu.org>
8529
8530 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
8531 (open_unc_volume): Cast return value of map_w32_filename, to avoid
8532 compiler warnings.
8533
8534 * s/ms-w32.h (fileno): Don't define if already defined.
8535
8536 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
8537
8538 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
8539
8540 2005-06-04 Richard M. Stallman <rms@gnu.org>
8541
8542 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
8543
8544 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8545
8546 * macmenu.c (cleanup_popup_menu): New function.
8547 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
8548 mac_menu_show Quit:s.
8549 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
8550 a dialog).
8551
8552 2005-06-04 Kim F. Storm <storm@cua.dk>
8553
8554 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
8555
8556 * callproc.c (Fcall_process): Don't use alloca to gradually
8557 increase size of buf, as it effectively uses twice the necessary
8558 space on the stack. Instead, pre-allocate buf of full size, and
8559 gradually increase the read size.
8560
8561 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
8562
8563 * eval.c (unbind_to): Preserve value of Vquit_flag.
8564
8565 * xterm.c (handle_one_xevent): Also ignore mouse motion just
8566 before a button release event.
8567
8568 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
8569
8570 * xfaces.c (Finternal_lisp_face_equal_p): Really report
8571 on faces in a frame, if the argument FRAME is non-nil.
8572 Improve argument/docstring consistency.
8573
8574 2005-06-02 Kim F. Storm <storm@cua.dk>
8575
8576 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
8577 (x_consider_frame_title, Fformat_mode_line): Save offset into
8578 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
8579
8580 2005-06-01 Kim F. Storm <storm@cua.dk>
8581
8582 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
8583
8584 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8585
8586 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
8587 resolution fields for scalable fonts to 0.
8588
8589 * xfaces.c (build_scalable_font_name): Round pixel size to the
8590 nearest integer.
8591
8592 2005-06-01 Kim F. Storm <storm@cua.dk>
8593
8594 * xdisp.c (display_mode_line): Support nested calls to redisplay
8595 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
8596
8597 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8598
8599 * fileio.c (Finsert_file_contents):
8600 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
8601
8602 2005-05-31 Kim F. Storm <storm@cua.dk>
8603
8604 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
8605 (mode_line_noprop_ptr): Rename from frame_title_*.
8606 (store_mode_line_noprop_char): Rename from store_frame_title_char.
8607 (store_mode_line_noprop): Rename from store_frame_title.
8608 (mode_line_target): New enum to specify current output target
8609 for mode line formatting.
8610 (display_mode_element): Test it rather than frame_title_ptr and
8611 mode_line_string_list to determine where output should go.
8612 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
8613 (Vmode_line_unwind_vector): New variable.
8614 (format_mode_line_unwind_data, unwind_format_mode_line):
8615 New functions for unwind protection in mode line formatting.
8616 (x_consider_frame_title): Use them and new local var 'title_start'
8617 to support nested calls to format-mode-line and redisplay.
8618 Set mode_line_target to MODE_LINE_TITLE.
8619 (Fformat_mode_line): Use them and new local var 'string_start' to
8620 support nested calls to format-mode-line and redisplay.
8621 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
8622 Don't trim trailing dashes.
8623 (decode_mode_spec): Don't make infinite number of trailing dashes
8624 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
8625 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
8626 mode_line_string_face_prop, and Vmode_line_unwind_vector.
8627 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
8628 Initialize mode_line_target to MODE_LINE_DISPLAY.
8629
8630 2005-05-29 Richard M. Stallman <rms@gnu.org>
8631
8632 * buffer.c (Fbuffer_local_value): Call indirect_variable.
8633
8634 2005-05-28 Masatake YAMATO <jet@gyve.org>
8635
8636 * xdisp.c (note_mode_line_or_margin_highlight): Change the
8637 pointer to a hand cursor when hoovering over a mouse-face.
8638
8639 2005-05-27 Kenichi Handa <handa@m17n.org>
8640
8641 * xterm.c (x_encode_char): Call check_ccl_update in advance.
8642
8643 * ccl.c: Now an element of Vccl_program_table is a vector of
8644 length 4, not 3.
8645 (ccl_get_compiled_code): New arg idx. Caller changed.
8646 Adjust for the change of Vccl_program_table.
8647 (setup_ccl_program): Adjust for the change of Vccl_program_table.
8648 (check_ccl_update): New function.
8649 (Fregister_ccl_program): Use ASET to set an element of a vector.
8650 Adjusted for the change of Vccl_program_table.
8651
8652 * ccl.h (struct ccl_program): New member idx.
8653 (check_ccl_update): Extern it.
8654
8655 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
8656
8657 * image.c (Vimage_library_alist): Move from image.el.
8658 (syms_of_image): Defvar it.
8659 (lookup_image_type): Use it.
8660
8661 * buffer.c (Fbuffer_local_value): Make argument name match its use
8662 in docstring.
8663
8664 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
8665
8666 * keyboard.c (Frecursive_edit): Fix typo in docstring.
8667 (Fposn_at_x_y): Make argument name match its use in docstring.
8668
8669 2005-05-26 Lute Kamstra <lute@gnu.org>
8670
8671 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
8672
8673 2005-05-24 Masatake YAMATO <jet@gyve.org>
8674
8675 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
8676 as loop sentinels.
8677
8678 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
8679
8680 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
8681 select frame title ("Question"/"Information").
8682 (xdialog_show): Use it.
8683
8684 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
8685
8686 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
8687
8688 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
8689 a third argument (Qnil).
8690
8691 * lisp.h: x-popup-dialog can have three arguments.
8692
8693 * editfns.c (Fmessage_box): Use "Information" for frame title.
8694
8695 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
8696
8697 * termcap.c [VMS]: Include <starlet.h>.
8698
8699 2005-05-23 Masatake YAMATO <jet@gyve.org>
8700
8701 * xdisp.c (note_mode_line_or_margin_highlight): Add code
8702 for mouse-face. Change the type of the first argument from `window'
8703 to `Lisp_Object'.
8704 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
8705 window instead of w.
8706
8707 2005-05-22 Andreas Schwab <schwab@suse.de>
8708
8709 * process.c (send_process): Move misplaced volatile.
8710
8711 2005-05-21 Richard M. Stallman <rms@gnu.org>
8712
8713 * xdisp.c (display_mode_element): If we're processing a list and
8714 padding is specified, put it after the last element.
8715
8716 2005-05-21 Eli Zaretskii <eliz@gnu.org>
8717
8718 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
8719 "superroot" on DOS_NT systems.
8720
8721 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
8722
8723 * process.c (send_process): Restore the SIGPIPE handler if we
8724 catch a SIGPIPE.
8725
8726 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
8727
8728 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
8729 misleading comments).
8730 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
8731
8732 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8733
8734 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
8735 Correct the right value.
8736
8737 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
8738
8739 * keyboard.c (syms_of_keyboard): Remove Lisp variables
8740 post-command-idle-hook and post-command-idle-delay.
8741 (command_loop_1): Don't try to execute post-command-idle-hook.
8742
8743 2005-05-16 Kim F. Storm <storm@cua.dk>
8744
8745 * xdisp.c (handle_display_prop): Handle empty replacement.
8746 (handle_single_display_spec): Return -1 for empty replacement.
8747
8748 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
8749
8750 * .gdbinit (pitx): Print more info about iterator.
8751
8752 2005-05-16 Andreas Schwab <schwab@suse.de>
8753
8754 * unexmacosx.c (unexec_realloc): Move declarations before statements.
8755
8756 2005-05-14 Richard M. Stallman <rms@gnu.org>
8757
8758 * xdisp.c (message3): Call cancel_echoing.
8759
8760 * alloc.c (Fmemory_full_p): New function.
8761 (syms_of_alloc): defsubr it.
8762
8763 * process.c (send_process_trap): Unblock SIGPIPE.
8764 (send_process): Reset SIGPIPE handler before reporting error.
8765
8766 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
8767
8768 * emacs.c (syms_of_emacs): Fix doc string for system-type.
8769
8770 2005-05-13 Richard M. Stallman <rms@gnu.org>
8771
8772 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
8773 (Finsert_file_contents): If we read 0 bytes from a special file,
8774 unlock the visited file if we locked it.
8775 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
8776 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
8777
8778 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8779
8780 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
8781
8782 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
8783 Regard toolkit scroll bar thumb drag events as squeezable and prevent
8784 redisplay from being paused by them.
8785
8786 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
8787 [!MAC_OSX] (target_ticks): Remove variable.
8788 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
8789 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
8790 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
8791 event occurs before timeout, behave as if the function were interrupted.
8792 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
8793 handling using Time Manager routines.
8794 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
8795 New variables.
8796 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
8797 (setitimer): New functions.
8798
8799 * macfns.c, macmenu.c: Don't include signal.h.
8800
8801 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
8802 Rename from get_control_part_bound. All callers changed.
8803 (x_scroll_bar_clear): New function.
8804 (x_clear_frame): Use it.
8805 (XTset_vertical_scroll_bar): Don't call Draw1Control.
8806 (x_scroll_bar_handle_click): Change type of second argument from
8807 int to ControlPartCode.
8808 (check_alarm): Remove declaration.
8809 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
8810 (XTread_socket): Use ControlPartCode instead of SInt16.
8811
8812 2005-05-13 Nozomu Ando <nand@mac.com>
8813
8814 * unexmacosx.c: Include assert.h.
8815 (MACOSX_MALLOC_MULT16): New define.
8816 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
8817 ptr is in unexec regions by checking it is multiple of 16.
8818 (unexec_malloc_header_t): New typedef.
8819 (unexec_malloc, unexec_realloc, unexec_free): Store and use
8820 allocated size information in unexec_malloc_header.
8821
8822 2005-05-10 Richard M. Stallman <rms@gnu.org>
8823
8824 * xterm.c (noinclude): Add #undef.
8825
8826 * image.c, xfns.c, xmenu.c: Don't include signal.h.
8827
8828 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
8829
8830 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
8831 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
8832 Doc fixes.
8833
8834 * dired.c (Ffile_name_completion): Make argument name
8835 match its use in docstring.
8836
8837 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
8838
8839 * eval.c (Fdefvaralias): Remove any pre-existing
8840 variable-documentation property of the alias.
8841
8842 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
8843
8844 * xfns.c (start_hourglass): Do nothing when running on a tty.
8845
8846 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
8847
8848 * fns.c (Fchar_table_range): Fix typos in docstring.
8849
8850 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8851
8852 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
8853
8854 2005-05-06 Eli Zaretskii <eliz@gnu.org>
8855
8856 * lread.c (Flocate_file_internal): Doc fix.
8857
8858 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
8859
8860 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8861
8862 * macselect.c (x_own_selection): Accept Lisp string as result of
8863 selection converter function.
8864 (x_clear_frame_selections): Don't call x-lost-selection-functions
8865 if Emacs is not owner of the selection.
8866 (Vmac_services_selection): Put variable and initialization in
8867 #ifdef MAC_OSX.
8868 (syms_of_macselect) [MAC_OSX]: Set default value of
8869 Vmac_services_selection to PRIMARY.
8870
8871 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
8872 (mac_handle_tool_bar_click): Remove unused function and declaration.
8873 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
8874 (install_scroll_bar_timer, set_scroll_bar_timer)
8875 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
8876 (get_control_part_bound, x_scroll_bar_handle_press)
8877 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
8878 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
8879 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
8880 (scroll_bar_timer_event_posted_p): New variables.
8881 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
8882 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
8883 (x_scroll_bar_create): Set control reference with NewControl.
8884 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
8885 Initialize track_top and track_height to nil.
8886 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
8887 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
8888 (XTset_vertical_scroll_bar): Don't make space between scroll bar
8889 and associated window.
8890 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
8891 from window config.
8892 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8893 Set track_top and track_height to nil when scroll bar size is changed.
8894 Recalculate them if they are nil.
8895 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
8896 clicked control is a scroll bar.
8897 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
8898 event handler functions. Don't add modifiers to scroll bar click
8899 events. Call scroll bar release handler when window is deactivated.
8900 (mac_initialize): Remove unused code for X toolkit.
8901 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
8902 Initialize Vx_toolkit_scroll_bars to nil.
8903
8904 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8905 New members track_top and track_height.
8906
8907 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
8908 init_process when including sys/select.h.
8909
8910 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
8911
8912 * eval.c (Fdefvaralias): Doc fix.
8913
8914 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
8915
8916 2005-05-05 Kim F. Storm <storm@cua.dk>
8917
8918 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
8919 default value.
8920 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
8921 Fix type of cursor-in-non-selected-windows.
8922
8923 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8924
8925 * mac.c: #undef init_process so not to conflict with system headers.
8926
8927 2005-05-02 Richard M. Stallman <rms@gnu.org>
8928
8929 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
8930
8931 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
8932
8933 * xdisp.c (Vcursor_in_non_selected_windows)
8934 (Qcursor_in_non_selected_windows): Vars deleted.
8935 (syms_of_xdisp): Don't initialize them.
8936 (get_window_cursor_type): Use cursor_in_non_selected_windows
8937 buffer slot.
8938
8939 2005-05-02 Kim F. Storm <storm@cua.dk>
8940
8941 * macros.c (executing_kbd_macro_index): Rename from
8942 executing_macro_index. All uses changed.
8943 (executing_kbd_macro_iterations): Rename from
8944 executing_macro_iterations. All uses changed.
8945 (executing_kbd_macro): Rename from executing_macro.
8946 All uses changed.
8947 (syms_of_macros): Rename Lisp var executing-macro-index to
8948 executing-kbd-macro-index.
8949
8950 * xdisp.c (move_it_in_display_line_to): Fix last change.
8951
8952 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
8953
8954 * xmenu.c (Fx_popup_menu): Doc fix.
8955
8956 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
8957
8958 2005-05-02 Jason Rumney <jasonr@gnu.org>
8959
8960 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
8961
8962 2005-05-02 Nozomu Ando <nand@mac.com>
8963
8964 * sysselect.h: Fix typo.
8965
8966 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
8967
8968 * charset.c (Fchars_in_region): Remove as obsolete.
8969
8970 2005-05-01 Kim F. Storm <storm@cua.dk>
8971
8972 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
8973 TO_CHARPOS. This may happen if last glyphs was an image or stretch
8974 glyph.
8975
8976 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
8977
8978 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
8979
8980 2005-05-01 Richard M. Stallman <rms@gnu.org>
8981
8982 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
8983 If user cancels the menu, quit unless FOR_CLICK.
8984
8985 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
8986 All uses changed.
8987 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
8988 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
8989 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
8990 * commands.h (Vexecuting_kbd_macro): Likewise.
8991
8992 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
8993
8994 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
8995
8996 2005-04-30 Richard M. Stallman <rms@gnu.org>
8997
8998 * fileio.c (Ffind_file_name_handler): Handle the `operations'
8999 property of the file name handler.
9000 (Qoperations): New variable.
9001 (syms_of_fileio): Initialize and staticpro it.
9002
9003 * xdisp.c (set_message_1): Delete xassert.
9004
9005 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9006
9007 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
9008
9009 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
9010
9011 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
9012 before/after including Carbon.h if there is a working mktime.
9013
9014 2005-04-28 Kim F. Storm <storm@cua.dk>
9015
9016 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
9017 Fix cyclic alias check. If alias loop is detected, signal
9018 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
9019
9020 2005-04-28 Lute Kamstra <lute@gnu.org>
9021
9022 * eval.c (do_autoload): Record only autoloads in the autoload
9023 property of symbols.
9024
9025 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
9026
9027 * emacs.c (USAGE1): Add --basic-display and --quick options.
9028
9029 2005-04-27 Kim F. Storm <storm@cua.dk>
9030
9031 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
9032
9033 2005-04-26 Richard M. Stallman <rms@gnu.org>
9034
9035 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
9036 (syms_of_window): Doc fixes.
9037
9038 * indent.c (Fvertical_motion): Undo previous change.
9039
9040 2005-04-26 Kenichi Handa <handa@m17n.org>
9041
9042 * fns.c (char_table_range): New function.
9043 (Fchar_table_range): Signal an error if characters in the range
9044 have inconsistent values. Don't check the parent.
9045
9046 2005-04-25 Kenichi Handa <handa@m17n.org>
9047
9048 * fontset.c (fontset_set): Fix previous change.
9049
9050 2005-04-24 Richard M. Stallman <rms@gnu.org>
9051
9052 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
9053
9054 2005-04-24 Eli Zaretskii <eliz@gnu.org>
9055
9056 * regex.c (re_search_2, re_match_2_internal): Convert second arg
9057 of RE_TRANSLATE to int, to shut up GCC warnings.
9058
9059 * fileio.c (Fcopy_file): Doc fix.
9060 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
9061 not needed.
9062
9063 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9064
9065 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
9066 (SOME_MACHINE_OBJECTS): Likewise.
9067 (mac.o): Depend on ccl.h.
9068 (macselect.o): New target.
9069
9070 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
9071 Call syms_of_macselect.
9072
9073 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
9074
9075 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
9076 (QCLIPBOARD): Remove variable.
9077 (syms_of_mac): Don't initialize it.
9078 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
9079 Remove functions.
9080 (syms_of_mac): Don't defsubr them.
9081 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
9082 (QHFS_plus_D, QHFS_plus_C): New variables.
9083 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9084 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
9085 (cfstring_create_normalized): New functions.
9086 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
9087 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9088
9089 * macterm.c (handling_window_update, terminate_flag):
9090 Remove variables.
9091 (do_window_update, do_ae_quit_application, XTread_socket):
9092 Don't use them.
9093 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
9094 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
9095 (init_service_handler): Move to macselect.c. Remove declarations.
9096 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
9097 (Qapplication, Qabout): New variables.
9098 (syms_of_mac): Initialize them.
9099 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
9100 (Qperform): New variables.
9101 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
9102 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
9103 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
9104 (mac_store_application_menu_event, init_menu_bar): New functions.
9105 [USE_CARBON_EVENTS] (mac_handle_command_event)
9106 (init_command_handler): New functions.
9107 (mac_handle_window_event): Return noErr on window update event.
9108 (do_ae_quit_application): Call mac_store_application_menu_event.
9109 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
9110 and init_menu_bar.
9111
9112 * macterm.h (x_clear_frame_selections): Add extern.
9113
9114 * macselect.c: New file for selection processing on Mac OS.
9115
9116 2005-04-23 Richard M. Stallman <rms@gnu.org>
9117
9118 * fileio.c (Fcopy_file): New arg MUSTBENEW.
9119 (Frename_file): Pass new arg to Fcopy_file.
9120
9121 * window.c (window_size_fixed): Variable deleted.
9122 (syms_of_window): Initialize window-size-fixed to nil.
9123 But don't DEFVAR window_size_fixed.
9124
9125 2005-04-23 Andreas Schwab <schwab@suse.de>
9126
9127 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
9128 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
9129 use lib64 instead of lib.
9130 (_LP64) [_ARCH_PPC64]: Define if not defined.
9131
9132 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
9133
9134 * s/ms-w32.h (HAVE_PWD_H): Define.
9135
9136 2005-04-22 Kenichi Handa <handa@m17n.org>
9137
9138 * fns.c (copy_sub_char_table): Explicitly copy the default value
9139 of the sub-chartable.
9140
9141 * fontset.c (fontset_set): When a sub-chartable is created,
9142 explicitly sets the defalt value.
9143
9144 2005-04-22 Kim F. Storm <storm@cua.dk>
9145
9146 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
9147 (Fsafe_plist_get): Rename to Fplist_get.
9148 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
9149 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
9150
9151 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
9152
9153 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
9154 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9155 Use Fplist_get instead of Fsafe_plist_get.
9156
9157 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
9158
9159 2005-04-21 Miles Bader <miles@gnu.org>
9160
9161 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
9162
9163 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
9164
9165 * sysdep.c: Remove reference to defunct vms-pwd.h.
9166 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
9167 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
9168
9169 * config.in: Regenerate.
9170
9171 2005-04-20 Kenichi Handa <handa@m17n.org>
9172
9173 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
9174 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
9175 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
9176
9177 * alloc.c (make_sub_char_table): Argument changed to initial
9178 value of the slots.
9179
9180 * data.c (Faref): Handle special slots used as default values of
9181 ascii, eight-bit-control, eight-bit-control. Don't ignore a
9182 default value set for a group of characters.
9183 (Faset): Signal an error if IDXVAL is not a valid character code.
9184 Make a sub-chartable with correct initial value.
9185
9186 * fns.c (Fset_char_table_range): Don't set slots used as default
9187 values for ascii, eight-bit-control, eight-bit-graphic.
9188 Don't call Faref with charset-id.
9189 (Fset_char_table_default): Document how to treat normal character
9190 argument. Handle special slots used as default values of ascii,
9191 eight-bit-control, eight-bit-control. Make a sub chartable if
9192 necessary.
9193
9194 2005-04-20 Kenichi Handa <handa@m17n.org>
9195
9196 * search.c (boyer_moore): Fix previous change.
9197
9198 2005-04-19 Kim F. Storm <storm@cua.dk>
9199
9200 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
9201 face unless last visible char and first invisible char have the
9202 same face. Also use default face if saved_face_id is undefined.
9203
9204 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9205
9206 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
9207 `full_name'.
9208 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
9209 mac_scriptcode member.
9210
9211 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
9212 (syms_of_mac): Don't initialize them.
9213 (Vmac_charset_info_alist): New variable.
9214 (syms_of_mac): Defvar it.
9215 (create_text_encoding_info_alist): New function.
9216 (decode_mac_font_name, mac_to_x_fontname)
9217 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
9218 code the correspondence among XLFD charsets, Mac script codes, and
9219 Emacs coding systems. Use Vmac_charset_info_alist and result of
9220 create_text_encoding_info_alist instead.
9221 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
9222 routines also on Mac OS Classic.
9223 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
9224 Use add_font_name_table_entry.
9225 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
9226 specified. Derive unspecified scalable fields from specified one.
9227 (x_list_fonts): Consider Valternate_fontname_alist.
9228 (kDefaultFontSize): Change value from 9 to 12.
9229 (XLoadQueryFont): Get decoded font family, font face, and charset
9230 from x_font_name_to_mac_font_name. Set full name of loaded font.
9231 (mac_unload_font): Free `full_name' member.
9232 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
9233 NULL. Copy full_name member of struct MacFontStruct to that of
9234 struct font_info.
9235
9236 2005-04-19 Kim F. Storm <storm@cua.dk>
9237
9238 * xdisp.c (handle_stop): Set saved_face_id to current face if
9239 selective_display_ellipsis_p so ellipsis will be shown in same
9240 face as preceding text.
9241 (setup_for_ellipsis): Don't set saved_face_id here.
9242 (next_element_from_display_vector): Default to saved_face_id.
9243
9244 * fns.c (Fsafe_get): New function.
9245 (syms_of_fns): Defsubr it.
9246
9247 * lisp.h (Fsafe_get): EXFUN it.
9248
9249 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
9250 loops in case of bad face property lists. Limit number of face
9251 alias lookups to 10 (in case of face alias loops).
9252
9253 2005-04-18 Kim F. Storm <storm@cua.dk>
9254
9255 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
9256 It replaces the corresponding member from struct window, as a
9257 window may now show multiple overlay arrows.
9258 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
9259
9260 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
9261 Compare overlay_arrow_bitmap than overlay_arrow_p members.
9262
9263 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
9264 rather than from window.
9265 (update_window_fringes): Compare overlay_arrow_bitmap rather than
9266 overlay_arrow_p members.
9267 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
9268 if not default.
9269
9270 * window.h (struct window): Remove member overlay_arrow_bitmap.
9271
9272 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
9273
9274 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
9275 Calls changed. Don't check for overlay-arrow-bitmap property here.
9276 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
9277 fringe is present, return Lisp integer for bitmap (or -1 for default).
9278 Fix value of overlay-arrow-bitmap property to be a symbol, use
9279 lookup_fringe_bitmap to parse it.
9280 (display_line): Change call to overlay_arrow_at_row. Store integer
9281 return value as overlay bitmap in row rather than window.
9282 Only show overlay arrow if row displays text, or if no other overlay
9283 arrow is seen in window (if overlay marker is at point-max).
9284
9285 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
9286
9287 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
9288
9289 2005-04-18 Lute Kamstra <lute@gnu.org>
9290
9291 * lread.c (Vloads_in_progress): Static.
9292 * fns.c (Vloads_in_progress): Remove extern.
9293 (load_in_progress): Add extern.
9294 (Frequire): Use load_in_progress instead of Vloads_in_progress.
9295
9296 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
9297
9298 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
9299
9300 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9301
9302 * macterm.c (XTread_socket): Don't beep on keyboard input even if
9303 no frame is visible.
9304
9305 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9306
9307 * term.c (struct keys): Add support for shifted keys.
9308
9309 2005-04-16 Richard M. Stallman <rms@gnu.org>
9310
9311 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
9312 (set_message): Call with_echo_area_buffer with WHICH = 0.
9313 (set_message_1): Erase the echo area buffer first thing.
9314 (echo_area_display): Don't clear echo_message_buffer.
9315
9316 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9317
9318 * Makefile.in (mac.o): Depend on charset.h and coding.h.
9319
9320 * mac.c: Include charset.h and coding.h.
9321 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
9322 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
9323 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
9324
9325 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
9326
9327 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
9328
9329 * macterm.c (x_autoselect_window_p): Remove variable.
9330 (last_window): New variable.
9331 (XTreassert_line_highlight, x_change_line_highlight):
9332 Remove declarations.
9333 (mac_focus_changed, x_detect_focus_change): New functions and
9334 declarations.
9335 (XTextExtents16, front_emacs_window): Remove function.
9336 (mac_focus_frame): New function.
9337 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
9338 (mac_check_for_quit_char): Use it instead of front_emacs_window.
9339 (x_scroll_bar_report_motion): Obtain window from control owner.
9340 (x_make_frame_invisible): Set window manager size hint.
9341 (do_mouse_moved): Remove function.
9342 (XTread_socket): Move its contents here. Generate select-window
9343 event on mouse movement if needed. Use x_detect_focus_change on
9344 activate/deactivate events. Don't deiconify frame or invalidate
9345 window rectangle when dnd items are dropped.
9346 Don't activate/deactivate root control.
9347 (frame_highlight, frame_unhighlight): Activate/deactivate root
9348 control here.
9349 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
9350
9351 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
9352 New extern.
9353
9354 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
9355
9356 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
9357 (lisp): Use it.
9358 (SOME_MACHINE_LISP): Add tooltip.
9359
9360 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9361
9362 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
9363 Don't include TextEncodingConverter.h.
9364 (mac_system_script_code, Vmac_system_locale): New variables.
9365 (syms_of_mac): Defvar them.
9366 (mac_get_system_locale): New function.
9367
9368 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
9369 Use ENCODE_SYSTEM to encode title bar string.
9370 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
9371 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
9372 Use CFStringGetSystemEncoding to get system default string encoding.
9373
9374 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
9375 TextEncodingConverter.h.
9376
9377 2005-04-13 Steven Tamm <steventamm@mac.com>
9378
9379 * macterm.c (syms_of_macterm): Remove redundant definition of
9380 mac-pass-control-to-system.
9381
9382 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9383
9384 * window.c (Fset_window_configuration): Be careful when you choose
9385 among several possible points for the new_current_buffer.
9386
9387 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9388
9389 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
9390 poll_for_input_1. Set interrupt_input_pending to 1 instead.
9391 (Qlanguage_change) [MAC_OS]: New variable.
9392 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
9393 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
9394
9395 * macterm.c (mac_keyboard_text_encoding)
9396 (current_mac_keyboard_text_encoding): Remove variables.
9397 (XTread_socket): Store language-change event if keyboard script change
9398 is detected. Don't convert input to `mac_keyboard_text_encoding'.
9399 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
9400
9401 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
9402
9403 2005-04-10 Richard M. Stallman <rms@gnu.org>
9404
9405 * emacs.c (standard_args): Rename --bare-bones to --quick.
9406 Add -D aka --basic-display.
9407
9408 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
9409
9410 2005-04-09 Richard M. Stallman <rms@gnu.org>
9411
9412 * keymap.c (where_is_internal): Convert a string used as event type
9413 into "(any string)".
9414
9415 * lread.c (Vloads_in_progress): Not static.
9416 * fns.c (Vloads_in_progress): Add extern.
9417 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
9418
9419 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
9420
9421 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
9422
9423 2005-04-09 Lute Kamstra <lute@gnu.org>
9424
9425 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
9426 within the accessible part of the buffer.
9427
9428 2005-04-09 Kim F. Storm <storm@cua.dk>
9429
9430 * lread.c (readevalloop): Add args START and END as region in
9431 current buffer to read. Callers changed.
9432 When specified, narrow to this region only when reading,
9433 not during eval. Track next point to read from during eval.
9434 Also restore point to "real" buffer position before eval.
9435 (Feval_region): Don't save excursion and restriction here, and
9436 don't narrow to region. Just pass region to readevalloop.
9437 Note: Point is now preserved even when PRINTFLAG is nil.
9438
9439 2005-04-08 Kim F. Storm <storm@cua.dk>
9440
9441 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
9442
9443 2005-04-06 Kim F. Storm <storm@cua.dk>
9444
9445 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
9446
9447 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9448
9449 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
9450 (Fmac_get_preference): Doc fix.
9451
9452 * macfns.c (Fx_create_frame, x_create_tip_frame):
9453 Add "fontset-mac" to fallback font/fontsets.
9454
9455 2005-04-04 Kim F. Storm <storm@cua.dk>
9456
9457 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
9458
9459 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
9460 Call it again after autoload.
9461
9462 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9463
9464 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
9465 mallopt.
9466
9467 * ralloc.c (r_alloc_init): Ditto.
9468
9469 2005-04-01 Kenichi Handa <handa@m17n.org>
9470
9471 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
9472 (Vascii_eqv_table): Extern them.
9473
9474 * casetab.c (set_case_table): If standard is nonzero, setup
9475 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
9476
9477 * search.c (looking_at_1): Use current_buffer->case_canon_table,
9478 not DOWNCASE_TABLE.
9479 (string_match_1): Likewise.
9480 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
9481 Vascii_downcase_table.
9482 (fast_string_match_ignore_case): Likewise.
9483 (search_buffer): Fix checking of boyer-moore usability.
9484 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
9485 No need of tranlating characters in PAT. Fix calculation of
9486 simple_translate.
9487
9488 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9489
9490 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
9491 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
9492 Use XtNtopShadowPixel and XtNbottomShadowPixel.
9493 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
9494 really work and that breaks with some versions of Xaw3d.
9495
9496 2005-03-31 Kenichi Handa <handa@m17n.org>
9497
9498 * coding.c (syms_of_coding): Fix previous change.
9499
9500 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
9501
9502 * fileio.c (search_embedded_absfilename): Fix last change.
9503
9504 2005-03-25 Kenichi Handa <handa@m17n.org>
9505
9506 * coding.c (syms_of_coding): Suggest to use set-coding-category in
9507 the docstring of coding-category-list.
9508
9509 2005-03-31 Kim F. Storm <storm@cua.dk>
9510
9511 * keyboard.c (Qmouse_fixup_help_message): New var.
9512 (syms_of_keyboard): Intern and staticpro it.
9513 (show_help_echo): Apply mouse-fixup-help-message to help string.
9514
9515 2005-03-30 Kim F. Storm <storm@cua.dk>
9516
9517 * xdisp.c (display_line): Allow multiple overlay arrows in window.
9518
9519 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9520
9521 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
9522 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
9523 (Ffile_name_absolute_p): Use it.
9524 (search_embedded_absfilename): New fun, extracted from
9525 Fsubstitute_in_file_name. Use file_name_absolute_p.
9526 Free the pw data after use.
9527 (Fsubstitute_in_file_name): Use it.
9528 After cutting a prefix, re-check file-name-handler.
9529
9530 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
9531
9532 * w32term.h (x_output): Add focus_state.
9533
9534 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
9535 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
9536
9537 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9538
9539 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
9540 Use Fexit_minibuffer.
9541 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
9542
9543 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9544
9545 * dired.c (Ffile_attributes): Add a missing gcpro.
9546
9547 * alloc.c (make_number): The arg can be bigger than `int'.
9548 * lisp.h (make_number): Make prototype more precise.
9549
9550 * process.c, dired.c (Vfile_name_coding_system)
9551 (Vdefault_file_name_coding_system):
9552 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
9553 (Vdefault_file_name_coding_system): Remove unused declarations.
9554
9555 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9556
9557 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
9558 if it failed to pop up (Gnome "show pointer on ctrl" option makes
9559 menus fail to pop up).
9560
9561 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9562
9563 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
9564 Just prepend a backslash without replacing the NBSP by an SPC.
9565
9566 2005-03-22 Kim F. Storm <storm@cua.dk>
9567
9568 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
9569 * dispextern.h (lookup_derived_face): Fix prototype.
9570 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
9571
9572 * xdisp.c (handle_single_display_spec): Derive left-fringe and
9573 right-fringe face from fringe face.
9574
9575 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
9576 Derive face from fringe face.
9577
9578 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9579
9580 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
9581
9582 2005-03-22 David Kastrup <dak@gnu.org>
9583
9584 * textprop.c (Fnext_char_property_change)
9585 (Fprevious_char_property_change): Allow marker as limit.
9586 (Fnext_single_char_property_change)
9587 (Fprevious_single_char_property_change): Check that limit is a
9588 number in strings.
9589 (Fnext_single_char_property_change): Coerce position to integer.
9590 (Fprevious_single_char_property_change): Same here.
9591
9592 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
9593
9594 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
9595
9596 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9597
9598 * frame.c (Fignore_event): Remove.
9599 (syms_of_frame): Don't defsubr it.
9600
9601 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
9602 redundant `ignore-event'.
9603
9604 2005-03-19 Eli Zaretskii <eliz@gnu.org>
9605
9606 * unexec.c (write_segment, unexec): Move these functions to avoid
9607 forward references (which cause errors with "gcc -gcoff").
9608
9609 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9610
9611 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9612 that it doesn't become "tooltip". The specbind is enough.
9613
9614 * xrdb.c (x_load_resources): Use different char *helv when I18N
9615 is present.
9616
9617 2005-03-17 Kenichi Handa <handa@m17n.org>
9618
9619 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
9620
9621 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9622
9623 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
9624 Use xic_create_fontsetname even for non-Motif menus.
9625 Don't forget to free the fontsetname.
9626
9627 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
9628
9629 2005-03-17 Richard M. Stallman <rms@gnu.org>
9630
9631 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
9632
9633 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
9634 (Fmake_symbolic_link): Use G to read the new file name.
9635
9636 * callint.c (Finteractive): Document G option.
9637 (Fcall_interactively): Implement G option.
9638
9639 * buffer.c (buffer_lisp_local_variables): New function,
9640 broken out from Fbuffer_local_variables.
9641 (clone_per_buffer_values): Use buffer_lisp_local_variables.
9642
9643 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9644
9645 * xfns.c (xic_create_fontsetname): Add `motif' argument.
9646 Always return a freshly allocated string.
9647 (xic_create_xfontset): Adjust call.
9648
9649 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
9650 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
9651 (dump_realized_face): Fix warning.
9652
9653 * emacs.c (Fkill_emacs): YAILOM.
9654
9655 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
9656
9657 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9658
9659 * mac.c (HASHKEY_TERMINAL): Remove.
9660 (HASHKEY_MAX_NID): New macro.
9661 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
9662 argument.
9663 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
9664 (xrm_create_database, xrm_q_put_resource)
9665 (xrm_merge_string_database, xrm_q_get_resource_1)
9666 (xrm_q_get_resource): Change resource database representation so
9667 that it may not use multiple hash tables for a single database.
9668 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
9669
9670 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
9671
9672 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
9673
9674 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
9675 locale-coding-system, as was already done for WINDOWSNT.
9676
9677 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
9678 translation for chars in the 0-255 range.
9679
9680 2005-03-16 Lute Kamstra <lute@gnu.org>
9681
9682 * floatfns.c (Ffloor): Doc fix.
9683
9684 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9685
9686 * mac.c: Include macterm.h instead of directly including Carbon.h.
9687 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
9688 (Qarray, Qdictionary): New variables.
9689 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9690 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
9691 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
9692 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
9693 in callback for CFDictionaryApplyFunction.
9694 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9695 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9696 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
9697 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
9698 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
9699 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9700 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
9701 (skip_white_space, parse_comment, parse_include_file)
9702 (parse_binding, parse_component, parse_resource_name, parse_value)
9703 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
9704 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
9705 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
9706 New functions.
9707
9708 * macfns.c (mac_get_rdb_resource): Remove function.
9709 (x_get_string_resource): Use xrm_get_resource.
9710
9711 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
9712
9713 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
9714 name_list_element.
9715 (mac_make_rdb): Create resource database from preferences and
9716 argument string.
9717 (mac_term_init): Save resource database to cddr part of
9718 name_list_element.
9719
9720 * macterm.h (xrm_merge_string_database, xrm_get_resource)
9721 (xrm_get_preference_database): Add externs.
9722 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9723 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9724 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
9725
9726 * process.c (init_process): Change `#ifdef DARWIN' to `#if
9727 defined (DARWIN) || defined (MAC_OSX)'
9728
9729 * s/darwin.h (DARWIN): Don't define.
9730
9731 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9732
9733 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
9734 Remove unused variables.
9735 (syms_of_macfns): Don't initialize them. Likewise for
9736 Qface_set_after_frame_default. Defvar and initialize
9737 Vx_window_horizontal_drag_shape.
9738 (x_set_mouse_color): Change mouse pointer shape.
9739 (mac_window) [!MAC_OSX]: Create root control.
9740 (Fx_create_frame): Remove initializations of mouse pointer shapes.
9741 (hourglass_started): New function (from xfns.c).
9742 (start_hourglass, cancel_hourglass): Put function body in #ifdef
9743 MAC_OSX.
9744 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
9745 indicator for each non-tooltip frame if needed, and show it.
9746 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
9747
9748 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
9749 Controls.h. Use ThemeCursor instead of CursHandle.
9750
9751 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
9752 Remove functions and declarations.
9753 (mac_set_colors): Take argument for saving background color.
9754 All callers changed.
9755 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
9756 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
9757 background color.
9758 (x_update_end, mac_do_track_drag): Don't reset background color.
9759 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
9760 Use SetThemeCursor.
9761 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
9762 indicator control to the upper-right corner of the window.
9763 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
9764 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
9765 (do_window_update): Update controls after updating content area.
9766 (mac_handle_window_event): Remove unused extern.
9767 (XTread_socket): Check both control handle and control part code
9768 to determine whether a scroll bar is clicked. Activate/deactivate
9769 root control instead of contained scroll bar controls.
9770 (make_mac_terminal_frame): Use ThemeCursor constants.
9771
9772 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
9773 New member hourglass_control.
9774 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
9775 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
9776
9777 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9778
9779 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
9780 coincides with that in Apple X11 except `clear', `enter' on
9781 laptops, and fn + `enter' on laptops.
9782
9783 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9784
9785 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
9786 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
9787 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
9788
9789 * xfns.c (xic_defaut_fontset): New constant.
9790 (xic_create_fontsetname): New function.
9791 Extracted from create_frame_xic. Try to generate a slightly
9792 better fontset.
9793 (xic_create_xfontset): Use it.
9794 (create_frame_xic): Simplify.
9795
9796 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
9797
9798 * fileio.c (Fmake_symbolic_link): Fix last change.
9799
9800 2005-03-11 Richard M. Stallman <rms@gnu.org>
9801
9802 * fileio.c (Frename_file, Fadd_name_to_file)
9803 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
9804 expand the basename of FILE relative to it.
9805
9806 2005-03-11 Kenichi Handa <handa@m17n.org>
9807
9808 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
9809 before calling setup_coding_system so that autoloading of a coding
9810 system work.
9811
9812 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9813
9814 * xfns.c (hourglass_started): New function.
9815
9816 * dispextern.h: Declare hourglass_started.
9817
9818 * keyboard.c (Fexecute_extended_command): Restart hourglass
9819 after call to Fcompleting_read if already started.
9820
9821 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
9822 GTK main loop is entered in xterm.c, thus doing the redraw.
9823
9824 2005-03-10 Kim F. Storm <storm@cua.dk>
9825
9826 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
9827
9828 2005-03-08 Kenichi Handa <handa@m17n.org>
9829
9830 * frame.c (x_set_font): Call set_default_ascii_font if an
9831 available font is found.
9832
9833 * fontset.c (set_default_ascii_font): New function.
9834 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
9835
9836 * fontset.h (set_default_ascii_font): Extern it.
9837
9838 2005-03-07 Kim F. Storm <storm@cua.dk>
9839
9840 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
9841 (clear_image_cache_count): New var.
9842 (redisplay_internal): Don't clear face and image caches in the
9843 middle of redisplay; do it afterwards.
9844
9845 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
9846
9847 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
9848 is valid. If not, clear phys_cursor_on_p and return.
9849
9850 2005-03-07 Andreas Schwab <schwab@suse.de>
9851
9852 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
9853
9854 2005-03-06 Richard M. Stallman <rms@gnu.org>
9855
9856 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
9857
9858 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
9859 (Feval, Ffuncall): Use CHECK_CONS_LIST.
9860
9861 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
9862
9863 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
9864 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
9865
9866 2005-03-05 Juri Linkov <juri@jurta.org>
9867
9868 * emacs.c (USAGE1): Replace Info node name "command arguments"
9869 with "emacs invocation".
9870 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
9871 allow arguments `--color' and `MODE' to be separated by space.
9872 Add --no-blinking-cursor, -nbc.
9873 (standard_args): Add -nbc, --no-blinking-cursor.
9874
9875 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
9876
9877 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
9878 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
9879 * fileio.c (Fexpand_file_name) [VMS]:
9880 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
9881 * doc.c (munge_doc_file_name) [VMS]: Likewise.
9882 (Fsnarf_documentation): Call munge_doc_file_name.
9883
9884 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
9885
9886 * s/vms.h (FILE_SYSTEM_CASE): New macro.
9887 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
9888 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
9889
9890 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9891
9892 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
9893 defined (MAC_OSX) && defined (HAVE_CARBON)'.
9894
9895 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
9896
9897 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9898 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
9899 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
9900 (mac_clear_font_name_table): Move extern to macterm.h.
9901
9902 * macfns.c (install_window_handler): Move extern to macterm.h.
9903 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
9904 valid. Don't check !NILP (dir) because it is already checked with
9905 CHECK_STRING.
9906 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
9907 specifying the default location and obtaining the selected filename.
9908
9909 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9910
9911 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
9912 are included via Carbon.h.
9913
9914 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
9915 Define USE_CARBON_EVENTS to 1.
9916 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
9917 (x_free_frame_resources): Call remove_window_handler for
9918 non-tooltip windows.
9919 [TARGET_API_MAC_CARBON]: Don't include headers that are included
9920 via Carbon.h.
9921 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
9922 (mac_do_receive_dragUPP): New variables.
9923 (mac_handle_service_event, init_service_handler): Put declarations
9924 and definitions in #ifdef MAC_OSX.
9925 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
9926 drag-and-drop handler functions and register them.
9927 (remove_window_handler): New function.
9928 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
9929 Use fsspec_to_posix_pathname.
9930 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
9931 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
9932 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
9933 Set default cursors.
9934 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
9935 init_service_handler or init_quit_char_handler.
9936 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
9937
9938 * macterm.h (install_window_handler, remove_window_handler)
9939 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
9940 (mac_clear_font_name_table): New externs.
9941
9942 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
9943
9944 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
9945 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
9946 (Fexpand_file_name): Likewise.
9947
9948 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
9949
9950 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
9951 no longer special-case VMS. Add bogus return value.
9952
9953 2005-03-02 Kim F. Storm <storm@cua.dk>
9954
9955 * dispextern.h (XASSERTS): Define to 0 if not already defined.
9956 (xassert) [!XASSERTS]: Define dummy version.
9957
9958 2005-03-02 Kim F. Storm <storm@cua.dk>
9959
9960 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
9961 Reported by David Kastrup.
9962
9963 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
9964
9965 * xdisp.c (get_next_display_element): Fix control and escape
9966 glyph from display vector.
9967
9968 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
9969
9970 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
9971
9972 2005-02-27 Richard M. Stallman <rms@gnu.org>
9973
9974 * xdisp.c (fast_find_position): Rename END to BEG.
9975 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
9976
9977 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9978
9979 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
9980 gtk_window_resize and x_wm_set_size_hint.
9981
9982 2005-02-25 Kim F. Storm <storm@cua.dk>
9983
9984 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
9985
9986 * xdisp.c (init_from_display_pos): Don't read past end of
9987 it->overlay_strings array.
9988
9989 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
9990
9991 * buffer.c (syms_of_buffer): Fix typo.
9992
9993 2005-02-23 Lute Kamstra <lute@gnu.org>
9994
9995 * buffer.c (Foverlay_buffer): Doc fix.
9996
9997 2005-02-22 Kim F. Storm <storm@cua.dk>
9998
9999 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
10000 and symbol keys in alists and hash tables.
10001
10002 * xdisp.c (fast_find_position): Fix search for start of overlay.
10003
10004 2005-02-21 Kim F. Storm <storm@cua.dk>
10005
10006 * window.c (window_scroll_pixel_based): When scrolling backwards,
10007 handle partial visible line at end of window even when we hit PT.
10008
10009 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10010
10011 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
10012
10013 2005-02-21 Kim F. Storm <storm@cua.dk>
10014
10015 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
10016 I think those asserts are bogus if buffer contains invisible text
10017 or images.
10018
10019 2005-02-21 David Kastrup <dak@gnu.org>
10020
10021 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
10022
10023 2005-02-20 Kim F. Storm <storm@cua.dk>
10024
10025 * xdisp.c (pos_visible_p): Be sure to move to the specified
10026 position. Always get the full ascent / descent of the
10027 corresponding row, to return reliable rtop and rbot values.
10028 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
10029 Must look one character back, as back_to_previous_line_start
10030 returns position after the newline.
10031 (move_it_vertically_backward): Fix heuristic for when to move further
10032 back in case line_height * 2/3 is larger than window height.
10033 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
10034 as it does not do anything anymore. Add arg current_matrix_p to
10035 use current matrix rather than desired matrix when set.
10036 (try_cursor_movement): Don't scroll to make cursor row fully
10037 visible if cursor didn't move. This avoids unexpected recentering
10038 in case of blinking cursor or accepting process output.
10039 Use current matrix to check cursor row visibility.
10040 (redisplay_window): Fix whether to recenter or move to top in case
10041 cursor line is taller than window height.
10042 (find_first_unchanged_at_end_row): Stop search if we reach a row
10043 which not enabled (instead of abort).
10044
10045 2005-02-18 Kim F. Storm <storm@cua.dk>
10046
10047 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
10048 to be nil in a :box attribute value list; customize prints that
10049 as lisp value when no box color is specified.
10050
10051 * .gdbinit (pitx, pit): Pretty print display iterator.
10052 (prowx, prow): Pretty print glyph row.
10053 (pcursorx, pcursor): Pretty print a window cursor.
10054 (pwinx, pwin): Pretty print struct window.
10055
10056 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10057
10058 * alloc.c (BLOCK_BYTES): Harmless typo.
10059
10060 2005-02-17 Andreas Schwab <schwab@suse.de>
10061
10062 * xfns.c (hack_wm_protocols): Use correct type for last parameter
10063 of XGetWindowProperty to avoid aliasing issues.
10064 (Fx_window_property): Likewise.
10065
10066 * xselect.c (Fx_disown_selection_internal): Use union of struct
10067 input_event and struct selection_input_event to avoid aliasing issues.
10068
10069 * xterm.c (handle_one_xevent): Use union of struct input_event and
10070 struct selection_input_event to avoid aliasing issues.
10071 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
10072
10073 2005-02-17 Kim F. Storm <storm@cua.dk>
10074
10075 * dispextern.h (enum it_method): New enum.
10076 (GET_FROM_*): Its members.
10077 (struct it): Change member method from function pointer to enum.
10078
10079 * xdisp.c (check_it, init_from_display_pos, handle_stop)
10080 (setup_for_ellipsis, handle_single_display_spec)
10081 (handle_composition_prop, next_overlay_string)
10082 (get_overlay_strings, reseat_1, reseat_to_string)
10083 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
10084 (in_display_vector_p, display_line, get_next_display_element):
10085 Change it->method from function pointer to enum.
10086 (get_next_element): New array to map it->method to function.
10087 (get_next_display_element): Use it.
10088 (set_iterator_to_next): Use switch instead of if/else chain.
10089
10090 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10091
10092 * w32select.c: Summary: Thorough rework to implement Unicode
10093 clipboard operations and delayed rendering.
10094
10095 Drop last_clipboard_text and related code, keep track of
10096 ownership via clipboard_owner instead. Drop old #if0 sections.
10097
10098 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
10099 (clipboard_owner, modifying_clipboard, cfg_coding_system)
10100 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
10101 (current_coding_system, current_requires_encoding)
10102 (current_num_nls, current_clipboard_type, current_lcid):
10103 New static variables.
10104
10105 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
10106 (render, render_all, run_protected, lisp_error_handler)
10107 (owner_callback, create_owner, setup_config)
10108 (enum_locale_callback, cp_from_locale, coding_from_cp):
10109 New local functions.
10110
10111 (term_w32select, globals_of_w32select): New global functions.
10112
10113 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
10114 clipboard_owner instead. Use delayed rendering and provide
10115 all text formats. Provide CF_LOCALE if necessary.
10116
10117 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
10118 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
10119 available. Force DOS line-ends for decoding.
10120
10121 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
10122
10123 (syms_of_w32select): Init and register new variables.
10124
10125 * w32.h: Add prototypes for globals_of_w32select and
10126 term_w32select. Make the neighboring K&R declarations into
10127 prototypes, too.
10128
10129 * emacs.c: Include w32.h to get function prototypes.
10130 (main): Call globals_of_w32select.
10131
10132 * w32.c (term_ntproc): Call term_w32select.
10133
10134 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
10135
10136 2005-02-16 Kim F. Storm <storm@cua.dk>
10137
10138 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
10139 at end of display vector.
10140
10141 2005-02-15 Richard M. Stallman <rms@gnu.org>
10142
10143 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
10144 for mode and header lines.
10145
10146 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
10147
10148 * keymap.h (describe_map_tree): Change decl.
10149
10150 * keyboard.c (command_loop_1): Always use safe_run_hooks
10151 to run Qdeferred_action_function.
10152
10153 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
10154 (describe_map, describe_vector): Likewise. When it's 1,
10155 don't omit shadowed bindings, instead mark them as shadowed.
10156
10157 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
10158 for describe_map_tree. Pass 1 for MENTION_SHADOW.
10159
10160 * data.c (Fsetq_default): Allow no arg case.
10161
10162 2005-02-14 Kenichi Handa <handa@m17n.org>
10163
10164 * coding.c (encode_coding_string): Always return a unibyte string.
10165 If NOCOPY is nonzero and there's no need of encoding, make STR
10166 unibyte directly.
10167
10168 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
10169 multibyte string, signal an error instead of aborting.
10170
10171 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
10172
10173 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
10174
10175 2005-02-12 Kim F. Storm <storm@cua.dk>
10176
10177 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
10178
10179 2005-02-10 Kim F. Storm <storm@cua.dk>
10180
10181 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
10182 if it moves outside window or it doesn't display text.
10183
10184 2005-02-09 Kim F. Storm <storm@cua.dk>
10185
10186 * undo.c (Fprimitive_undo): Check that undo function does not
10187 switch buffer.
10188
10189 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10190
10191 * xselect.c (selection_data_to_lisp_data): For the special case
10192 type == XA_ATOM, data contains array of int, not array of Atom.
10193 (x_property_data_to_lisp, selection_data_to_lisp_data):
10194 Comment update: data must be array of int for format == 32.
10195
10196 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10197
10198 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
10199
10200 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10201
10202 * xfns.c (Fx_change_window_property): Use long array when format is 32.
10203 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
10204 convert long array returned from XGetWindowProperty to an int array.
10205 (x_set_tool_bar_lines): Check that width and height is greater than
10206 zero before clearing area.
10207
10208 * xselect.c (x_reply_selection_request): Pass long array to
10209 XChangeProperty so that 64 bit longs are handeled correctly.
10210 (x_get_window_property): If format is 32 and long is bigger than 32
10211 bits convert data from XGetWindowProperty from long array to int array.
10212 (lisp_data_to_selection_data): When the input is a vector and the
10213 format is 32, allocate a long array even if long is bigger than 32 bits.
10214 (x_fill_property_data): Use char, short and long as the man page
10215 for XChangeProperty specifies. This way the data returned is OK for
10216 both 32 and 64 bit machines.
10217 (x_handle_dnd_message): Calculate size correctly even for 64 bit
10218 machines.
10219 (Fx_send_client_event): Undo change from 2005-02-05,
10220 x_fill_property_data now handles that case.
10221
10222 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
10223 reason for the approach in the code.
10224
10225 2005-02-07 Kim F. Storm <storm@cua.dk>
10226
10227 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
10228
10229 2005-02-06 Richard M. Stallman <rms@gnu.org>
10230
10231 * eval.c (Frun_hook_with_args)
10232 (Frun_hook_with_args_until_success)
10233 (Frun_hook_with_args_until_failure): Doc fixes.
10234
10235 2005-02-05 Andreas Schwab <schwab@suse.de>
10236
10237 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
10238
10239 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10240
10241 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
10242 the longs in a XClientMessageEvent correctly when long is 64 bits.
10243
10244 2005-02-05 Eli Zaretskii <eliz@gnu.org>
10245
10246 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
10247 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
10248
10249 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10250
10251 * xmenu.c (menubar_selection_callback): Force out GTK buffered
10252 events so the menu event comes after them. This is to prevent sit-for
10253 from exiting on buffered events directly after a menu selection,
10254 lisp code for Help => About Emacs uses sit-for.
10255
10256 * gtkutil.c (create_menus): Connect selection-done event instead of
10257 the deactivate event to deactivate_cb. This will make the last
10258 leave event come before the call to deactivate_cb, so the leave
10259 event does not make sit-for exit after a menu selection.
10260
10261 2005-02-03 Kim F. Storm <storm@cua.dk>
10262
10263 * dispnew.c (build_frame_matrix_from_leaf_window)
10264 [!GLYPH_DEBUG]: Fix xassert.
10265
10266 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
10267
10268 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10269
10270 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10271
10272 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
10273 the compiling OS version.
10274
10275 * macfns.c (x_create_tip_frame): Likewise.
10276
10277 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
10278
10279 2005-02-03 Richard M. Stallman <rms@gnu.org>
10280
10281 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
10282
10283 * xdisp.c (echo_area_display): Clear echo_message_buffer.
10284
10285 * buffer.c (Fbury_buffer): Doc fix.
10286
10287 2005-02-02 Steven Tamm <steventamm@mac.com>
10288
10289 * macfns.c (unwind_create_frame): Fix compile error due to
10290 xassert being uncondition, but predicate is.
10291 * dispnew.c (update_window): Fix compile error due to
10292 xassert being uncondition, but predicate is.
10293
10294 2005-02-02 Miles Bader <miles@gnu.org>
10295
10296 * dispextern.h (xassert): Enable unconditionally.
10297
10298 2005-02-02 Kim F. Storm <storm@cua.dk>
10299
10300 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
10301
10302 2005-02-02 Kenichi Handa <handa@m17n.org>
10303
10304 * casefiddle.c (casify_object): Enable changing characters of
10305 different byte length.
10306 (casify_region): Fix loop condition, args to replace_range_2, and
10307 update opoint_byte.
10308
10309 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
10310
10311 2005-02-01 Kim F. Storm <storm@cua.dk>
10312
10313 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
10314 stack before calling handle_display_prop.
10315
10316 2005-01-31 Kim F. Storm <storm@cua.dk>
10317
10318 * undo.c (Qapply): New lisp var.
10319 (syms_of_undo): Intern and staticpro it.
10320 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
10321 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
10322
10323 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10324
10325 2005-01-30 Jesper Harder <harder@phys.au.dk>
10326
10327 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
10328 <mac-emulate-three-button-mouse>: Fix docstring indentation.
10329
10330 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
10331
10332 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
10333 Increase value to 3 Meg.
10334
10335 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10336
10337 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
10338 button events are not received otherwise.
10339
10340 2005-01-29 Richard M. Stallman <rms@gnu.org>
10341
10342 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10343
10344 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
10345
10346 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10347
10348 * keymap.c (access_keymap): YAILOM.
10349
10350 2005-01-27 Kim F. Storm <storm@cua.dk>
10351
10352 * xdisp.c (get_phys_cursor_geometry): New function to calculate
10353 phys cursor position and size for hollow cursor. Position is
10354 aligned with get_glyph_string_clip_rect and ensures that a hollow
10355 cursor is shown, even when the actual glyph is not visible.
10356
10357 * dispextern.h (get_phys_cursor_geometry): Add prototype.
10358
10359 * xterm.c (x_clip_to_row): Ensure y >= 0.
10360 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10361
10362 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10363
10364 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10365
10366 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
10367
10368 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
10369
10370 2005-01-27 Kim F. Storm <storm@cua.dk>
10371
10372 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
10373 glyph, even when row is only partially visible and actual cursor
10374 position is not visible.
10375
10376 2005-01-24 Richard M. Stallman <rms@gnu.org>
10377
10378 * xterm.c (x_error_quitter): No longer static, and moved after
10379 x_error_handler.
10380
10381 2005-01-24 Kim F. Storm <storm@cua.dk>
10382
10383 * xdisp.c (move_it_by_lines): If we move forward after going too
10384 far back, cancel move if end position is same as start position.
10385
10386 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10387
10388 * dispextern.h (struct glyph_string): New members clip_head and
10389 clip_tail.
10390
10391 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
10392 region to the area between clip_head and clip_tail.
10393 (draw_glyphs): Record the area that need to be actually redrawn to
10394 the new variables clip_head and clip_tail when there are
10395 overhangs. Set values of these variables to the corresponding
10396 members in struct glyph_string. Refine x coordinates for
10397 notice_overwritten_cursor using clip_head and clip_tail.
10398
10399 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
10400
10401 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
10402 QDTextBounds.
10403 (x_draw_glyph_string): Don't fill the background of the successor
10404 of a glyph with a right overhang if the successor will draw a cursor.
10405 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
10406 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
10407
10408 2005-01-24 Kim F. Storm <storm@cua.dk>
10409
10410 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
10411 direction if window height was smaller than next-screen-context-lines.
10412 Now always scroll at least one line in the requested direction.
10413 Ensure that we actually do scroll backwards when requested to do so.
10414
10415 * xdisp.c (redisplay_window): Only try to make cursor line fully
10416 visible once (to avoid redisplay loop).
10417
10418 2005-01-23 Kim F. Storm <storm@cua.dk>
10419
10420 * window.c (Fpos_visible_in_window_p): Simplify return value for
10421 partially visible rows.
10422 (window_scroll_pixel_based): Adapt to that change.
10423
10424 * window.c (window_scroll_pixel_based): Force moving to next line
10425 if scrolling doesn't move start point, e.g. if looking at tall image.
10426
10427 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
10428 Clear last_height before calling line_bottom_y to get real height.
10429 Fix calculation of y.
10430
10431 2005-01-22 Steven Tamm <steventamm@mac.com>
10432
10433 * s/darwin.h: Removed PTY_ITERATION from here.
10434 (DARWIN): Define.
10435
10436 * process.c (init_process): Default process-connection-type to
10437 nil on darwin 6 or less, t if it is 7 or higher. This way the
10438 broken pty behavior is still allowed on darwin 6 for interactive
10439 processes for people that know what they are doing.
10440
10441 2005-01-22 Kim F. Storm <storm@cua.dk>
10442
10443 * window.c (auto_window_vscroll_p): New boolean.
10444 (syms_of_window): DEFVAR_BOOL it.
10445 (Fpos_visible_in_window_p): Extend return value to include RTOP
10446 and RBOT values if FULLY is nil.
10447 (window_scroll_pixel_based): Adjust vscroll for partially visible
10448 rows if auto_window_vscroll_p is set.
10449 (Fset_window_vscroll): Do nothing if vscroll is not modified.
10450
10451 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
10452 to return number of partially invisible pixels at top and bottom
10453 of the dislay row at POS.
10454
10455 * lisp.h (pos_visible_p): Fix prototype.
10456
10457 2005-01-21 Richard M. Stallman <rms@gnu.org>
10458
10459 * fileio.c (Fcopy_file): Doc fix.
10460
10461 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10462
10463 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
10464 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
10465 start of function for older compilers.
10466
10467 2005-01-20 Richard M. Stallman <rms@gnu.org>
10468
10469 * editfns.c (Fmessage): If arg is "", return "" (as before).
10470
10471 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
10472
10473 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
10474 variable.
10475
10476 2005-01-20 Steven Tamm <steventamm@mac.com>
10477
10478 * editfns.c (Voperating_system_release): Add.
10479 (init_editfns): Assign new variable operating-system-release
10480 based on call to uname if available.
10481 (get_operating_system_release): Add function to
10482 allow c-level access to operating system release.
10483
10484 * config.h: Regenerated.
10485
10486 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
10487 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
10488 using ptys as '7'.
10489
10490 2005-01-20 Kim F. Storm <storm@cua.dk>
10491
10492 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
10493
10494 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
10495 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
10496
10497 * macterm.c (x_draw_glyph_string_box): Likewise.
10498
10499 * w32term.c (x_draw_glyph_string_box): Likewise.
10500
10501 * indent.c (Fvertical_motion): Temporarily disable selective display.
10502
10503 2005-01-19 Kim F. Storm <storm@cua.dk>
10504
10505 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
10506 image property.
10507
10508 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
10509
10510 2005-01-18 Kim F. Storm <storm@cua.dk>
10511
10512 * xdisp.c (fast_find_position): Backtrack to find first row if
10513 charpos is inside a display overlay that spans multiple lines.
10514
10515 2005-01-18 Kenichi Handa <handa@m17n.org>
10516
10517 * coding.c (decode_coding_iso2022): Translate invalid codes if
10518 translation-table is specified.
10519
10520 2005-01-18 Kim F. Storm <storm@cua.dk>
10521
10522 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
10523 change. If handle_display_prop indicates newline is replaced by
10524 image or text, move back to start of relevant overlay or interval
10525 and continue scan from there. Simplify.
10526
10527 2005-01-17 Kim F. Storm <storm@cua.dk>
10528
10529 * dispnew.c (mode_line_string, marginal_area_string):
10530 Fix off-by-one error in search for glyph.
10531
10532 2005-01-16 Kim F. Storm <storm@cua.dk>
10533
10534 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
10535
10536 2005-01-16 Steven Tamm <steventamm@mac.com>
10537
10538 * macterm.c (mac_to_x_fontname): Remove spurious argument.
10539
10540 2005-01-16 Andreas Schwab <schwab@suse.de>
10541
10542 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
10543
10544 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10545
10546 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
10547 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
10548
10549 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10550
10551 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
10552 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
10553 New flags for readable_events.
10554 (get_filtered_input_pending, readable_filtered_events): Remove.
10555 (tracking_off): Call readable_events and get_input_pending with
10556 flag READABLE_EVENTS_DO_TIMERS_NOW.
10557 (readable_events): Move code from old readable_filtered_events here,
10558 but check new READABLE_EVENTS_* in argument flags instead of previous
10559 two boolean arguments do_timers_now and filter_events.
10560 If we are doing mouse tracking and the mouse moved, return only if
10561 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
10562 (swallow_events): Call get_input_pending with flag
10563 READABLE_EVENTS_DO_TIMERS_NOW.
10564 (get_input_pending): Move code from old get_filtered_input_pending
10565 here. Replace boolean arguments do_timers_now, filter_events with
10566 flags, and pass flags to readable_events. Document new
10567 READABLE_EVENTS_* flags.
10568 (detect_input_pending_ignore_squeezables): New function.
10569 (detect_input_pending_run_timers): Call get_input_pending with flag
10570 READABLE_EVENTS_DO_TIMERS_NOW.
10571 (Finput_pending_p): Call get_input_pending with flags
10572 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
10573
10574 * dispnew.c (update_window, update_frame_1): Replace calls to
10575 detect_input_pending with detect_input_pending_ignore_squeezables
10576 so that redisplay is not paused if the event queue contains only
10577 mouse movements.
10578
10579 * lisp.h: Declare detect_input_pending_ignore_squeezables.
10580
10581 2005-01-15 Steven Tamm <steventamm@mac.com>
10582
10583 * macterm.c (Vmac_use_core_graphics): Declare variable for
10584 mac-allow-anti-aliasing.
10585 (syms_of_macterm): DEFVAR_LISP and initialize it.
10586 (mac_draw_string_common): Use core graphics text rendering if
10587 mac-allow-anti-aliasing is enabled.
10588
10589 * macfns.c (Fx_file_dialog): Save As dialog includes only the
10590 file name in the text box.
10591
10592 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10593
10594 * macfns.c (x_set_foreground_color, x_set_background_color):
10595 Sync with xfns.c.
10596 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
10597 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
10598 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
10599
10600 2005-01-14 Kim F. Storm <storm@cua.dk>
10601
10602 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
10603
10604 2005-01-13 Richard M. Stallman <rms@gnu.org>
10605
10606 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
10607 if Voverriding_terminal_local_map is non-nil.
10608
10609 * keyboard.c (syms_of_keyboard): Doc fix.
10610
10611 2005-01-13 Kim F. Storm <storm@cua.dk>
10612
10613 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
10614 (specify 0 for FACE instead). Reorder arg list. Doc fix.
10615
10616 2005-01-12 Richard M. Stallman <rms@gnu.org>
10617
10618 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
10619 face property for characters that don't specify one.
10620
10621 * fns.c (Frequire): Record in load-history unconditionally.
10622
10623 2005-01-10 Kim F. Storm <storm@cua.dk>
10624
10625 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
10626
10627 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
10628 Callers changed.
10629 Add support to merge with lisp face id too (if face_name is t).
10630
10631 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10632 Don't lookup lface_id from display table glyphs here; instead use
10633 merge_faces to merge the lisp face id into current face.
10634
10635 2005-01-09 Kim F. Storm <storm@cua.dk>
10636
10637 * dispextern.h (struct it): New member dpvec_face_id.
10638 (merge_into_realized_face): Add prototype.
10639
10640 * xfaces.c (merge_into_realized_face): New function. Used to
10641 merge escape-glyph face or face from display table into current face.
10642
10643 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
10644 (syms_of_xdisp): DEFVAR_LISP it.
10645 (escape_glyph_face): Remove var.
10646 (redisplay_window): Don't initialize it.
10647 (setup_for_ellipsis, get_next_display_element):
10648 Set it->dpvec_face_id to -1.
10649 (get_next_display_element): Test Vshow_nonbreak_escape.
10650 Do not setup escape_glyph_face.
10651 Properly merge escape-glyph face or face from display table with
10652 current face for escape and control characters.
10653 Set it->dpvec_face_id to relevant face id instead of adding it to each
10654 element of display vector.
10655 (next_element_from_display_vector): If it->dpvec_face_id is set,
10656 use that instead of lface_id from glyph itself.
10657
10658 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10659
10660 * xterm.h (struct x_output): New member, toolbar_detached.
10661
10662 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
10663 38.
10664 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
10665 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
10666 (xg_create_tool_bar): Initialize toolbar_detached.
10667 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
10668 toolbar_detached is zero.
10669
10670 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10671
10672 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
10673 gtk_menu_popup if not for_click, so callbacks for the menu are called.
10674
10675 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
10676 (xg_tool_bar_callback, xg_tool_bar_help_callback)
10677 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
10678
10679 * xselect.c (x_get_foreign_selection, x_fill_property_data)
10680 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
10681 XFLOAT_DATA to get extract number from Lisp object.
10682
10683 2005-01-07 Kim F. Storm <storm@cua.dk>
10684
10685 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
10686 Set stop_charpos to current charpos instead of 0.
10687
10688 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
10689
10690 * xdisp.c (Fformat_mode_line): First arg now required.
10691
10692 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10693
10694 * macterm.c (XLoadQueryFont): Correctly handle 0 size
10695 font widths that are returned from some Japanese fonts.
10696
10697 2005-01-06 Kim F. Storm <storm@cua.dk>
10698
10699 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
10700 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
10701 (destroy_fringe_bitmap): Set fringe_faces element to nil.
10702 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
10703 fringe_faces array and init elements to nil.
10704 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
10705 non-persistent face id.
10706 (mark_fringe_data): New function for GC.
10707
10708 * alloc.c (mark_fringe_data): Declare extern.
10709 (Fgarbage_collect): Call mark_fringe_data.
10710
10711 * alloc.c (overrun_check_free): Invalidate freed memory if
10712 XMALLOC_CLEAR_FREE_MEMORY is defined.
10713
10714 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10715
10716 * macfns.c: Include sys/param.h.
10717 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
10718 and function.
10719 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
10720 of filename string. Set event callback function when creating
10721 dialog boxes. Add code conversions for filenames. Don't dispose
10722 of apple event descriptor record if failed to create it.
10723
10724 * macterm.c: Include sys/param.h.
10725 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
10726 kEventWindowUpdate.
10727 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
10728 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
10729 of FSSpec from apple event descriptor record.
10730 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
10731 size of filename string.
10732 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
10733 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
10734 file dialog is in action.
10735 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
10736 Reject only when there are no filename items. Set background color
10737 before (un)highlighting the window below the dragged items.
10738 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
10739
10740 2005-01-05 Romain Francoise <romain@orebokech.com>
10741
10742 * term.c (encode_terminal_code): Fix buffer size computation.
10743
10744 2005-01-04 Richard M. Stallman <rms@gnu.org>
10745
10746 * xdisp.c (Fformat_mode_line): Doc fix.
10747
10748 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10749
10750 * alloc.c (refill_memory_reserve): Move.
10751 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
10752 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
10753
10754 2005-01-03 Richard M. Stallman <rms@gnu.org>
10755
10756 * window.c (window_scroll_pixel_based): Don't correct preserve_y
10757 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
10758
10759 2005-01-03 Jason Rumney <jasonr@gnu.org>
10760
10761 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
10762 fontp->space_width to FONT_WIDTH so they are valid.
10763
10764 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
10765 average width. Set fontp->average_width and fontp->space_width to
10766 their appropriate values.
10767
10768 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10769 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
10770 fontp->space_width.
10771
10772 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10773
10774 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
10775 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
10776 metrics for max and min bounds.
10777 (x_load_font): Correctly calculate average font width metrics.
10778
10779 2005-01-02 Richard M. Stallman <rms@gnu.org>
10780
10781 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
10782
10783 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10784
10785 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
10786
10787 2004-12-31 Richard M. Stallman <rms@gnu.org>
10788
10789 * xdisp.c (setup_for_ellipsis, get_next_display_element):
10790 Set it->ellipsis_p to 1 or 0.
10791 (display_line): Record whether row ends in mid-ellipsis.
10792 (set_cursor_from_row): If ends in ellipsis, find start of it.
10793 (cursor_row_p): If PT's at the end of the ellipsis the row
10794 ends within, don't display cursor on this row.
10795
10796 * dispextern.h (struct it): New element ellipsis_p.
10797 (struct glyph_row): New element ends_in_ellipsis_p.
10798
10799 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
10800 position if we're reading from something other than the buffer.
10801
10802 * window.c (window_scroll_pixel_based): Only look at
10803 Vscroll_preserve_screen_position if the old PT can't be kept.
10804 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10805
10806 2004-12-30 Kim F. Storm <storm@cua.dk>
10807
10808 * xdisp.c (get_line_height_property): New function extracted from
10809 original calc_line_height_property.
10810 (calc_line_height_property): Rework. Handle t and (nil . ratio).
10811 (x_produce_glyphs): Use them to handle line-height and
10812 line-spacing according to new height spec.
10813 (Qtotal): Remove.
10814 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
10815
10816 2004-12-30 Kenichi Handa <handa@m17n.org>
10817
10818 * fileio.c (Finsert_file_contents): Don't use
10819 current_buffer->buffer_file_coding_system even if REPLACE is
10820 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
10821
10822 * fontset.h (struct font_info): New members space_width and
10823 average_width.
10824
10825 * frame.h (struct frame): New member space_width.
10826 (FRAME_SPACE_WIDTH): New macro.
10827
10828 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
10829
10830 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10831 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
10832 fontp->space_width.
10833 (x_load_font): Calculate fontp->space_width and fontp->average_width.
10834 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
10835
10836 * xdisp.c (x_produce_glyphs): Calculate tab width by
10837 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
10838
10839 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
10840
10841 * macterm.c (SelectionRange): Add Xcode position apple event struct.
10842 (do_ae_open_documents): Handle Xcode-style file position open events.
10843
10844 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
10845
10846 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
10847
10848 2004-12-29 Richard M. Stallman <rms@gnu.org>
10849
10850 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
10851
10852 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10853
10854 * macfns.c (install_window_handler): Modify extern to return OSErr
10855 value.
10856 (mac_window): Handle return value of install_window_handler.
10857
10858 * macterm.c (reflect_byte): Remove function.
10859 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
10860 Lookup table instead.
10861 (mac_do_font_lists): Simplify calculation of the longest
10862 nonspecial string.
10863 (init_mac_drag_n_drop): Remove function and declaration.
10864 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
10865 init_mac_drag_n_drop.
10866 (mac_do_track_drag): New function and declaration.
10867 (install_window_handler): Return OSErr value.
10868 (install_window_handler) [TARGET_API_MAC_CARBON]:
10869 Register handlers for tracking/receiving drag-and-drop items.
10870 (do_ae_open_documents): Generate unibyte strings for filenames.
10871 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
10872 Reject only non-filename items. Set event modifiers, and return value.
10873
10874 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
10875
10876 * coding.c (decode_coding): Fix previous change.
10877
10878 2004-12-28 Richard M. Stallman <rms@gnu.org>
10879
10880 * xdisp.c (back_to_previous_visible_line_start):
10881 Don't call handle_display_prop.
10882
10883 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
10884
10885 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
10886 (decode_coding_emacs_mule, encode_coding_emacs_mule)
10887 (decode_coding_iso2022, encode_designation_at_bol)
10888 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
10889 (decode_coding): Constify arguments and local vars.
10890
10891 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10892
10893 * xmenu.c (popup_get_selection): Only pop down dialogs
10894 on C-g and Escape.
10895 (popup_get_selection): Remove parameter down_on_keypress.
10896 (create_and_show_popup_menu, create_and_show_dialog):
10897 Remove parameter down_on_keypress to popup_get_selection.
10898
10899 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10900
10901 * dispextern.h: Change HAVE_CARBON to MAC_OS.
10902 (struct glyph_string): Likewise.
10903
10904 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
10905 mac_initialize.
10906
10907 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
10908 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
10909
10910 * fns.c (vector): Change MAC_OSX to MAC_OS.
10911
10912 * frame.c (x_set_frame_parameters, x_report_frame_params)
10913 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
10914 (x_set_border_width, Vdefault_frame_scroll_bars):
10915 Change HAVE_CARBON to MAC_OS.
10916
10917 * image.c [MAC_OS]: Include sys/stat.h.
10918 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
10919 QuickTimeComponents.h.
10920
10921 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
10922 [!MAC_OSX] (select): Use mac_wait_next_event.
10923 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
10924 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
10925 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10926 (mac_clear_font_name_table): Add extern.
10927 (Fmac_clear_font_name_table): New defun.
10928 (syms_of_mac): Defsubr it.
10929 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
10930 [MAC_OSX] (select_and_poll_event): New function.
10931 [MAC_OSX] (sys_select): Use it.
10932 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
10933 [MAC_OSX && SELECT_USE_CFSOCKET]
10934 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
10935 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
10936 RunLoop for simultaneously monitoring two kinds of inputs, window
10937 events and process outputs, without periodically polling.
10938
10939 * macfns.c (mac_initialized): Remove extern.
10940 (stricmp): Put in #if 0. All callers changed to use xstricmp in
10941 xfaces.c.
10942 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
10943 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
10944 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
10945 (mac_get_rdb_resource): New function (from w32reg.c).
10946 (x_get_string_resource): Use it.
10947 (install_window_handler): Add extern.
10948 (mac_window): New function.
10949 (Fx_create_frame): Use it instead of make_mac_frame.
10950 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
10951 (Fx_open_connection, Fx_close_connection): New defuns.
10952 (syms_of_macfns): Defsubr them.
10953 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
10954 Add kWindowNoUpdatesAttribute to the window attribute.
10955 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
10956 (x_create_tip_frame): Don't call ShowWindow.
10957 (Fx_show_tip): Call ShowWindow.
10958 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
10959 TARGET_API_MAC_CARBON'.
10960 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
10961 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
10962
10963 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
10964 (Window): Typedef to WindowPtr and move outside `#if
10965 TARGET_API_MAC_CARBON'.
10966 (XSizeHints): New struct.
10967
10968 * macterm.c (x_update_begin, x_update_end)
10969 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
10970 frame.
10971 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10972 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
10973 (construct_mouse_click): Put in #if 0.
10974 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
10975 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
10976 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10977 (activate_scroll_bars, deactivate_scroll_bars)
10978 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
10979 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
10980 if the position is neither user-specified nor program-specified.
10981 (x_free_frame_resources): Free size_hints.
10982 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
10983 (mac_clear_font_name_table): New function.
10984 (mac_do_list_fonts): Initialize font_name_table if needed.
10985 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
10986 around mac_do_list_fonts.
10987 (mac_unload_font): New function.
10988 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
10989 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
10990 and definitions with #if TARGET_API_MAC_CARBON.
10991 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
10992 (install_window_handler): Add decl.
10993 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
10994 window. Use UpdateControls. Get the rectangle that should be
10995 updated and restrict the target of expose_frame to it.
10996 (do_grow_window): Set minimum height/width according to size_hints.
10997 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
10998 (do_zoom_window): Don't use x_set_window_size.
10999 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
11000 (install_window_handler): New function.
11001 [!USE_CARBON_EVENTS] (mouse_region): New variable.
11002 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
11003 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
11004 GetEventDispatcherTarget inside BLOCK_INPUT.
11005 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
11006 Update mouse_region when mouse is moved.
11007 (make_mac_frame): Remove.
11008 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
11009 Initialize mouse pointer shapes. Change values of f->left_pos and
11010 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
11011 Don't call ShowWindow.
11012 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
11013 Vinvocation_name and Vsystem_name.
11014 (mac_make_rdb): New function (from w32term.c).
11015 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
11016 already been opened. Don't pass argument to
11017 mac_initialize_display_info. Don't set dpyinfo->height/width.
11018 Add entries to x_display_list and x_display_name_list.
11019 (x_delete_display): New function.
11020 (mac_initialize): Don't call mac_initialize_display_info.
11021 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
11022
11023 * macterm.h (check_mac): Add extern.
11024 (struct mac_output): New member size_hints.
11025 (FRAME_SIZE_HINTS): New macro.
11026 (mac_unload_font): Add extern.
11027
11028 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
11029
11030 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
11031
11032 2004-12-27 Richard M. Stallman <rms@gnu.org>
11033
11034 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
11035 (syms_of_buffer): Don't defsubr it.
11036
11037 * process.c (list_processes_1): Set undo_list instead
11038 of calling Fbuffer_disable_undo.
11039
11040 * xdisp.c (single_display_spec_string_p): Rename from
11041 single_display_prop_string_p.
11042 (single_display_spec_intangible_p): Rename from
11043 single_display_prop_intangible_p.
11044 (handle_single_display_spec): Rename from handle_single_display_prop.
11045 Rewritten to be easier to understand.
11046
11047 Change in load-history format. Functions now get (defun . NAME),
11048 and variables get just NAME.
11049
11050 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11051
11052 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11053 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
11054 (Qdefvar): Var deleted.
11055 (syms_of_eval): Don't initialze it.
11056
11057 * lread.c (syms_of_lread) <load-history>: Doc fix.
11058
11059 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11060
11061 * xmenu.c (popup_get_selection): Pop down on C-g.
11062 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
11063 pops down menu on C-g.
11064 (xdialog_show): If dialog popped down and no button in the dialog was
11065 pushed, call Fsignal to quit.
11066 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
11067 Fsignal to quit.
11068
11069 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
11070
11071 * gtkutil.c (xg_initialize): Install bindings for C-g so that
11072 dialogs and menus pop down.
11073
11074 2004-12-27 Kenichi Handa <handa@m17n.org>
11075
11076 * coding.c (code_convert_region): Fix calculation of `ratio'.
11077
11078 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11079
11080 * gtkutil.c (update_frame_tool_bar): Make the value of
11081 tool-bar-button-margin control margins of images in tool bar.
11082
11083 * alloc.c (check_depth): New variable.
11084 (overrun_check_malloc, overrun_check_realloc): Only add
11085 overhead and write check pattern if check_depth is 1 (to handle
11086 recursive calls). Increase/decrease check_depth in entry/exit.
11087 (overrun_check_free): Only check for overhead if check_depth is 1.
11088 Increase/decrease check_depth in entry/exit.
11089
11090 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11091
11092 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
11093 before touching input_available_clear_time, to avoid accessing it
11094 from multiple threads.
11095
11096 2004-12-23 Jason Rumney <jasonr@gnu.org>
11097
11098 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
11099 of JPEG library.
11100
11101 2004-12-22 Richard M. Stallman <rms@gnu.org>
11102
11103 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
11104
11105 * lisp.h (Vundo_outer_limit): Fix decl.
11106
11107 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
11108 Uses changed.
11109 (syms_of_undo): Initialize appropriately.
11110 (truncate_undo_list): If it's nil, there's no limit.
11111
11112 2004-12-22 Kenichi Handa <handa@m17n.org>
11113
11114 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
11115
11116 2004-12-21 Richard M. Stallman <rms@gnu.org>
11117
11118 * eval.c (unwind_to_catch): Clear immediate_quit.
11119
11120 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
11121 specially as `\ ' and `\-'.
11122
11123 * keyboard.c (kbd_buffer_store_event_hold):
11124 In the code for while-no-input, handle immediate_quit.
11125
11126 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
11127 Call that at the very start.
11128 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
11129 (syms_of_alloc): Don't define undo-limit,
11130 undo-strong-limit and undo-outer-limit here.
11131
11132 * undo.c (truncate_undo_list): Return void.
11133 Take just one argument, the buffer.
11134 Make it current, and inhibit recursive GC.
11135 Access and update the undo list directly; return void.
11136 Refer to the undo...limit variables directly.
11137 Test undo_outer_limit only after counting the whole current command.
11138 When it's exceeded, call the function in undo-outer-limit-function.
11139 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
11140 (Vundo_outer_limit_function): New variable.
11141 (syms_of_undo): Define undo-limit, undo-strong-limit
11142 and undo-outer-limit here, and undo-outer-limit-function.
11143 Doc fixes.
11144
11145 * lisp.h (truncate_undo_list): Update decl.
11146
11147 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
11148
11149 * fileio.c (Fread_file_name): Delete duplicates in
11150 file-name-history when history_delete_duplicates is true.
11151
11152 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11153
11154 * macterm.c (mac_do_list_fonts): Fix memory leak
11155
11156 2004-12-20 Richard M. Stallman <rms@gnu.org>
11157
11158 * regex.c (re_match_2_internal) <symend, wordend>:
11159 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
11160
11161 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11162
11163 * macterm.c (endif, x_font_name_to_mac_font_name):
11164 Use maccentraleurroman instead of maccentraleuropean
11165 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
11166 quickly finding a specific font without needing regexps.
11167
11168 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11169
11170 * syssignal.h: Declare main_thread.
11171 (SIGNAL_THREAD_CHECK): New macro.
11172
11173 * keyboard.c (input_available_signal): Move thread checking code
11174 to macro SIGNAL_THREAD_CHECK and call that macro.
11175 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
11176
11177 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
11178
11179 * emacs.c: Define main_thread.
11180 (main): Initialize main_thread.
11181 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
11182 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
11183
11184 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
11185
11186 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
11187
11188 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
11189
11190 * process.c (send_process_trap, sigchld_handler):
11191 Call SIGNAL_THREAD_CHECK.
11192
11193 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
11194
11195 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
11196
11197 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
11198 returning when xg_ignore_gtk_scrollbar is true.
11199
11200 2004-12-14 Kim F. Storm <storm@cua.dk>
11201
11202 * keyboard.c (read_char): Save and restore echo_string when
11203 handling input method.
11204
11205 2004-12-13 Richard M. Stallman <rms@gnu.org>
11206
11207 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
11208
11209 * keyboard.c (Vthrow_on_input): New variable.
11210 (syms_of_keyboard): Defvar and initialize it.
11211 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
11212
11213 * lisp.h (QUIT): Check for Vthrow_on_input.
11214 (Vthrow_on_input): Declare it.
11215
11216 2004-12-13 Kim F. Storm <storm@cua.dk>
11217
11218 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
11219 vector.
11220
11221 2004-12-12 Richard M. Stallman <rms@gnu.org>
11222
11223 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
11224
11225 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
11226 (Ftry_completion): Really use outer `zero'; eliminate inner one.
11227
11228 2004-12-12 Kenichi Handa <handa@m17n.org>
11229
11230 * term.c (encode_terminal_code): Fix previous change.
11231
11232 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
11233
11234 * keyboard.c (handle_async_input): Remove pthread mutex handling.
11235 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
11236
11237 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
11238 in macro arguments.
11239
11240 * minibuf.c (Ftry_completion, Fall_completions): Don't use
11241 XFASTINT blindly.
11242
11243 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
11244
11245 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11246
11247 * w32term.c (x_calc_absolute_position): Remove calculation of
11248 difference between inner and outer window. Don't subtract difference
11249 for left and top calculations.
11250
11251 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
11252 for left and top calculations. Remove call to x_real_positions.
11253 [Bug report by Drew Adams in November.]
11254 (x_check_expected_move): Do not set change_gravity to 1 when calling
11255 x_set_offset.
11256
11257 2004-12-08 Richard M. Stallman <rms@gnu.org>
11258
11259 * xdisp.c (get_next_display_element): Use `escape-glyph' for
11260 control chars and escaped octal codes.
11261 (Qescape_glyph): New variable.
11262 (syms_of_xdisp): Initialize it.
11263 (escape_glyph_face): New variable.
11264 (redisplay_window): Initialize it.
11265
11266 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
11267
11268 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
11269 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
11270
11271 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11272
11273 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
11274 reset_malloc_hooks.
11275
11276 * keyboard.c (handle_async_input, input_available_signal):
11277 Add ! defined (SYSTEM_MALLOC) around thread code.
11278
11279 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
11280
11281 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
11282
11283 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
11284
11285 * config.in: Regenerate.
11286
11287 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11288
11289 * xmenu.c (Fx_popup_menu): Correct documentation about position.
11290 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
11291 if not given by a mouse click to correspond with x-popup-menu
11292 documentation.
11293
11294 * config.in: Regenerate.
11295
11296 * gtkutil.c: Include signal.h and syssignal.h.
11297 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
11298
11299 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
11300 new variables main_thread and alloc_mutex,
11301 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
11302 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
11303 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
11304 as (UN)BLOCK_INPUT.
11305 (emacs_blocked_free, emacs_blocked_malloc)
11306 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
11307 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
11308 (reset_malloc_hooks): New function.
11309
11310 * lisp.h: Declare reset_malloc_hooks.
11311
11312 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
11313
11314 * keyboard.c: Conditionally include pthread.h.
11315 (handle_async_input, input_available_signalt): If not in the main
11316 thread, block signal, send signal to main thread and return.
11317
11318 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
11319 Set current folder in file chooser if default_filename is a directory.
11320
11321 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
11322
11323 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
11324 Remove redundant correctness checks.
11325 (regex_compile): Fix up error codes for \{..\} expressions.
11326
11327 2004-12-05 Richard M. Stallman <rms@gnu.org>
11328
11329 * regex.c (regex_compile): Fix end-of-pattern case for space.
11330
11331 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11332
11333 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
11334 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
11335 crashes with invalid characters.
11336 * macmenu.c (add_menu_item): Use it.
11337 * image.c (image_load_quartz2d): Likewise.
11338 * macfns.c (x_set_name, x_set_title): Likewise.
11339 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
11340 creating them each time for labels.
11341
11342 2004-12-02 Richard M. Stallman <rms@gnu.org>
11343
11344 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
11345 don't use it here.
11346
11347 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
11348 (interactive_p): Skip Scalled_interactively_p frames
11349 like Sinteractive_p frames.
11350 (unwind_to_catch): Clear handling_signal.
11351
11352 * data.c (Fmake_variable_buffer_local): Doc fix.
11353 (Fmake_local_variable): Doc fix.
11354
11355 * insdel.c (insert_from_string_before_markers)
11356 (insert_from_string): Don't modify buffer on empty insertion.
11357
11358 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
11359
11360 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11361
11362 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
11363 menu text as UTF8 fails.
11364
11365 2004-12-01 Kim F. Storm <storm@cua.dk>
11366
11367 * alloc.c: Add commentary for last change.
11368 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
11369 sizeof(size_t) != 4.
11370 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
11371 Use them. Also clear header and trailer of freed memory.
11372 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
11373 (string_overrun_cookie): Rename from string_overrun_pattern.
11374 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
11375
11376 2004-12-01 Andreas Schwab <schwab@suse.de>
11377
11378 * lisp.h: Declare string_to_multibyte.
11379
11380 2004-12-01 Kenichi Handa <handa@m17n.org>
11381
11382 * w32console.c (w32con_write_glyphs): Decide coding here.
11383 Adjusted for the change of encode_terminal_code.
11384
11385 * term.c (encode_terminal_code): Don't make it "static".
11386
11387 2004-11-30 Kenichi Handa <handa@m17n.org>
11388
11389 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
11390 (encode_terminal_code): Argument changed. Encode all
11391 characters at once, and return a pointer to the result of encoding.
11392 (write_glyphs): Decide coding here. Adjusted for the above change.
11393 (insert_glyphs): Likewise.
11394 (term_init): Initialize encode_terminal_bufsize to 0.
11395
11396 * coding.c (Vcode_conversion_workbuf_name): New variable.
11397 (syms_of_coding): Initialize and staticpro it.
11398 (set_conversion_work_buffer): New function.
11399 (run_pre_post_conversion_on_str): Use it.
11400 (run_pre_write_conversin_on_c_str): New function.
11401
11402 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
11403
11404 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11405
11406 * keyboard.c: Don't undef SIGIO
11407 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
11408 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
11409 (macfns.o): Don't depend on ccl.h.
11410 * macfns.c (mac_frame_parm_handlers): Set handlers for
11411 Qleft_fringe and Qright_fringe.
11412 * macterm.c (mac_fill_rectangle_to_pixmap)
11413 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
11414 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
11415 Put in #if 0.
11416 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
11417 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
11418 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
11419 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11420 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
11421 XDrawImageString. Always draw background and foreground separately.
11422 (x_draw_image_foreground): Use clipping instead of computing the
11423 intersection rectangle.
11424 (x_draw_image_glyph_string): Don't draw an image with mask to a
11425 pixmap.
11426 (x_redisplay_interface): Set flush_display_optional member to 0.
11427 (XTread_socket): Correctly reset the TEConverter
11428 object.
11429
11430 2004-11-30 Kim F. Storm <storm@cua.dk>
11431
11432 * lisp.h: New defines to enable buffer overrun checking.
11433 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
11434 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
11435
11436 * alloc.c: Add more checks for buffer overruns.
11437 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
11438 xmalloc_overrun_check_trailer, overrun_check_malloc)
11439 overrun_check_realloc, overrun_check_free): Add.
11440 (GC_STRING_EXTRA, string_overrun_pattern): Add.
11441 (check_sblock, allocate_string_data, compact_small_strings):
11442 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
11443 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
11444 (check_string_free_list): Add.
11445 (allocate_string, sweep_strings): Call check_string_free_list.
11446
11447 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
11448 XMALLOC_OVERRUN_CHECK to avoid crash during load.
11449
11450 2004-11-29 Kim F. Storm <storm@cua.dk>
11451
11452 * fns.c (concat): Use SAFE_ALLOCA.
11453
11454 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
11455
11456 * sysdep.c (emacs_write): Don't use QUIT.
11457
11458 2004-11-29 Kenichi Handa <handa@m17n.org>
11459
11460 * buffer.c (init_buffer): Set current_buffer->directory to a
11461 multibyte string made by string_to_multibyte.
11462
11463 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
11464
11465 2004-11-27 Andreas Schwab <schwab@suse.de>
11466
11467 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
11468
11469 * s/gnu-linux.h: Enable no-op gcpros on ia64.
11470 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
11471
11472 * filelock.c (lock_file_1): Call get_boot_time early.
11473 Increase buffer size.
11474
11475 2004-11-27 Eli Zaretskii <eliz@gnu.org>
11476
11477 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
11478 is not defined.
11479
11480 2004-11-27 Kim F. Storm <storm@cua.dk>
11481
11482 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
11483 marker out of doc string.
11484
11485 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
11486
11487 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
11488 which was not mentioned in the log.
11489
11490 2004-11-26 Kim F. Storm <storm@cua.dk>
11491
11492 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
11493 angle bitmaps at top/bottom line.
11494
11495 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
11496 set it when it->method is set to next_element_from_display_vector.
11497 (setup_for_ellipsis): Add LEN argument. Callers changed.
11498 Set it->saved_face_id.
11499 (get_next_display_element): Use loop instead of recursion.
11500 Set it->saved_face_id. Combine duplicate code for ctr chars.
11501 (next_element_from_display_vector): Do not set it->saved_face_id.
11502 (next_element_from_ellipsis): Use setup_for_ellipsis.
11503
11504 2004-11-26 Eli Zaretskii <eliz@gnu.org>
11505
11506 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
11507 prevent compiler warnings.
11508
11509 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
11510
11511 * keyboard.c (command_loop_1): Print a message describing the key
11512 the user just pressed when this key has no binding.
11513
11514 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
11515 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
11516
11517 * lread.c (readchar): Check QUIT when `getc' is interrupted.
11518
11519 2004-11-24 Richard M. Stallman <rms@gnu.org>
11520
11521 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
11522
11523 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
11524
11525 2004-11-24 Kim F. Storm <storm@cua.dk>
11526
11527 * xdisp.c (move_it_in_display_line_to, display_line):
11528 Restore saved_face_id also when truncate-lines or hscrolled.
11529
11530 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11531
11532 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
11533 x-use-old-gtk-file-dialog.
11534
11535 * xfns.c: Define x_use_old_gtk_file_dialog.
11536 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
11537 outside ifdef USE_GTK.
11538
11539 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
11540
11541 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
11542 Don't use XFASTINT blindly.
11543
11544 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
11545
11546 * indent.c (skip_invisible): Avoid non-idempotent side-effects
11547 in macro arguments.
11548
11549 * keymap.c (Flookup_key): Check INTEGERP before XINT.
11550
11551 * lread.c (oblookup): Don't use XFASTINT blindly.
11552
11553 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
11554 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
11555
11556 2004-11-23 Kim F. Storm <storm@cua.dk>
11557
11558 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
11559 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
11560
11561 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
11562 signal_p is zero and face name is unknown.
11563 (Fx_list_fonts): Don't signal error in lookup_named_face.
11564 (Fface_font): Signal error in lookup_named_face.
11565 (ascii_face_of_lisp_face): Likewise.
11566
11567 * dispextern.h (lookup_named_face): Fix prototype.
11568
11569 * xdisp.c (handle_single_display_prop): Don't signal error in
11570 lookup_named_face for unknown fringe face name.
11571 (highlight_trailing_whitespace): Don't signal error in
11572 lookup_named_face if trailing-whitespace face unknown.
11573 (calc_line_height_property): Don't signal error in
11574 lookup_named_face if specified face name is unknown.
11575
11576 * fringe.c (update_window_fringes): Show top row indicator if
11577 window has header-line. Don't show arrow at bob and eob
11578 if the boundary indicators are not used.
11579 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
11580
11581 * window.c (set_window_buffer): Clear display_error_modiff.
11582
11583 2004-11-22 Kim F. Storm <storm@cua.dk>
11584
11585 * fringe.c (update_window_fringes): Provide sensible fall-back
11586 value for non-nil indicate-buffer-boundaries setting.
11587
11588 2004-11-22 Markus Rost <rost@ias.edu>
11589
11590 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
11591
11592 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11593
11594 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
11595
11596 2004-11-21 Kim F. Storm <storm@cua.dk>
11597
11598 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
11599
11600 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
11601 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11602
11603 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
11604 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11605
11606 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
11607 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
11608
11609 * xdisp.c (move_it_in_display_line_to, display_line):
11610 Restore saved_face_id if overflow-newline-into-fringe is enabled and
11611 line is continued before or in middle of element from display vector.
11612
11613 * indent.c (Fvertical_motion): Fix last change. Use another
11614 method to detect if iterator moved too far ahead after reseat.
11615
11616 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
11617 expand matrix width for overflow in zero-width area.
11618 (append_glyph, append_composite_glyph, produce_image_glyph)
11619 (append_stretch_glyph): Use it to avoid loop in redisplay.
11620 (note_mode_line_or_margin_highlight): Don't let help-echo from
11621 string override help-echo from image map.
11622
11623 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
11624
11625 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
11626 * callint.c (Fcall_interactively): Ditto.
11627
11628 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
11629
11630 * minibuf.c (Fminibuffer_complete_and_exit):
11631 Fixup the case of the completed value, for case-indep completion.
11632
11633 2004-11-20 Richard M. Stallman <rms@gnu.org>
11634
11635 * lisp.h (Fread_from_minibuffer): Add arg in decl.
11636
11637 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
11638 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
11639
11640 * search.c (Vsearch_spaces_regexp):
11641 Rename from Vsearch_whitespace_regexp. All uses changed.
11642
11643 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
11644
11645 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
11646
11647 2004-11-19 Richard M. Stallman <rms@gnu.org>
11648
11649 * search.c (Vsearch_whitespace_regexp): New variable.
11650 (syms_of_search): Defvar it.
11651 (compile_pattern_1): Call re_set_whitespace_regexp with it.
11652 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
11653 is non-nil.
11654 (struct regexp_cache): New element whitespace_regexp.
11655 (syms_of_search): Initialize whitespace_regexp elements.
11656 (compile_pattern): Compare whitespace_regexp elements.
11657 (compile_pattern_1): Set whitespace_regexp elements.
11658
11659 * regex.c (regex_compile): Substitute whitespace_regexp
11660 for spaces, if it is nonzero.
11661 (whitespace_regexp): New variable.
11662 (re_set_whitespace_regexp): New function.
11663
11664 2004-11-19 Kim F. Storm <storm@cua.dk>
11665
11666 * indent.c (Fvertical_motion): Fix last change.
11667
11668 2004-11-18 Kim F. Storm <storm@cua.dk>
11669
11670 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
11671 Instead, move back again if reseating moves too far ahead.
11672
11673 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
11674
11675 * xdisp.c (message3): Call clear_message.
11676
11677 2004-11-17 Kim F. Storm <storm@cua.dk>
11678
11679 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
11680
11681 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11682
11683 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
11684
11685 * xmenu.c (x_menu_in_use): Remove.
11686 (x_menu_set_in_use): Also set popup_activated_flag.
11687
11688 * xfns.c (Fx_file_dialog): Call popup_activated instead of
11689 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
11690
11691 * xterm.h (x_menu_in_use): Remove.
11692
11693 2004-11-16 Richard M. Stallman <rms@gnu.org>
11694
11695 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
11696 Use map-keymap-internal to implement that.
11697
11698 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
11699
11700 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11701
11702 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
11703 a window before using XWINDOW.
11704
11705 * window.c (make_window, Fselect_window, make_dummy_parent)
11706 (save_window_save):
11707 * frame.c (make_frame):
11708 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
11709
11710 * lisp.h (NILP): Use EQ rather than XFASTINT.
11711
11712 2004-11-16 Kim F. Storm <storm@cua.dk>
11713
11714 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
11715
11716 * indent.c (Fvertical_motion): Fix last change. Only reseat when
11717 moving backwards.
11718
11719 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
11720
11721 * dispextern.h: Extern reseat_at_previous_visible_line_start.
11722
11723 2004-11-16 Kenichi Handa <handa@m17n.org>
11724
11725 * xdisp.c (display_mode_element): Fix previous change (calculate
11726 end position of substring to display correctly).
11727
11728 2004-11-16 Kim F. Storm <storm@cua.dk>
11729
11730 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
11731 Reported by Andrew M. Scott.
11732
11733 2004-11-15 Kim F. Storm <storm@cua.dk>
11734
11735 * fns.c (Fsafe_plist_get): New defun.
11736 (syms_of_fns): Defsubr it.
11737
11738 * lisp.h (Fsafe_plist_get): Add EXFUN.
11739
11740 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
11741 Use Fsafe_plist_get.
11742 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11743 Fix image map element parsing. Use Fsafe_plist_get.
11744
11745 2004-11-15 Richard M. Stallman <rms@gnu.org>
11746
11747 * xdisp.c (get_next_display_element): Fix previous change.
11748
11749 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11750
11751 * window.c (shrink_windows): Handle special case of one window left
11752 when trying to shrink the final reminder. Grow windows if
11753 total_removed is less than total_shrink.
11754
11755 * xmenu.c (pop_down_menu): Remove global variable current_menu,
11756 extract pointer from arg with XSAVE_VALUE.
11757 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
11758 Construct arg to record_unwind_protect with make_save_value.
11759
11760 2004-11-13 Richard M. Stallman <rms@gnu.org>
11761
11762 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
11763 (get_next_display_element): Fix previous change to apply only to \n.
11764
11765 * indent.c (Fvertical_motion): Scan to PT from start of line to
11766 make iterator consistent.
11767
11768 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11769
11770 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11771
11772 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
11773
11774 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
11775 Record unwind with clean_up_file_dialog.
11776
11777 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
11778 Declare.
11779
11780 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
11781
11782 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11783
11784 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
11785 (xg_file_sel_destroy): Remove.
11786 (xg_file_response_cb, pop_down_file_dialog)
11787 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
11788 New functions.
11789 (xg_get_file_with_chooser, xg_get_file_with_selection):
11790 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
11791 Move common code to xg_get_file_name. Return widget created.
11792 (xg_get_file_name): Set name, transient for, modal and destroy
11793 with parent here. Connect response signal to xg_file_response_cb,
11794 connect delete-event to gtk_true. Record pop_down_file_dialog
11795 for unwind. Do event loop and call x_menu_wait_for_event in loop.
11796 (xg_create_widget): Make dialogs modal.
11797
11798 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
11799 Lisp_Object.
11800 (popup_get_selection): Move unwind protect ...
11801 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11802 Move destroy of widget to pop_down_menu.
11803 (popup_widget_loop): Move unwind protect ...
11804 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11805 Move destroy of widget to pop_down_menu.
11806 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
11807 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
11808 x_mouse_leave and grabbed = 0 to pop_down_menu.
11809
11810 2004-11-13 Kim F. Storm <storm@cua.dk>
11811
11812 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
11813 (syms_of_xdisp): DEFVAR_BOOL it.
11814 (make_cursor_line_fully_visible, try_cursor_movement)
11815 (try_window_id): Use it.
11816
11817 2004-11-12 Kim F. Storm <storm@cua.dk>
11818
11819 * dispextern.h (struct glyph_row): New member extra_line_spacing.
11820 (struct it): New member max_extra_line_spacing.
11821 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
11822 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
11823 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
11824 part of last line is only extra line spacing (so the text on the
11825 line is fully visible). Use helper macros.
11826 Add W arg (to use them). All callers changed.
11827 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
11828 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
11829
11830 * window.c (window_scroll_pixel_based, Frecenter):
11831 Use move_it_vertically_backward directly.
11832 (Frecenter): Fix calculation of new start pos for negative arg.
11833 Before, the new start pos was sometimes chosen too far back, so
11834 the last line became only partially visible, and thus would be
11835 either only semi-visible or automatically scrolled to the middle
11836 of the window by redisplay.
11837
11838 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
11839 (move_it_vertically_backward): Don't recure to move further back.
11840 (move_it_vertically): Remove superfluous condition.
11841 (move_it_by_lines): Clear last_height when moved 0 lines.
11842 (resize_mini_window): Use it.max_extra_line_spacing.
11843 (display_tool_bar_line): Clear row->extra_line_spacing.
11844 (try_scrolling): Use move_it_vertically_backward directly.
11845 (redisplay_window): Likewise.
11846 (compute_line_metrics): Set row->extra_line_spacing.
11847 (display_line, display_string): Likewise.
11848 (x_produce_glyphs): Update it->max_extra_line_spacing.
11849
11850 * xmenu.c (pop_down_menu): Return nil.
11851
11852 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11853
11854 * xmenu.c (x_menu_wait_for_event): New function.
11855 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
11856 to handle timers.
11857 (popup_widget_loop): Add argument do_timers.
11858 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
11859 do_timers to popup_widget_loop.
11860 (xmenu_show): Call XMenuActivateSetWaitFunction so that
11861 x_menu_wait_for_event is called by XMenuActivate.
11862 (create_and_show_popup_menu): Pass 1 for do_timers to
11863 popup_get_selection.
11864 (pop_down_menu): New function.
11865 (popup_get_selection, popup_widget_loop): Unwind protect to
11866 pop_down_menu.
11867 (popup_widget_loop): Add argument widget.
11868 (create_and_show_popup_menu, create_and_show_dialog): Pass new
11869 argument widget to popup_widget_loop.
11870
11871 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11872
11873 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
11874
11875 2004-11-09 Kim F. Storm <storm@cua.dk>
11876
11877 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
11878 Fix various comments referring to XEvents instead of input events.
11879 (x_queue_event): Fix format strings.
11880 (x_stop_queuing_selection_requests): Likewise.
11881
11882 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
11883 (pint2hrstr): Add extra braces to silence compiler.
11884
11885 * print.c (print_object): Fix format string.
11886
11887 * lread.c (read1): Fix next_char matching.
11888
11889 * lisp.h (Fdelete): Add EXFUN.
11890 (replace_range_2): Add prototype.
11891
11892 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
11893
11894 * intervals.h (NULL_INTERVAL_P): Add separate version when
11895 ENABLE_CHECKING is not defined to silence compiler.
11896 (compare_string_intervals): Add prototype.
11897
11898 * fringe.c (destroy_fringe_bitmap): Fix return type.
11899 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
11900
11901 * emacs.c (Fdump_emacs): Fix format string.
11902
11903 * doc.c: Include <ctype.h>.
11904 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
11905
11906 * data.c (store_symval_forwarding): Remove unused variables.
11907
11908 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
11909
11910 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11911
11912 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
11913 to ${OLDXMENU}.
11914
11915 2004-11-09 Kim F. Storm <storm@cua.dk>
11916
11917 * process.c (Fmake_network_process): Remove kludge for interrupted
11918 connects on BSD. If connect is interrupted, just close socket and
11919 start over rather than sleeping and retry with same socket.
11920
11921 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11922
11923 * .cvsignore: Add buildobj.lst.
11924
11925 * doc.c: New variable Vbuild_files.
11926 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
11927 file names from buildobj.lst. Only attach docstrings from files
11928 that are in Vbuild_files.
11929 (syms_of_doc): Defvar Vbuild_files.
11930
11931 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
11932 and w32*.o.
11933 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
11934 (mostlyclean): Rm buildobj.lst
11935
11936 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
11937 is linked.
11938
11939 2004-11-09 Kim F. Storm <storm@cua.dk>
11940
11941 * fringe.c (update_window_fringes): Update fringe bitmaps if
11942 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
11943 also update previous row to get rid of misc. artifacts.
11944
11945 2004-11-08 Kim F. Storm <storm@cua.dk>
11946
11947 * xdisp.c (fast_find_position): Fix start pos if header line present.
11948 (note_mouse_highlight): Clear mouse face if we move out of text area.
11949
11950 2004-11-08 Eli Zaretskii <eliz@gnu.org>
11951
11952 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
11953 Don't include <sys/time.h> explicitly.
11954 Include <stdio.h> unconditionally, not just on MacOS.
11955
11956 2004-11-08 Kenichi Handa <handa@m17n.org>
11957
11958 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
11959 don't pay attention to '\' before '*'.
11960 (fontset_pattern_regexp): Change the meaning of the second arg.
11961 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
11962 (check_fontset_name): Try NAME as literal at first, and if it
11963 failes, try NAME as pattern.
11964
11965 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11966
11967 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
11968
11969 2004-11-07 Andreas Schwab <schwab@suse.de>
11970
11971 * lisp.h (Fmsdos_downcase_filename): Declare.
11972 * dired.c (Fmsdos_downcase_filename): Don't declare here.
11973 * fileio.c: Likewise.
11974
11975 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11976
11977 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
11978 comparisons with integers instead of Lisp_Object address.
11979 (Fmsdos_set_keyboard): Declare argument allkeys.
11980
11981 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
11982
11983 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
11984 int/Lisp_Object mixup.
11985
11986 * fileio.c: Ditto.
11987
11988 2004-11-06 Steven Tamm <steventamm@mac.com>
11989
11990 * editfns.c: Need to include sys/time.h before resource.h on darwin.
11991
11992 2004-11-06 Richard M. Stallman <rms@gnu.org>
11993
11994 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
11995
11996 * xfaces.c (merge_named_face): GCPRO the face_name in the
11997 named_merge_point struct that we make.
11998 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
11999
12000 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
12001 before deciding whether to inactivate mark.
12002
12003 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
12004
12005 * config.in: Regenerate (add HAVE_GETRUSAGE).
12006 * editfns.c (Fget_internal_run_time): New function.
12007 (syms_of_data): Defsubr it.
12008 * fns.c (sxhash): As far as possible, merge calculation of
12009 hash code for symbols and strings.
12010
12011 2004-11-06 Eli Zaretskii <eliz@gnu.org>
12012
12013 * frame.c (syms_of_frame): Fix the example in the doc string.
12014
12015 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12016
12017 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
12018
12019 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
12020 (create_and_show_dialog): Revert change from 2004-10-31.
12021
12022 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
12023
12024 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
12025
12026 2004-11-05 Kim F. Storm <storm@cua.dk>
12027
12028 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
12029
12030 * fileio.c (Ffile_modes): Doc fix.
12031 (auto_save_1): Check for Ffile_modes nil value.
12032
12033 2004-11-05 Kim F. Storm <storm@cua.dk>
12034
12035 * xselect.c (struct selection_event_queue, selection_queue)
12036 (x_queue_selection_requests, x_queue_event)
12037 (x_start_queuing_selection_requests)
12038 (x_stop_queuing_selection_requests): Add new queue for selection
12039 input events to replace previous XEvent queue in xterm.c.
12040 (queue_selection_requests_unwind): Adapt to new queue.
12041 (x_reply_selection_request): Adapt to new queue.
12042 Unexpect wait_object in case of x errors (memory leak).
12043 (x_handle_selection_request, x_handle_selection_clear): Make static.
12044 (x_handle_selection_event): New function. May queue selection events.
12045 (wait_for_property_change_unwind): Use save_value instead of cons.
12046 Clear property_change_reply_object.
12047 (wait_for_property_change): Abort if already waiting.
12048 Use save_value instead of cons for unwind data.
12049 (x_handle_property_notify): Skip events already arrived, but don't
12050 free them, as "arrived" field is checked by wait_for_property_change,
12051 and it will be freed by unwind or explicit unexpect_property_change.
12052 (x_get_foreign_selection): Add to new queue.
12053 (receive_incremental_selection): Don't unexpect wait_object when done
12054 as it has already been freed by previous wait_for_property_change.
12055
12056 * xterm.h (x_start_queuing_selection_requests)
12057 (x_stop_queuing_selection_requests, x_handle_selection_request)
12058 (x_handle_selection_clear): Remove prototypes.
12059 (x_handle_selection_event): Add prototype.
12060
12061 * xterm.c (handle_one_xevent): Don't queue X selection events
12062 here, it may be too late if we start queuing after we have already
12063 stored some selection events into the kbd buffer.
12064 (struct selection_event_queue, queue, x_queue_selection_requests)
12065 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
12066 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
12067 (x_catch_errors_unwind): Block input around final XSync.
12068
12069 * keyboard.h (kbd_buffer_unget_event): Add prototype.
12070
12071 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
12072 (kbd_buffer_unget_event): New function.
12073 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
12074 and use x_handle_selection_event.
12075 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
12076
12077 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12078
12079 * xselect.c (TRACE3): New debug macro.
12080 (x_reply_selection_request): Use it.
12081 (receive_incremental_selection): In call to TRACE0, the name of
12082 a symbol is in xname.
12083
12084 2004-11-05 Kim F. Storm <storm@cua.dk>
12085
12086 * fontset.c (fontset_pattern_regexp): Use unsigned char.
12087
12088 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12089
12090 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
12091
12092 * gtkutil.h (use_old_gtk_file_dialog): Declare.
12093
12094 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
12095 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
12096 * xfns.c (syms_of_xfns): ... to here.
12097
12098 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
12099 it doesn't start with /.
12100
12101 2004-11-04 Kenichi Handa <handa@m17n.org>
12102
12103 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
12104 treat it as a literal character.
12105
12106 2004-11-03 Kim F. Storm <storm@cua.dk>
12107
12108 * .gdbinit (ppt): New function.
12109
12110 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12111
12112 * xterm.c (x_window_to_scroll_bar): Only call
12113 xg_get_scroll_id_for_window if toolkit scroll bars are used.
12114
12115 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
12116 of save.
12117
12118 2004-11-02 Andreas Schwab <schwab@suse.de>
12119
12120 * window.c (Fscroll_right): Fix last change.
12121
12122 2004-11-02 Kim F. Storm <storm@cua.dk>
12123
12124 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
12125
12126 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12127
12128 * callproc.c (Fcall_process): Block input around vfork.
12129
12130 2004-11-02 Kim F. Storm <storm@cua.dk>
12131
12132 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
12133 (syms_of_eval): Defsubr it.
12134
12135 2004-11-02 Richard M. Stallman <rms@gnu.org>
12136
12137 * insdel.c (replace_range_2): New function.
12138
12139 * casefiddle.c (casify_region): Handle changes in byte-length
12140 using replace_range_2.
12141
12142 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
12143
12144 * xdisp.c (back_to_previous_visible_line_start):
12145 Subtract 1 from pos when checking previous newline for invisibility.
12146
12147 * window.c (window_scroll_pixel_based): Update preserve_y
12148 for header line if any.
12149 (Fscroll_left, Fscroll_right): Don't call interactive_p;
12150 use a new second argument instead.
12151
12152 * eval.c (Fcall_interactive_p): New function.
12153 (interactive_p): Don't test INTERACTIVE here.
12154 (Finteractive_p): Doc fix.
12155
12156 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
12157
12158 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12159
12160 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
12161 comparing font names.
12162
12163 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12164
12165 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
12166 Fx_file_dialog if only directories should be read.
12167
12168 * lisp.h: Fx_file_dialog takes 5 parameters.
12169
12170 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
12171 Add parameter only_dir_p.
12172 In Motif version, don't put DEFAULT_FILENAME in filter part of the
12173 dialog, just text field part. Do not add DEFAULT_FILENAME
12174 to list of files if it isn't there.
12175 In GTK version, pass only_dir_p parameter to xg_get_file_name.
12176
12177 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
12178 Check only_dir_p instead of comparing prompt to "Dired". When using
12179 a save dialog, add option kNavDontConfirmReplacement, change title
12180 to "Enter name", change text for save button to "Ok".
12181
12182 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
12183 Check only_dir_p instead of comparing prompt to "Dired".
12184
12185 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
12186 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
12187 and HAVE_GTK_FILE_SELECTION_NEW respectively.
12188 (xg_get_file_name): Add parameter only_dir_p.
12189 Call xg_get_file_with_chooser or xg_get_file_with_selection
12190 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
12191 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
12192
12193 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
12194
12195 * config.in: Rebuild (added HAVE_GTK_FILE_*).
12196
12197 2004-11-01 Kim F. Storm <storm@cua.dk>
12198
12199 * process.c (connect_wait_mask, num_pending_connects):
12200 Only declare and use them if NON_BLOCKING_CONNECT is defined.
12201 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
12202 (IF_NON_BLOCKING_CONNECT): New helper macro.
12203 (wait_reading_process_output): Only declare and use local vars
12204 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
12205
12206 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
12207
12208 * w32term.c (x_scroll_run): Delete region objects after use.
12209
12210 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12211
12212 * xmenu.c: Add prototypes for forward function declarations.
12213 (popup_get_selection): Remove parameter do_timers, remove call to
12214 timer_check.
12215 (create_and_show_popup_menu, create_and_show_dialog):
12216 Remove parameter do_timers from call to popup_get_selection.
12217
12218 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
12219 tool_bar_items and assign the result to f->tool_bar_items if
12220 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
12221 tool_bar_items to assignment of result.
12222
12223 * atimer.c (alarm_signal_handler): Do not call set_alarm if
12224 pending_atimers is non-zero.
12225
12226 2004-10-31 Kim F. Storm <storm@cua.dk>
12227
12228 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
12229
12230 2004-10-28 Will <will@glozer.net>
12231
12232 * macterm.c: Allow user to assign key modifiers to the Mac Option
12233 key via a 'mac-option-modifier' variable.
12234
12235 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12236
12237 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
12238 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
12239 (x_handle_selection_request, x_handle_selection_clear)
12240 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
12241
12242 2004-10-28 Richard M. Stallman <rms@gnu.org>
12243
12244 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12245
12246 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12247
12248 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
12249
12250 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
12251 comment-starter over a 1-char one.
12252
12253 2004-10-27 Richard M. Stallman <rms@gnu.org>
12254
12255 * xdisp.c (get_next_display_element): In mode lines,
12256 treat newline and tab like other control characters.
12257
12258 * editfns.c (Fmessage): Doc fix.
12259
12260 * indent.c (vmotion): When moving up, check the newline before.
12261 Make prevline an int, not a Lisp_Object.
12262
12263 2004-10-27 Kim F. Storm <storm@cua.dk>
12264
12265 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
12266 Only allocate info and discarded tables once.
12267
12268 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
12269 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
12270 (SAFE_FREE): Test it to determine if we need to unwind to free.
12271 Remove size arg. All users changed.
12272 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
12273
12274 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12275
12276 * gtkutil.c: Put empty line between comment and function body.
12277 (xg_destroy_widgets): Rename from remove_from_container.
12278 Just destroy all widgets in list. Argument wcont removed.
12279 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
12280 instead of remove_from_container.
12281 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
12282 (free_frame_tool_bar): Add comment.
12283
12284 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
12285 is not NULL before strcmp.
12286
12287 2004-10-26 Kim F. Storm <storm@cua.dk>
12288
12289 * callint.c (Fcall_interactively): Add 'U' code to get the
12290 up-event discarded by a previous 'k' or 'K' argument.
12291
12292 2004-10-26 David Kastrup <dak@gnu.org>
12293
12294 * buffer.c (syms_of_buffer): Fix a few typos.
12295
12296 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12297
12298 * xsmfns.c: Put empty line between comment and function body.
12299 Use two spaces before comment end.
12300
12301 2004-10-25 Kenichi Handa <handa@m17n.org>
12302
12303 * fontset.c (fontset_pattern_regexp): Optimize for the case that
12304 PATTERN is full XLFD.
12305
12306 2004-10-24 Kenichi Handa <handa@m17n.org>
12307
12308 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
12309
12310 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
12311 (regex_compile): Return REG_ERANGEX if appropriate.
12312
12313 2004-10-22 Kenichi Handa <handa@m17n.org>
12314
12315 * editfns.c (Ftranslate_region_internal): New function.
12316 (syms_of_editfns): Defsubr it.
12317
12318 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12319
12320 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
12321
12322 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
12323
12324 * xterm.h (x_output): New member `xic_base_fontname'.
12325 (FRAME_XIC_BASE_FONTNAME): New macro.
12326 (xic_free_xfontset): Declare.
12327
12328 * xfns.c (xic_create_xfontset): Share fontsets between frames
12329 based on base_fontname.
12330 (xic_free_xfontset): New function.
12331 (free_frame_xic): Use it.
12332 (xic_set_xfontset): Ditto.
12333
12334 * xterm.c (xim_destroy_callback): Ditto.
12335
12336 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
12337
12338 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
12339
12340 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12341
12342 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
12343 XSync.
12344
12345 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
12346 New variables and constant.
12347 (main): Calculate heap_bss_diff. If we are dumping and the
12348 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
12349 and exec ourself again.
12350 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
12351 print a warning.
12352
12353 * lastfile.c: Make my_endbss and my_endbss_static available on all
12354 platforms.
12355
12356 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
12357 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
12358
12359 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
12360
12361 * data.c (Flocal_variable_if_set_p): Doc fix.
12362
12363 2004-10-19 Jason Rumney <jasonr@gnu.org>
12364
12365 * w32.c (init_environment): Set emacs_dir correctly when running
12366 emacs from the build directory.
12367
12368 2004-10-19 Richard M. Stallman <rms@gnu.org>
12369
12370 * editfns.c (Fdelete_and_extract_region):
12371 If region is empty, return null string.
12372
12373 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12374
12375 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
12376 and canon_width.
12377 (xg_frame_cleared): Remove.
12378
12379 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
12380 (xg_find_top_left_in_fixed): Remove.
12381 (xg_create_scroll_bar): Put an event box widget between
12382 the scroll bar widget and the edit widget.
12383 (xg_show_scroll_bar): Show the parent widget (the event box).
12384 (xg_remove_scroll_bar): Destroy parent (the event box) also.
12385 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
12386 Move the parent (the event box) widget inside the fixed widget.
12387 Move window clear to xterm.c.
12388
12389 * gtkutil.h (xg_frame_cleared): Remove.
12390
12391 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
12392 (x_scroll_bar_create, XTset_vertical_scroll_bar):
12393 Remove arguments left and width to xg_update_scrollbar_pos.
12394 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
12395
12396 2004-10-19 Kenichi Handa <handa@m17n.org>
12397
12398 * xdisp.c (display_mode_element): Fix display of wide chars.
12399
12400 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12401
12402 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
12403 gdk_window_clear and move gdk_window_process_all_updates after
12404 clear so events are sent to the X server in correct order.
12405
12406 2004-10-18 Kenichi Handa <handa@m17n.org>
12407
12408 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
12409 comparing font names.
12410 (fs_query_fontset): Use fast_string_match for comparing fontset names.
12411 (list_fontsets): Likewise.
12412
12413 * search.c (fast_string_match_ignore_case): New function.
12414
12415 * lisp.h (fast_string_match_ignore_case): Extern it.
12416
12417 2004-10-17 Kim F. Storm <storm@cua.dk>
12418
12419 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
12420 than bitmap if there is not left fringe.
12421 (get_overlay_arrow_glyph_row): Also used on windows system.
12422 (display_line): Display overlay string if no left fringe.
12423
12424 2004-10-16 Jason Rumney <jasonr@gnu.org>
12425
12426 * w32fns.c (w32_font_match): Encode font name being matched.
12427
12428 2004-10-16 Richard M. Stallman <rms@gnu.org>
12429
12430 * window.c (Fspecial_display_p): Doc fix.
12431
12432 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
12433
12434 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
12435 Don't ignore menus, because where-is-internal already does it for us.
12436
12437 2004-10-15 Kim F. Storm <storm@cua.dk>
12438
12439 * xdisp.c (redisplay_window): Only update fringes and vertical
12440 border on window frames.
12441
12442 2004-10-14 Andreas Schwab <schwab@suse.de>
12443
12444 * m/ia64.h (DATA_SEG_BITS): Don't define.
12445
12446 2004-10-14 Kim F. Storm <storm@cua.dk>
12447
12448 * xterm.h: Include Xutil.h after keysym.h to work around bug
12449 in some X versions.
12450
12451 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
12452
12453 * fns.c (map_char_table): Add missing gcpros.
12454
12455 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
12456
12457 * keymap.c (get_keymap): An autoload form is not a keymap.
12458
12459 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
12460
12461 2004-10-13 Kim F. Storm <storm@cua.dk>
12462
12463 * callproc.c (Fcall_process): Simplify handling of display arg.
12464 Resume `display_on_the_fly' once a coding system is determined.
12465
12466 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
12467
12468 2004-10-12 Kim F. Storm <storm@cua.dk>
12469
12470 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
12471 caller, such as call-process, is not going to poll for input.
12472 (calc_line_height_property): Handle case where it->object is nil.
12473
12474 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
12475
12476 2004-10-12 Kenichi Handa <handa@m17n.org>
12477
12478 * xdisp.c (get_next_display_element):
12479 If unibyte_display_via_language_environment is zero, display 8-bit
12480 chars in octal in unibyte buffer.
12481
12482 2004-10-12 Kim F. Storm <storm@cua.dk>
12483
12484 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
12485 are no ordinary bindings.
12486
12487 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12488
12489 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
12490
12491 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12492
12493 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
12494 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
12495 (make_mac_frame): Add BLOCK_INPUT around the making of a
12496 terminal frame.
12497 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
12498 * macgui.h (mktime): Use emacs_mktime.
12499 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
12500 Make a cancel file-open dialog be like C-g.
12501 * mac.c (mktime): Use emacs_mktime.
12502 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
12503 (Fmac_paste_function): Add better error handling for carbon cut/paste.
12504
12505 2004-10-10 Kim F. Storm <storm@cua.dk>
12506
12507 * keyboard.c (timer_resume_idle): New function to resume idle
12508 timer without resetting timers on the idle list.
12509 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
12510 (timer_start_idle, timer_stop_idle): Declare static.
12511 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
12512
12513 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
12514
12515 2004-10-08 Steven Tamm <steventamm@mac.com>
12516
12517 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
12518 * macterm.c (mac_check_for_quit_char): Remove warning for using
12519 NULL where 0 should be used.
12520 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
12521 objc/malloc.h
12522 * mac.c: Include time.h for Tiger compatibility.
12523
12524 2004-10-07 Kim F. Storm <storm@cua.dk>
12525
12526 * xdisp.c (redisplay_window): Fix flicker on vertical line between
12527 windows. Update vertical line after drawing window fringes, but
12528 only if actually drawing any bitmaps--or there is no fringe.
12529
12530 * xterm.c (x_update_window_end): Likewise.
12531 * macterm.c (x_update_window_end): Likewise.
12532 * w32term.c (x_update_window_end): Likewise.
12533
12534 * fringe.c (draw_window_fringes): Return value now indicates if
12535 any fringe bitmaps were redrawn (or there are no fringes).
12536
12537 * dispextern.h (draw_window_fringes): Update prototype.
12538
12539 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12540
12541 * macfns.c (mac_get_window_bounds): Add extern.
12542 (x_real_positions): Use mac_get_window_bounds.
12543
12544 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
12545 xmenu.c (YAILOM).
12546
12547 * macterm.c [!MAC_OSX]: Include Windows.h.
12548 (front_emacs_window): Rename from mac_front_window. All uses
12549 changed. Return the frontmost non-tooltip emacs window.
12550 (mac_get_window_bounds): New function.
12551 (x_calc_absolute_position): Use the difference of width and height
12552 between the inner and outer window.
12553 (x_set_offset): Specify window position by the coordinae of the
12554 outer window. Adjust the position if the title bar is completely
12555 outside the screen.
12556 (app_is_suspended, app_sleep_time): Remove unused variables.
12557 (do_app_resume, do_app_suspend): Remove their contents because
12558 window-activate/deactivate events will do the job.
12559 (do_zoom_window): Remove unused variables. Make compliant to the
12560 standard way of zooming. Set f->left_pos and f->top_pos.
12561 (XTread_socket): Don't use argument `expected'. Don't use
12562 FrontWindow to determine the clicked window. Exclude unprocessed
12563 mouseUp cases in the early stage. Add parentheses to fix operator
12564 precedence.
12565 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
12566
12567 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12568
12569 * config.in: Regenerate.
12570
12571 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
12572 HAVE_EXECSHIELD.
12573
12574 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12575
12576 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
12577 a row if Alt or Meta has been found for that row. Also stop scanning
12578 for Keysyms for that row.
12579
12580 2004-10-04 Kim F. Storm <storm@cua.dk>
12581
12582 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
12583 to list. Include overlay arrow bitmap in return value.
12584
12585 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
12586 bars with fractional column width. If scroll bar separates two
12587 windows, move it towards the window it belongs to. Only update
12588 the padding area below the scroll bar widget when necessary,
12589 i.e. when scroll bar widget is created, moved, or resized.
12590
12591 * xdisp.c (define_frame_cursor1): Do not change frame cursor
12592 while tracking/dragging mouse.
12593 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
12594
12595 * window.c (coordinates_in_window): Relax check for cursor
12596 on vertial border between mode lines.
12597 (Fset_window_fringes): Do not allow negative widths.
12598 (Fset_window_scroll_bars): Likewise.
12599
12600 * .gdbinit (pp): Shorthand for p ARG + pr.
12601 (ff): New command: flush frame updates (X only).
12602
12603 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
12604
12605 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
12606
12607 2004-09-30 Kenichi Handa <handa@m17n.org>
12608
12609 * process.c (send_process): Free composition data.
12610
12611 * fileio.c (Finsert_file_contents): Free composition data.
12612
12613 * coding.c (code_convert_region): Don't skip ASCIIs if there are
12614 compositions to encode.
12615 (encode_coding_string): Likewise. Free composition data.
12616
12617 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
12618
12619 * coding.c (code_convert_region): Free composition data.
12620
12621 2004-09-29 Kim F. Storm <storm@cua.dk>
12622
12623 * fringe.c: Remove limit on number of bitmaps.
12624 (fringe_bitmaps, fringe_faces): Change to pointers.
12625 (max_fringe_bitmaps): New var.
12626 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
12627 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
12628
12629 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
12630 (struct glyph_row): Reorder fringe_bitmap related fields.
12631 (struct it): Likewise.
12632
12633 * w32term.c (fringe_bmp): Change to pointer.
12634 (max_fringe_bmp): New var.
12635 (w32_define_fringe_bitmap): Expand fringe_bmp.
12636 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
12637 (w32_destroy_fringe_bitmap): Likewise.
12638
12639 2004-09-29 Kim F. Storm <storm@cua.dk>
12640
12641 * fringe.c: Simplify last change.
12642 (lookup_fringe_bitmap): New function.
12643 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
12644 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
12645 Keep standard bitmaps in Vfringe_bitmaps.
12646 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
12647 (Fset_fringe_bitmap_face): Likewise.
12648
12649 * dispextern.h (lookup_fringe_bitmap): Add prototype.
12650 (valid_fringe_bitmap_p): Remove prototype.
12651
12652 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
12653
12654 2004-09-29 Kim F. Storm <storm@cua.dk>
12655
12656 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
12657 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
12658
12659 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
12660
12661 * fringe.c (Vfringe_bitmaps): New variable.
12662 (syms_of_fringe): DEFVAR_LISP it.
12663 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
12664 Change arg to Lisp_Object and fail if not an integer.
12665 (get_fringe_bitmap_name, resolve_fringe_bitmap)
12666 (destroy_fringe_bitmap): New functions.
12667 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
12668 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
12669 clear its fringe property.
12670 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
12671 Fdestroy_fringe_bitmap.
12672 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
12673 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
12674 and set fringe property. Signal error if no free slots.
12675 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
12676 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
12677
12678 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
12679 symbols with a fringe property.
12680
12681 2004-09-27 Kim F. Storm <storm@cua.dk>
12682
12683 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
12684 Doc fix. Format may now be a symbol or alist, not a cons.
12685
12686 * fringe.c (update_window_fringes): Handle new formats of
12687 indicate-buffer-boundaries (symbol or alist). No longer
12688 allow a simple cons.
12689 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
12690
12691 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12692
12693 * config.in: Rebuild.
12694
12695 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12696
12697 * config.in: Rebuild.
12698
12699 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
12700
12701 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
12702
12703 * xterm.c (x_term_init): Work around a bug in some X servers.
12704
12705 2004-09-18 Richard M. Stallman <rms@gnu.org>
12706
12707 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
12708
12709 * xdisp.c (try_window_reusing_current_matrix):
12710 Handle the case where we reach the old displayed text,
12711 out of sync with the old line boundary.
12712
12713 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
12714
12715 * fileio.c (Finsert_file_contents): Fix case of replacement in a
12716 narrowed buffer.
12717
12718 2004-09-14 Kim F. Storm <storm@cua.dk>
12719
12720 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
12721
12722 * xfaces.c (Qface_no_inherit): New var.
12723 (syms_of_xfaces): Intern and staticpro it.
12724 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
12725 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
12726 Don't increment face_change_count when face has non-nil
12727 face-no-inherit property.
12728
12729 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
12730
12731 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
12732 (Fbyte_code): Remove dead code after `wrong_type_argument'.
12733
12734 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
12735 before doing the mark_stack_check_gcpros since they're not on the stack.
12736
12737 2004-09-12 Kim F. Storm <storm@cua.dk>
12738
12739 * editfns.c (Fformat): Handle format strings with multiple text
12740 properties. Reverse text property list from the format string,
12741 so the positions are in increasing order.
12742
12743 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12744
12745 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
12746 x_uncatch_errors so that possible protocol errors are delivered.
12747
12748 2004-09-10 Eli Zaretskii <eliz@gnu.org>
12749
12750 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
12751 blockinput.h.
12752 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
12753 charset.h, and coding.h
12754 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
12755 (term.o): Depend on window.h and keymap.h.
12756 (abbrev.o): Depend on syntax.h.
12757 (callint.o): Depend on keymap.h.
12758 (casefiddle.o): Depend on charset.h and keymap.h.
12759 (category.o): Depend on keymap.h.
12760 (coding.o): Depend on dispextern.h.
12761 (cmds.o): Depend on keyboard.h and keymap.h.
12762 (dispnew.o): Depend on indent.h and intervals.h.
12763 (doc.o): Depend on keymap.h.
12764 (editfns.o): Depend on frame.h.
12765 (emacs.o): Depend on dispextern.h.
12766 (fileio.o): Don't depend on ccl.h.
12767 (filelock.o): Depend on charset.h and coding.h.
12768 (frame.o): Depend on w32term.h and macterm.h.
12769 (insdel.o): Depend on region-cache.h.
12770 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
12771 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
12772 (search.o): Depend on $(INTERVALS_SRC).
12773 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
12774 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
12775 xterm.h, w32term.h, and macterm.h.
12776 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
12777 w32term.h, and macterm.h.
12778 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
12779 region-cache.h, xterm.h, w32term.h, and macterm.h.
12780 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
12781 (data.o): Depend on frame.h.
12782 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
12783 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
12784 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
12785 (intervals.o): Depend on keymap.h.
12786
12787 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
12788 Add debugging print-out to termscript.
12789
12790 2004-09-09 Richard M. Stallman <rms@gnu.org>
12791
12792 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
12793
12794 2004-09-08 Richard M. Stallman <rms@gnu.org>
12795
12796 * window.c (Fset_window_buffer): Doc fix.
12797
12798 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
12799
12800 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
12801
12802 * minibuf.c (history_delete_duplicates): New variable.
12803 (read_minibuf): Use it.
12804 (syms_of_minibuf): Create the corresponding lisp variable.
12805
12806 2004-09-08 Kim F. Storm <storm@cua.dk>
12807
12808 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
12809 overlay just before point.
12810
12811 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
12812
12813 * buffer.h (struct buffer): Add auto_save_file_format field.
12814 * buffer.c (reset_buffer, init_buffer_once):
12815 Handle auto_save_file_format field.
12816 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
12817 `buffer-auto-save-file-format'.
12818 * fileio.c: Delete declaration for removed Vauto_save_file_format.
12819 (build_annotations): Adapt to replacement of
12820 `auto-save-file-format' with the new buffer-local variable
12821 `buffer-auto-save-file-format'.
12822 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
12823
12824 2004-09-07 Jason Rumney <jasonr@gnu.org>
12825
12826 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
12827
12828 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
12829 Handle Unicode menu titles.
12830
12831 2004-09-07 Kim F. Storm <storm@cua.dk>
12832
12833 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
12834 property from text property or overlay strings at point.
12835
12836 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12837
12838 * xmenu.c (update_submenu_strings): YAILOM.
12839 (set_frame_menubar): Make sure last_i is initialized.
12840
12841 2004-09-03 Jason Rumney <jasonr@gnu.org>
12842
12843 * w32menu.c (_widget_value): Add lname and lkey.
12844 (digest_single_submenu): Set lname and lkey in widget_value
12845 instead of name and key.
12846 (update_submenu_strings): New function.
12847 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12848 call update_submenu_strings.
12849
12850 * w32menu.c (globals_of_w32menu): Check for Unicode API.
12851 (digest_single_submenu, w32_menu_show): Encode menu strings as
12852 UTF-8 if Unicode API is available.
12853 (utf8to16): New function.
12854 (add_menu_item): Use it when calling Unicode API.
12855
12856 2004-09-03 Kim F. Storm <storm@cua.dk>
12857
12858 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
12859 in overlay or text-property strings; set cursor on corresponding
12860 glyph rather than at end of the string.
12861
12862 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12863
12864 * macfns.c (x_real_positions): Save the current window port and
12865 set a new one before obtaining the global coordinate.
12866 Use FRAME_MAC_WINDOW.
12867 (x_set_name, x_set_title): Encode title to UTF8.
12868 Use SetWindowTitleWithCFString.
12869 (Fx_server_version): Get correct OS version.
12870
12871 * macmenu.c (add_menu_item): Remove unused variable `i'.
12872 Don't let separator items destroy refence constants of other menu items.
12873
12874 * macterm.c (x_update_end): Move SetPortWindowPort to inside
12875 BLOCK_INPUT.
12876 (x_set_offset): Use FRAME_MAC_WINDOW.
12877
12878 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
12879 nontext_cursor if it is on a scroll bar.
12880
12881 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
12882 Carbon support.
12883 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
12884 Use LIBS_CARBON.
12885
12886 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12887
12888 * xfns.c (x_set_name_internal): New function. Check if we shall call
12889 xfree before ENCODE_UTF_8.
12890 (x_set_name, x_set_title): Call x_set_name_internal.
12891
12892 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
12893
12894 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
12895 reload it.
12896
12897 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12898
12899 * macmenu.c (_widget_value): Add lname and lkey.
12900 (single_submenu): Set lname and lkey in widget_value
12901 instead of name and key.
12902 (update_submenu_strings): New function.
12903 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12904 call update_submenu_strings.
12905
12906 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
12907 instead of name and key.
12908 (update_submenu_strings): New function.
12909 (set_frame_menubar): Remove call to inhibit_garbage_collection,
12910 call update_submenu_strings.
12911
12912 * gtkutil.h (_widget_value): Added lname and lkey.
12913
12914 2004-08-30 Steven Tamm <steventamm@mac.com>
12915
12916 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
12917 by using different names for inner loop variables.
12918
12919 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12920
12921 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
12922 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
12923
12924 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
12925 tool bar items is 0.
12926
12927 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12928
12929 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
12930 strings in menu items.
12931 (single_submenu): Use ENCODE_MENU_STRING
12932 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
12933 button release isn't passed to event loop
12934 (add_menu_item): Use SetMenuItemWithCFString
12935
12936 2004-08-26 Steven Tamm <steventamm@mac.com>
12937
12938 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
12939 tool-bar/menu click.
12940 * macfns.c (Fx_file_dialog): Implement using NavServices.
12941
12942 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12943
12944 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
12945
12946 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12947 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12948 (x_top_window_to_frame): Return 0 if wdesc is None.
12949
12950 2004-08-22 Richard M. Stallman <rms@gnu.org>
12951
12952 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
12953 HAVE_TERMIOS]: If there's no char for this signal, drop through
12954 and use system calls.
12955
12956 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
12957
12958 2004-08-20 Kim F. Storm <storm@cua.dk>
12959
12960 * process.c (wait_reading_process_output): Rename from
12961 wait_reading_process_input. All uses changed.
12962 (wait_reading_process_output_1): Rename from
12963 wait_reading_process_input_1. All uses changed.
12964
12965 * dispnew.c (Fsleep_for): Remove obsolete code.
12966
12967 2004-08-20 Kenichi Handa <handa@m17n.org>
12968
12969 * syntax.c (skip_chars): Fix for unibyte case.
12970
12971 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12972
12973 * syntax.c (char_quoted): Mixup byte/char pos.
12974 (back_comment): Fixup globals in all cases.
12975
12976 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12977
12978 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
12979 passing it to gtk_window_set_title.
12980
12981 2004-08-19 Kim F. Storm <storm@cua.dk>
12982
12983 * process.c (wait_reading_process_input): Clean up.
12984 Add wait_for_cell, wait_proc, and just_wait_proc args
12985 to avoid overloading `read_kbd' and `do_display' args.
12986 Change read_kbd arg to int. All callers changed.
12987
12988 * process.c (process_send_signal): Use CDISABLE.
12989
12990 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
12991
12992 2004-08-18 Kim F. Storm <storm@cua.dk>
12993
12994 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
12995 forward to wait_reading_process_input via DO_DISPLAY arg.
12996 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
12997 object, only process output from that process; also inhibit
12998 running timers if DO_DISPLAY==-2.
12999
13000 2004-08-17 Kim F. Storm <storm@cua.dk>
13001
13002 * process.c (process_send_signal): Fix last change--use
13003 _POSIX_VDISABLE instead of CVDISABLE when available.
13004
13005 2004-08-16 Richard M. Stallman <rms@gnu.org>
13006
13007 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
13008 Set VQUIT and VINTR chars to the standard ones if they are unset.
13009 [AIX]: Don't do that here. And don't force VINTR to standard
13010 when SIGNALS_VIA_CHARACTERS.
13011
13012 * process.c (process_send_signal)
13013 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
13014 Do nothing if the character is CVDISABLE.
13015
13016 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
13017
13018 * intervals.c (move_if_not_intangible):
13019 Force POSITION to be between BEGV and ZV.
13020
13021 2004-08-14 John Paul Wallington <jpw@gnu.org>
13022
13023 * buffer.c (Frestore_buffer_modified_p): Doc fix.
13024
13025 * fileio.c (Fread_file_name): Doc fix.
13026
13027 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
13028
13029 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
13030
13031 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
13032
13033 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
13034
13035 * keyboard.c: Declare Qdisabled_command_function instead of
13036 Qdisabled_command_hook.
13037 (Fcommand_execute): Use Qdisabled_command_function instead of
13038 Qdisabled_command_hook.
13039 (syms_of_keyboard): Ditto.
13040
13041 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
13042
13043 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
13044 (syms_of_keymap) <key-translation-map>: Doc fixes.
13045
13046 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
13047
13048 * window.c (window_list_1): YAILOM.
13049
13050 * fileio.c (make_temp_name): Handle multibyte prefixes.
13051
13052 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
13053
13054 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
13055 Doc fix.
13056
13057 2004-08-03 Kenichi Handa <handa@m17n.org>
13058
13059 * coding.c (decode_coding_string): Adjust coding->consumed, and
13060 etc. with shrinked_bytes.
13061
13062 2004-08-03 Kim F. Storm <storm@cua.dk>
13063
13064 * indent.c (compute_motion): Fix check for full width window
13065 in non-window case. Do not count left truncation glyph on
13066 window systems.
13067
13068 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
13069
13070 * data.c (Finteractive_form): Doc fix.
13071
13072 2004-08-02 Kim F. Storm <storm@cua.dk>
13073
13074 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
13075 properly accounting for continuation glyph on non-window systems.
13076 (Fcompute_motion): Use actual window width if WIDTH is nil, and
13077 actual window width/height if TOPOS is nil, properly accounting for
13078 continuation glyphs on non-window systems, and optional header lines.
13079 (vmotion): Let compute_motion calculate actual window width.
13080
13081 * window.c (window_scroll_line_based): Let compute_motion
13082 calculate actual window width.
13083
13084 2004-08-02 Kim F. Storm <storm@cua.dk>
13085
13086 * process.c (read_process_output): Use whole read buffer.
13087 Don't trigger adaptive read buffering on errors.
13088
13089 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
13090
13091 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
13092
13093 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
13094
13095 * callint.c (Fcall_interactively): Doc fix.
13096
13097 2004-07-30 Richard M. Stallman <rms@gnu.org>
13098
13099 * abbrev.c (Fexpand_abbrev): Undo previous change.
13100
13101 2004-07-30 Kim F. Storm <storm@cua.dk>
13102
13103 * editfns.c (Fformat): Allocate extra (dummy) element in info.
13104
13105 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
13106
13107 * eval.c (Fdefvar, Fdefconst): Doc fixes.
13108
13109 2004-07-27 Kim F. Storm <storm@cua.dk>
13110
13111 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
13112 we have ensured that the glyph fits on the current line (or returned
13113 MOVE_LINE_CONTINUED otherwise).
13114
13115 2004-07-26 Kim F. Storm <storm@cua.dk>
13116
13117 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
13118 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
13119 if target position is at end of display line but char is not a newline.
13120
13121 2004-07-25 Richard M. Stallman <rms@gnu.org>
13122
13123 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
13124 instead of ON_VERTICAL_BORDER, when on scroll bar.
13125 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
13126
13127 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
13128
13129 * window.c (Fcoordinates_in_window_p):
13130 Take account of FRAME_INTERNAL_BORDER_WIDTH.
13131
13132 * alloc.c (check_cons_list): New function (contents commented out).
13133
13134 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
13135
13136 * xfaces.c (Fcolor_supported_p): Doc fix.
13137
13138 * frame.c (Fselect_frame, Fset_frame_selected_window)
13139 (Fframe_visible_p, Fraise_frame): Doc fixes.
13140
13141 2004-07-24 Richard M. Stallman <rms@gnu.org>
13142
13143 * keyboard.h (not_single_kboard_state): Declare.
13144
13145 * fileio.c (Fwrite_region): Doc fix.
13146
13147 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
13148
13149 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
13150 only when a real abbrev is present.
13151
13152 * xfns.c (x_icon_verify): New function.
13153 (Fx_create_frame): Use it.
13154
13155 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
13156
13157 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
13158
13159 2004-07-21 Kim F. Storm <storm@cua.dk>
13160
13161 * window.h (struct glyph_matrix): New members nrows_scale_factor
13162 and ncols_scale_factor.
13163
13164 * window.c (make_window): Initialize nrows_scale_factor and
13165 ncols_scale_factor members.
13166
13167 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
13168 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
13169 (required_matrix_height): Apply nrows_scale_factor.
13170 (required_matrix_width): Apply ncols_scale_factor.
13171
13172 * xdisp.c (display_line): Increment nrows_scale_factor and set
13173 fonts_changed_p if past last allocated row.
13174 (append_glyph, append_composite_glyph, produce_image_glyph)
13175 (append_stretch_glyph): Increment ncols_scale_factor and set
13176 fonts_changed_p if current area is full.
13177
13178 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13179
13180 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
13181
13182 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
13183
13184 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
13185 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
13186 (Fset_window_start, Fscroll_up, Fscroll_down)
13187 (Fother_window_for_scrolling, Fscroll_other_window)
13188 (Fsave_window_excursion, Fset_window_vscroll)
13189 (syms_of_window) <window-size-fixed>: Doc fixes.
13190
13191 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13192
13193 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
13194 ENCODE_SYSTEM for filenames.
13195
13196 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13197
13198 * mac.c (sys_select): Block input around call to
13199 ReceiveNextEvent to prevent breakage. Correctly handle
13200 blocking on event queue only by calling ReceiveNextEvent
13201 instead of select (since GUI events aren't on an fd).
13202 (sys_read): Remove function
13203 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
13204
13205 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13206
13207 * mac.c (sys_select): Redo sys_select to use alarm-based
13208 polling instead of 1 sec timeouts (like solaris).
13209
13210 * macterm.c (x_make_frame_visible): Comment in polling on
13211 frame creation.
13212
13213 * keyboard.c: Undef SIGIO on Carbon
13214
13215 * atimer.c (alarm_signal_handler): Call alarm handlers after
13216 scheduling.
13217
13218 * eval.c (Feval): Remove quit_char test
13219
13220 * process.c (wait_reading_process_input): Remove clearing
13221 stdin for select call on process input.
13222
13223 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
13224
13225 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
13226 capitalization error in docstring.
13227
13228 2004-07-17 Juanma Barranquero <lektu@terra.es>
13229
13230 * keyboard.c (not_single_kboard_state): Do nothing unless
13231 MULTI_KBOARD is defined.
13232
13233 2004-07-17 Richard M. Stallman <rms@gnu.org>
13234
13235 * window.c (coordinates_in_window): Inside the window but outside
13236 its box to the L or R, return ON_VERTICAL_BORDER.
13237 (window_list_1): Rotate the list to start with WINDOW.
13238
13239 * print.c (print_preprocess): Test for print_depth at limit
13240 before entering in being_printed.
13241
13242 * keyboard.c (not_single_kboard_state): New function.
13243 (stuff_buffered_input): Now no-op only if no SIGTSTP.
13244
13245 * frame.c (Fdelete_frame): If we're in single_bboard_state on
13246 this kboard, and we delete its last frame, go to any_kboard_state.
13247
13248 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
13249
13250 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13251
13252 * w32fns.c (Fx_file_dialog): Encode strings in system coding
13253 system before passing them to OS functions for display.
13254
13255 2004-07-15 David Kastrup <dak@gnu.org>
13256
13257 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
13258 Apparently fixes an abort condition.
13259
13260 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
13261
13262 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
13263 instead of a cons.
13264
13265 2004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
13266
13267 * keyboard.c (echo_dash): Do nothing if there already is a dash
13268 at the end of the echo string.
13269
13270 2004-07-12 Kim F. Storm <storm@cua.dk>
13271
13272 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
13273 if GC_MARK_STACK.
13274
13275 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
13276
13277 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
13278
13279 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
13280 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
13281 (Freplace_buffer_in_windows, Fset_window_buffer)
13282 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
13283 (syms_of_window): Expand docstring of `display-buffer-function'.
13284
13285 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
13286
13287 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
13288 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
13289 that time values of the type (HIGH . LOW) are considered obsolete.
13290
13291 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
13292
13293 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
13294 docstring.
13295
13296 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
13297
13298 2004-07-06 John Paul Wallington <jpw@gnu.org>
13299
13300 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
13301
13302 * fns.c (Fclear_string): Signal an error if STRING is not a string.
13303
13304 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13305
13306 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
13307 instead of CGMainDisplayID (only in OSX 10.2 and later).
13308
13309 2004-07-04 John Paul Wallington <jpw@gnu.org>
13310
13311 * fileio.c (read_file_name_completion_ignore_case): New variable.
13312 (syms_of_fileio): Declare and initialise it.
13313 (Fread_file_name): Bind `completion-ignore-case' to respect it.
13314
13315 2004-07-03 Eli Zaretskii <eliz@gnu.org>
13316
13317 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
13318 for event.x and event.y.
13319
13320 2004-07-01 Kenichi Handa <handa@m17n.org>
13321
13322 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
13323 after getting a new string by pre-write-conversion.
13324
13325 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
13326
13327 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
13328 (x_calc_absolute_position): Remove unused var `child'.
13329
13330 * xfaces.c (x_supports_face_attributes_p)
13331 (Fdisplay_supports_face_attributes_p): YAILOM.
13332 (tty_supports_face_attributes_p): Remove unused var `i'.
13333
13334 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
13335 back_unibyte_ok.
13336
13337 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
13338
13339 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
13340 `registry'.
13341
13342 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
13343
13344 2004-06-30 Andreas Schwab <schwab@suse.de>
13345
13346 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
13347 (Finit_image_library): Pass LIBRARIES through to
13348 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
13349 (lookup_image_type): Pass Qnil as second argument to
13350 Finit_image_library.
13351
13352 * lisp.h (Finit_image_library): Declare.
13353
13354 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13355
13356 * macterm.c (do_window_activate, do_window_deactivate): Remove.
13357 (XTread_socket): Send mouse button events to the toolbox
13358 dispatcher even when the mouse is grabbed. Don't process window
13359 activate events for non-Emacs windows. Replace function calls to
13360 do_window_activate and do_window_deactivate with their contents.
13361 Reset mouse grabbing status when a window is deactivated.
13362
13363 2004-06-29 Steven Tamm <steventamm@mac.com>
13364
13365 * macterm.c (mac_get_emulated_btn)
13366 (mac_event_to_emacs_modifiers): Fix emulated mouse button
13367 support to correctly mask out modifiers.
13368
13369 2004-06-29 David Kastrup <dak@gnu.org>
13370
13371 * search.c (Fset_match_data): Allow buffer before end of list
13372 which can happen if set-match-data is using a pre-consed list.
13373
13374 2004-06-28 Steven Tamm <steventamm@mac.com>
13375
13376 * macterm.c (XTread_socket): Correctly set the frame position
13377 after the window is moved.
13378
13379 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13380
13381 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
13382 gpix and gmask just before return to avoid memory leak.
13383 (xg_get_image_for_pixmap): Add workaround for monochrome displays
13384 so insensitive and activated icons look ok.
13385
13386 2004-06-27 Jason Rumney <jasonr@gnu.org>
13387
13388 * w32fns.c (file_dialog_callback): Disable edit control if set
13389 to directories only on CDN_INITDONE message.
13390 (Fx_file_dialog): Default to directories only when prompt starts
13391 with "Dired".
13392
13393 2004-06-25 Kim F. Storm <storm@cua.dk>
13394
13395 * alloc.c (allocate_misc): Update total_free_markers.
13396 (free_misc): New function.
13397 (safe_alloca_unwind, free_marker): Use it.
13398
13399 * lisp.h (free_misc): Add prototype.
13400
13401 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
13402
13403 2004-06-24 Richard M. Stallman <rms@gnu.org>
13404
13405 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
13406 (syms_of_emacs): Lisp variables deleted.
13407
13408 2004-06-23 David Kastrup <dak@gnu.org>
13409
13410 * search.c (Freplace_match): Adjust the match-data more thoroughly
13411 when replacing strings in the buffer.
13412 (Fmatch_data): When INTEGERS is non-nil and the last match was in
13413 a buffer, add the buffer as last element to the match data.
13414 (Fset_match_data): If an additional element of the match-data is a
13415 buffer, restore it to last_thing_searched.
13416 (save_search_regs): Save last_thing_searched as part of the match data.
13417 (restore_match_data): Restore it again.
13418
13419 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
13420
13421 * keymap.c (Ftext_char_description): Doc fix.
13422 * doc.c (Fsnarf_documentation): Doc fix.
13423
13424 2004-06-22 Kim F. Storm <storm@cua.dk>
13425
13426 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
13427
13428 * lisp.h (struct Lisp_Save_Value): New member dogc.
13429 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
13430 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
13431 (SAFE_FREE_LISP): New macro.
13432
13433 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
13434 (make_save_value): Init new dogc member.
13435 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
13436
13437 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
13438 SAFE_FREE_LISP macros.
13439
13440 2004-06-22 Kim F. Storm <storm@cua.dk>
13441
13442 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
13443 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
13444 in that memory area are unknown to GC. Add comments.
13445
13446 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
13447
13448 2004-06-21 Kim F. Storm <storm@cua.dk>
13449
13450 * lisp.h (MAX_ALLOCA): Define here.
13451 (safe_alloca_unwind): Add prototype.
13452 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
13453
13454 * alloc.c (safe_alloca_unwind): New function.
13455
13456 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
13457
13458 * charset.c (Fstring): Use SAFE_ALLOCA.
13459
13460 * coding.c (MAX_ALLOCA): Remove define.
13461
13462 * data.c (MAX_ALLOCA): Remove define.
13463 (Faset): Use SAFE_ALLOCA.
13464
13465 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
13466
13467 * fns.c (string_make_multibyte, string_to_multibyte)
13468 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
13469 (MAX_ALLOCA): Remove define.
13470 (Fbase64_encode_region, Fbase64_encode_string)
13471 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
13472 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
13473 memory leak if encoding fails.
13474
13475 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
13476
13477 2004-06-21 Eli Zaretskii <eliz@gnu.org>
13478
13479 * print.c (Fwith_output_to_temp_buffer): Doc fix.
13480
13481 2004-06-20 Richard M. Stallman <rms@gnu.org>
13482
13483 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
13484
13485 * search.c (match_limit): Cleaner err msg when no match data available.
13486
13487 * window.c (syms_of_window): Doc fix.
13488
13489 * keyboard.c (command_loop_1): Handle values `only' and `identity'
13490 for Vtransient_mark_mode.
13491
13492 * buffer.c (syms_of_buffer): Doc fix.
13493
13494 2004-06-21 David Kastrup <dak@gnu.org>
13495
13496 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
13497 and unbinding of `case-fold-search' according to
13498 `completion-ignore-case' around calls of string-match and
13499 predicates, respectively. Should give satisfactory performance
13500 in all relevant cases.
13501
13502 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13503
13504 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
13505 clip_x/y_origin.
13506
13507 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
13508
13509 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
13510
13511 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
13512 on Mac OSX.
13513
13514 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
13515
13516 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
13517
13518 2004-06-16 Kim F. Storm <storm@cua.dk>
13519
13520 * dispextern.h (Vimage_types): Remove extern.
13521
13522 2004-06-16 Miles Bader <miles@gnu.org>
13523
13524 * image.c (lookup_image_type): Initialize image type if necessary.
13525
13526 2004-06-15 Kim F. Storm <storm@cua.dk>
13527
13528 * xdisp.c (try_cursor_movement): Exclude header line from scroll
13529 margin at top of window.
13530 (try_window_reusing_current_matrix): Calculate proper cursor position
13531 after scrolling up with non-zero scroll margin, as the old cursor
13532 position corresponds to value of PT before executing this command.
13533 (try_window_id): Consider scroll margin at bottom of window too;
13534 otherwise we fail to scroll when hl-line-mode is enabled.
13535
13536 * syntax.c (skip_chars): Only recognize [:class:] when it has the
13537 proper format and class is a lower-case word.
13538
13539 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13540
13541 * gtkutil.c (xg_get_image_for_pixmap): New function.
13542 (xg_get_gdk_pixmap_and_mask): Remove.
13543 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
13544 xg_get_gdk_pixmap_and_mask.
13545
13546 * xterm.h (struct x_display_info): Typo in comment fixed.
13547
13548 2004-06-14 Juanma Barranquero <lektu@terra.es>
13549
13550 * dispextern.h (Vimage_types): Make it conditional on
13551 HAVE_WINDOW_SYSTEM.
13552
13553 * image.c (Vimage_types): Move from xdisp.c.
13554 (Vimage_type_cache): New variable.
13555 (define_image_type): New argument indicating whether an image
13556 library was loaded; cache loaded status and return t on success,
13557 nil otherwise.
13558 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
13559 (w32_delayed_load): New function to load an image library from a
13560 list of possible filenames.
13561 (init_xpm_functions, init_png_functions, init_jpeg_functions)
13562 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
13563 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
13564 (Finit_image_library): New function, extracted from `init_image'.
13565 Try to initialize an image library on demand and cache whether we
13566 were successful or not.
13567 (syms_of_image): Initialize `Vimage_types' and
13568 `Vimage_type_cache'. Add recognized image types to Vimage_types.
13569 Export `init-image-library'.
13570 (init_image): Remove initialization of all image types, except xbm
13571 and pbm.
13572
13573 * xdisp.c (Vimage_types): Delete (moved to image.c).
13574
13575 2004-06-14 Andreas Schwab <schwab@suse.de>
13576
13577 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13578 Avoid calling specbind when completion-regexp-list is empty.
13579
13580 2004-06-13 Richard M. Stallman <rms@gnu.org>
13581
13582 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
13583 (re_wctype, re_iswctype, re_wctype_to_bit):
13584 Non-function definitions moved here from regex.c.
13585
13586 * regex.c (re_wctype, re_iswctype): Function defs longer static.
13587 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
13588 (re_wctype, re_iswctype, re_wctype_to_bit):
13589 Non-function definitions moved to regex.h.
13590
13591 * window.c (Fselect_window): Doc fix.
13592
13593 * syntax.c: Include regex.h.
13594 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
13595 If requested, make a list of classes, then check the scanned
13596 chars for membership in them.
13597 (in_classes): New function.
13598 Doc fix.
13599
13600 * keyboard.c (cmd_error): Don't call any_kboard_state
13601 if inside a recursive edit level.
13602
13603 2004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
13604
13605 * keyboard.c (command_loop): Call any_kboard_state before
13606 command_loop_2 when at top level.
13607
13608 2004-06-13 Andreas Schwab <schwab@suse.de>
13609
13610 * print.c (print_object): Always use %ld for printing EMACS_INT.
13611
13612 * keyboard.c (cancel_hourglass_unwind): Return a value.
13613 (modify_event_symbol): Always use %ld for printing EMACS_INT.
13614 (Fexecute_extended_command): Likewise.
13615
13616 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
13617 avoid clashes.
13618 (SYNTAX): Likewise.
13619 (SYNTAX_WITH_FLAGS): Likewise.
13620 (SYNTAX_MATCH): Likewise.
13621
13622 * syntax.c (char_quoted): Avoid warning about undefined operation.
13623 (find_defun_start): Likewise.
13624 (scan_lists): Likewise.
13625 (INC_FROM): Likewise.
13626 (scan_sexps_forward): Likewise.
13627
13628 * image.c: Include <ctype.h>.
13629
13630 * xfaces.c (face_attr_equal_p): Declare parameters.
13631
13632 2004-06-13 Kenichi Handa <handa@m17n.org>
13633
13634 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
13635
13636 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
13637
13638 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
13639
13640 2004-06-12 Kenichi Handa <handa@m17n.org>
13641
13642 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
13643 ccl_prog_stack_struct and update it.
13644 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
13645 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
13646 ccl->eof_ic on EOF.
13647 (ccl_debug_hook): New function.
13648 (struct ccl_prog_stack): New member eof_ic.
13649 (ccl_driver): Handle EOF in subrountine call correctly.
13650
13651 2004-06-11 Kenichi Handa <handa@m17n.org>
13652
13653 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
13654
13655 2004-06-11 Kim F. Storm <storm@cua.dk>
13656
13657 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
13658
13659 2004-06-11 Juanma Barranquero <lektu@terra.es>
13660
13661 * keyboard.c (Fposn_at_point): Doc fix.
13662
13663 2004-06-11 David Kastrup <dak@gnu.org>
13664
13665 * search.c (match_limit): Don't flag an error if match-data
13666 exceeding the allocated search_regs.num_regs gets requested, just
13667 return Qnil.
13668
13669 2004-06-08 Miles Bader <miles@gnu.org>
13670
13671 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
13672
13673 2004-06-07 Juanma Barranquero <lektu@terra.es>
13674
13675 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
13676 (Fcurrent_time_string, Fcurrent_time_zone)
13677 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
13678
13679 2004-06-07 Miles Bader <miles@gnu.org>
13680
13681 * xfaces.c (struct named_merge_point): New type.
13682 (push_named_merge_point): New function.
13683 (merge_named_face): New function.
13684 (merge_face_ref, face_at_buffer_position, face_at_string_position):
13685 Use `merge_named_face'.
13686 (merge_face_inheritance): Function removed.
13687 (merge_face_ref): Rename from `merge_face_vector_with_property'.
13688 Add new `err_msgs' and `named_merge_points' args. Return error
13689 status. Only print error messages if ERR_MSGS is true. Don't try to
13690 do :inherit attribute validation.
13691 (merge_face_heights): Handle `unspecified' in both directions.
13692 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
13693 Call `merge_face_ref' instead of `merge_face_inheritance'.
13694 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
13695 (compute_char_face, face_at_buffer_position)
13696 (face_at_string_position): Call `merge_face_ref' instead of
13697 `merge_face_vector_with_property'.
13698
13699 2004-06-07 Kenichi Handa <handa@m17n.org>
13700
13701 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
13702 the necessary places.
13703
13704 2004-06-07 Kim F. Storm <storm@cua.dk>
13705
13706 * process.c (Fdelete_process): Undo 2004-05-28 change.
13707 Instead, call status_notify also for network process.
13708 (status_message): Use process instead of status as arg.
13709 Give messages "deleted" or "connection broken by remote peer" for
13710 an exited network process.
13711 (status_notify): Change call to status_message.
13712 (read_process_output): Increase readmax to 4096. Do not increase
13713 buffer size for datagram channels (default is now large enough).
13714
13715 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
13716
13717 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
13718 problem due to newly defined variable.
13719
13720 2004-06-06 Miles Bader <miles@gnu.org>
13721
13722 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
13723 immediately if non-interactive or not initialized.
13724
13725 2004-06-05 Richard M. Stallman <rms@gnu.org>
13726
13727 * minibuf.c (Fcompleting_read): Doc fix.
13728
13729 2004-06-05 Andreas Schwab <schwab@suse.de>
13730
13731 * macfns.c (x_create_tip_frame): Fix declaration after statement.
13732
13733 2004-06-05 Juanma Barranquero <lektu@terra.es>
13734
13735 * keymap.c (Fdescribe_vector): Fix docstring.
13736 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
13737
13738 2004-06-05 Miles Bader <miles@gnu.org>
13739
13740 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
13741 attributes have different values than the default face.
13742
13743 2004-06-04 Eli Zaretskii <eliz@gnu.org>
13744
13745 * xfaces.c (x_supports_face_attributes_p): Make this function
13746 conditional on HAVE_WINDOW_SYSTEM.
13747 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
13748 Don't call x_supports_face_attributes_p if it was not compiled in.
13749
13750 2004-06-04 Miles Bader <miles@gnu.org>
13751
13752 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
13753 from Ftty_supports_face_attributes_p.
13754 (x_supports_face_attributes_p): New function.
13755 (Ftty_supports_face_attributes_p): Function deleted.
13756 (Fdisplay_supports_face_attributes_p): New function.
13757 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
13758 (face_attr_equal_p): New function.
13759 (lface_equal_p): Use it.
13760
13761 2004-06-03 Juanma Barranquero <lektu@terra.es>
13762
13763 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
13764 (Vw32_color_map): Fix typo in docstring.
13765 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
13766 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
13767 Make argument names match their use in docstring.
13768
13769 2004-06-02 Juanma Barranquero <lektu@terra.es>
13770
13771 Work around bugs/problems with MinGW builds of graphics libraries
13772 called from MSVC builds of Emacs.
13773
13774 * image.c (lookup_image): Make pointer to img static.
13775 (png_read_from_memory): Disable "global" optimization.
13776
13777 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
13778
13779 * eval.c (Fcondition_case): Fix usage. Simplify.
13780
13781 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
13782
13783 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13784
13785 * macfns.c: Don't include ccl.h.
13786 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
13787 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
13788 TextUtils.h.
13789 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
13790 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
13791 display height/width.
13792 (compute_tip_xy, Vx_max_tooltip_size): Declare.
13793 (unwind_create_tip_frame, compute_tip_xy): New functions.
13794 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
13795 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
13796 and last_show_tip_args.
13797
13798 * macgui.h [!MAC_OSX]: Include Gestalt.h.
13799 (Cursor, No_Cursor): New defines.
13800 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
13801 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
13802
13803 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
13804
13805 * macterm.c: Don't include Gestalt.h.
13806 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
13807 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
13808 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
13809 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
13810 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
13811 (construct_mouse_click, XTmouse_position)
13812 (x_scroll_bar_report_motion, x_calc_absolute_position)
13813 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
13814 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
13815 (note_mouse_movement): Clear the mouse face and reset the pointer
13816 shape when the pointer goes outside the frame without grabbing.
13817 (mac_front_window): New function.
13818 (mac_window_to_frame): New macro.
13819 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
13820 (do_window_activate, do_window_deactivate, do_app_resume)
13821 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
13822 (do_zoom_window, mac_do_receive_drag, XTread_socket)
13823 (mac_check_for_quit_char): Use mac_front_window and/or
13824 mac_window_to_frame.
13825 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
13826 scroll-bar click event.
13827 (mac_define_frame_cursor): Change the pointer shape.
13828 (x_free_frame_resources): Reset tip_window to NULL when it is
13829 disposed of.
13830 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
13831 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
13832 (do_window_update): Don't do anything if the updated window is the
13833 tooltip window.
13834 (do_mouse_moved): Handle mouse movement events here (previously in
13835 XTread_socket). Clear the mouse face if
13836 dpyinfo->mouse_face_hidden is set.
13837 (do_os_event, do_events): Remove (now in XTread_socket).
13838 (XTread_socket): Immediately return if interrupt_input_blocked.
13839 Loop until all the events in the queue are processed.
13840 Rearrange codes for mouse grabbing. Add tooltip support. Include the
13841 contents of do_os_event and do_events. Remove mouse movement
13842 handling (now in do_mouse_moved). Add the case where
13843 Vmouse_highlight has an integer value.
13844 (NewMacWindow): Remove.
13845 (make_mac_frame): Do what NewMacWindow previously did. Don't do
13846 excess initializations.
13847 (make_mac_terminal_frame): Previous initializations in
13848 make_mac_frame are moved here.
13849 (mac_initialize_display_info):
13850 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
13851
13852 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
13853 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
13854
13855 2004-05-29 Richard M. Stallman <rms@gnu.org>
13856
13857 * lisp.h (truncate_undo_list): Update decl.
13858
13859 * alloc.c (undo_outer_limit): New variable.
13860 (syms_of_alloc): Defvar it.
13861 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
13862
13863 * undo.c (truncate_undo_list): New arg LIMITSIZE.
13864
13865 * alloc.c (lisp_align_malloc): Check for base == 0
13866 regardless of HAVE_POSIX_MEMALIGN.
13867 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
13868
13869 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13870
13871 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
13872 (marker_blocks_pending_free): Remove.
13873 (Fgarbage_collect): Sweep after cleaning up undo-lists.
13874 Mark the undo lists after claning them up.
13875 Don't free block in marker_blocks_pending_free.
13876 (mark_buffer): Don't mark undo_list.
13877 (gc_sweep): Sweep hash-tables and strings first.
13878 Do free marker blocks that are empty.
13879
13880 2004-05-28 Jim Blandy <jimb@redhat.com>
13881
13882 * regex.c (print_partial_compiled_pattern): Add missing 'break'
13883 after 'case wordend'. For symbeg and symend, print to stderr,
13884 like the other cases.
13885
13886 2004-05-28 Noah Friedman <friedman@splode.com>
13887
13888 * process.c (Fdelete_process): Do not call remove_process.
13889
13890 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13891
13892 * alloc.c (struct backtrace): Remove.
13893 (Fgarbage_collect): Use the new mark_backtrace.
13894
13895 * eval.c (mark_backtrace): New function.
13896
13897 * minibuf.c (run_exit_minibuf_hook): New function.
13898 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
13899 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
13900
13901 2004-05-27 Kim F. Storm <storm@cua.dk>
13902
13903 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
13904 over display properties, e.g. images, that replace buffer text.
13905
13906 2004-05-25 Kim F. Storm <storm@cua.dk>
13907
13908 * alloc.c (marker_blocks_pending_free): New var.
13909 (gc_sweep): Store free marker blocks on that list.
13910 (Fgarbage_collect): Free them after undo-list cleanup.
13911
13912 * process.c (wait_reading_process_input): Check connect_wait_mask
13913 before actually accepting connection in case it has already been
13914 accepted due to recursion.
13915
13916 2004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
13917
13918 * coding.c (Fset_safe_terminal_coding_system_internal):
13919 Set suppress_error in safe_terminal_coding, not terminal_coding.
13920
13921 2004-05-22 Richard M. Stallman <rms@gnu.org>
13922
13923 * alloc.c (Fmake_string): Doc fix.
13924
13925 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
13926 and the alist pairs too.
13927
13928 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
13929
13930 * emacs.c (main): Update copyright year.
13931
13932 * fileio.c (Fread_file_name): Expand DIR if not absolute.
13933
13934 * insdel.c (del_range_2, replace_range): Don't write an anchor
13935 if the gap is empty.
13936
13937 * xdisp.c (try_scrolling): If scroll-up-aggressively or
13938 scroll-down-aggressively is small but positive, put point
13939 near the screen edge.
13940
13941 2004-05-22 Juanma Barranquero <lektu@terra.es>
13942
13943 * keymap.c (Fdefine_key): Doc fix.
13944
13945 2004-05-22 Kim F. Storm <storm@cua.dk>
13946
13947 * alloc.c (struct backtrace): Add debug_on_exit member.
13948 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
13949 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
13950 the removed cons cells.
13951 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
13952 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
13953 any cons cells pointing to unallocated stings.
13954 Do not lisp_free any marker blocks, as there may still be pointers
13955 to them from buffer undo lists at this stage of GC.
13956
13957 * keyboard.c (struct backtrace): Add debug_on_exit member.
13958 (Fcommand_execute): Clear it.
13959
13960 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
13961
13962 * intervals.c (lookup_char_property): Do not prematurely return nil.
13963
13964 2004-05-19 Jim Blandy <jimb@redhat.com>
13965
13966 Add support for new '\_<' and '\_>' regexp operators, matching the
13967 beginning and end of symbols.
13968
13969 * regex.c (enum syntaxcode): Add Ssymbol.
13970 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
13971 (re_opcode_t): New opcodes `symbeg' and `symend'.
13972 (print_partial_compiled_pattern): Print the new opcodes properly.
13973 (regex_compile): Parse the new operators.
13974 (analyse_first): Skip sym(beg|end) (they match only the empty string).
13975 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
13976 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
13977 (re_match_2_internal): Match symbeg and symend.
13978
13979 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
13980
13981 2004-05-19 Kim F. Storm <storm@cua.dk>
13982
13983 * .gdbinit (xsymbol): Fix last change.
13984
13985 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
13986
13987 * .gdbinit (xprintstr): New fun.
13988 (xstring, xprintsym): Use it.
13989
13990 * w32proc.c (create_child): Use INTMASK.
13991
13992 * alloc.c (Fgarbage_collect): Do all the marking before flushing
13993 unmarked elements of the undo list.
13994
13995 2004-05-18 David Ponce <david@dponce.com>
13996
13997 * print.c (print): Reset print_depth before to call print_object.
13998
13999 2004-05-18 Jason Rumney <jasonr@gnu.org>
14000
14001 * w32console.c: Prefix RIF functions with w32con_ to avoid
14002 namespace clash with functions in term.c and w32term.c.
14003
14004 * w32menu.c (add_menu_item, w32_menu_display_help)
14005 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
14006
14007 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
14008
14009 2004-05-18 Eli Zaretskii <eliz@gnu.org>
14010
14011 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
14012
14013 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
14014 with make_number.
14015 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
14016 with XINT.
14017
14018 2004-05-18 Kim F. Storm <storm@cua.dk>
14019
14020 * blockinput.h (INPUT_BLOCKED_P): New macros.
14021
14022 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
14023 (Ftop_level): Unblock input if blocked.
14024
14025 * buffer.h (GET_OVERLAYS_AT): New macro.
14026 * msdos.c (IT_note_mouse_highlight): Use it.
14027 * textprop.c (get_char_property_and_overlay): Use it.
14028 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
14029 * xfaces.c (face_at_buffer_position): Use it.
14030
14031 * print.c (print_object): Increase buf size.
14032
14033 2004-05-17 Jason Rumney <jasonr@gnu.org>
14034
14035 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
14036 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
14037 Lisp_Object using i member.
14038 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
14039 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
14040 consistently.
14041
14042 * w32proc.c (create_child): Use make_number instead of masking pid.
14043
14044 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
14045 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
14046 Use EQ to compare Lisp_Objects.
14047 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
14048
14049 * w32term.c (w32_num_mouse_buttons): Rename from
14050 Vw32_num_mouse_buttons and make it an int.
14051
14052 * w32.c (init_environment): Use it.
14053
14054 * w32fns.c (w32_wnd_proc): Likewise.
14055
14056 * w32proc.c (w32_pipe_read_delay): Rename from
14057 Vw32_pipe_read_delay and make it an int.
14058
14059 * w32.c (_sys_read_ahead): Use it.
14060
14061 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
14062
14063 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
14064
14065 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
14066 (key_event): Don't mix Lisp_Object and int.
14067
14068 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
14069
14070 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
14071 modifiers in language change event.
14072
14073 2004-05-17 Kim F. Storm <storm@cua.dk>
14074
14075 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
14076 Such objects may be freed markers which still exist on an undo list.
14077
14078 2004-05-16 Juanma Barranquero <lektu@terra.es>
14079
14080 * data.c (Fset_default): Make argument names match their use in
14081 docstring.
14082
14083 2004-05-15 Andreas Schwab <schwab@suse.de>
14084
14085 * emacs.c (gdb_array_mark_flag): Define.
14086 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
14087
14088 2004-05-15 Eli Zaretskii <eliz@gnu.org>
14089
14090 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
14091 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
14092 defined for the MS-DOS build.
14093
14094 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
14095
14096 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
14097
14098 2004-05-14 Kenichi Handa <handa@m17n.org>
14099
14100 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
14101
14102 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14103
14104 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
14105 section to frame.c section.
14106 (Fxw_display_color_p, Fx_file_dialog): Declare if
14107 HAVE_WINDOW_SYSTEM defined.
14108
14109 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
14110
14111 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
14112
14113 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
14114 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
14115 (XTread_socket): Fix int/Lisp_Object mixup.
14116 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
14117
14118 * macterm.h (struct frame, struct face, struct image)
14119 (display_x_get_resource, Fx_display_color_p)
14120 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
14121 Add prototypes.
14122
14123 2004-05-14 Kim F. Storm <storm@cua.dk>
14124
14125 * process.c (wait_reading_process_input): Make reentrant.
14126 Make Available and Connecting non-static. Save and restore value
14127 of waiting_for_user_input_p.
14128
14129 2004-05-13 Kim F. Storm <storm@cua.dk>
14130
14131 * keyboard.c (mark_kboards): Don't mark x and y members
14132 that are overloaded in selection request events.
14133
14134 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14135
14136 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
14137
14138 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
14139
14140 * window.c (Fdisplay_buffer, Fsplit_window)
14141 (split-height-threshold): Doc fix.
14142
14143 2004-05-13 Juanma Barranquero <lektu@terra.es>
14144
14145 * xfaces.c (Ftty_supports_face_attributes_p)
14146 (Finternal_copy_lisp_face): Fix typo in docstring.
14147 (Finternal_get_lisp_face_attribute): Fix docstring.
14148
14149 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14150
14151 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
14152
14153 2004-05-11 Steven Tamm <steventamm@mac.com>
14154
14155 * macfns.c (Fx_create_frame): Default to using tool-bar by
14156 setting tool-bar-lines to 1 in default-frame-alist.
14157
14158 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14159
14160 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
14161 (xpm_get_color_table_v, xpm_make_color_table_h)
14162 (xpm_put_color_table_h, xpm_get_color_table_h)
14163 (xpm_str_to_color_key, xpm_load_image, xpm_load)
14164 (syms_of_image): Support XPM on Carbon Emacs. Does not
14165 depend on libXpm, but only supports XPM version 3 without extensions.
14166
14167 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14168
14169 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
14170 instead of FRAME_X_P
14171
14172 2004-05-11 Kim F. Storm <storm@cua.dk>
14173
14174 * process.c (read_process_output): Grow decoding_buf when needed;
14175 this could cause a crash in allocate_string and compact_small_strings.
14176
14177 2004-04-29 Jim Blandy <jimb@redhat.com>
14178
14179 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
14180 against proper opcode.
14181
14182 2004-05-10 Juanma Barranquero <lektu@terra.es>
14183
14184 * process.c (Fstart_process): Fix docstring.
14185
14186 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
14187 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
14188 (Fsplit_char, Fchar_charset): Make argument names match their use
14189 in docstring.
14190
14191 2004-05-10 Richard M. Stallman <rms@gnu.org>
14192
14193 * print.c (print_preprocess): Use being_printed, loop_count and
14194 halftail to detect overdeep nesting and cyclic cdr chains.
14195
14196 2004-05-10 Andreas Schwab <schwab@suse.de>
14197
14198 * lisp.h (Fmake_symbolic_link): Declare.
14199
14200 * fileio.c (Frename_file): Remove extra argument in call to
14201 Fmake_symbolic_link.
14202
14203 2004-05-10 Kim F. Storm <storm@cua.dk>
14204
14205 * xdisp.c (calc_line_height_property): Use string position when
14206 object is a string.
14207
14208 2004-05-10 Kenichi Handa <handa@m17n.org>
14209
14210 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
14211 inhibit-modification-hooks to t temporarily before calling
14212 Ferase_buffer.
14213
14214 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
14215 inhibit-modification-hooks to t temporarily before calling
14216 Ferase_buffer.
14217
14218 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
14219 inhibit-modification-hooks to t temporarily before calling
14220 Ferase_buffer.
14221
14222 * fns.c (count_combining): Delete it.
14223 (concat): Don't check combining bytes.
14224
14225 2004-05-09 Jason Rumney <jasonr@gnu.org>
14226
14227 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
14228 (globals_of_w32fns): Set it.
14229
14230 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
14231
14232 * data.c (Fquo): Simplify.
14233
14234 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
14235
14236 * data.c (Fquo): If any argument is float, do the computation in
14237 floating point.
14238
14239 2004-05-08 Juanma Barranquero <lektu@terra.es>
14240
14241 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
14242 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
14243 Fix spelling of Emacs on docstring.
14244 (Fset_process_coding_system, Fprocess_coding_system)
14245 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
14246 Make argument names match their use in docstring.
14247 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
14248 Fix docstring.
14249
14250 * editfns.c (Finsert_buffer_substring): Make argument names match their
14251 use in docstring.
14252
14253 * syntax.c (Fmodify_syntax_entry): Fix docstring.
14254
14255 2004-05-07 Steven Tamm <steventamm@mac.com>
14256
14257 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
14258 around call to ReceiveEvent to avoid certain crashes.
14259
14260 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14261
14262 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
14263 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
14264 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
14265 Save/restore the current graphics port and device handle when
14266 drawing into an offscreen graphics world.
14267
14268 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
14269 (gif_load): Likewise.
14270
14271 2004-05-07 Juanma Barranquero <lektu@terra.es>
14272
14273 * window.c (Fset_window_buffer): Fix docstring.
14274
14275 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
14276
14277 * emacs.c (main) [VMS]: Fix var ref.
14278
14279 2004-05-06 Romain Francoise <romain@orebokech.com>
14280
14281 * data.c (Fsetq_default): Fix docstring.
14282
14283 2004-05-06 Jason Rumney <jasonr@gnu.org>
14284
14285 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
14286 to avoid name clash.
14287
14288 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14289
14290 * fileio.c (barf_or_query_if_file_exists): Use lstat.
14291 (Frename_file): Handle renaming of symlinks across file systems.
14292 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
14293
14294 2004-05-04 Kim F. Storm <storm@cua.dk>
14295
14296 * xdisp.c (Qtotal): New var.
14297 (syms_of_xdisp): Intern and staticpro it.
14298 (calc_line_height_property): New arg total. Set it if
14299 line-spacing property has format (total . VALUE).
14300 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
14301 Handle total line-spacing property.
14302
14303 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14304
14305 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
14306 "under" scroll bar when size/position changes.
14307
14308 2004-05-03 Jason Rumney <jasonr@gnu.org>
14309
14310 * makefile.nt: Remove.
14311
14312 2004-05-02 Eli Zaretskii <eliz@gnu.org>
14313
14314 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
14315 Avoid compiler warnings.
14316
14317 * Makefile.in (region-cache.o): Depend on config.h.
14318
14319 2004-05-02 Romain Francoise <romain@orebokech.com>
14320
14321 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
14322 with continuation lines, too.
14323
14324 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
14325
14326 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
14327
14328 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
14329
14330 * xdisp.c (calc_line_height_property): YAILOM (yet another
14331 int/Lisp_Object mixup).
14332
14333 2004-05-01 Eli Zaretskii <eliz@gnu.org>
14334
14335 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
14336 undo bad effect of pack(4) in some versions of system headers.
14337
14338 2004-05-01 Jason Rumney <jasonr@gnu.org>
14339
14340 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
14341
14342 2004-04-30 Kim F. Storm <storm@cua.dk>
14343
14344 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
14345 (syms_of_buffer) <cursor-type>: Doc fix.
14346
14347 * dispextern.h (struct it): Remove member use_default_face.
14348 Add members override_ascent, override_descent, override_boff.
14349
14350 * xdisp.c (init_iterator): Handle line-spacing float value.
14351 Initialize override_ascent member.
14352 (append_space_for_newline): Reset override_ascent.
14353 Remove use_default_face.
14354 (calc_line_height_property): New function to calculate value of
14355 line-height and line-spacing properties. Look at overlays, too.
14356 Set override_ascent, override_descent, override_boff members when
14357 using another face than the current face. Float values are now
14358 relative to the frame default font, by default; accept a cons
14359 of ratio and face name to specify value relative to a specific face.
14360 (x_produce_glyphs): Use calc_line_height_property.
14361 Use override_ascent etc. when set to handle different face heights.
14362 A negative line-spacing property value is interpreted as a total
14363 line height, rather than inter-line spacing.
14364 (note_mouse_highlight): Allocate room for 40 overlays initially.
14365
14366 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
14367
14368 * data.c (Fsubr_name): New fun.
14369 (syms_of_data): Defsubr it.
14370
14371 2004-04-29 Kim F. Storm <storm@cua.dk>
14372
14373 * xdisp.c (null_glyph_slice): New var.
14374 (append_glyph, append_composite_glyph, append_stretch_glyph):
14375 Use it to initialize glyph slice.
14376
14377 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
14378
14379 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
14380 (on_hot_spot_p): Make sure we always return a value.
14381 (Flookup_image_map): Remove unused var ix and iy.
14382 (note_mode_line_or_margin_highlight): Remove unused var `image'.
14383
14384 2004-04-27 Eli Zaretskii <eliz@gnu.org>
14385
14386 * msdos.c (init_environment): If one of the TMP... environment
14387 variables is set to a drive letter without a trailing slash,
14388 append a slash.
14389
14390 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
14391
14392 * editfns.c (lisp_time_argument): Provide externally.
14393
14394 * fileio.c (Fset_file_times): New function.
14395 (syms_of_fileio): Intern and staticpro it.
14396
14397 2004-04-27 Kim F. Storm <storm@cua.dk>
14398
14399 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
14400 header line strings.
14401
14402 * dispextern.h (struct it): New member use_default_face.
14403
14404 * xdisp.c (Qline_height): New variable.
14405 (syms_of_xdisp): Intern and staticpro it.
14406 (append_space_for_newline): Partially undo 2004-04-25 change;
14407 add default_face_p arg, and restore callers.
14408 Clear it->use_default_face after use.
14409 (x_produce_glyphs): Set default font for ascii char if
14410 it->use_default_font is set. Change line-spacing property to set
14411 just extra line spacing. Handle new line-height property.
14412
14413 2004-04-26 Andreas Schwab <schwab@suse.de>
14414
14415 * print.c (print_object): Print non-ascii characters in bool
14416 vector representation as octal escapes.
14417
14418 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
14419 * print.c (print_object): Use it instead of BITS_PER_CHAR for
14420 bool vectors.
14421 * lread.c (read1): Likewise.
14422 * alloc.c (Fmake_bool_vector): Likewise.
14423 * data.c (Faref, Faset): Likewise.
14424 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
14425 (mapcar1): Likewise.
14426
14427 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
14428
14429 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
14430
14431 2004-04-26 Miles Bader <miles@gnu.org>
14432
14433 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
14434
14435 2004-04-26 Juanma Barranquero <lektu@terra.es>
14436
14437 * buffer.c (Fpop_to_buffer): Fix docstring.
14438
14439 2004-04-26 Steven Tamm <steventamm@mac.com>
14440
14441 * lread.c (init_lread): Don't display missing lisp directory
14442 warnings with Carbon Emacs because self-contained bundled Emacs
14443 may be built without correct installation path.
14444
14445 2004-04-25 Kim F. Storm <storm@cua.dk>
14446
14447 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
14448
14449 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
14450
14451 * xdisp.c (append_space_for_newline): Rename from append_space.
14452 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
14453 (x_produce_glyphs): Handle line-spacing property on newline char.
14454 If value is t, adjust ascent and descent to fit current row height.
14455 If value is an integer or float, set extra_line_spacing to integer
14456 value, or to float value x current line height.
14457
14458 2004-04-23 Kenichi Handa <handa@m17n.org>
14459
14460 * fontset.c (Finternal_char_font): If POSITION is nil, return
14461 font for displaying CH with the default face.
14462
14463 2004-04-23 Juanma Barranquero <lektu@terra.es>
14464
14465 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
14466
14467 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14468
14469 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
14470 Don't make assumptions about the relative place of i and val.
14471 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
14472
14473 2004-04-21 Kim F. Storm <storm@cua.dk>
14474
14475 * dispextern.h (struct glyph_slice): New struct.
14476 (struct glyph): New member slice.
14477 (GLYPH_SLICE_EQUAL_P): New macro.
14478 (GLYPH_EQUAL_P): Use it.
14479 (struct glyph_string): New member slice.
14480 (struct it_slice): New struct.
14481 (struct it): New member slice, add member to stack too.
14482 New member constrain_row_ascent_descent_p.
14483 (image_ascent): Add prototype.
14484
14485 * dispnew.c (buffer_posn_from_coords): Return full image width
14486 and height even for image slices (posn is relative to full image).
14487 (marginal_area_string): Adjust x0,y0 for image slice.
14488
14489 * image.c (image_ascent): Add slice arg; calculate ascent for
14490 image slice (or full image).
14491
14492 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
14493 (syms_of_keyboard): Defsubr them.
14494
14495 * lisp.h (pos_visible_p): Fix prototype.
14496
14497 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
14498 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14499 (x_draw_image_foreground, x_draw_image_relief)
14500 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14501 Draw sliced images.
14502
14503 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
14504 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14505 (x_draw_image_foreground, x_draw_image_relief)
14506 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
14507 Draw sliced images.
14508
14509 * w32term.h (image_ascent): Remove prototype.
14510
14511 * window.c (Fpos_visible_in_window_p): Return pixel position if
14512 PARTIALLY arg is non-nil. Simplify. Doc fix.
14513 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
14514 to return/set vscroll in pixels.
14515
14516 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
14517
14518 * xdisp.c (Qslice): New variable.
14519 (syms_of_xdisp): Intern and staticpro it.
14520 (pos_visible_p): Return pixel position in new x and y args.
14521 (init_iterator): Reset it->slice info.
14522 (handle_display_prop): Parse (slice ...) property.
14523 (push_it, pop_it): Save/restore slice info.
14524 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
14525 force repositioning of tall row if window is vscrolled, as that
14526 would reset vscroll.
14527 (append_space): Set it->constrain_row_ascent_descent_p to avoid
14528 increasing row height if row is non-empty.
14529 (fill_image_glyph_string): Copy slice info.
14530 (take_vertical_position_into_account): Simplify.
14531 (produce_image_glyph): Handle iterator slice info, setup glyph
14532 slice info. Do not force minimum line height.
14533 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
14534 do not increase height (ascent/descent) of non-empty row when
14535 adding normal character glyph; instead reduce glyph ascent/descent
14536 appropriately; if row is higher than current glyph, adjust glyph
14537 descent/ascent to reposition glyph within the existing row.
14538 Likewise, when char is newline, only set ascent/descent if row is
14539 currently empty.
14540 (note_mouse_highlight): Handle hotspots with sliced image.
14541
14542 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
14543 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14544 (x_draw_image_foreground, x_draw_image_relief)
14545 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14546 Draw sliced images.
14547
14548 * xterm.h (image_ascent): Remove prototype.
14549
14550 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
14551
14552 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
14553
14554 2004-04-20 John Paul Wallington <jpw@gnu.org>
14555
14556 * fns.c (Fassoc, Feql): Fix indentation.
14557
14558 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
14559
14560 2004-04-19 John Paul Wallington <jpw@gnu.org>
14561
14562 * fns.c (Feql): New function.
14563 (syms_of_fns): Defsubr it.
14564
14565 2004-04-18 Jason Rumney <jasonr@gnu.org>
14566
14567 * w32select.c (Fw32_set_clipboard_data): Get sequence number
14568 after closing the clipboard.
14569
14570 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
14571
14572 * buffer.c (Fbuffer_base_buffer): Doc fix.
14573
14574 2004-04-17 Kim F. Storm <storm@cua.dk>
14575
14576 * keymap.c (Fkey_description): Add optional PREFIX arg.
14577 Combine prefix with KEYS to make up the full key sequence to describe.
14578 Correlate meta_prefix_char and following (simple) key to describe
14579 as meta modifier. All callers changed.
14580 (describe_map): Rename arg `keys' to `prefix'. Remove local
14581 `elt_prefix' var. Use Fkey_description with prefix instead of
14582 elt_prefix combined with Fsingle_key_description.
14583 (describe_vector): Declare static. Replace arg `elt_prefix' with
14584 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
14585 if !KEYMAP_P. Use Fkey_description with prefix instead of
14586 Fsingle_key_description.
14587
14588 * keymap.h (Fkey_description): Fix prototype.
14589 (describe_vector): Remove prototype.
14590
14591 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
14592
14593 * image.c (PNG_BG_COLOR_SHIFT): Remove.
14594 (png_load): Fix calculation of transparent background color on X
14595 and W32 platforms.
14596
14597 2004-04-16 Juanma Barranquero <lektu@terra.es>
14598
14599 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
14600 not too large before computing how much to scroll.
14601
14602 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
14603
14604 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
14605
14606 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
14607
14608 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
14609 Add hyperlink to Elisp manual to the docstring.
14610
14611 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
14612
14613 * callint.c (fix_command): Use XDCR.
14614
14615 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
14616
14617 * window.c (Fget_lru_window): Doc fix.
14618
14619 2004-04-14 Kim F. Storm <storm@cua.dk>
14620
14621 * editfns.c (Fformat): Fix allocation size of precision array.
14622
14623 * dispnew.c (update_window): Only set changed_p if
14624 scrolling_window actually did scroll.
14625 (scrolling_window): Only return 1 if we actually did scroll.
14626
14627 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
14628 height to glyph height when cursor row is not fully visible.
14629 (make_cursor_line_fully_visible): Add FORCE_P arg to return
14630 failure in case row is higher than window. Callers changed.
14631 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
14632 Try to scroll partially visible, higher-than-window cursor row.
14633 (redisplay_window): Always try to scroll partially visible,
14634 higher-than-window cursor row - both initially and again with
14635 centering_position = 0.
14636 Clear desired matrix before retrying with centering_position = 0.
14637
14638 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14639
14640 * syntax.c (scan_lists): Simplify backward string scan.
14641 Fix off-by-one boundary check for string and comment fences.
14642
14643 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
14644
14645 * sheap.c, unexcw.c: New files.
14646
14647 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
14648
14649 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
14650 base buffer has been killed. Correct the error message if the
14651 base buffer does not exist.
14652
14653 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
14654
14655 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
14656 Cygwin itself. Add support for Xaw3d scrollbars.
14657
14658 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
14659
14660 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
14661
14662 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
14663 before Cygwin unexec.
14664
14665 * Makefile.in: Link changes for Cygwin unexec() support.
14666
14667 2004-04-12 Andreas Schwab <schwab@suse.de>
14668
14669 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
14670
14671 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
14672
14673 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
14674 IGNORE argument equals NAME. Doc fix.
14675
14676 2004-04-11 Masatake YAMATO <jet@gyve.org>
14677
14678 * buffer.c (fix_start_end_in_overlays): Make overlays
14679 empty if they are backwards.
14680
14681 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14682
14683 * xfaces.c (face_color_supported_p): Fix compilation without X11.
14684
14685 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
14686
14687 * doc.c (Fsnarf_documentation): Ignore new file name entries.
14688
14689 2004-04-06 Kim F. Storm <storm@cua.dk>
14690
14691 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14692 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
14693
14694 * w32term.c (w32_read_socket): Set mouse_face_hidden after
14695 clearing highlight.
14696
14697 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14698
14699 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
14700 clearing highlight.
14701
14702 * indent.c (vmotion): Do not reserve one column for continuation
14703 marks on window frames.
14704
14705 2004-04-04 Eli Zaretskii <eliz@gnu.org>
14706
14707 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
14708 from GCC.
14709
14710 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14711
14712 * .gdbinit-union: Remove.
14713
14714 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
14715 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
14716 ($nonvalbits): Remove.
14717 ($valmask): Set it by calling xreload to avoid redundancy.
14718
14719 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
14720 (gdb_emacs_intbits): Remove.
14721
14722 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14723
14724 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
14725
14726 2004-03-30 Kenichi Handa <handa@m17n.org>
14727
14728 * editfns.c (Fformat): Fix initialization of the array info.
14729
14730 2004-03-30 Kim F. Storm <storm@cua.dk>
14731
14732 * xterm.c (x_mouse_click_focus_ignore_position): New var.
14733 (syms_of_xterm): DEFVAR_BOOL it.
14734 (ignore_next_mouse_click_timeout): New var.
14735 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
14736 Use it to filter mouse clicks following focus event.
14737
14738 2004-03-29 David Ponce <david@dponce.com>
14739
14740 * callint.c (Fcall_interactively): Fix last change.
14741
14742 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14743
14744 * eval.c (Fcommandp): Simplify.
14745
14746 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
14747 Extend to handle all kinds of functions.
14748
14749 * lisp.h (Finteractive_form): Declare.
14750
14751 * callint.c (Fcall_interactively): Use it.
14752
14753 2004-03-26 Kim F. Storm <storm@cua.dk>
14754
14755 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
14756 to catch errors in calc_pixel_width_or_height during redisplay.
14757
14758 2004-03-26 Masatake YAMATO <jet@gyve.org>
14759
14760 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
14761
14762 * lisp.h (fix_start_end_in_overlays): Likewise.
14763
14764 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
14765
14766 * editfns.c (Ftranspose_regions): Likewise.
14767
14768 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14769
14770 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
14771
14772 2004-03-19 Richard M. Stallman <rms@gnu.org>
14773
14774 * s/sol2-6.h: Delete previous change.
14775
14776 2004-03-19 Kim F. Storm <storm@cua.dk>
14777
14778 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
14779 to_charpos corresponds to newline in right fringe. Use local
14780 BUFFER_POS_REACHED_P macro.
14781
14782 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14783
14784 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
14785 to compile on non-window system.
14786
14787 2004-03-19 Kim F. Storm <storm@cua.dk>
14788
14789 * dispextern.h (calc_pixel_width_or_height): Add prototype.
14790
14791 * image.c (Qcenter): Move to xdisp.c.
14792
14793 * xdisp.c (Qcenter): Declare here.
14794 (syms_of_xdisp): Intern and staticpro it.
14795 (handle_single_display_prop): Allow space display property on all
14796 platforms.
14797 (display_mode_line): Set mode_line_p before displaying line.
14798 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
14799 handling. Remove complex cases for fringes and scroll-bars.
14800 Add left, right, and center alignment positions. Add text (area)
14801 width/height. Return width or height for image specs.
14802 (produce_stretch_glyph): Improve handling of :align-to. Is now
14803 relative to left of text area by default, but other base offsets
14804 can be specified -- also for text lines.
14805
14806 * term.c (produce_glyphs): Handle IT_STRETCH.
14807 (produce_stretch_glyph): New function to handle space width and
14808 align-to display properties on non-window systems.
14809
14810 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * fileio.c (Fread_file_name): Set completion-ignore-case for
14813 case-insensitive systems.
14814
14815 2004-03-14 Masatake YAMATO <jet@gyve.org>
14816
14817 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
14818 when keymap and cursor are setup.
14819
14820 2004-03-14 Steven Tamm <steventamm@mac.com>
14821
14822 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
14823
14824 2004-03-14 Kim F. Storm <storm@cua.dk>
14825
14826 * dispextern.h (x_find_image_file): Add prototype.
14827
14828 * image.c (x_find_image_file): Make extern.
14829
14830 * xfns.c (x_find_image_file): Remove prototype.
14831
14832 2004-03-13 Eli Zaretskii <eliz@gnu.org>
14833
14834 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
14835
14836 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
14837
14838 2004-03-12 Richard M. Stallman <rms@gnu.org>
14839
14840 * fns.c (internal_equal): New arg PROPS controls comparing
14841 text properties. All callers changed.
14842 (Fequal_including_properties): New function.
14843 (syms_of_fns): defsubr it.
14844
14845 2004-03-12 Kim F. Storm <storm@cua.dk>
14846
14847 Fix image support on MAC. From YAMAMOTO Mitsuharu.
14848
14849 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
14850 (image_background, image_background_transparent): Fix prototypes.
14851
14852 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
14853
14854 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
14855 (x_query_font, x_find_ccl_program, x_set_window_size)
14856 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14857 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14858 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
14859
14860 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
14861 (x_query_font, x_find_ccl_program, x_set_window_size)
14862 (x_make_frame_visible, mac_initialize, XCreatePixmap)
14863 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14864 (mac_draw_line_to_pixmap): Add prototypes.
14865
14866 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14867
14868 * macterm.c (XTread_socket): Fix mouse click on tool bar.
14869
14870 2004-03-11 Kim F. Storm <storm@cua.dk>
14871
14872 * dispextern.h: Move image related prototypes from xfns.c section
14873 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
14874 HAVE_X_WINDOWS.
14875
14876 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
14877 Move gtkutil.o to new GTK_OBJ list.
14878 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
14879 (GTK_OBJ) [USE_GTK]: New declaration.
14880 (obj): Add $(GTK_OBJ) to list.
14881
14882 2004-03-11 Steven Tamm <steventamm@mac.com>
14883
14884 * image.c [MAC_OSX]: Include sys/stat.h.
14885
14886 * macfns.c (syms_of_macfns): Remove definitions of things now
14887 defined in image.c.
14888
14889 2004-03-11 Kim F. Storm <storm@cua.dk>
14890
14891 The following changes consolidates the identical/similar image
14892 support code previously found in xfns.c, w32fns.c, and macfns.c
14893 into a new file image.c.
14894
14895 * makefile.w32-in (OBJ1): Add image.o.
14896 ($(BLD)/image.$(O)): Add dependencies.
14897
14898 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
14899 (image.o): Add dependencies.
14900
14901 * image.c: New file with consolidated image support code.
14902 (COLOR_TABLE_SUPPORT): New define to control whether
14903 color table support is available (X only).
14904 (Bitmap_Record): Common name for x_bitmap_record,
14905 w32_bitmap_record, and mac_bitmap_record.
14906 (XImagePtr): Common name for pointer to XImage or equivalent.
14907 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
14908 to XImagePtr on X+MAC, and to HDC on W32.
14909 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
14910 (NO_PIXMAP): Common name for "None" or equivalent.
14911 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
14912 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
14913 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
14914 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
14915 Define with suitable equivalents on W32 and MAC for code sharing.
14916 (XDrawLine): Define on MAC for code sharing.
14917 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
14918 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
14919 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14920 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14921 (x_reference_bitmap, x_create_bitmap_from_data)
14922 (x_create_bitmap_from_file, x_destroy_bitmap)
14923 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14924 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14925 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14926 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14927 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14928 (define_image_type, lookup_image_type, valid_image_p)
14929 (image_error, enum image_value_type, struct image_keyword)
14930 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14931 (make_image, free_image, prepare_image_for_display, image_ascent)
14932 (four_corners_best, image_background, image_background_transparent)
14933 (x_clear_image_1, x_clear_image, x_alloc_image_color)
14934 (make_image_cache, free_image_cache, clear_image_cache)
14935 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14936 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14937 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14938 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14939 (init_image_func_pointer, image_load_quartz2d)
14940 (struct ct_color, init_color_table, free_color_table)
14941 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14942 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14943 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14944 (x_disable_image, x_build_heuristic_mask)
14945 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14946 (TIFF support, GIF support, Ghostscript support): Consolidate image
14947 code from xfns.c, w32fns.c, and macfns.c.
14948 (syms_of_image): Consolidate image related symbol setup here.
14949 (init_image): Consolidate image related initializations here.
14950
14951 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
14952 and init_image. Remove call to init_xfns.
14953
14954 * macterm.h (struct mac_bitmap_record): Add file member.
14955 Not currently used, but simplifies code sharing.
14956
14957 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14958 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14959 (x_reference_bitmap, x_create_bitmap_from_data)
14960 (x_create_bitmap_from_file, x_destroy_bitmap)
14961 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14962 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14963 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14964 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14965 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14966 (define_image_type, lookup_image_type, valid_image_p)
14967 (image_error, enum image_value_type, struct image_keyword)
14968 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14969 (make_image, free_image, prepare_image_for_display, image_ascent)
14970 (four_corners_best, image_background, image_background_transparent)
14971 (x_clear_image_1, x_clear_image, x_alloc_image_color)
14972 (make_image_cache, free_image_cache, clear_image_cache)
14973 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14974 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14975 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14976 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14977 (init_image_func_pointer, image_load_quartz2d)
14978 (struct ct_color, init_color_table, free_color_table)
14979 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14980 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14981 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14982 (x_disable_image, x_build_heuristic_mask)
14983 (XBM support, XPM support, PBM support, PNG support, JPEG support)
14984 (TIFF support, GIF support, Ghostscript support): Merge with image
14985 code from xfns.c and macfns.c into image.c.
14986 (syms_of_xfns): Move image related symbols to image.c.
14987 (init_external_image_libraries, init_xfns): Remove; initialization
14988 moved to init_image in image.c.
14989
14990 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14991 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14992 (x_reference_bitmap, x_create_bitmap_from_data)
14993 (x_create_bitmap_from_file, x_destroy_bitmap)
14994 (x_destroy_all_bitmaps, x_create_bitmap_mask)
14995 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14996 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14997 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14998 (define_image_type, lookup_image_type, valid_image_p)
14999 (image_error, enum image_value_type, struct image_keyword)
15000 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15001 (make_image, free_image, prepare_image_for_display, image_ascent)
15002 (four_corners_best, image_background, image_background_transparent)
15003 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15004 (make_image_cache, free_image_cache, clear_image_cache)
15005 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15006 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15007 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15008 (struct ct_color, init_color_table, free_color_table)
15009 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15010 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15011 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15012 (x_disable_image, x_build_heuristic_mask)
15013 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15014 (TIFF support, GIF support, Ghostscript support): Merge with image
15015 code from xfns.c and macfns.c into image.c.
15016 (syms_of_xfns): Move image related symbols to image.c.
15017 (init_external_image_libraries, init_xfns): Remove; initialization
15018 moved to init_image in image.c.
15019
15020 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15021 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15022 (x_reference_bitmap, x_create_bitmap_from_data)
15023 (x_create_bitmap_from_file, x_destroy_bitmap)
15024 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15025 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15026 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15027 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15028 (define_image_type, lookup_image_type, valid_image_p)
15029 (image_error, enum image_value_type, struct image_keyword)
15030 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15031 (make_image, free_image, prepare_image_for_display, image_ascent)
15032 (four_corners_best, image_background, image_background_transparent)
15033 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15034 (make_image_cache, free_image_cache, clear_image_cache)
15035 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15036 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15037 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15038 (struct ct_color, init_color_table, free_color_table)
15039 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15040 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15041 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15042 (x_disable_image, x_build_heuristic_mask)
15043 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15044 (TIFF support, GIF support, Ghostscript support): Merge with
15045 w32fns.c and macfns.c image code into image.c.
15046 (syms_of_xfns): Move image related symbols to image.c.
15047 (init_xfns): Remove; initialization moved to init_image in image.c.
15048
15049 * lisp.h (syms_of_image, init_image): Add protoypes.
15050 (init_xfns): Remove prototype.
15051
15052 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15053 (x_reference_bitmap, x_create_bitmap_from_data)
15054 (x_create_bitmap_from_file, x_destroy_bitmap)
15055 (x_create_bitmap_mask): Move prototypes from dispextern.h.
15056 (gamma_correct) [MAC_OS]: Add prototype.
15057
15058 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15059 (x_reference_bitmap, x_create_bitmap_from_data)
15060 (x_create_bitmap_from_file, x_destroy_bitmap)
15061 (x_create_bitmap_mask): Move prototypes to dispextern.h.
15062
15063 2004-03-09 Kenichi Handa <handa@etlken2>
15064
15065 * coding.c (decode_coding_emacs_mule): Handle insufficent source
15066 correctly.
15067
15068 2004-03-04 Richard M. Stallman <rms@gnu.org>
15069
15070 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
15071
15072 * window.c (Fdisplay_buffer): Doc fix.
15073
15074 * buffer.c (Fpop_to_buffer): Doc fix.
15075
15076 2004-03-03 Kim F. Storm <storm@cua.dk>
15077
15078 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
15079
15080 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
15081
15082 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
15083
15084 2004-03-02 Richard M. Stallman <rms@gnu.org>
15085
15086 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
15087
15088 2004-03-02 Kenichi Handa <handa@m17n.org>
15089
15090 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
15091
15092 2004-03-02 Kim F. Storm <storm@cua.dk>
15093
15094 * window.h (struct window): New member overlay_arrow_bitmap.
15095
15096 * window.c (make_window): Initialize overlay_arrow_bitmap.
15097
15098 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
15099 implement and integrate multiple overlay arrows with redisplay.
15100 (syms_of_xdisp): DEFVAR_LISP and initialize it.
15101 (last_arrow_position, last_arrow_string): Replace by properties.
15102 (Qlast_arrow_position, Qlast_arrow_string)
15103 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
15104 (syms_of_xdisp): Intern and staticpro them.
15105 (overlay_arrow_string_or_property, update_overlay_arrows)
15106 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
15107 (overlay_arrow_at_row): New functions for multiple overlay arrows.
15108 (redisplay_internal): Use them instead of directly accessing
15109 Voverlay_arrow_position etc. for multiple overlay arrows.
15110 (mark_window_display_accurate): Use update_overlay_arrows.
15111 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
15112 (try_window_id): Use overlay_arrows_changed_p.
15113 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
15114 (display_line): Use overlay_arrow_at_row to check multiple
15115 overlay arrows, and get relevant overlay-arrow-string and
15116 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
15117 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
15118 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
15119
15120 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
15121 (update_window_fringes): Remove unused code.
15122
15123 2004-03-01 Jason Rumney <jasonr@gnu.org>
15124
15125 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
15126
15127 2004-03-01 Juanma Barranquero <lektu@terra.es>
15128
15129 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
15130
15131 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
15132
15133 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15134
15135 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
15136 how many colors can be displayed.
15137
15138 2004-03-01 Kenichi Handa <handa@m17n.org>
15139
15140 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
15141 correctly.
15142
15143 2004-02-28 Kim F. Storm <storm@cua.dk>
15144
15145 * dispnew.c (update_window): Update header line also if there are
15146 no other changes in window (move code after set_cursor label).
15147
15148 * lisp.h (mark_window_display_accurate): Remove prototype.
15149
15150 * window.c (window_loop, Fforce_window_update): Force mode line
15151 updates by setting prevent_redisplay_optimizations_p and
15152 update_mode_lines.
15153
15154 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15155
15156 * xfns.c (x_window): Fix indentation.
15157
15158 * xterm.c (x_calc_absolute_position): Call x_real_positions
15159 to get WM window sizes and use those to calculate position.
15160 (x_set_offset): Remove code commented out.
15161
15162 2004-02-28 Miles Bader <miles@gnu.org>
15163
15164 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
15165
15166 2004-02-28 Kim F. Storm <storm@cua.dk>
15167
15168 * keyboard.c (kbd_buffer_store_event_hold): New function to store
15169 an event into kbd fifo, but with special handling of quit event;
15170 a quit event is saved for later, and further events are discarded
15171 until the saved quit event has been processed.
15172 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
15173 (gen_help_event): Store help event in kbd fifo.
15174 (NREAD_INPUT_EVENTS): Remove.
15175 (read_avail_input): Adapt to new read_socket_hook interface.
15176 Remove allocation and initialization of local input_event buffer,
15177 as read_socket_hook stores events directly in fifo. Allocate and
15178 initialize local hold_quit event to handle postponed quit event
15179 (and store it if set by kbd_buffer_store_event_hold).
15180
15181 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
15182 (gen_help_event): Fix prototype.
15183
15184 * macterm.c (XTread_socket): Remove bufp_r and
15185 numcharsp args. Add hold_quit arg.
15186 Rework to use just one, local, inev input_event. Store inev
15187 directly in fifo using kbd_buffer_store_event_hold.
15188
15189 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
15190 (read_input_waiting): Adapt to new read_socket_hook interface.
15191 Remove allocation and initialization of local input_event buffer,
15192 as read_socket_hook stores events directly in fifo. Allocate and
15193 initialize local hold_quit event to handle postponed quit event
15194 (and store it if set by kbd_buffer_store_event_hold).
15195
15196 * term.c (read_socket_hook): Fix arg list.
15197
15198 * termhooks.h (read_socket_hook): Fix prototype.
15199
15200 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
15201 numcharsp args. Add hold_quit arg.
15202 Rework to use just one, local, inev input_event. Store inev
15203 directly in fifo using kbd_buffer_store_event_hold.
15204
15205 * w32inevt.h (w32_console_mouse_position): Fix prototype.
15206
15207 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
15208 Add hold_quit arg. Rework to use just one, local, inev
15209 input_event. Store inev directly in fifo using
15210 kbd_buffer_store_event_hold. Update count in one place.
15211 Postpone call to gen_help_event until inev is stored; use new
15212 local do_help for this.
15213 Remove local emacs_event in handing of ButtonPress event; just use
15214 inev instead (so no reason to copy it later).
15215
15216 * xsmfns.c (x_session_check_input): Remove numchars arg.
15217
15218 * xterm.c (x_focus_changed, x_detect_focus_change):
15219 Remove numchars arg. Always store event into bufp arg.
15220 Return nothing. Callers changed accordingly.
15221 (glyph_rect): Simplify.
15222 (STORE_KEYSYM_FOR_DEBUG): New macro.
15223 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
15224 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
15225 (current_hold_quit) [USE_GTK]: Add.
15226 (event_handler_gdk): Adapt to new handle_one_xevent.
15227 (handle_one_xevent): Remove bufp_r and numcharsp args.
15228 Add hold_quit arg. Rework to use just one, local, inev
15229 input_event. Store inev directly in fifo using
15230 kbd_buffer_store_event_hold. Update count in one place.
15231 Postpone call to gen_help_event until inev is stored; use new
15232 local do_help for this.
15233 Simplify handling of keysyms (consolidate common code). Fix bug
15234 where count was updated with nchars instead of nbytes.
15235 Remove local emacs_event in handing of ButtonPress event; just use
15236 inev instead (so no reason to copy it later).
15237 Remove `out' label. Rename label `ret' to `done'; add various
15238 `goto done' to clarify code flow in deeply nested blocks.
15239 (x_dispatch_event): Simplify as handle_one_xevent now calls
15240 kbd_buffer_store_event itself.
15241 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
15242 arg. Call handle_one_xevent with new arglist. Store event from
15243 x_session_check_input in fifo.
15244 [USE_GTK]: Setup current_hold_quit.
15245 Decrement handling_signal before unblocking input.
15246 (x_initialize) [USE_GTK]: Initialize current_count.
15247
15248 * xterm.h (x_session_check_input): Fix prototype.
15249
15250 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15251
15252 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
15253
15254 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
15255 macgui.h).
15256
15257 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
15258
15259 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
15260 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
15261 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
15262 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
15263 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
15264 (Bitmap): Remove typedef.
15265 (Pixmap): Change int to GWorldPtr.
15266
15267 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15268
15269 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15270 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
15271 New #define to extract 16-bit depth color components from unsigned
15272 long representation.
15273 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
15274 colors used for masks.
15275 (struct mac_display_info): Add color_p. Remove n_cbits.
15276
15277 * macfns.c: Include sys/types.h and sys/stat.h.
15278 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
15279 Include QuickTime/QuickTime.h.
15280 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15281 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
15282 functions defined in macterm.c.
15283 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
15284 (ZPixmap): New #define for compatibility with xfns.c.
15285 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15286 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15287 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
15288 New functions.
15289 (four_corners_best, x_create_x_image_and_pixmap)
15290 (x_destroy_x_image, unwind_create_frame, x_disable_image)
15291 (x_edge_detection, init_color_table, colors_in_color_table)
15292 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
15293 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
15294 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
15295 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
15296 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
15297 long mixup.
15298 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
15299 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
15300 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
15301 (x_set_cursor_type, Fxw_color_values, valid_image_p)
15302 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
15303 (x_alloc_image_color, clear_image_cache, lookup_image)
15304 (x_find_image_file, xbm_read_bitmap_file_data)
15305 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
15306 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
15307 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
15308 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
15309 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
15310 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
15311 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
15312 #if 0.
15313 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
15314 #if 0. Free white_relief.gc and black_relief.gc.
15315 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
15316 New functions (from xfns.c).
15317 (Fx_create_frame): Record unwind_create_frame.
15318 (Fxw_display_color_p): Use dpyinfo->color_p.
15319 (Fx_display_grayscale_p, Fx_display_planes): Don't use
15320 dpyinfo->n_cbits.
15321 (Fx_display_color_cells): Use dpyinfo->n_planes;
15322 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
15323 (Qheuristic, cross_disabled_images, emboss_matrix)
15324 (laplace_matrix): New variables (from xfns.c).
15325 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
15326 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
15327 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
15328 (image_background_transparent): New function (from xfns.c).
15329 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15330 (image_load_quicktime): Add declaration.
15331 [MAC_OSX] (image_load_quartz2d): Likewise.
15332 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
15333 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
15334 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
15335 (xbm_load_image_from_file, x_laplace_read_row)
15336 (x_laplace_write_row, pbm_read_file): Remove functions.
15337 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
15338 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
15339 (colors_in_color_table): Sync with xfns.c (although not used).
15340 (lookup_rgb_color): Don't lookup color table. Just do gamma
15341 correction.
15342 (COLOR_INTENSITY): New #define (from xfns.c).
15343 (x_disable_image): New function (from xfns.c).
15344 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15345 (x_build_heuristic_mask): Sync with xfns.c.
15346 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15347 (HAVE_PBM): Remove #ifdef.
15348 (pbm_load): Sync with xfns.c. Set img->width and img->height
15349 before IMAGE_BACKGROUND.
15350 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
15351 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
15352 Don't enclose with #if HAVE_PNG.
15353 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
15354 symbol _CGImageCreateWithPNGDataProvider is defined.
15355 Otherwise use image_load_quicktime.
15356 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
15357 [HAVE_PNG] (png_load): Sync with xfns.c.
15358 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15359 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
15360 HAVE_JPEG.
15361 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
15362 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
15363 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
15364 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
15365 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
15366 (tiff_image_p, tiff_load): Don't enclose declarations with #if
15367 HAVE_TIFF.
15368 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
15369 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
15370 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
15371 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
15372 New functions (from xfns.c).
15373 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
15374 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
15375 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
15376 Don't enclose with #if HAVE_GIF.
15377 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
15378 animated gif. Otherwise use image_load_quicktime.
15379 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
15380 gif_DrawText to avoid conflict with QuickdrawText.h.
15381 [HAVE_GIF] (gif_load): Sync with xfns.c.
15382 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
15383 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
15384 Ghostscript is not supported yet).
15385 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
15386 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
15387 cross_disabled_images (from xfns.c). Remove #if 0 for supported
15388 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
15389 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
15390 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
15391 HAVE_PNG. Call EnterMovies to support animated gifs.
15392 Call init_image_func_pointer to bind a symbol
15393 _CGImageCreateWithPNGDataProvider if it is defined.
15394
15395 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15396 (x_draw_bar_cursor): Sync declaration with xterm.c.
15397 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
15398 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
15399 graphics).
15400 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
15401 (mac_draw_line_to_pixmap, XCreatePixmap)
15402 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
15403 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
15404 New functions.
15405 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
15406 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
15407 Cast bits to char *.
15408 (reflect_byte): New function (from w32fns.c).
15409 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
15410 due to byte alignment.
15411 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
15412 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
15413 (XSetForeground): Remove static (now used in macfns.c).
15414 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
15415 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
15416 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
15417 (x_draw_glyph_string_box, x_draw_image_foreground)
15418 (x_draw_image_foreground_1, x_draw_image_glyph_string)
15419 (x_draw_stretch_glyph_string, x_draw_glyph_string)
15420 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
15421 Sync with xterm.c.
15422 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
15423 than the xterm.c version when a strictly horizontal or vertical
15424 line is drawn.
15425 (XTset_terminal_window): Add static.
15426 (x_make_frame_visible): Add UNBLOCK_INPUT.
15427 (x_free_frame_resources): New funcion (from xterm.c).
15428 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
15429 occurs in tool bar area.
15430 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
15431 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
15432 Initialize image cache.
15433 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
15434 Enclose unused functions with #if 0.
15435 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
15436 (decode_mac_font_name): New function to apply code conversions
15437 from a mac font name to an XLFD font name according to its script code.
15438 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
15439 font name to a mac font name according to REGISTRY and ENCODING fields.
15440 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
15441 whose name starts with `.'.
15442 (init_font_name_table): Use decode_mac_font_name. Add both
15443 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
15444 of a font is smJapanese.
15445 (mac_do_list_fonts): New function to list fonts that match a given
15446 pattern.
15447 (x_list_fonts, XLoadQueryFont): Use it.
15448 (XLoadQueryFont): Set rbearing field for each variable width
15449 character to avoid needless redraw.
15450 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
15451
15452 2004-02-26 Kim F. Storm <storm@cua.dk>
15453
15454 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
15455 as read_socket_hook handler on X aborts if buffer is too small
15456 and W32 handler doesn't always check buffer limit.
15457
15458 * xdisp.c (handle_single_display_prop): Handle left-fringe and
15459 right-fringe similar to a display margin image. Specifically,
15460 the characters having the fringe prop are no longer shown, and
15461 we use IT_IMAGE/next_element_from_image with image_id = -1 to
15462 do this. Set fringe bitmap face_id in it->face_id.
15463 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
15464 still realize it->face (i.e. the fringe bitmap face).
15465
15466 2004-02-25 Miles Bader <miles@gnu.org>
15467
15468 * xdisp.c (check_it): Check string/string_pos consistency.
15469 (init_iterator): Initialize string-related fields properly.
15470
15471 2004-02-11 Miles Bader <miles@gnu.org>
15472
15473 * xdisp.c (produce_image_glyph): Force negative descents to zero.
15474
15475 2004-02-10 Miles Bader <miles@gnu.org>
15476
15477 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
15478 BLOCK_INPUT can be nested, so it doesn't make much sense.
15479
15480 2004-02-24 Michael Mauger <mmaug@yahoo.com>
15481
15482 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
15483 (xbm_read_bitmap_data): Use unsigned char for image data.
15484
15485 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
15486
15487 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
15488
15489 2004-02-22 Jason Rumney <jasonr@gnu.org>
15490
15491 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
15492 correctly over other bitmaps.
15493
15494 2004-02-21 Eli Zaretskii <eliz@gnu.org>
15495
15496 * emacs.c (USAGE1): Split into two halves.
15497 (USAGE2): Second half of the old USAGE1.
15498 (USAGE3): Rename from USAGE2.
15499 (USAGE4): Rename from USAGE3.
15500
15501 2004-02-21 Juri Linkov <juri@jurta.org>
15502
15503 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
15504 Fix --multibyte. Move --help, --version to USAGE2. Add alias
15505 --file. Fix -f, -l. Sort options. Untabify.
15506 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
15507
15508 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
15509
15510 * category.c (Fdefine_category, Fcategory_docstring)
15511 (Fget_unused_category, Fset_category_table)
15512 (Fcategory_set_mnemonics): Doc fixes.
15513
15514 2004-02-20 Kim F. Storm <storm@cua.dk>
15515
15516 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
15517 The following changes are relative to the 2004-01-21 revision.
15518 (NREAD_INPUT_EVENTS): Define as max number of input events to read
15519 in one call to read_socket_hook. Value is 8.
15520 (read_avail_input): Separate and rework handling of read_socket_hook
15521 and non-read_socket_hook cases. Use smaller input_event buffer
15522 in read_socket_hook case, and repeat if full buffer is read.
15523 Use new local variable 'discard' to skip input after C-g.
15524 In non-read_socket_hook case, just use a single input_event, and
15525 call kbd_buffer_store_event on the fly for each character.
15526
15527 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15528
15529 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
15530 Remove unused `gu' alternative.
15531
15532 2004-02-19 Andreas Schwab <schwab@suse.de>
15533
15534 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
15535 warning.
15536
15537 2004-02-18 Kim F. Storm <storm@cua.dk>
15538
15539 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
15540 Fix last change.
15541
15542 2004-02-17 Kim F. Storm <storm@cua.dk>
15543
15544 * xdisp.c (fast_find_position): Fix return value of new version;
15545 it was inverted compared to the 21.1 version.
15546 (get_window_cursor_type): Don't look at glyph if NULL.
15547 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
15548
15549 * keyboard.c: Rework previous change; it didn't consider that the
15550 buf array was allocated on the stack.
15551 (prev_read): Remove variable.
15552 (read_avail_input_buf): New static event buffer array.
15553 (in_read_avail_input): New static variable to handle re-entrancy.
15554 (read_avail_input): Change buf to pinter to read_avail_input_buf.
15555 Use in_read_avail_input to handle re-entrance; when re-entered,
15556 fully initialize and use tmp_buf array instead of read_avail_input_buf.
15557 Do not initialize read_avail_input_buf in full here; instead assume it
15558 is always cleared on entry. To ensure that, we clear (just) the
15559 entries that were used before we return.
15560 (init_keyboard): Initialize read_avail_input_buf here.
15561
15562 2004-02-16 Jesper Harder <harder@ifa.au.dk>
15563
15564 * cmds.c (Fend_of_line): Doc fix.
15565
15566 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
15567
15568 * keyboard.c (prev_read): New static variable.
15569 (read_avail_input): Use it to zero out only those slots in buf[]
15570 that were used last time we were called.
15571
15572 2004-02-16 Eli Zaretskii <eliz@gnu.org>
15573
15574 * Makefile.in (obj): Move fringe.o from here...
15575 (XOBJ, MAC_OBJ): ...to here.
15576
15577 2004-02-16 Stephen Eglen <stephen@gnu.org>
15578
15579 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
15580
15581 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
15582
15583 * data.c (Fbyteorder):
15584 * fringe.c (Fdefine_fringe_bitmap):
15585 * xdisp.c (handle_single_display_prop):
15586 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
15587
15588 2004-02-16 Jason Rumney <jasonr@gnu.org>
15589
15590 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
15591
15592 2004-02-15 Steven Tamm <steventamm@mac.com>
15593
15594 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
15595 controlling emulation of a three button mouse with option and
15596 command keys.
15597 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
15598 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
15599
15600 2004-02-15 Kim F. Storm <storm@cua.dk>
15601
15602 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
15603
15604 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
15605 Perform byte-swapping.
15606
15607 2004-02-14 Kim F. Storm <storm@cua.dk>
15608
15609 * dispextern.h (struct draw_fringe_bitmap_params): Change member
15610 bits from char to short to facilitate wider bitmaps.
15611 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
15612 member.
15613
15614 * fringe.c (struct fringe_bitmap): Change member bits from char to
15615 short to facilitate 16 bits wide bitmaps. Modify all standard
15616 bitmaps accordingly.
15617 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
15618 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
15619 (draw_fringe_bitmap): Ditto.
15620 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
15621 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
15622 handle up to 16 bits wide bitmaps.
15623 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
15624 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
15625
15626 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
15627 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
15628 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
15629
15630 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
15631 so it is no longer necessary to expand them here.
15632
15633 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
15634
15635 2004-02-12 Kim F. Storm <storm@cua.dk>
15636
15637 * window.c (Fwindow_fringes): Doc fix.
15638
15639 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15640
15641 * xselect.c (x_get_foreign_selection): Add new optional parameter
15642 time_stamp.
15643 (Fx_get_selection_internal): Ditto, pass time_stamp to
15644 x_get_foreign_selection.
15645
15646 * data.c (Fbyteorder): New function.
15647
15648 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15649
15650 * atimer.c: Move include stdio.h to same place as in other files.
15651
15652 * region-cache.c: Ditto.
15653
15654 * sysdep.c: Ditto.
15655
15656 * xfaces.c: Ditto.
15657
15658 2004-02-09 Sam Steingold <sds@gnu.org>
15659
15660 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
15661
15662 2004-02-09 Kim F. Storm <storm@cua.dk>
15663
15664 * fringe.c: New file. Move original fringe related declarations
15665 and code from dispextern.h and xdisp.c here.
15666 Rework code to support user defined fringe bitmaps, redefining
15667 standard bitmaps, ability to overlay user defined bitmap with
15668 overlay arrow bitmap, and add faces to bitmaps.
15669 (Voverflow_newline_into_fringe): Declare here.
15670 (enum fringe_bitmap_align): New enum.
15671 (..._bits): All bitmaps are now defined without bitswapping; that
15672 is now done in init_fringe_once (if necessary).
15673 (standard_bitmaps): New array with specifications for the
15674 standard fringe bitmaps.
15675 (fringe_faces): New array.
15676 (valid_fringe_bitmap_id_p): New function.
15677 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
15678 (draw_fringe_bitmap): New function which draws fringe bitmap,
15679 possibly overlaying bitmap with cursor in right fringe or the
15680 overlay arrow in the left fringe.
15681 (update_window_fringes): Do not handle overlay arrow here.
15682 Compare and copy fringe bitmap faces.
15683 (init_fringe_bitmap): New function.
15684 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
15685 define and destroy user defined fringe bitmaps.
15686 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
15687 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
15688 (syms_of_fringe): New function. Defsubr new DEFUNs.
15689 DEFVAR_LISP Voverflow_newline_into_fringe.
15690 (init_fringe_once, init_fringe): New functions.
15691 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
15692
15693 * Makefile.in (obj): Add fringe.o.
15694 (fringe.o): New dependencies.
15695
15696 * dispextern.h (FRINGE_ID_BITS): New definition for number of
15697 bits allocated to hold a fringe number. Increase number of bits
15698 from 4 to 8 to allow user defined fringe bitmaps.
15699 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
15700 left_user_fringe_face_id, right_user_fringe_bitmap,
15701 right_user_fringe_face_id.
15702 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
15703 Move to new file fringe.c.
15704 (MAX_FRINGE_BITMAPS): Define here.
15705 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
15706 and overlay_p. Change member which to int.
15707 (struct redisplay_interface): New members define_fringe_bitmap
15708 and destroy_fringe_bitmap.
15709 (valid_fringe_bitmap_id_p): Add prototype.
15710 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
15711
15712 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
15713 arrows.
15714 (update_frame): Do flush_display if force_flush_display_p to
15715 ensure display (specifically fringes) are updated in a timely
15716 manner when resizing the frame by dragging the mouse.
15717 (update_window_line): Update row if overlay arrow changed.
15718 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
15719 or overlay arrow changed.
15720
15721 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
15722 syms_of_fringe, and init_fringe.
15723
15724 * frame.h (struct frame): New member force_flush_display_p.
15725
15726 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
15727 Add prototypes.
15728
15729 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
15730 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
15731 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
15732 Use cursor color for displaying cursor in fringe.
15733 (x_redisplay_interface): Add null handlers for
15734 define_fringe_bitmap and destroy_fringe_bitmap functions.
15735
15736 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
15737 xterm.c to handle overlayed fringe bitmaps and to use cursor color
15738 for displaying cursor in fringe.
15739 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
15740 specific functions to define and destroy fringe bitmaps in fringe_bmp.
15741 (w32_redisplay_interface): Add them to redisplay_interface.
15742 (w32_term_init): Call w32_init_fringe instead of explicitly
15743 defining fringe bitmaps in fringe_bmp array.
15744 (x_delete_display): Call w32_reset_fringes instead of explicitly
15745 destroying fringe bitmaps in fringe_bmp array.
15746
15747 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
15748 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
15749 (continued_bits, continuation_bits, ov_bits, first_line_bits)
15750 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
15751 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
15752 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
15753 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
15754 Move fringe handling vars and code to new file fringe.c.
15755 (handle_display_prop): Handle left-fringe and right-fringe
15756 display properties; store user fringe bitmaps in iterator.
15757 (move_it_in_display_line_to): Handle cursor in fringe at eob.
15758 (clear_garbaged_frames): Set force_flush_display_p if resized.
15759 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
15760 (display_line): Handle cursor in fringe at eob.
15761 (display_line): Set row user fringe bitmaps from iterator.
15762
15763 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
15764 Use cursor color for displaying cursor in fringe.
15765 (x_redisplay_interface): Add null handlers for
15766 define_fringe_bitmap and destroy_fringe_bitmap functions.
15767
15768 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15769
15770 * macfns.c (Fx_change_window_property): Make doc string and
15771 parameters same as for X version.
15772
15773 * w32fns.c (Fx_change_window_property): Ditto.
15774
15775 2004-02-07 Kim F. Storm <storm@cua.dk>
15776
15777 * xdisp.c (hscroll_window_tree): Position cursor near to right
15778 margin in hscrolled window when jumping to end of line (rather
15779 than centering cursor).
15780
15781 * process.c (wait_reading_process_input): Don't do adaptive read
15782 buffering if waiting for a specific process.
15783
15784 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
15785
15786 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
15787 (Fread_minibuffer, Feval_minibuffer)
15788 (Fread_string, Fread_no_blanks_input)
15789 (Fcompleting_read): Doc fixes.
15790 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
15791 completion-regexp-list. Define Qcase_fold_search and staticpro it.
15792 (read_minibuf): Fix initial comment.
15793 (Ftry_completion, Fall_completions, Ftest_completion): Bind
15794 case-fold-search to the value of completion-ignore-case when
15795 checking completion-regexp-list.
15796 (Fdisplay_completion_list): Make it handle arguments that are
15797 symbols. Doc fix.
15798
15799 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15800
15801 * xterm.h: Add declaration of free_frame_menubar.
15802
15803 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
15804 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
15805 (Fx_change_window_property): Add declaration of parameters type and
15806 format. Remove unused variable cons.
15807
15808 * xselect.c: Include stdio.h.
15809
15810 2004-02-05 Kenichi Handa <handa@m17n.org>
15811
15812 * fns.c (Fset_char_table_range): Fix previous change.
15813
15814 * buffer.c (Fset_buffer_multibyte): Fix docstring.
15815
15816 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
15817
15818 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
15819
15820 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
15821
15822 * keymap.c (Vmouse_events): Rename from Vmenu_events.
15823 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
15824
15825 2004-02-04 Kenichi Handa <handa@m17n.org>
15826
15827 * fns.c (Fset_char_table_range): Handle charsets ascii,
15828 eight-bit-control, and eight-bit-graphic correctly.
15829
15830 2004-02-03 Jason Rumney <jasonr@gnu.org>
15831
15832 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
15833
15834 * w32fns.c (x_to_w32_font): Likewise.
15835
15836 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15837
15838 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
15839 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
15840
15841 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
15842 ClientMessages.
15843
15844 * xselect.c: Include termhooks.h and X11/Xproto.h.
15845 (x_check_property_data, x_fill_property_data)
15846 (x_property_data_to_lisp, mouse_position_for_drop)
15847 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
15848 (Fx_send_client_event): Move here from xfns.c.
15849 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
15850
15851 * xfns.c (x-send-client-message): Move to xselect.c.
15852 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
15853 OUTER_P.
15854 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
15855 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
15856 if vector_ret_p is true.
15857 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
15858
15859 2004-02-02 Eli Zaretskii <eliz@gnu.org>
15860
15861 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
15862 basename of FILE relative to it, not FILE itself.
15863
15864 2004-02-02 Kenichi Handa <handa@m17n.org>
15865
15866 * coding.c (coding_restore_composition): Check invalid
15867 composition data more rigidly.
15868
15869 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
15870
15871 * fileio.c (Fread_file_name_internal): Correctly handle the case
15872 where insert-default-directory is nil.
15873 (Fread_file_name): Always return an empty string if the user exits
15874 with an empty minibuffer. Adapt the docstring accordingly.
15875 (syms_of_fileio): Adapt the docstring of insert-default-directory
15876 to the change in Fread_file_name.
15877
15878 2004-01-29 Eli Zaretskii <eliz@gnu.org>
15879
15880 * alloca.c [!alloca]: Fix the prototype for xfree.
15881
15882 2004-01-29 Kenichi Handa <handa@m17n.org>
15883
15884 * fns.c (string_char_to_byte): Optimize for ASCII only string.
15885 (string_byte_to_char): Likewise.
15886
15887 2004-01-28 Peter Runestig <peter@runestig.com>
15888
15889 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
15890
15891 2004-01-27 Steven Tamm <steventamm@mac.com>
15892
15893 * unexmacosx.c (unexec_copy): Do not copy more than was
15894 requested to prevent overwriting during unexec.
15895
15896 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15897
15898 * process.c (sigchld_handler): Add comment about not calling malloc.
15899
15900 * process.h: Add extern to synch_process_termsig.
15901
15902 2004-01-27 Steven Tamm <steventamm@mac.com>
15903
15904 * macterm.c (make_mac_frame, make_mac_terminal_frame):
15905 Move setting of scroll bars from make_mac_frame to
15906 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
15907
15908 2004-01-26 Richard M. Stallman <rms@gnu.org>
15909
15910 * search.c (Freplace_match): Handle nonexistent
15911 back-references properly.
15912
15913 2004-01-03 Richard M. Stallman <rms@gnu.org>
15914
15915 * window.c (decode_any_window): New function.
15916 (Fwindow_height, Fwindow_width, Fwindow_edges)
15917 (Fwindow_pixel_edges, Fwindow_inside_edges)
15918 (Fwindow_inside_pixel_edges): Use decode_any_window.
15919
15920 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15921
15922 * process.h: synch_process_termsig new variable.
15923
15924 * callproc.c: Define synch_process_termsig.
15925 (Fcall_process): Initiate synch_process_termsig to zero and
15926 check if non-zero and get signal name after subprocess has ended.
15927
15928 * process.c (sigchld_handler): Set synch_process_termsig
15929 if terminated by a signal. synch_process_death setting removed.
15930
15931 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
15932
15933 2004-01-26 Andreas Schwab <schwab@suse.de>
15934
15935 * print.c (print_preprocess): Declare size as EMACS_INT to not
15936 lose bits.
15937 (print_object): Likewise.
15938 * alloc.c (Fpurecopy): Likewise.
15939
15940 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
15941
15942 * window.c (Fwindow_minibuffer_p): Doc fix.
15943
15944 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
15945
15946 * editfns.c (Fformat): Make both passes accept the same set of flags.
15947
15948 2004-01-23 Kenichi Handa <handa@m17n.org>
15949
15950 * fns.c (Fmd5): If OBJECT is a buffer different from the current
15951 one, set buffer to OBJECT temporarily.
15952
15953 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
15954
15955 * keyboard.c (kbd_buffer_gcpro): Remove.
15956 (kbd_buffer_store_event, clear_event, Fdiscard_input)
15957 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
15958 Don't initialize and/or maintain the variable any more. It was made
15959 redundant by my commit of 2003-06-15.
15960
15961 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
15962
15963 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15964
15965 * lisp.h: Add undef DECL_ALIGN.
15966
15967 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
15968
15969 * process.c (wait_reading_process_input) [SYNC_INPUT]:
15970 Check interrupt_input_pending explicitly.
15971
15972 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
15973
15974 * keyboard.c (handle_async_input): New fun,
15975 extracted from input_available_signal.
15976 (input_available_signal, reinvoke_input_signal): Use it.
15977
15978 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
15979
15980 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
15981
15982 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
15983 manipulation macros for when tags are in the lower bits.
15984 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
15985 (DECL_ALIGN): New macro.
15986 (DEFUN): Use it.
15987
15988 * lisp.h [ENABLE_CHECKING]: Don't force union type.
15989
15990 * s/darwin.h (__attribute__): Remove outdated workaround.
15991
15992 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
15993
15994 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
15995 Don't check range of malloc address.
15996 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
15997
15998 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
15999
16000 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
16001
16002 2004-01-19 Kenichi Handa <handa@m17n.org>
16003
16004 * fontset.c (fontset_font_pattern): Fix previous change.
16005
16006 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
16007
16008 * xdisp.c (Voverflow_newline_into_fringe)
16009 (move_it_in_display_line_to, redisplay_internal)
16010 (update_window_fringes, redisplay_window, display_line, window):
16011 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
16012 that it compiles without a window-system.
16013 * dispnew.c (direct_output_for_insert, update_window): Likewise.
16014
16015 2004-01-16 Kim F. Storm <storm@cua.dk>
16016
16017 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
16018
16019 * buffer.c (init_buffer_once): Set buffer_defaults and
16020 buffer_local_flags for indicate_buffer_boundaries.
16021 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
16022 default- variable for it.
16023
16024 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
16025 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
16026 New members exact_window_width_line_p and cursor_in_fringe_p for
16027 overflowing newlines into right fringe.
16028 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
16029 and indicate_bottom_line_p for buffer boundaries and scrolling.
16030 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
16031 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
16032 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
16033 and HOLLOW_SQUARE_BITMAP.
16034 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
16035 Add prototypes.
16036
16037 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
16038 instead of related indicator fields.
16039 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
16040 (direct_output_for_insert): Handle exact width lines like
16041 contined lines. Call update_window_fringes.
16042 (update_window): Call update_window_fringes.
16043 (scrolling_window): Don't skip desired rows with changed bitmaps.
16044 Check if fringe bitmaps changes when assigning scrolled rows.
16045
16046 * xdisp.c (Voverflow_newline_into_fringe): New variable.
16047 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
16048 (move_it_in_display_line_to): Overflow newline into fringe for
16049 rows that are exactly as wide as the window.
16050 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
16051 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
16052 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
16053 (fringe_bitmaps): Add new bitmaps.
16054 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
16055 Select proper bitmap for cursor in fringe when appropriate.
16056 Handle alignment of bitmap to top or bottom of row.
16057 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
16058 done by update_window_fringes.
16059 (update_window_fringes, draw_window_fringes): New functions.
16060 (redisplay_internal): Call update_window_fringes in case only
16061 cursor row is updated.
16062 (redisplay_window): Call update_window_fringes.
16063 Explicitly call draw_window_fringes if redisplay was done using
16064 the current matrix or the overlay arrow is in the window.
16065 (try_window_reusing_current_matrix): Mark scrolled rows for
16066 fringe update (to update buffer-boundaries / scrolling icons).
16067 (find_last_unchanged_at_beg_row): Handle exact width lines line
16068 continued lines.
16069 (display_line): Overflow newline into fringe for rows that are
16070 exactly as wide as the window. Don't append space for newline
16071 in this case.
16072 (notice_overwritten_cursor): Explicitly clear cursor bitmap
16073 in fringe as if it had been overwritten.
16074 (erase_phys_cursor): Erase cursor bitmap in fringe.
16075 (syms_of_xdisp): Mark show-trailing-whitespace and
16076 void-text-area-pointer as user options.
16077 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
16078
16079 * xterm.c (x_update_window_end): Call draw_window_fringes.
16080 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16081 in row instead of actually drawing fringe bitmaps.
16082 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16083 (x_draw_window_cursor): Draw cursor in fringe.
16084
16085 * w32term.c (x_update_window_end): Call draw_window_fringes.
16086 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16087 in row instead of actually drawing fringe bitmaps.
16088 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16089 (w32_draw_window_cursor): Draw cursor in fringe.
16090
16091 * macterm.c (x_update_window_end): Call draw_window_fringes.
16092 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16093 in row instead of actually drawing fringe bitmaps.
16094 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16095 (mac_draw_window_cursor): Draw cursor in fringe.
16096
16097 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16098
16099 * xterm.c (handle_one_xevent): Don't handle characters that are part
16100 of an old style (XLookupString) compose sequence.
16101
16102 2004-01-15 Kenichi Handa <handa@m17n.org>
16103
16104 * search.c (Freplace_match): Use make_multibyte_string or
16105 make_unibyte_string according to the buffer multibyteness.
16106
16107 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
16108
16109 * alloc.c (struct interval_block, struct string_block)
16110 (struct symbol_block, struct marker_block, live_string_p)
16111 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
16112 Better preserve alignment for objects in blocks.
16113 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
16114
16115 * lread.c (defvar_per_buffer): Remove dead declaration.
16116
16117 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
16118 space size.
16119
16120 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16121
16122 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
16123 if a key press should pop down. Only pop down if a key is pressed
16124 outside the menu/dialog.
16125 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
16126 popup_get_selection.
16127 (create_and_show_dialog): Pass 1 for down_on_keypress to
16128 popup_get_selection.
16129
16130 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16131
16132 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
16133 BLOCK/UNBLOCK_INPUT.
16134
16135 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16136
16137 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
16138 specified.
16139
16140 2004-01-08 Kenichi Handa <handa@m17n.org>
16141
16142 * editfns.c (Fformat): Fix '&' to '&&'.
16143
16144 2004-01-08 Andreas Schwab <schwab@suse.de>
16145
16146 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
16147 size if PSEUDOVECTOR_FLAG is set.
16148
16149 2004-01-07 Kenichi Handa <handa@m17n.org>
16150
16151 * charset.c (Fdeclare_equiv_charset): Fix docstring.
16152
16153 * fontset.c (fontset_ref_via_base): Fix previous change.
16154
16155 2004-01-07 Kim F. Storm <storm@cua.dk>
16156
16157 * process.c (read_process_output): Only activate adaptive
16158 buffering if we read less than 256 bytes at a time.
16159
16160 2004-01-06 Kim F. Storm <storm@cua.dk>
16161
16162 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
16163 object and image object. Return glyph width and height.
16164 (mode_line_string, marginal_area_string): Ditto.
16165
16166 * dispextern.h (buffer_posn_from_coords, mode_line_string)
16167 (marginal_area_string): Fix prototypes.
16168
16169 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
16170 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
16171 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
16172
16173 * keyboard.c (make_lispy_position): Use modified mode_line_string,
16174 buffer_posn_from_coords, and marginal_area_string functions to
16175 include both string object and image object in the lispy position.
16176 Also add actual glyph width and height to position.
16177 (read_key_sequence): Use real buffer position from mouse
16178 event to find keymap property even when click is in marginal area.
16179
16180 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
16181 mode_line_string and marginal_area_string functions to handle
16182 both string object and image object properties.
16183
16184 2004-01-06 Andreas Schwab <schwab@suse.de>
16185
16186 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
16187 character.
16188
16189 2004-01-02 Andreas Schwab <schwab@suse.de>
16190
16191 * macterm.c (emacs_options, x_initialized, same_x_server):
16192 Remove unused (and duplicated) definitions.
16193
16194 2004-01-02 Kim F. Storm <storm@cua.dk>
16195
16196 * process.h (struct Lisp_Process): New members for adaptive read
16197 buffering: adaptive_read_buffering, read_output_delay, and
16198 read_output_skip.
16199
16200 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
16201 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
16202 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
16203 (process_output_delay_count, process_output_skip): New vars.
16204 (Vprocess_adaptive_read_buffering): New variable.
16205 (make_process): Initialize adaptive read buffering members.
16206 (Fstart_process): Set adaptive_read_buffering member.
16207 (deactivate_process): Cleanup adaptive read buffering.
16208 (wait_reading_process_input): Temporarily omit delayed
16209 subprocesses from the set of file descriptors to read from;
16210 adjust the select timeout if we skipped any subprocesses.
16211 (read_process_output): Increase adaptive read buffering delay if
16212 we read less than a full buffer; reduce delay when we read a
16213 full buffer.
16214 (send_process): Simplify using local Lisp_Process var.
16215 Reset adaptive read buffering delay after write.
16216 (init_process): Initialize process_output_delay_count and
16217 process_output_skip.
16218 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
16219
16220 2004-01-01 Jason Rumney <jasonr@gnu.org>
16221
16222 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
16223
16224 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
16225
16226 * print.c (Ferror_message_string): Add hyperlink in the docstring
16227 to the definition of `signal' in the Elisp manual.
16228 * eval.c (Fsignal): Ditto.
16229
16230 2003-12-29 James Clark <jjc@jclark.com>
16231
16232 * fns.c (internal_equal): Return t for two NaN arguments.
16233
16234 2003-12-29 Richard M. Stallman <rms@gnu.org>
16235
16236 * data.c (store_symval_forwarding): Handle setting
16237 default-fill-column, etc., by changing the value in
16238 buffers that use the default.
16239
16240 * minibuf.c (Fset_minibuffer_window): Doc fix.
16241
16242 * fileio.c (choose_write_coding_system): Ignore auto_saving
16243 if using the visited file for auto saves.
16244 (Fwrite_region): Don't update SAVE_MODIFF
16245 if auto-saving in visited file.
16246
16247 2003-12-29 Kenichi Handa <handa@m17n.org>
16248
16249 * dispextern.h (face_font_available_p): Extern it.
16250
16251 * fontset.c (Voverriding_fontspec_alist): New variable.
16252 (lookup_overriding_fontspec): New function.
16253 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
16254 (fontset_font_pattern): Likewise.
16255 (regulalize_fontname): New function.
16256 (Fset_fontset_font): Call regulalize_fontname.
16257 (Fset_overriding_fontspec_internal): New function.
16258 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
16259 Defsubr Sset_overriding_fontspec_internal.
16260
16261 * xfaces.c (face_font_available_p): New function.
16262
16263 2003-12-28 Richard M. Stallman <rms@gnu.org>
16264
16265 * buffer.c (Fother_buffer): Don't crash if BUF is nil
16266 or if its name is nil.
16267
16268 * buffer.c (Fkill_buffer): Don't delete auto-save file
16269 if it's the same as the visited file.
16270
16271 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
16272
16273 * coding.c (Fcheck_coding_system): Doc fix.
16274
16275 2003-12-28 Kim F. Storm <storm@cua.dk>
16276
16277 * Makefile.in (eval.o): Depend on dispextern.h.
16278
16279 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
16280 image glyph using image's ascent.
16281 (mode_line_string): Return image glyph as object clicked on.
16282 Adjust y0 for image glyph using image's ascent.
16283
16284 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
16285 (struct glyph): New members, ascent and descent. Used to save
16286 this glyph's ascent and descent, instead of having.
16287 (struct glyph): Declare member face_id using FACE_ID_BITS.
16288 (find_hot_spot): Add prototype.
16289
16290 * keyboard.c (Qimage): Remove extern (now in lisp.h).
16291 (QCmap): Declare extern.
16292 (make_lispy_position): When position is inside image hot-spot,
16293 use hot-spot element's id as posn element.
16294
16295 * lisp.h (IMAGEP): New macro to test for image object type.
16296 (Qimage): Declare extern.
16297
16298 * macfns.c (Qimage): Remove extern (now in lisp.h).
16299 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16300
16301 * macterm.c (Qface, Qmouse_face): Remove unused externs.
16302
16303 * w32fns.c (Qimage): Remove extern (now in lisp.h).
16304 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16305
16306 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
16307
16308 * w32term.c (Qface, Qmouse_face): Remove unused externs.
16309
16310 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
16311 pointer types.
16312 (Qrelative_width, Qalign_to): Remove unused variables.
16313 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
16314 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
16315 maps.
16316 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
16317 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
16318 code accordingly.
16319 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
16320 than row's ascent and height, to get sensible height on tall rows.
16321 (build_desired_tool_bar_string): Remove Qimage extern.
16322 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
16323 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
16324 image glyph is alone on the last line.
16325 (append_glyph, append_composite_glyph, produce_image_glyph)
16326 (append_stretch_glyph): Set glyph's ascent and descent.
16327 (on_hot_spot_p): New function to check if position is inside an
16328 rectangular, circular, or polygon-shaped image hot-spot,
16329 (find_hot_spot): New function to search for image hot-spot.
16330 (Flookup_image_map): New defun to search for image hot-spot.
16331 (define_frame_cursor1): New aux function to determine frame
16332 pointer.
16333 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
16334 `pointer' text property and :pointer image property to control
16335 frame pointer shape. Detect image hot-spots for pointer and
16336 help_echo properties. Use define_frame_cursor1.
16337 (note_mouse_highlight): Use Vvoid_text_area_pointer.
16338 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
16339 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
16340 Vshow_text_cursor_in_void.
16341
16342 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
16343
16344 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
16345 (Qimage): Remove extern (now in lisp.h).
16346 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16347
16348 * xmenu.c (show_help_event): Remove unused code.
16349
16350 * xterm.c (Qface, Qmouse_face): Remove unused externs.
16351 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
16352 row's ascent and descent, to get a sensible height on tall rows.
16353
16354 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
16355
16356 * minibuf.c (Fcompleting_read): Undo previous change.
16357
16358 2003-12-25 Lars Hansen <larsh@math.ku.dk>
16359
16360 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
16361 Arguments GCPRO'ed in call to file name handler.
16362
16363 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
16364
16365 * termcap.c (tgetst1): Scan for "%pN"; if all
16366 N are continuous in [1,9], remove all "%pN".
16367
16368 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16369
16370 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
16371
16372 * xfaces.c (lface_fully_specified_p): Take into account that
16373 MAC OS always have unspecified stipple.
16374
16375 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
16376
16377 * tparam.c (tparam1): Add handling for `%pN', which
16378 means use param N for the next substitution.
16379
16380 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
16381
16382 * xfaces.c (Fcolor_gray_p): Fix omission bug:
16383 In case `frame' is nil, consult the selected frame.
16384 (Fcolor_supported_p): Likewise.
16385
16386 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
16387
16388 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
16389 Doc fixes.
16390
16391 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
16392 and an integer. Adapt the introductory comment accordingly.
16393 (Fread_from_minibuffer): Delete code moved into read_minibuf.
16394 Doc fix.
16395 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
16396 read_minibuf.
16397 (Fcompleting_read): Delete code moved into read_minibuf.
16398 (Ftest_completion): Make it handle obarrays and hash tables correctly.
16399
16400 2003-12-03 Kenichi Handa <handa@m17n.org>
16401
16402 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
16403 encoding sequence.
16404
16405 2003-12-01 Kenichi Handa <handa@m17n.org>
16406
16407 * composite.c (syms_of_composite): Don't make the compostion hash
16408 table week.
16409
16410 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
16411
16412 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
16413 * textprop.c (Fget_char_property_and_overlay): New function.
16414 (syms_of_textprop): Defsubr it.
16415
16416 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16417
16418 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
16419 to compile on terminal configuration.
16420
16421 * fileio.c (Fread_file_name): Check use_file_dialog also before
16422 calling Fx_file_dialog.
16423
16424 * fns.c (use_file_dialog): New variable.
16425 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
16426
16427 2003-11-29 Kim F. Storm <storm@cua.dk>
16428
16429 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
16430 (syms_of_msdos): Don't intern and staticpro them.
16431
16432 2003-11-27 Kim F. Storm <storm@cua.dk>
16433
16434 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
16435 coordinates relative to glyph at posn. If glyph is an image,
16436 return that as object at posn. Callers changed.
16437 (mode_line_string, marginal_area_string): Calculate and return
16438 pixel coordinates relative to glyph. Callers changed.
16439
16440 * dispextern.h (buffer_posn_from_coords, mode_line_string)
16441 (marginal_area_string): Fix prototypes.
16442 (window_box_left_offset, window_box_right_offset): Add prototypes.
16443
16444 * frame.h (get_specified_cursor_type, get_window_cursor_type):
16445 Remove prototypes.
16446
16447 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
16448
16449 * keyboard.c (make_lispy_position): Add x and y coordinates
16450 relative to the current glyph as 7th element of position.
16451 If glyph is an image, return it in the object element.
16452 (read_key_sequence): Skip checks for keymap property in cases
16453 where POSN_STRING is not a string (e.g. an image).
16454
16455 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
16456 (Vshow_text_cursor_in_void): New variable.
16457 (glyph_to_pixel_coords): Don't use negative hpos.
16458 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
16459 (append_stretch_glyph): Change ascent arg to be actual value
16460 in pixels rather than ratio to height. Callers changed.
16461 (calc_pixel_width_or_height): New aux function, implementing
16462 pixel based artihmetic for glyph widths and heights.
16463 (produce_stretch_glyph): Use calc_pixel_width_or_height for
16464 :width, :height, :align-to, and :ascent, thus allowing these to
16465 be specified in pixels as well as multiples of characters.
16466 Don't produce stretch glyphs with zero width or height.
16467 (get_specified_cursor_type): Declare static.
16468 (get_window_cursor_type): Declare static. Add glyph arg to be
16469 able to know when cursor is on an image; always substitute
16470 hollow-box cursor for filled-box cursor on images, to avoid
16471 negative images and flicker when blinking the cursor.
16472 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
16473 (note_mode_line_or_margin_highlight): Use non-text cursor rather
16474 than vertical scroll-bar cursor in display margins.
16475 (note_mouse_highlight): Use non-text cursor rather than text
16476 cursor in fringes and over images in the text area.
16477 Use non-text cursor when mouse pointer is outside editable text,
16478 i.e. in the void after end-of-line or end-of-buffer; this was
16479 already done for W32, but is now standard for all systems --
16480 user can toggle show-text-cursor-in-void to get old behaviour.
16481 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
16482 Vdisplay_pixels_per_inch.
16483
16484 2003-11-25 Andreas Schwab <schwab@suse.de>
16485
16486 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
16487 EMACS_INT to not lose bits.
16488 (Ffillarray): Don't set bits beyond the size of a bool vector.
16489
16490 2003-11-25 Kim F. Storm <storm@cua.dk>
16491
16492 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
16493 define this defun on systems that cannot use stderr as lvalue.
16494
16495 2003-11-24 Gerd Moellmann <gerd@gnu.org>
16496
16497 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
16498 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
16499 ld's default is incompatible with unexec.
16500
16501 2003-11-23 Kim F. Storm <storm@cua.dk>
16502
16503 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
16504 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
16505 (Fforce_window_update): New defun.
16506 (syms_of_window): Defsubr it.
16507 (Fset_window_margins, Fset_window_fringes): Doc fix.
16508
16509 * print.c (Fredirect_debugging_output): New defun.
16510 (syms_of_print): Defsubr it.
16511
16512 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
16513
16514 * fns.c (Fset_char_table_parent): Doc fix.
16515
16516 2003-11-22 Kim F. Storm <storm@cua.dk>
16517
16518 * dispnew.c (buffer_posn_from_coords): Return actual row/column
16519 for glyph clicked on, rather than (unused) pixel positions.
16520 (mode_line_string, marginal_area_string): Change X and Y args to
16521 pointers for returning actual row/column for glyph clicked on.
16522 Simplify and optimize loops.
16523
16524 * dispextern.h (mode_line_string, marginal_area_string):
16525 Update prototypes.
16526
16527 * keyboard.c (make_lispy_position): New function for generating
16528 mouse click positions from frame and pixel coordinates.
16529 Enhanced to return buffer position and actual row/column for
16530 events outside the text area using updated mode_line_string and
16531 marginal_area_string functions.
16532 Return left-fringe and right-fringe clicks as such, rather than
16533 clicks in text area.
16534 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
16535 pixel_to_glyph_coords, as we never use the results.
16536 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
16537 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
16538 Eliminate unused code in WHEEL_EVENT handling.
16539 (make_lispy_movement): Use make_lispy_position.
16540
16541 * window.c (coordinates_in_window): Remove redundant tests.
16542 Fix returned X pixel value for left-margin.
16543
16544 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
16545 mode_line_string and marginal_area_string parameters.
16546
16547 2003-11-22 Lars Hansen <larsh@math.ku.dk>
16548
16549 * w32.c (struct the_group, getgrgid): Add.
16550 * mac.c (struct my_group, getgrgid): Add.
16551
16552 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
16553
16554 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
16555
16556 2003-11-21 Lars Hansen <larsh@math.ku.dk>
16557
16558 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
16559 include in call to file name handler. Optionally translate numeric
16560 UID and GID to strings. Update docstring.
16561 (directory_files_internal): Add parameter ID-FORMAT.
16562 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
16563 include in call to file name handler and call to
16564 directory_files_internal. Update Docstring.
16565 (Fdirectory_files): Add dummy parameter in call to
16566 directory_files_internal.
16567 * lisp.h (Qinteger): Add.
16568 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
16569 (Ffile_attributes): Add parameter.
16570 * data.c (Qinteger): Export.
16571
16572 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
16573
16574 * fns.c (Freverse, Fnreverse): Doc fixes.
16575
16576 2003-11-19 Kim F. Storm <storm@cua.dk>
16577
16578 * xdisp.c (init_iterator): Initialize it->start to position
16579 before reseating (in case start position is invisible).
16580 (init_to_row_start): Set it->start to row-start.
16581 (redisplay_window): Accept optional_new_start if start position
16582 is invisible (in which case IT_CHARPOS overshoots PT).
16583 (display_line): Setup row->start from it->start (rather than
16584 it->current which is wrong if first char on line is invisible).
16585 When done, reseat it->start to it->current (= start of next row).
16586 (expose_area): Fix exposure of text area when first char (e.g. TAB)
16587 is only partially visible.
16588
16589 * dispextern.h (struct it): New member start.
16590
16591 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
16592
16593 * alloc.c (make_float, Fcons): Clear the markbit at init time.
16594 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
16595 of block_index outside of the macro call.
16596 (Fgarbage_collect): Remove null code.
16597
16598 * m/amdx86-64.h: Don't redefine XPNTR.
16599
16600 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
16601 of VALMASK.
16602
16603 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
16604 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
16605 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
16606
16607 * lisp.h (VALMASK): Only define for non-union type.
16608 (MARKBIT): Remove.
16609 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
16610 (XTYPE): Define unconditionally.
16611 (XSETTYPE): Remove one more remnant.
16612 (EQ): Define differently for the union and non-union cases.
16613 (INTMASK): New bit mask.
16614 (struct Lisp_Marker): Move down to prepare for upcoming patch.
16615 (GC_EQ): Delegate to EQ.
16616
16617 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
16618
16619 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16620
16621 * xterm.c (x_window_to_scroll_bar): Move check of display to
16622 where window_id is compared.
16623
16624 2003-11-17 Kim F. Storm <storm@cua.dk>
16625
16626 * dispextern.h (struct it): New member first_vpos.
16627
16628 * xdisp.c (start_display): Set it->first_vpos.
16629 (try_window_id): Use first_vpos to start display in first _text_
16630 line if no reusable lines at start of window with header line.
16631
16632 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16633
16634 * w32fns.c (XPutPixel):
16635 * w32bdf.c (w32_init_bdf_font):
16636 * sunfns.c (sel_read):
16637 * process.c (Fmake_network_process):
16638 * frame.c (store_frame_param):
16639 * fontset.c (Fset_fontset_font):
16640 * emacs.c (shut_down_emacs):
16641 * ccl.c (ccl_driver): Remove period at end of error message.
16642
16643 * config.in: Regenerate.
16644
16645 * xfns.c (x_window_to_frame, x_any_window_to_frame)
16646 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
16647 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
16648 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
16649 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
16650
16651 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
16652
16653 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
16654 (XTmouse_position, handle_one_xevent): Pass Display* to
16655 x_window_to_scroll_bar.
16656 (x_window_to_scroll_bar): Take a Display* argument.
16657 Check that display for frame is equal to Display* argument.
16658 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
16659 x_display_info_for_display instead. Use Display in xev instead
16660 of GDK_DISPLAY.
16661 (x_dispatch_event): Call x_display_info_for_display.
16662 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
16663 (x_connection_closed): Call xg_display_close for GTK.
16664 (x_term_init): Call xg_display_open for additional displays.
16665 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
16666 for GTK.
16667
16668 * xmenu.c (single_menu_item, mouse_position_for_popup)
16669 (x_activate_menubar): Formatting adjustments.
16670
16671 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
16672 adjustments.
16673
16674 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
16675 (xg_display_close, xg_create_default_cursor)
16676 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
16677 handling.
16678 (xg_left_ptr_cursor): Remove.
16679 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
16680 cursor here.
16681 (xg_win_to_widget): Take Display* argument, call
16682 gdk_xid_table_lookup_for_display.
16683 (xg_create_frame_widgets, xg_get_file_name, create_menus)
16684 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
16685 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
16686 in FRAME_X_DISPLAY_INFO.
16687 (xg_get_scroll_id_for_window): Take Display* argument.
16688 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
16689 (xg_initialize): Remove xg_left_ptr_cursor.
16690
16691 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
16692 Display* argument.
16693 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
16694
16695 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16696
16697 * xterm.c (x_detect_focus_change): Do not change focus frame for
16698 Enter/LeaveNotify if the current focus frame has explicit focus.
16699
16700 2003-11-14 Kim F. Storm <storm@cua.dk>
16701
16702 * dispnew.c (update_text_area): Fix redisplay error when hscroll
16703 is active and first glyph is only partially visible.
16704
16705 2003-11-13 Kenichi Handa <handa@m17n.org>
16706
16707 * xdisp.c (select_frame_for_redisplay): New function.
16708 (redisplay_internal): Record also selected_frame for
16709 unwind_redisplay. Call select_frame_for_redisplay before
16710 redrawing each frame.
16711 (unwind_redisplay): Argument changed to a cons.
16712
16713 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
16714
16715 * fns.c (Fstring_to_multibyte): Doc fix.
16716
16717 2003-11-11 Kenichi Handa <handa@m17n.org>
16718
16719 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16720
16721 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16722
16723 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
16724 program specified positions.
16725
16726 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16727
16728 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
16729
16730 2003-11-08 Kenichi Handa <handa@m17n.org>
16731
16732 * Makefile.in (lisp): Add kannada.el.
16733 (shortlisp): Likewise.
16734
16735 2003-11-07 Kenichi Handa <handa@m17n.org>
16736
16737 * coding.c (coding_allocate_composition_data):
16738 Reset coding->composing to COMPOSITION_NO.
16739 (coding_restore_composition): Detect invalid composition data.
16740 Give Fstring and Fvector a Lispy integer, not C int.
16741
16742 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
16743
16744 * floatfns.c (Flogb): Don't use VALMASK.
16745
16746 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
16747 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
16748
16749 * lisp.h (XINT): Move the cast to clarify what is going on.
16750 (GCTYPEMASK, XSETTYPE): Remove.
16751 (XGCTYPE): Make it an alias of XTYPE.
16752
16753 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16754
16755 * xterm.c (x_term_init): Fix formatting.
16756
16757 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16758
16759 * gtkutil.h (xg_have_tear_offs): Declare.
16760 (xg_keep_popup, xg_did_tearoff): Remove.
16761
16762 * gtkutil.c: Remove variable xg_did_tearoff.
16763 (xg_have_tear_offs): New function.
16764 (tearoff_remove): Just decrease xg_detached_menus.
16765 (tearoff_activate): Increase xg_detached_menus and call
16766 tearoff_remove when tearoff is removed.
16767 (xg_keep_popup): Remove function.
16768 (create_menus): Give add_tearoff_p as argument to recursive
16769 call to create_menus.
16770 (xg_create_widget): Use variables instead of multiple
16771 strcmp. Tell create_menus to create tear off only for
16772 menu bar menus.
16773 (xg_update_menubar): Change title for a detached menu also.
16774 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
16775 of deep_p.
16776 (xg_initialize): Initialize xg_detached_menus, remove
16777 initialization of xg_did_tearoff.
16778
16779 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
16780 xg_have_tear_offs returns non-zero.
16781 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
16782 call to xg_keep_popup.
16783
16784 2003-11-01 Andrew Choi <akochoi@shaw.ca>
16785
16786 * macterm.c (XTread_socket): Handle menubar selection and grow
16787 window only for mouseDown events.
16788
16789 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16790
16791 * xterm.c (x_term_init): For GTK part, increase x_initialized
16792 to check for more than one display. Use error instead of return 0.
16793
16794 2003-10-31 Andrew Choi <akochoi@shaw.ca>
16795
16796 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
16797 (copy_dysymtab): Call it.
16798
16799 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
16800
16801 * eval.c (Fdefvaralias): Doc fix.
16802
16803 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
16804
16805 * data.c (Fsetplist): Doc fix.
16806
16807 2003-10-14 Lute Kamstra <lute@gnu.org>
16808
16809 * window.c (Fset_window_fringes): Clarify docstring.
16810
16811 2003-10-14 Kim F. Storm <storm@cua.dk>
16812
16813 * window.c (Fset_window_margins): Simplify arg checking.
16814
16815 2003-10-13 Richard M. Stallman <rms@gnu.org>
16816
16817 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
16818 (print_partial_compiled_pattern): Replace assert with a printout.
16819 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
16820
16821 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
16822
16823 * window.c (Fset_window_margins): Allow only integers as args.
16824 (syms_of_window) <special-display-buffer-names,
16825 special-display-regexps>: Doc fixes.
16826
16827 2003-10-13 Lute Kamstra <lute@gnu.org>
16828
16829 * window.c (Fset_window_fringes): Elaborate docstring.
16830
16831 2003-10-12 Andrew Choi <akochoi@shaw.ca>
16832
16833 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
16834
16835 * s/darwin.h (GC_MARK_STACK): Define.
16836
16837 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16838
16839 * window.c (shrink_windows): New function.
16840 (size_window): Call shrink_windows to calculate window sizes when
16841 shrinking frame with more than one window.
16842
16843 2003-10-12 Kim F. Storm <storm@cua.dk>
16844
16845 * xdisp.c (compute_fringe_widths): Doc fix.
16846
16847 2003-10-08 Kenichi Handa <handa@m17n.org>
16848
16849 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
16850
16851 2003-10-07 Kenichi Handa <handa@m17n.org>
16852
16853 * coding.c (Qcoding_system_define_form): New variable.
16854 (syms_of_coding): Intern and staticpro it.
16855 (Fcheck_coding_system): Try to autoload the definition of
16856 CODING-SYSTEM.
16857
16858 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
16859
16860 * fns.c (Frequire): Doc fix.
16861
16862 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16863
16864 * xfns.c (Fx_send_client_event): New function as a base for
16865 manipulating extended window manager hints.
16866 (Fx_send_client_event): Remove unused variable s.
16867
16868 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
16869 that function is removed.
16870
16871 * xterm.c (x_set_offset): Use move_offset_left/top instead of
16872 x/y_pixels_outer_diff.
16873 (x_check_expected_move): Calculate move_offset_left/top.
16874
16875 * xterm.h (struct x_output): New members: move_offset_top/left.
16876
16877 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
16878 call x_set_offset directly.
16879
16880 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
16881
16882 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
16883
16884 * xterm.c (x_delete_display): Free font names and font_encoder
16885 in dpyinfo->font_table.
16886
16887 * xfns.c (Fx_close_connection): Only call XFreeFont here.
16888 Move xfree of font names to x_delete_display.
16889
16890 * xterm.h (struct x_display_info): New member, wm_type.
16891 (struct x_output): New members, expected_top/left and
16892 check_expected_move.
16893
16894 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
16895 is received.
16896 (handle_one_xevent): Rename x_check_expected_move from
16897 x_check_fullscreen_move.
16898 (x_set_offset): Only add WM decoration sizes to modified_top/left
16899 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
16900 (x_check_expected_move): Rename from x_check_fullscreen_move.
16901 Removed fullscreen specific code. Use check_expected_move,
16902 expected_left/top instead. Also, set wm_type.
16903 (x_term_init): Initialize wm_type to unknown.
16904
16905 * frame.c (x_fullscreen_move): Remove addition of WM decoration
16906 sizes to move_x/y.
16907
16908 2003-10-03 Kenichi Handa <handa@m17n.org>
16909
16910 * macterm.c (x_load_font): Clear all members of FONTP before start
16911 filling them.
16912
16913 2003-10-02 Kenichi Handa <handa@m17n.org>
16914
16915 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
16916 before calling find_ccl_program_func. Call find_ccl_program_func
16917 only when fontp->font_encoder is not NULL.
16918
16919 * xterm.c (x_load_font): Clear all members of FONTP before start
16920 filling them.
16921
16922 2003-10-03 John Paul Wallington <jpw@gnu.org>
16923
16924 * keymap.c (map_keymap): Don't abort when binding is a vector.
16925
16926 2003-10-02 Jason Rumney <jasonr@gnu.org>
16927
16928 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
16929 Sync dependencies with Makefile.in.
16930 (alloca.o): Remove.
16931
16932 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
16933 filling them.
16934
16935 * w32bdf.c (w32_load_bdf_font): Likewise.
16936
16937 2003-09-30 Richard M. Stallman <rms@gnu.org>
16938
16939 * term.c (set_tty_color_mode): Calculate current_mode_spec
16940 regardless of value of VAL.
16941
16942 * intervals.c (graft_intervals_into_buffer):
16943 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
16944 Handle over_used when splitting UNDER.
16945
16946 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16947
16948 * regex.c (regex_compile): Free the stack when returning from function.
16949
16950 2003-09-28 Kenichi Handa <handa@m17n.org>
16951
16952 * fontset.c (Finternal_char_font): Change return value to
16953 cons (FONT-NAME . GLYPH-CODE).
16954
16955 2003-09-28 Eli Zaretskii <eliz@gnu.org>
16956
16957 * term.c (tty_setup_colors): Treat any negative argument as -1.
16958
16959 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
16960
16961 * process.c (send_process): Delete unused temp_buf.
16962
16963 2003-09-26 Dave Love <fx@gnu.org>
16964
16965 * xterm.c (x_bitmap_mask): Declare.
16966
16967 2003-09-25 Dave Love <fx@gnu.org>
16968
16969 * Makefile.in (fns.o): Depend on md5.h.
16970
16971 2003-09-25 Kim F. Storm <storm@cua.dk>
16972
16973 * window.c (set_window_buffer): Fix redisplay problems when
16974 switching between buffers with different display margin widths.
16975
16976 2003-09-23 Kim F. Storm <storm@cua.dk>
16977
16978 * process.c (set_socket_option): Fix :bindtodevice option.
16979 (Fset_network_process_option): Update process contact list when
16980 setting option succeeds.
16981 (Fmake_network_process): Doc fix.
16982
16983 2003-09-23 Dave Love <fx@gnu.org>
16984
16985 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
16986
16987 2003-09-22 Eli Zaretskii <eliz@gnu.org>
16988
16989 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
16990 color mode is an integer number (it could be -1).
16991
16992 2003-09-22 Richard M. Stallman <rms@gnu.org>
16993
16994 * intervals.c (graft_intervals_into_buffer): Correct the main loop
16995 in the case where OVER is longer than UNDER.
16996
16997 2003-09-22 Masatake YAMATO <jet@gyve.org>
16998
16999 * window.c (Fset_window_scroll_bars): Validate the value of
17000 `vertical_type'.
17001
17002 2003-09-21 Kim F. Storm <storm@cua.dk>
17003
17004 * frame.c (Vdefault_frame_scroll_bars): New variable.
17005 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
17006 (syms_of_frame): DEFVAR_LISP it, and initialize according to
17007 window-system default scroll bar position.
17008
17009 * window.c (Fwindow_scroll_bars): Doc fix.
17010
17011 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17012
17013 * xterm.c (x_set_offset): Take window manager decorations into account.
17014
17015 2003-09-19 Richard M. Stallman <rms@gnu.org>
17016
17017 * atimer.h: Don't include lisp.h.
17018 (P_): Define it here (as well as elsewhere).
17019
17020 * print.c (Fprin1_to_string): Move the PRINTPREPARE
17021 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
17022
17023 * data.c (Fvariable_binding_locus): New function.
17024 (syms_of_data): defsubr it.
17025 (Flocal_variable_p): Delete duplicate call to indirect_variable.
17026
17027 2003-09-18 Dave Love <fx@gnu.org>
17028
17029 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
17030
17031 * process.c (Fnetwork_interface_info): Fix type error.
17032 (Fnetwork_interface_list): Doc fix.
17033 (read_process_output, read_process_output): Delete unused var.
17034
17035 2003-09-17 Kim F. Storm <storm@cua.dk>
17036
17037 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
17038 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
17039 (Fnetwork_interface_info): Check that ifreq struct has required
17040 fields before accessing them; this requires that those fields are
17041 defined as macros, which may be too restrictive on some platforms,
17042 but it is better than failing on other platforms.
17043 (syms_of_process): Only defsubr above fns when included.
17044
17045 2003-09-17 Dave Love <fx@gnu.org>
17046
17047 * unexalpha.c: Don't include varargs.h.
17048
17049 2003-09-17 Kim F. Storm <storm@cua.dk>
17050
17051 * process.c (Fset_process_sentinel): Add sentinel to childp plist
17052 for network process.
17053 (socket_options): Add `:' prefix to option names. Add optbit field.
17054 (set_socket_option): Remove no_error arg and special handling of s < 0.
17055 Return 1<<optbit for known option, 0 for unknown.
17056 Do not interpret 0 as false for boolean option (only nil).
17057 Pass failed option and value to report_file_error.
17058 (Fset_network_process_options): Replace by Fset_network_process_option.
17059 (Fset_network_process_option): New function to set just one option.
17060 (Fmake_network_process): Allow :coding arg to be a cons.
17061 Allow :server arg to be an integer specifying backlog size.
17062 Remove :options arg, and allow options to be specified directly
17063 as :KEY, VALUE pairs. Parse these options before binding socket.
17064 As before, :reuseaddr t is default for a server process, but this
17065 can now be disabled by specifying :reuseaddr nil.
17066 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
17067 (init_process): Availability of network options is now checked with
17068 simpler syntax (featurep 'make-network-process :OPTION); use loop to
17069 setup features.
17070 (syms_of_process): Fix defsubr's for the replaced functions.
17071
17072 2003-09-16 Dave Love <fx@gnu.org>
17073
17074 * Makefile.in: Depend on coding.h.
17075
17076 2003-09-14 Kim F. Storm <storm@cua.dk>
17077
17078 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
17079 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
17080 (syms_of_process): Defsubr them.
17081
17082 * config.in: Regenerate.
17083
17084 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17085
17086 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
17087 * m/news-r6.h (XUNMARK): Remove.
17088 * m/mips.h (XUNMARK): Remove.
17089 * m/mips-siemens.h (XUNMARK): Remove.
17090 * m/iris4d.h (XUNMARK): Remove.
17091 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
17092
17093 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17094
17095 * lisp.h (VALBITS): Don't remove 1 for the markbit.
17096 (union Lisp_Object): Use unsigned int for types. Remove markbit.
17097 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
17098 (XTYPE): Use unsigned right-shift.
17099 (XMARKBIT, XMARK, XUNMARK): Remove.
17100
17101 * alloc.c (init_intervals, init_symbol, init_marker):
17102 Don't preallocate anything.
17103 (Fgarbage_collect, mark_object): Ignore the markbit.
17104
17105 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
17106
17107 2003-09-08 Lute Kamstra <lute@gnu.org>
17108
17109 * xdisp.c (pint2hrstr): New function.
17110 (decode_mode_spec): Add `%i' and `%I' specs.
17111 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
17112 for `mode-line-format'.
17113
17114 2003-09-07 Andreas Schwab <schwab@suse.de>
17115
17116 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
17117 avoid warning.
17118
17119 2003-09-07 Eli Zaretskii <eliz@gnu.org>
17120
17121 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
17122
17123 2003-09-03 Kim F. Storm <storm@cua.dk>
17124
17125 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
17126 change (superseded by 2002-08-30 change); the default blink-off
17127 cursor is now again "no cursor".
17128
17129 2003-09-01 Jason Rumney <jasonr@gnu.org>
17130
17131 * makefile.w32-in (alloca.o): Remove.
17132 (coding.o): Depend on intervals.h
17133 (emacs.o, bytecode.o): Depend on window.h
17134
17135 2003-09-01 Dave Love <fx@gnu.org>
17136
17137 * Makefile.in (alloca.o): Remove commands.
17138 (coding.o): Depend on intervals.h composite.h window.h.
17139 (emacs.o): Depend on window.h keyboard.h keymap.h.
17140 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
17141 (bytecode.o): Depend on window.h.
17142
17143 2003-08-31 Jason Rumney <jasonr@gnu.org>
17144
17145 * w32term.c (w32_per_char_metric): Allow cached metrics to be
17146 returned even when font_type is unknown.
17147
17148 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
17149
17150 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17151
17152 * xterm.c (x_term_init): Initialize new fields in x_display_info.
17153
17154 * xterm.h (struct x_display_info): Add red/green/blue_bits and
17155 *_offset.
17156
17157 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
17158 calculate pixel value.
17159
17160 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
17161
17162 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
17163 Don't tell redisplay display is accurate when it's actually been
17164 paused for pending input.
17165
17166 2003-08-29 Richard M. Stallman <rms@gnu.org>
17167
17168 * dispnew.c (adjust_glyph_matrix): Call window_box
17169 whenever W is nonzero.
17170
17171 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17172 (Fkill_local_variable, Fmake_variable_frame_local)
17173 (Flocal_variable_p, Flocal_variable_if_set_p):
17174 Use indirect_variable to trace thru variable aliases.
17175
17176 * config.in: Updated.
17177
17178 * callint.c (Fcall_interactively): Save and restore
17179 Vthis_command, Vthis_original_command, real_this_command,
17180 and current_kboard->Vlast_command.
17181
17182 * abbrev.c (Fexpand_abbrev): Insert before deleting.
17183
17184 2003-08-29 Gerd Moellmann <gerd@gnu.org>
17185
17186 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
17187
17188 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
17189
17190 * coding.c (decode_coding_iso2022): Initialize local variable c2.
17191 (decode_coding_sjis_big5): Likewise.
17192
17193 2003-08-27 Jason Rumney <jasonr@gnu.org>
17194
17195 * w32.c (sys_pipe): Protect against file descriptor overflow.
17196
17197 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
17198
17199 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
17200
17201 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
17202
17203 * xfns.c (Vgtk_version_string): New variable.
17204 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
17205
17206 2003-08-24 Eli Zaretskii <eliz@gnu.org>
17207
17208 * term.c (term_init): Remove `const' from buffer_size's declaration.
17209
17210 * Makefile.in (msdos.o): Depend on intervals.h.
17211
17212 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
17213
17214 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17215
17216 * xterm.h (struct x_display_info): New fields: client_leader_window
17217 and Xatom_wm_client_leader.
17218
17219 * xterm.c (x_initialize): Move call to x_session_initialize to ...
17220 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
17221
17222 * xsmfns.c (create_client_leader_window): New function.
17223 (x_session_initialize): Call create_client_leader_window, take
17224 dpyinfo as argument.
17225
17226 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
17227
17228 * Makefile.in (xsmfns.o): Add more depenedencies.
17229
17230 2003-08-21 Dave Love <fx@gnu.org>
17231
17232 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
17233
17234 2003-08-21 Kenichi Handa <handa@m17n.org>
17235
17236 * term.c (term_init): Fix previous change; don't rely on the
17237 length of `buffer' if TERMINFO is defined.
17238
17239 2003-08-20 Dave Love <fx@gnu.org>
17240
17241 * atimer.h: Include lisp.h.
17242
17243 * lisp.h (EMACS_LISP_H): New.
17244 (popup_activated_flag): Don't declare.
17245
17246 * alloca.c: Some merging with gnulib. Change logic and doc
17247 concerning (x)malloc/(x)free -- no longer Emacs-specific.
17248 [DO_BLOCK_INPUT]: Don't include lisp.h.
17249 (xmalloc, xfree): Declare.
17250 (malloc): Don't declare.
17251
17252 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
17253 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
17254 atimer.h, blockinput.h.
17255
17256 * alloc.c (lisp_align_malloc): Change type of `aligned'.
17257
17258 * alloca.s: Remove.
17259
17260 2003-08-19 Gerd Moellmann <gerd@gnu.org>
17261
17262 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
17263 use -lncurses.
17264
17265 * term.c (term_init): Use a buffer of size 4096 for tgetent since
17266 FreeBSD returns something longer than 2044. Abort if the end of
17267 the buffer is overwritten.
17268
17269 2003-08-19 Miles Bader <miles@gnu.org>
17270
17271 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
17272
17273 2003-08-19 Gerd Moellmann <gerd@gnu.org>
17274
17275 * alloc.c (lisp_align_malloc): Check for memory full when
17276 allocating ablocks, which also avoids freeing a pointer into an
17277 ablocks structure.
17278
17279 * puresize.h (BASE_PURESIZE): Increase to 1100000.
17280
17281 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
17282
17283 2003-08-16 Richard M. Stallman <rms@gnu.org>
17284
17285 * editfns.c (Fencode_time): Doc fix.
17286
17287 2003-08-16 David Ponce <david@dponce.com>
17288
17289 * fileio.c (Fwrite_region): Fix conditional expression to issue
17290 the right message.
17291
17292 2003-08-16 Juri Linkov <juri@jurta.org>
17293
17294 * syntax.c (Fforward_word): Argument changed to optional.
17295 Set default value to 1.
17296
17297 2003-08-15 Kenichi Handa <handa@m17n.org>
17298
17299 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
17300 what autoscaled.
17301 (best_matching_font): Once we find a better scalable font, set
17302 non_scalable_has_exact_height_p to 1.
17303 (try_font_list): Call try_alternative_families to try any family
17304 with the given registry.
17305
17306 2003-08-09 Andreas Schwab <schwab@suse.de>
17307
17308 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
17309
17310 * print.c (print_string): Fix printing of multibyte string with
17311 nontrivial printcharfun.
17312
17313 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17314
17315 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
17316
17317 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
17318
17319 2003-07-31 Kenichi Handa <handa@m17n.org>
17320
17321 * process.c (read_process_output): Return the actually read bytes
17322 instead of the result of decoding.
17323
17324 2003-07-31 Kenichi Handa <handa@m17n.org>
17325
17326 * xterm.h (struct x_bitmap_record): New member have_mask.
17327
17328 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
17329 to 0.
17330 (x_create_bitmap_from_file): Likewise.
17331 (x_destroy_bitmap): Check have_mask member before freeing a mask.
17332 (x_destroy_all_bitmaps): Likewise.
17333 (x_create_bitmap_mask): Set have_mask member to 1.
17334
17335 2003-07-30 Richard M. Stallman <rms@gnu.org>
17336
17337 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
17338
17339 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17340
17341 * gtkutil.c (xg_mark_data): Update calls to mark_object.
17342
17343 2003-07-29 Richard M. Stallman <rms@gnu.org>
17344
17345 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
17346 Conditionalize XIM code on HAVE_XIM.
17347
17348 * fns.c (Fclear_string): New function.
17349 (syms_of_fns): defsubr it.
17350
17351 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17352
17353 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17354
17355 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
17356
17357 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
17358
17359 * buffer.c (delete_all_overlays): New function.
17360 * buffer.h (delete_all_overlays): Declare.
17361 * coding.c (run_pre_post_conversion_on_str):
17362 * print.c (temp_output_buffer_setup):
17363 * fileio.c (Finsert_file_contents):
17364 * minibuf.c (get_minibuffer): Use it.
17365
17366 2003-07-22 Andrew Choi <akochoi@shaw.ca>
17367
17368 * unexmacosx.c (unexec_regions_sort_compare):
17369 (unexec_regions_merge): New functions. Sort and merge unexec
17370 regions before dumping them.
17371
17372 2003-07-22 Dave Love <fx@gnu.org>
17373
17374 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
17375
17376 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
17377
17378 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
17379 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
17380 MARKBIT as the gcmarkbit for strings.
17381
17382 2003-07-21 Richard M. Stallman <rms@gnu.org>
17383
17384 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
17385
17386 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
17387 (syms_of_fns): Corresponding change.
17388
17389 * alloc.c (syms_of_alloc): Doc fixes.
17390
17391 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
17392
17393 * s/netbsd.h: Use -Wl syntax.
17394
17395 2003-07-17 Richard M. Stallman <rms@gnu.org>
17396
17397 * xterm.c (xim_initialize): Redo 6/24 change.
17398
17399 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
17400
17401 * buffer.c (copy_overlays): Use EMACS_INT for positions.
17402 (Fswitch_to_buffer): Don't signal an error when switching to the same
17403 buffer in a dedicated window.
17404
17405 * alloc.c: Use bitmaps for cons, as was done for floats.
17406 (init_float, init_cons): Let the normal code allocate the first block.
17407 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
17408 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
17409 New macros.
17410 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
17411 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
17412 (live_cons_p): Check the pointer is not past the `conses' array.
17413 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
17414 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
17415 (survives_gc_p): Use CONS_MARKED_P and simplify.
17416 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
17417
17418 2003-07-13 Paul Eggert <eggert@twinsun.com>
17419
17420 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
17421 puts it into BSS instead, at least on Solaris 8 and 9.
17422 This is a valid optimization, and it may occur on other platforms,
17423 so Emacs should not assume that initializing a static variable to
17424 zero puts it into data.
17425 * alloc.c (pure, staticvec):
17426 Initialize these arrays to nonzero, so that they're not
17427 put into BSS by that optimization.
17428
17429 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
17430
17431 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
17432 (lisp_align_malloc): Use posix_memalign is available.
17433 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
17434 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
17435 for consistency. Update users.
17436
17437 2003-07-13 Richard M. Stallman <rms@gnu.org>
17438
17439 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
17440
17441 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
17442
17443 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
17444 and use the Gtk+ function gtk_window_icon_from_file if available.
17445
17446 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
17447 handle mask of bitmaps.
17448 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
17449 mask property.
17450 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
17451
17452 * xterm.h (xg_set_icon): New function.
17453
17454 2003-07-12 Paul Eggert <eggert@twinsun.com>
17455
17456 * unexelf.c (unexec): Consider a section to precede the .bss
17457 section if its addresses overlap that of .bss.
17458
17459 2003-07-12 Richard M. Stallman <rms@gnu.org>
17460
17461 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
17462
17463 * config.in (HAVE_CRTIN): Add #undef.
17464 (INLINE): Really inline only if OPTIMIZE is defined.
17465
17466 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
17467 END_FILES_1.
17468 (START_FILES_1, END_FILES_1): New macros (conditional).
17469 (LD_SWITCH_SYSTEM_TEMACS): Define.
17470
17471 * s/openbsd.h: Don't include bsd4-3.h.
17472 (TERMINFO): Define.
17473 (LIBS_TERMCAP): Define.
17474 (LD_SWITCH_SYSTEM): Define (two definitions).
17475
17476 * xfns.c: Include libpng/png.h instead of png.h.
17477
17478 2003-07-11 Andreas Schwab <schwab@suse.de>
17479
17480 * buffer.c (modify_overlay): Update prototype.
17481 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
17482 Likewise.
17483
17484 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17485
17486 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
17487 (struct interval): Move to intervals.h.
17488 (struct Lisp_Marker): Use EMACS_INT for position info.
17489 (forward_point): Remove prototype of defunct function.
17490 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
17491 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
17492 (syms_of_textprop, set_text_properties): Remove prototypes that are
17493 already in intervals.h.
17494
17495 * intervals.h (struct interval): Move from lisp.h.
17496 Use EMACS_INT for position and size info.
17497
17498 * coding.c: Include intervals.h for Fset_text_properties.
17499
17500 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17501 position and length information.
17502
17503 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17504
17505 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17506 position and length information.
17507
17508 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17509
17510 Change overlays_after and overlays_before so the overlays themselves
17511 are linked into lists, rather than using cons cells. After all each
17512 Lisp_Misc already occupies 5 words, so we can add a `next' field to
17513 Lisp_Overlay for free and save up one cons cell per overlay (not
17514 to mention one indirection when traversing the list of overlay).
17515
17516 * lisp.h (struct Lisp_Overlay): New field `next'.
17517
17518 * buffer.h (struct buffer): Change overlays_before and overlays_after
17519 from Lisp lists of overlays to pointers to overlays.
17520
17521 * buffer.c (overlay_strings, recenter_overlay_lists):
17522 Fix typo in eassert in last commit.
17523 (unchain_overlay): New function.
17524 (add_overlay_mod_hooklist): Use AREF.
17525 (copy_overlays, reset_buffer, overlays_at, overlays_in)
17526 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
17527 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
17528 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
17529 (report_overlay_modification, evaporate_overlays, init_buffer_once):
17530 Adjust to new type of overlays_(before|after).
17531
17532 * alloc.c (mark_object): Mark the new `next' field of overlays.
17533 (mark_buffer): Manually mark the overlays_(after|before) fields.
17534
17535 * coding.c (run_pre_post_conversion_on_str):
17536 * editfns.c (overlays_around):
17537 * xdisp.c (load_overlay_strings):
17538 * fileio.c (Finsert_file_contents):
17539 * indent.c (current_column):
17540 * insdel.c (signal_before_change, signal_after_change):
17541 * intervals.c (set_point_both):
17542 * print.c (temp_output_buffer_setup): Use new type for
17543 overlays_(before|after).
17544
17545 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
17546
17547 * buffer.c (report_overlay_modification): Don't run hooks while
17548 traversing the list of overlays.
17549
17550 * buffer.h (struct buffer): Use an int for overlay_center.
17551 (overlays_at, evaporate_overlays, recenter_overlay_lists)
17552 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
17553
17554 * buffer.c (reset_buffer, recenter_overlay_lists)
17555 (adjust_overlays_for_insert, adjust_overlays_for_delete)
17556 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
17557 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
17558 (overlays_at, evaporate_overlays, recenter_overlay_lists)
17559 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
17560
17561 * xdisp.c (fast_find_position): Remove unused var.
17562
17563 * cmds.c (Qexpand_abbrev): New sym.
17564 (syms_of_cmds): Initialize it.
17565 (internal_self_insert): Use it to call expand-abbrev.
17566
17567 2003-07-09 Kim F. Storm <storm@cua.dk>
17568
17569 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
17570 was configured with --without-xim.
17571 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
17572
17573 2003-07-07 Richard M. Stallman <rms@gnu.org>
17574
17575 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
17576
17577 * alloc.c (Fgarbage_collect): Doc fix.
17578
17579 2003-07-07 Nozomu Ando <nand@mac.com>
17580
17581 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
17582
17583 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
17584
17585 * minibuf.c (read_minibuf): UNGCPRO before returning.
17586 (Ftry_completion, Fall_completions): Doc fix.
17587
17588 * alloc.c (live_float_p): Check that p is not past the `floats' array,
17589 now that `floats' is not the last element of the struct any more.
17590
17591 2003-07-06 Jason Rumney <jasonr@gnu.org>
17592
17593 * w32term.h (ClipboardSequence_Proc): New type.
17594
17595 * w32fns.c (clipboard_sequence_fn): New variable.
17596 (globals_of_w32fns): Initialize it.
17597
17598 * w32select.c (last_clipboard_sequence_number): New variable.
17599 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
17600 number if possible.
17601
17602 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
17603
17604 * m/amdx86-64.h (MARKBIT):
17605 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
17606 MARKBIT and ARRAY_MARK_FLAG any more.
17607
17608 * m/hp800.h (XSETMARKBIT):
17609 * m/sr2k.h (XSETMARKBIT):
17610 * lisp.h (XSETMARKBIT): Remove unused macro.
17611
17612 * lisp.h (mark_object): Change prototype.
17613
17614 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
17615 (last_marked): Change accordingly.
17616 (mark_interval, mark_maybe_object, mark_maybe_pointer)
17617 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
17618 (mark_buffer): Update calls to mark_object.
17619
17620 * bytecode.c (mark_byte_stack):
17621 * fns.c (sweep_weak_table):
17622 * keyboard.c (mark_kboards): Update calls to mark_object.
17623
17624 2003-07-06 Jason Rumney <jasonr@gnu.org>
17625
17626 * alloc.c (struct ablock): Only include padding when there is some.
17627
17628 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
17629
17630 * alloc.c (ALIGN): Add casts to simplify usage.
17631 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
17632 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
17633 (struct ablock, struct ablocks): New types.
17634 (free_ablock): New global var.
17635 (lisp_align_malloc, lisp_align_free): New functions.
17636 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
17637 (struct float_block): Reorder and add gcmarkbits.
17638 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
17639 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
17640 (init_float, make_float): Use lisp_align_malloc.
17641 (free_float, live_float_p): Don't use `type' any more.
17642 (make_float): Use FLOAT_UNMARK to access to mark bit.
17643 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
17644 Use FLOAT_MARKED_P to access the mark bit.
17645 (pure_alloc): Simplify use of ALIGN.
17646 (mark_object): Use FLOAT_MARK to access the mark bit.
17647 (gc_sweep): Use new macros to access the float's mark bit.
17648 (init_alloc_once): Init free_ablock.
17649
17650 * lisp.h (struct Lisp_Float): Remove unused field `type'.
17651
17652 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
17653
17654 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
17655 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
17656 (allocate_buffer): Move.
17657 (string_bytes): Don't mask markbit of `size_byte'.
17658 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17659 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
17660 Use the `size' field of buffers (rather than the `name' field) for
17661 the mark bit, as is done for all other vectorlike objects.
17662 Use the new macros to access the mark bit of vectorlike objects.
17663
17664 2003-06-26 Richard M. Stallman <rms@gnu.org>
17665
17666 * puresize.h (BASE_PURESIZE): Increment base size.
17667
17668 * xdisp.c (fast_find_position): Enable Gerd's new definition.
17669
17670 * xterm.c (xim_initialize): Undo previous change.
17671
17672 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
17673
17674 * alloc.c (survives_gc_p): Simplify.
17675
17676 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
17677
17678 * window.c (Fset_window_dedicated_p): Simplify.
17679 (display_buffer_1): Don't raise the win from which minibuf was entered.
17680 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
17681 (Fminibuffer_selected_window): Simplify.
17682
17683 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
17684
17685 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
17686 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
17687
17688 * insdel.c (check_markers, adjust_markers_for_delete)
17689 (adjust_markers_for_insert, adjust_markers_for_replace)
17690 (prepare_to_modify_buffer, RESTORE_VALUE):
17691 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
17692 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
17693 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
17694 * alloc.c (Fmake_marker, free_marker, gc_sweep):
17695 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
17696 * editfns.c (save_excursion_restore, transpose_markers):
17697 * window.c (delete_window):
17698 * xdisp.c (message_dolog): Update for new types.
17699
17700 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17701
17702 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
17703 (realize_default_face): Use default_face_done_p for the force_p
17704 argument to set_lface_from_font_name. Set default_face_done_p to one.
17705
17706 * frame.c (make_frame): Initialize default_face_done_p.
17707
17708 * frame.h (struct frame): Add default_face_done_p.
17709
17710 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
17711 will be defined.
17712
17713 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
17714
17715 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
17716 Initialize the new field `gcmarkbit'.
17717 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
17718 (mark_interval_tree): Don't mark the tree separately from the nodes.
17719 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
17720 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17721 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
17722
17723 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
17724 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
17725 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
17726 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
17727 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
17728
17729 2003-06-24 Dave Love <fx@gnu.org>
17730
17731 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
17732
17733 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
17734 from gnulib.
17735
17736 2003-06-21 Richard M. Stallman <rms@gnu.org>
17737
17738 * fileio.c (Fwrite_region): Alternate messages
17739 for append and partial write.
17740
17741 * keyboard.c (read_key_sequence): When converting upcase fn key to
17742 downcase, update fkey and keytran so `backspace' gets translated.
17743
17744 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
17745
17746 * process.c (wait_reading_process_input): Don't signal SIGIO
17747 in batch mode.
17748
17749 2003-06-17 Kenichi Handa <handa@m17n.org>
17750
17751 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
17752 composite.h.
17753
17754 * xselect.c: Don't include charset.h, coding.h, composite.h.
17755 (Qforeign_selection): New variable.
17756 (syms_of_xselect): Intern and static it.
17757 (selection_data_to_lisp_data): Return a unibyte string made from
17758 data with `foreign-selection' text property.
17759
17760 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
17761
17762 * termhooks.h (EVENT_INIT): New macro.
17763
17764 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
17765
17766 * alloc.c (mark_kboards): Move to keyboard.c.
17767
17768 * keyboard.c (record_asynch_buffer_change, read_avail_input):
17769 * xterm.c (x_dispatch_event):
17770 * xmenu.c (find_and_call_menu_selection):
17771 * xdisp.c (handle_tool_bar_click):
17772 * w32menu.c (menubar_selection_callback):
17773 * sysdep.c (kbd_input_ast, read_input_waiting):
17774 * msdos.c (dos_rawgetc):
17775 * macterm.c (mac_check_for_quit_char):
17776 * macmenu.c (menubar_selection_callback):
17777 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
17778 data to kbd_buffer_store_event.
17779
17780 2003-06-15 Kim F. Storm <storm@cua.dk>
17781
17782 * xdisp.c (x_fix_overlapping_area): Always use area relative X
17783 to fix redisplay problem with tall characters (such as \e,AC\e(B).
17784
17785 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
17786
17787 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
17788
17789 2003-06-12 Kenichi Handa <handa@m17n.org>
17790
17791 * fileio.c (Fwrite_region): Save and restore restriction.
17792
17793 2003-06-12 Dave Love <fx@gnu.org>
17794
17795 * alloca.c (alloca): Declare arg as size_t.
17796
17797 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
17798 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
17799
17800 2003-06-11 Dave Love <fx@gnu.org>
17801
17802 * search.c (shrink_regexp_cache): Use xrealloc.
17803 (syms_of_search): Use xmalloc.
17804
17805 2003-06-10 Kim F. Storm <storm@cua.dk>
17806
17807 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
17808 Adjust phys_cursor.x to be relative to window box, rather than
17809 text area before checking -- to ensure cursor is redrawn when
17810 exposing window.
17811 Note: This also fixes a similar (older) bug if display margins
17812 are present.
17813
17814 2003-06-06 Kenichi Handa <handa@m17n.org>
17815
17816 * coding.c (encoding_buffer_size): If coding->type is
17817 coding_type_ccl, double magnification on CRLF encoding.
17818
17819 2003-06-06 Jason Rumney <jasonr@gnu.org>
17820
17821 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
17822 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
17823
17824 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
17825 Mac too.
17826
17827 2003-06-05 Dave Love <fx@gnu.org>
17828
17829 * strftime.c: Merge changes from gnulib.
17830
17831 * mktime.c (__mktime_internal): Merge changes from gnulib
17832 involving year 69 and dst2.
17833
17834 Changes to merge with gnulib version and be consistent with the
17835 autoconf test:
17836
17837 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
17838 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
17839 [HAVE_LOCALE_H]: Include locale.h.
17840 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
17841
17842 2003-06-05 Kim F. Storm <storm@cua.dk>
17843
17844 * window.c (coordinates_in_window): Convert X and Y to window
17845 relative coordinates inside mode-line and header-line parts.
17846 Convert X and Y to margin area relative coordinates inside left
17847 and right display margin parts.
17848
17849 2003-06-05 Jason Rumney <jasonr@gnu.org>
17850
17851 * w32fns.c (add_system_logical_colors_to_map): New function.
17852 (Fx_open_connection): Use it.
17853
17854 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
17855
17856 * process.c (allocate_pty): Revert part of the previous patch.
17857 (Faccept_process_output): Simplify.
17858
17859 2003-06-04 Jason Rumney <jasonr@gnu.org>
17860
17861 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
17862
17863 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
17864 (lispy_mouse_wheel_names): Remove.
17865 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
17866 Always define drag_and_drop_syms.
17867
17868 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
17869 WHEEL_EVENT events.
17870
17871 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
17872
17873 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
17874
17875 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
17876
17877 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17878
17879 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
17880 menu item label.
17881
17882 2003-06-03 Richard M. Stallman <rms@gnu.org>
17883
17884 * window.c (Fwindow_edges): Doc fix.
17885 (Fwindow_pixel_edges, Fwindow_inside_edges)
17886 (Fwindow_inside_pixel_edges): New functions.
17887 (syms_of_window): defsubr them.
17888
17889 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
17890 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
17891
17892 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
17893
17894 * dispnew.c (Fsit_for): Don't lie about the number of args.
17895
17896 2003-06-02 Dave Love <fx@gnu.org>
17897
17898 * callproc.c: Use HAVE_FCNTL_H, not USG5.
17899 (syms_of_callproc) <process-environment>: Doc fix.
17900
17901 * doc.c: Use HAVE_FCNTL_H, not USG5.
17902
17903 * xfaces.c (font_rescale_ratio): Fix for K&R.
17904
17905 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
17906
17907 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
17908
17909 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
17910
17911 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
17912 (xg_create_frame_widgets): Use ENCODE_UTF_8.
17913
17914 * xterm.c (Qutf_8): Move to coding.c
17915
17916 * xmenu.c (ENCODE_MENU_STRING): New.
17917 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
17918 Use it.
17919
17920 * coding.h (ENCODE_UTF_8): New.
17921 (Qutf_8): Declare.
17922
17923 * coding.c (Qutf_8): New.
17924 (syms_of_coding): Intern it.
17925
17926 * fns.c: Doc fixes.
17927
17928 2003-06-02 Kenichi Handa <handa@m17n.org>
17929
17930 * buffer.c (Fset_buffer_multibyte): Fix previous change.
17931
17932 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
17933
17934 * lread.c (openp): Make sure STR is a string.
17935
17936 2003-06-01 David Ponce <david@dponce.com>
17937
17938 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
17939 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
17940
17941 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
17942 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
17943 (discard_mouse_events): Discard WHEEL_EVENT events too.
17944 (lispy_wheel_names, wheel_syms): New.
17945 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
17946 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
17947 (make_lispy_event): Add WHEEL_EVENT handler.
17948
17949 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
17950 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17951 WHEEL_EVENT events.
17952
17953 2003-05-31 John Paul Wallington <jpw@gnu.org>
17954
17955 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
17956 timer are in lisp/emacs-lisp.
17957
17958 2003-05-31 Kenichi Handa <handa@m17n.org>
17959
17960 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
17961 region when a buffer is changed to unibyte.
17962
17963 * charset.h (VALID_LEADING_CODE_P): New macro.
17964 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
17965
17966 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
17967 is nonzero, accept multibyte form of eight-bit-control chars.
17968 (decode_composition_emacs_mule): Likewise.
17969 (decode_coding_emacs_mule): Likewise.
17970 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
17971 multibyte form of eight-bit-control chars.
17972
17973 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
17974 (Finsert_file_contents): If coding-system-for-read is bound to
17975 Qauto_save_coding, use the coding system emacs-mule with special
17976 setting for recovering a file.
17977 (choose_write_coding_system): On auto saving, use the coding
17978 system emacs-mule with special setting for auto saving.
17979 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
17980
17981 2003-05-30 Kenichi Handa <handa@m17n.org>
17982
17983 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
17984 properly before calling ccl_driver.
17985
17986 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
17987
17988 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
17989 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
17990 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
17991
17992 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
17993
17994 * xfaces.c (realize_default_face): Do not abort if lface is
17995 non-existent - reverts change from 2003-05-19.
17996
17997 2003-05-29 Kenichi Handa <handa@m17n.org>
17998
17999 * coding.c (decode_coding_iso2022): Pay attention to the byte
18000 sequence of CTEXT extended segment, and retain those bytes as is.
18001
18002 2003-05-28 Kenichi Handa <handa@m17n.org>
18003
18004 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
18005 of CODING_REPLACEMENT_CHARACTER.
18006 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
18007 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
18008 check this flag on encoding.
18009 (encode_coding_sjis_big5):
18010 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
18011 (Fset_terminal_coding_system_internal):
18012 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
18013 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
18014
18015 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
18016 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18017 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
18018
18019 2003-05-28 Richard M. Stallman <rms@gnu.org>
18020
18021 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
18022
18023 * eval.c (unbind_to): Move init of this_binding to separate statement.
18024
18025 2003-05-28 Kim F. Storm <storm@cua.dk>
18026
18027 * xdisp.c (expose_window): Fix error in calculation of
18028 window relative coordinates of area to redisplay.
18029
18030 2003-05-27 Jason Rumney <jasonr@gnu.org>
18031
18032 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
18033
18034 2003-05-27 David Ponce <david@dponce.com>
18035
18036 Handle W32 mouse wheel events as mouse click events, like in X.
18037
18038 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
18039 MOUSE_WHEEL_EVENT anymore.
18040
18041 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
18042 Scrolling down/up the mouse wheel is respectively mapped to mouse
18043 button 4 and 5.
18044 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
18045 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
18046 WM_MOUSEWHEEL events.
18047
18048 2003-05-27 Andreas Schwab <schwab@suse.de>
18049
18050 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
18051
18052 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
18053 partially visible line.
18054
18055 * alloc.c (Fgarbage_collect): Fix last change.
18056
18057 2003-05-26 John Paul Wallington <jpw@gnu.org>
18058
18059 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
18060
18061 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
18062
18063 * window.c (Fset_window_buffer): Add type of `keep_margins'.
18064 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
18065
18066 * window.h (window_box_text_cols): Declare.
18067
18068 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
18069 (x_draw_vertical_border): Remove unused var `f'.
18070
18071 * xfaces.c (build_scalable_font_name): Remove `unused var
18072 pixel_size' warning.
18073
18074 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
18075
18076 * unexelf.c (unexec): Remove `unused var n' warning.
18077
18078 * strftime.c (my_strftime_localtime_r): Remove `defined but
18079 unused' warning.
18080
18081 * process.c (allocate_pty): Remove `unused var stb' and
18082 `cp might be used uninitialized' warnings.
18083
18084 * dispnew.c (mode_line_string): Remove unused var `f'.
18085
18086 * coding.c (find_safe_codings): Remove unused var `i'.
18087
18088 * bytecode.c (Fbyte_code): Remove `unused val' warning.
18089
18090 * buffer.c (Fkill_buffer): Remove unused var `list'.
18091
18092 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
18093
18094 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18095
18096 * frame.c (make_frame): Condition want_fullscreen with
18097 HAVE_WINDOW_SYSTEM.
18098
18099 2003-05-25 Juanma Barranquero <lektu@terra.es>
18100
18101 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
18102 (Fwindow_scroll_bars): Fix typo in docstring.
18103
18104 2003-05-24 Kim F. Storm <storm@cua.dk>
18105
18106 The following changes serve several purposes:
18107
18108 1) Swap the position of fringes and display margins in windows, i.e.
18109 the fringes are now displayed between the margins and the text area
18110 (by default).
18111
18112 2) Allow fringe and scroll bar parameters to be set per-buffer and
18113 per-window (like display margins). Such settings are now stored
18114 in window configurations, preserved when frames are resized, and
18115 copied when windows are split vertically or horizontally.
18116 Several bugs related to display margins have been fixed.
18117
18118 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
18119
18120 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
18121 rather than FRAME_WIDTH (FRAME_FONT (f)).
18122
18123 5) Introduce a consistent naming of variables, members and macros
18124 depending on whether their value is measured in pixels or in
18125 canonical columns/lines. Pixel dimensions are named *_width and
18126 *_height, while canonical columns/lines are named *_cols and
18127 *_lines. Pixel positions are named *_x and *_y, while column/line
18128 positions are named *_col and *_line.
18129
18130 6) Consolidate more of the X, W32, and MAC gui code by moving
18131 common data into struct frame, and generalize it for the non-gui
18132 case by using suitable defaults.
18133
18134 7) Cleanup and consolidate the macros controlling frame and window
18135 layout into frame.h and window.h, and generalize the use of the
18136 various window_box_* functions (enhanced to handle the new fringe
18137 position and the per-window fringe and scroll bar settings).
18138
18139 * frame.h (struct frame): Rename members height to text_lines,
18140 width to text_cols, window_height to total_lines, window_width to
18141 total_cols, new_height to new_text_lines, new_width to
18142 new_text_cols. All uses changed.
18143 (struct frame): New members which consolidate common members of
18144 x_output, w32_output, and mac_output structures: left_pos,
18145 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
18146 win_gravity, size_hint_flags, border_width, internal_border_width,
18147 line_height, fringe_cols, left_fringe_width, right_fringe_width,
18148 want_fullscreen. All uses changed.
18149 (struct frame): New member column_width contaning the canonical
18150 column width, analogue to line_height. All uses changed.
18151 (struct frame): Rename members scroll_bar_pixel_width to
18152 config_scroll_bar_width, and scroll_bar_cols to
18153 config_scroll_bar_cols. All uses changed.
18154 (struct frame): New member scroll_bar_actual_width which
18155 consolidates and renames the vertical_scroll_bar_extra member of
18156 x_output, w32_output, and mac_output structures. All uses changed.
18157 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
18158 from x/w32/macterm.h files. All uses changed. Also change code
18159 which referred to f->output_data...->pixel_height.
18160 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
18161 from x/w32/macterm.h files. All uses changed. Also change code
18162 which referred to f->output_data...->pixel_width.
18163 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
18164 Also change code which referred to f->height.
18165 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
18166 Also change code which referred to f->width.
18167 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
18168 to update new_text_lines and new_text_cols members directly.
18169 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
18170 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
18171 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
18172 FRAME_SCROLL_BAR_COLS. All uses changed.
18173 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
18174 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
18175 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
18176 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
18177 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
18178 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
18179 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
18180 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
18181 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
18182 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
18183 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
18184 Unconditionally return line_height member (it now has proper value
18185 also for non-window frames).
18186 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
18187 return new column_width member (rather than the default font width).
18188 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
18189 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
18190 from x/w32/macterm.h files. Unconditionally return corresponding
18191 member of frame structure (they now have proper values also for
18192 non-window frames).
18193 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
18194 Calculate return value from left and right widths.
18195 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
18196 internal_border_width member (has proper value for non-window frame).
18197 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
18198 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
18199 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
18200 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
18201 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
18202 consolidated from xterm.h, macterm.h, and w32term.h.
18203 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
18204 consolidated from xterm.h, macterm.h, and w32term.h.
18205 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
18206 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
18207 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
18208 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
18209 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
18210 consolidated from x/mac/w32term.h.
18211 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
18212 consolidated from x/mac/w32term.h.
18213 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
18214 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
18215 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
18216 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
18217
18218 * window.h (struct window): Rename members left to left_col,
18219 top to top_line, height to total_lines, width to total_cols,
18220 left_margin_width to left_margin_cols, right_margin_width to
18221 right_margin_cols, orig_height to orig_total_lines, orig_top to
18222 orig_top_line. All uses changed.
18223 (struct window): New members left_fringe_width, right_fringe_width,
18224 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
18225 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
18226 New macros primarily used to simplify other macros.
18227 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
18228 referred to XINT (w->width).
18229 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
18230 referred to XINT (w->height).
18231 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
18232 referred to XINT (w->width) * canon_x_unit.
18233 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
18234 referred to XINT (w->height) * canon_y_unit.
18235 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
18236 referred to XINT (w->left).
18237 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
18238 all uses and code that referred to XINT (w->left) + XINT (w->width).
18239 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
18240 referred to XINT (w->top).
18241 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
18242 referred to XINT (w->top) + XINT (w->height).
18243 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
18244 referred to XINT (w->left) * canon_x_unit.
18245 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
18246 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
18247 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
18248 referred to XINT (w->top) * canon_y_unit.
18249 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
18250 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
18251 (WINDOW_LEFTMOST_P): New macro.
18252 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
18253 All uses changed.
18254 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
18255 All uses changed.
18256 (WINDOW_BOX_LEFT_EDGE_X): Rename from
18257 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
18258 Do not exclude left fringe width.
18259 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
18260 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
18261 Do not exclude fringe widths.
18262 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
18263 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
18264 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
18265 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
18266 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
18267 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
18268 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
18269 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
18270 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
18271 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
18272 New macros. Change code which referenced corresponding
18273 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
18274 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
18275 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
18276 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
18277 allow per-window scroll-bar settings.
18278 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
18279 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
18280 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
18281 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
18282 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
18283 FRAME_SCROLL_BAR_WIDTH.
18284 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
18285 (WINDOW_SCROLL_BAR_AREA_X): New macros.
18286 (WINDOW_HEADER_LINE_HEIGHT): Rename from
18287 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
18288 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
18289 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
18290 (WINDOW_BOX_TEXT_HEIGHT): Rename from
18291 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
18292 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
18293 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
18294 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
18295 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
18296 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
18297 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
18298 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
18299 (window_from_coordinates): Update prototype.
18300 (Fset_window_buffer): Update EXFUN.
18301 (set_window_buffer): Update prototype.
18302
18303 * dispextern.h (struct glyph_matrix): Rename members window_left_x
18304 to window_left_col, window_top_y to window_top_line. All uses
18305 changed.
18306 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
18307 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
18308 internal_border_width is now set to 0 for non-window frames.
18309 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
18310 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
18311 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
18312 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
18313 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
18314 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
18315 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
18316 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
18317 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
18318 Move to window.h and renamed [see window.h changes].
18319 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
18320 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
18321 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
18322 Use WINDOW_TOTAL_LINES.
18323 (frame_update_line_height): Remove prototype.
18324
18325 * buffer.h (struct buffer): Rename members measured in columns:
18326 left_margin_width to left_margin_cols, right_margin_width to
18327 right_margin_cols. All uses changed.
18328 New members left_fringe_width, right_fringe_width,
18329 fringes_outside_margins for per-buffer fringe settings.
18330 New members scroll_bar_width and vertical_scroll_bar_type for
18331 per-buffer scroll bar settings.
18332
18333 * buffer.c (init_buffer_once): Set buffer_defaults and
18334 buffer_local_flags for new buffer-local variables
18335 left_fringe_width, right_fringe_width, fringes_outside_margins,
18336 scroll_bar_width, and vertical_scroll_bar_type.
18337 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
18338 default-* variables for them.
18339
18340 * dispnew.c: Make (many) trivial substitutions for renamed and
18341 new macros in dispextern.h, frame.h and window.h.
18342 (mode_line_string): No need to adjust width for mode lines, as it
18343 is already adjusted by the caller.
18344 (marginal_area_string): Handle fringes inside/outside margins.
18345
18346 * frame.c: Make (many) trivial substitutions for renamed and
18347 new macros in dispextern.h, frame.h and window.h.
18348 (make_frame): Initialize left_fringe_width, right_fringe_width,
18349 fringe_cols, scroll_bar_actual_width, border_width,
18350 internal_border_width, column_width, line_height, x_pixels_diff,
18351 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
18352 members with values suitable for a non-window frames.
18353
18354 * gtkutil.c: Make (many) trivial substitutions for renamed and
18355 new macros in dispextern.h, frame.h and window.h.
18356
18357 * indent.c: Make (few) trivial substitutions for renamed and
18358 new macros in dispextern.h, frame.h and window.h.
18359
18360 * keyboard.c: Make (many) trivial substitutions for renamed and
18361 new macros in dispextern.h, frame.h and window.h.
18362 (make_lispy_event): Use window positions returned from
18363 window_from_coordinates when constructing the lisp event for
18364 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
18365 (incorrect) values locally.
18366 (make_lispy_movement): Use window positions returned from
18367 window_from_coordinates when constructing the lisp event, rather
18368 than calculating (incorrect) values locally.
18369
18370 * scroll.c: Make (some) trivial substitutions for renamed and
18371 new macros in dispextern.h, frame.h and window.h.
18372
18373 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
18374 scroll-bars.
18375
18376 * sysdep.c: Make (few) trivial substitutions for renamed and
18377 new macros in dispextern.h, frame.h and window.h.
18378
18379 * term.c: Make (some) trivial substitutions for renamed and
18380 new macros in dispextern.h, frame.h and window.h.
18381
18382 * widget.c: Make (few) trivial substitutions for renamed and
18383 new macros in dispextern.h, frame.h and window.h.
18384
18385 * window.c: Make (many) trivial substitutions for renamed and
18386 new macros in dispextern.h, frame.h and window.h.
18387 (make_window): Initialize new members
18388 left_margin_cols, right_margin_cols, left_fringe_width,
18389 right_fringe_width, fringes_outside_margins, scroll_bar_width,
18390 and vertical_scroll_bar_type.
18391 (coordinates_in_window): Adapt to new fringe/margin positions
18392 and per-window fringes and scroll-bars.
18393 Fix bug related to incorrectly adjusting coordinates by
18394 frame's internal_border_width (the effect normally negible since
18395 the internal_border_width is typically 0 or 1 pixel, but very
18396 noticeable for an internal_border_width of e.g. 25 pixels).
18397 Upon successful return (other than ON_NOTHING), the coordinates
18398 are now always properly converted to window relative for the
18399 given display element.
18400 (window_from_coordinates): Add new parameters wx and wy to
18401 return the window relative x and y position in the returned
18402 window and part. A null arg means, don't return the position.
18403 All callers changed.
18404 (adjust_window_margins): New function which may reduce the width
18405 of the display margins if a window's text area is too small after
18406 resizing or splitting windows.
18407 (size_window): Fix bug that did not account for display margin
18408 widths when checking the minimum width of a window; use
18409 adjust_window_margins.
18410 (set_window_buffer): Call Fset_window_fringes and
18411 Fset_window_scroll_bars to setup per-window elements.
18412 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
18413 existing display margin, fringe widths, and scroll bar settings
18414 (e.g. after splitting a window or resizing the frame).
18415 All callers changed.
18416 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
18417 (Fsplit_window): Duplicate original window's display margin,
18418 fringe, and scroll-bar settings; then call Fset_window_buffer with
18419 KEEP_MARGINS non-nil. This fixes a bug which caused a split
18420 window to only preserve the display margins in one of the windows.
18421 When splitting horizontally, call adjust_window_margins on both
18422 windows to ensure that the text area of the new windows is non too
18423 narrow. This fixes a bug which could cause Emacs to trap if the
18424 width of the split window was less than the width of the display
18425 margins.
18426 (window_box_text_cols): Rename from window_internal_width.
18427 All uses changed. Adapt to per-window fringes and scroll bars.
18428 Fix bug that caused vertical separator to be subtracted also on
18429 window frames. Fix another bug that did not reduce the returned
18430 value by the columns used for display margins.
18431 (window_scroll_line_based): Fix bug related to scrolling too much
18432 when display margins are present (implicitly fixed by the fix to
18433 window_box_text_cols).
18434 (scroll_left, scroll_right): Fix bug related to scrolling too far
18435 by default when display margins are present (implicitly fixed by
18436 the fix to window_box_text_cols).
18437 (struct saved_window): Rename members left to left_col, top to
18438 top_line, width to total_cols, height to total_lines, orig_top to
18439 orig_top_line, orig_height to orig_total_lines. All uses changed.
18440 New members left_margin_cols, right_margin_cols,
18441 left_fringe_width, right_fringe_width, fringes_outside_margins,
18442 scroll_bar_width, and vertical_scroll_bar_type for saving
18443 per-window display elements.
18444 (Fset_window_configuration): Restore display margins, fringes,
18445 and scroll bar settings. This fixes a bug which caused display
18446 margins to be discarded when saving and restoring a window
18447 configuration.
18448 (save_window_save): Save display margins, fringes, and scroll bar
18449 settings. This fixes a bug which caused display margins to be
18450 discarded when saving and restoring a window configuration.
18451 (Fset_window_margins): Do nothing if display margins are not
18452 really changed. Otherwise, call adjust_window_margins to ensure
18453 the text area doesn't get too narrow. This fixes a bug which
18454 could cause Emacs to trap if setting display margins wider than
18455 the width of the window.
18456 (Fset_window_fringes): New defun to allow user to specifically set
18457 this window's fringe widths and position vs. display margins.
18458 (Fwindow_fringes): New defun to return window's actual fringe settings.
18459 (Fset_window_scroll_bars): New defun to allow user to specifically
18460 set this window's scroll bar width and position.
18461 (Fwindow_scroll_bars): New defun to return window's actual scroll
18462 bar settings.
18463 (compare_window_configurations): Also compare display margins,
18464 fringes, and scroll bar settings.
18465 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
18466
18467 * xdisp.c: Make (many) trivial substitutions for renamed and
18468 new macros in dispextern.h, frame.h and window.h.
18469 (window_box_width): Adapt to per-window fringes and scroll bars,
18470 and new fringe vs. display margin position. Note that returned
18471 value is no longer guaranteed to be a whole multiple of the frame
18472 column width, since per-window fringes may now be any width.
18473 (window_box_left_offset): New function like window_box_left, but
18474 value is relative to left border of window (rather than frame).
18475 (window_box_right_offset): New function like window_box_right,
18476 but value is relative to left border of window.
18477 (window_box_left): Adapt to per-window fringes and scroll bars,
18478 and new fringe vs. display margin position. Simplify by using
18479 WINDOW_LEFT_EDGE_X and window_box_left_offset.
18480 (window_box): Allow null args for unnecessary return values;
18481 change/simplify relevant callers.
18482 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
18483 and new fringe vs. display margin position.
18484 Use window_box_left_offset and window_box_right_offset
18485 (get_glyph_string_clip_rect): Adapt to per-window fringes and
18486 scroll bars, and new fringe vs. display margin position.
18487 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
18488 (draw_fringe_bitmap): Rework to handle per-window fringes and new
18489 fringe vs. display margin position.
18490 (hscroll_window_tree): Use window_box_width instead of window_box.
18491 (redisplay_window): Adapt to per-window scroll bars.
18492 (draw_glyphs): Rework to handle per-window fringes and scroll
18493 bars, and new fringe vs. display margin position.
18494 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
18495 (x_clear_end_of_line): Adapt to per-window fringes and scroll
18496 bars, and new fringe vs. display margin position. Fix bug which
18497 increased total width of full_width rows by width of scroll bars
18498 although window's total width already includes that.
18499 (x_fix_overlapping_area): Simplify using window_box_left_offset.
18500 (expose_area): Simplify using window_box_left_offset.
18501 (x_draw_vertical_border): Handle per-window scroll bar settings,
18502 mixing windows with left, right and no scroll bars.
18503
18504 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
18505 where it's used in x_list_fonts (for clarity).
18506 (frame_update_line_height): Remove unused function; functionality
18507 is now done directly when setting the default font in x_set_font.
18508
18509 * xfns.c: Make (many) trivial substitutions for renamed and
18510 new macros in dispextern.h, frame.h and window.h.
18511
18512 * xmenu.c: Make (some) trivial substitutions for renamed and
18513 new macros in dispextern.h, frame.h and window.h.
18514
18515 * xterm.h (struct x_output): Move members left_pos, top_pos,
18516 border_width, pixel_height, pixel_width, line_height,
18517 internal_border_width, vertical_scroll_bar_extra,
18518 left_fringe_width, right_fringe_width, fringe_cols,
18519 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18520 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
18521 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18522 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18523 (PIXEL_WIDTH, PIXEL_HEIGHT)
18524 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
18525 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
18526 frame.h and renamed [see frame.h changes].
18527 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18528 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
18529 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
18530 and renamed [see frame.h changes].
18531
18532 * xterm.c: Make (several) trivial substitutions for renamed and
18533 new macros in dispextern.h, frame.h and window.h.
18534 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
18535 (scroll_run): Adapt to new fringe position.
18536 (glyph_rect): Use window coordinates returned from
18537 window_from_coordinates rather than frame_to_window_pixel_xy.
18538 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18539 scroll-bars.
18540 (handle_one_xevent): Simplify a USE_GTK conditional.
18541 (x_clip_to_row): Remove superfluous whole_line_p arg and code
18542 (fringes are now inside margins, i.e. always in the clipping area).
18543 All callers changed.
18544 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18545 directly, then call compute_fringe_widths. Don't call
18546 frame_update_line_height.
18547
18548 * w32term.h (struct w32_output): Move members left_pos, top_pos,
18549 border_width, pixel_height, pixel_width, line_height,
18550 internal_border_width, vertical_scroll_bar_extra,
18551 left_fringe_width, right_fringe_width, fringe_cols,
18552 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18553 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
18554 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18555 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18556 (PIXEL_WIDTH, PIXEL_HEIGHT)
18557 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
18558 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
18559 frame.h and renamed [see frame.h changes].
18560 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18561 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
18562 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
18563 and renamed [see frame.h changes].
18564
18565 * w32term.c: Make (several) trivial substitutions for renamed and
18566 new macros in dispextern.h, frame.h and window.h.
18567 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
18568 (glyph_rect): Use window coordinates returned from
18569 window_from_coordinates rather than frame_to_window_pixel_xy.
18570 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18571 scroll-bars.
18572 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
18573 (fringes are now inside margins, i.e. always in the clipping area).
18574 All callers changed.
18575 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18576 directly, then call compute_fringe_widths. Don't call
18577 frame_update_line_height.
18578
18579 * w32console.c: Make (few) trivial substitutions for renamed and
18580 new macros in dispextern.h, frame.h and window.h.
18581
18582 * w32fns.c: Make (many) trivial substitutions for renamed and
18583 new macros in dispextern.h, frame.h and window.h.
18584
18585 * w32menu.c: Make (few) trivial substitutions for renamed and
18586 new macros in dispextern.h, frame.h and window.h.
18587
18588 * macterm.h (struct mac_output): Move members left_pos, top_pos,
18589 border_width, pixel_height, pixel_width, line_height,
18590 internal_border_width, vertical_scroll_bar_extra,
18591 left_fringe_width, right_fringe_width, fringe_cols,
18592 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
18593 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
18594 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
18595 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
18596 (PIXEL_WIDTH, PIXEL_HEIGHT)
18597 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
18598 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
18599 frame.h and renamed [see frame.h changes].
18600 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
18601 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
18602 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
18603 and renamed [see frame.h changes].
18604
18605 * macterm.c: Make (several) trivial substitutions for renamed and
18606 new macros in dispextern.h, frame.h and window.h.
18607 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
18608 (glyph_rect): Use window coordinates returned from
18609 window_from_coordinates rather than frame_to_window_pixel_xy.
18610 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
18611 scroll-bars.
18612 (x_clip_to_row): Remove superfluous whole_line_p arg and code
18613 (fringes are now inside margins, i.e. always in the clipping area).
18614 All callers changed.
18615 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
18616 directly, then call compute_fringe_widths. Don't call
18617 frame_update_line_height.
18618
18619 * macfns.c: Make (several) trivial substitutions for renamed and
18620 new macros in dispextern.h, frame.h and window.h.
18621 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
18622
18623 * macmenu.c: Make (few) trivial substitutions for renamed and
18624 new macros in dispextern.h, frame.h and window.h.
18625
18626 * msdos.h (struct x_output): Remove members left_pos, top_pos,
18627 and line_height, and use corresponding new members in struct
18628 frame. All uses changed.
18629 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
18630 superseeded by corresponding macros in frame.h.
18631
18632 * msdos.c: Make (several) trivial substitutions for renamed and
18633 new macros in dispextern.h, frame.h and window.h.
18634 (IT_note_mouse_highlight): Use updated window coordinates returned
18635 by window_from_coordinates, rather than adjusting them locally.
18636 (internal_terminal_init): No need to initialize line_height here;
18637 it now defaults to 1.
18638
18639 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
18640
18641 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
18642 dropping `down' events.
18643
18644 2003-05-24 Andreas Schwab <schwab@suse.de>
18645
18646 * coding.c (find_safe_codings): Fix last change.
18647
18648 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
18649
18650 * xfns.c (x_window): Fix typo from 2003-05-21 change.
18651
18652 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
18653
18654 * xdisp.c (display_mode_element): Increase max depth.
18655 Simplify the error handling code. Use a different error string
18656 for the case where we hit the depth limit.
18657
18658 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
18659
18660 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
18661
18662 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
18663
18664 * intervals.c (get_local_map): Don't get char-property of previous
18665 point any more: get_pos_property already does it and better.
18666
18667 2003-05-21 Dave Love <fx@gnu.org>
18668
18669 [Merged from unicode branch.]
18670
18671 * xfns.c (x_window, x_window): Use use_xim.
18672
18673 * xterm.c (use_xim): Initialize.
18674 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18675 (x_term_init): Maybe set use_xim.
18676
18677 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18678
18679 2003-05-21 Jason Rumney <jasonr@gnu.org>
18680
18681 * unexw32.c (_start): Remove _fmode initialization.
18682
18683 * emacs.c (main) [WINDOWSNT]: Move it here.
18684
18685 2003-05-20 Dave Love <fx@gnu.org>
18686
18687 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
18688
18689 2003-05-19 Richard M. Stallman <rms@gnu.org>
18690
18691 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
18692 as value for QCfont attribute.
18693 (realize_default_face): lface should already exist; crash if not.
18694 Specify 0 for FORCE_P when calling set_lface_from_font_name.
18695
18696 * frame.c (Fignore_event): Doc fix.
18697
18698 2003-05-19 Kenichi Handa <handa@m17n.org>
18699
18700 * coding.c (decode_coding_string): Handle post-read-conversion
18701 even if the coding doesn't require decoding.
18702
18703 2003-05-18 Richard M. Stallman <rms@gnu.org>
18704
18705 * callproc.c (Fcall_process_region): Doc fix.
18706
18707 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18708
18709 * lread.c (Fload): Print a message if package is obsolete.
18710
18711 * window.c (Fselect_window): Add optional `norecord' arg.
18712 (select_window_1): Fold into Fselect_window.
18713 (select_window_norecord): New function.
18714 (temp_output_buffer_show): Use it. Preserve current buffer.
18715
18716 * window.h (Fselect_window): Update declaration.
18717
18718 * window.c (delete_window, Fother_window, Fset_window_configuration):
18719 * minibuf.c (read_minibuf):
18720 * macterm.c (x_new_focus_frame):
18721 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
18722 * callint.c (Fcall_interactively):
18723 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
18724
18725 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
18726
18727 2003-05-17 David Kastrup <dak@gnu.org>
18728
18729 * process.c (read_process_output): Back out change from 2003-03-09.
18730
18731 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
18732
18733 * editfns.c (get_pos_property): Don't assume that `object' = nil.
18734
18735 * textprop.c (text_property_stickiness): New arg `buffer'.
18736
18737 * intervals.h (text_property_stickiness): New arg `buffer'.
18738 (get_pos_property): Declare.
18739
18740 * intervals.c (get_local_map): Use get_pos_property, to obey
18741 stickiness and empty overlays.
18742 (create_root_interval, graft_intervals_into_buffer): Use BEG.
18743 (merge_properties, intervals_equal, merge_properties_sticky):
18744 Use XCAR, XCDR.
18745 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
18746
18747 2003-05-17 Richard M. Stallman <rms@gnu.org>
18748
18749 * minibuf.c (read_minibuf): If buffer is empty, record the default
18750 in the history.
18751 (Fminibuffer_complete_word): When deleting the overlap, take account
18752 of its real position.
18753
18754 * fns.c (map_char_table): Fix previous change.
18755
18756 * syntax.c (find_defun_start):
18757 When open_paren_in_column_0_is_defun_start,
18758 return beginning of buffer.
18759
18760 * lisp.h (map_char_table): Declare added arg.
18761
18762 * fns.c (map_char_table): New arg TABLE gets the master table.
18763 All calls changed.
18764 Process default and inheritance, resorting to Faref if necessary.
18765
18766 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18767 (Faccessible_keymaps): Pass new arg to map_char_table.
18768
18769 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
18770
18771 * casetab.c (set_case_table): Pass new arg to map_char_table.
18772
18773 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
18774
18775 * lisp.h (specbinding_func): New typedef.
18776 (struct specbinding): Use specbinding_func, to put the `volatile'
18777 in the right place.
18778
18779 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
18780 to avoid GCC warning.
18781
18782 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
18783
18784 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
18785
18786 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
18787
18788 * keyboard.c (apply_modifiers): Don't fill the other cache.
18789
18790 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
18791
18792 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
18793
18794 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
18795 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
18796 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
18797 (Fset_window_configuration, Fcurrent_window_configuration)
18798 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
18799 (Fpos_visible_in_window_p, mark_window_cursors_off)
18800 (window_internal_height, window_internal_width, Frecenter)
18801 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
18802 (replace_buffer_in_all_windows, init_window_once, init_window)
18803 (syms_of_window, keys_of_window): Move from lisp.h.
18804 * lisp.h: Move window.c declarations to window.h.
18805
18806 * bytecode.c: Include window.h.
18807 * emacs.c: Include window.h.
18808
18809 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
18810 (keyremap): Add `parent' field.
18811 (keyremap_step): Use it. Remove `parent' argument.
18812 (read_key_sequence): Setup and use the new `parent' field.
18813
18814 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
18815
18816 * keyboard.c (adjust_point_for_property): Ensure termination.
18817
18818 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
18819
18820 * keyboard.c (follow_key): Remove dead variable `did_meta'.
18821 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
18822 duplicated handling of function-key-map and key-translation-map
18823 in read_key_sequence.
18824 (read_key_sequence): Use them.
18825
18826 * keyboard.c (adjust_point_for_property): Try harder to move point
18827 to the non-sticky end of an invisible property.
18828
18829 * xdisp.c (single_display_prop_intangible_p): Make `space' display
18830 property intangible as well.
18831
18832 2003-05-10 Andreas Schwab <schwab@suse.de>
18833
18834 * xmenu.c (single_menu_item): Change last parameter to void* to
18835 avoid warning.
18836
18837 2003-05-09 Richard M. Stallman <rms@gnu.org>
18838
18839 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
18840 Bind Qinhibit_modification_hooks to t so there will be no GC.
18841 Rename local `tem' to `save_deactivate_mark'.
18842
18843 * eval.c (specpdl_ptr): Declare volatile.
18844 (unbind_to): Copy the whole binding and decrement specpdl_ptr
18845 before doing the work of unbinding it.
18846
18847 * lisp.h (struct specbinding): Declare elements volatile.
18848 (specpdl_ptr): Declare volatile.
18849
18850 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
18851
18852 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
18853 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
18854
18855 2003-05-08 Dave Love <fx@gnu.org>
18856
18857 * coding.c (Vlast_coding_system_used): Doc fix.
18858
18859 2003-05-07 Jason Rumney <jasonr@gnu.org>
18860
18861 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
18862 when system does not support them.
18863
18864 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
18865
18866 * fileio.c (Qwrite_region_annotate_functions): New var.
18867 (build_annotations): Use it to process the global part of the hook.
18868 (syms_of_fileio): Init and staticpro it.
18869
18870 * keyboard.c (safe_run_hooks_error): Display a message instead of
18871 silently ignoring the error.
18872
18873 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
18874
18875 * keyboard.c (input_available_signal): Mark static.
18876 (menu_bar_items): Use map_keymap.
18877 (menu_bar_one_keymap): Remove.
18878 (menu_bar_item): Adjust arglist (for use in map_keymap).
18879 Properly hide a second binding when not both are keymaps.
18880
18881 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
18882 (single_keymap_panes): Use it and map_keymap.
18883 (single_menu_item): Use skp as well.
18884
18885 * keymap.h (map_keymap_function_t): New type.
18886 (map_keymap): Declare.
18887
18888 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
18889 (map_keymap_call, Fmap_keymap): New functions.
18890 (syms_of_keymap): Defsubr map-keymap.
18891
18892 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18893
18894 * gtkutil.c (create_dialog, make_widget_for_menu_item)
18895 (make_menu_item, create_menus, xg_update_menu_item): Don't call
18896 ..._with_mnemonic functions for menu items.
18897
18898 2003-05-01 Kenichi Handa <handa@m17n.org>
18899
18900 * coding.c (coding_system_accept_latin_extra_p): Delete this
18901 function.
18902 (find_safe_codings): Pay attention to
18903 the property tranlsation-table-for-encode of each codings.
18904 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
18905
18906 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
18907
18908 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
18909
18910 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
18911
18912 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
18913
18914 * lisp.h (CHECK): Wrap args in parenthesis.
18915 (specbind): Fix doc: symbol = Qnil is not supported any more.
18916
18917 * bytecode.c (Fbyte_code) <unwind-protect>:
18918 Use Fprogn rather than 0 and Qnil.
18919
18920 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
18921 `double', and `triple' modifiers as well.
18922
18923 2003-04-30 Richard M. Stallman <rms@gnu.org>
18924
18925 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
18926
18927 * alloc.c (abort_on_gc): New variable.
18928 (Fgarbage_collect): Abort if abort_on_gc is set.
18929
18930 * lisp.h (abort_on_gc): Add decl.
18931
18932 * eval.c (Fsignal): Clear abort_on_gc.
18933
18934 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
18935 Reinit FORMAT_START and END before second scan.
18936
18937 * xdisp.c (move_it_vertically_backward): Do the final big else
18938 even if nlines is 0.
18939
18940 * xdisp.c (redisplay_internal): Finish the per-frame loop
18941 even if redisplay is suspended by input.
18942
18943 2003-04-24 Andrew Choi <akochoi@shaw.ca>
18944
18945 * macterm.c (x_list_fonts): Return all fonts that match if
18946 maxnames = -1.
18947
18948 2003-04-25 Kenichi Handa <handa@m17n.org>
18949
18950 * syntax.c (skip_chars): Fix previous change.
18951
18952 2003-04-24 Kenichi Handa <handa@m17n.org>
18953
18954 * syntax.c (skip_chars): Make the code faster by using the common
18955 technique of *p, *stop, and *endp.
18956
18957 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18958
18959 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
18960 tool_bar_items so GTK tool bar expose callback does not access items
18961 being updated.
18962
18963 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
18964
18965 * eval.c (Fapply): Undo last change and add a comment about why.
18966
18967 2003-04-18 Miles Bader <miles@gnu.org>
18968
18969 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
18970 pickier PARSE_MULTIBYTE_SEQ.
18971
18972 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
18973
18974 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
18975 Use XCDR, XCAR, CONSP.
18976 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
18977 (Fapply): Remove unnecessary GCPRO.
18978
18979 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
18980
18981 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
18982
18983 * buffer.h: Don't hardcode BEG==1.
18984
18985 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
18986
18987 2003-04-16 Richard M. Stallman <rms@gnu.org>
18988
18989 * xdisp.c (try_window, try_window_reusing_current_matrix):
18990 When at end of window, set window_end_pos to Z-ZV.
18991
18992 * buffer.c (Foverlay_recenter): Doc fix.
18993
18994 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
18995
18996 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
18997
18998 2003-04-14 Andrew Choi <akochoi@shaw.ca>
18999
19000 * macterm.c (mac_check_for_quit_char): Don't check more often than
19001 once a second.
19002
19003 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
19004
19005 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
19006 specially, so that they can't hide an implicit switch-frame event.
19007 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
19008 (head_table): Use switch-frame as event_kind for select-window.
19009 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
19010
19011 * editfns.c (Fformat): Lisp_Object/int mixup.
19012 (format2): Remove unused var numargs.
19013
19014 2003-04-11 Kenichi Handa <handa@m17n.org>
19015
19016 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
19017 (Qafter_insert_file_set_coding): New variable.
19018 (syms_of_fileio): Initialize and staticpro it. Delete declaration
19019 for after-insert-file-adjust-coding-function.
19020 (Finsert_file_contents): Call Qafter_insert_file_set_coding
19021 instead of Vafter_insert_file_adjust_coding_function.
19022
19023 2003-04-11 Kenichi Handa <handa@m17n.org>
19024
19025 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
19026
19027 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
19028 string. Callers changed.
19029
19030 2003-04-10 Kenichi Handa <handa@m17n.org>
19031
19032 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
19033 (syms_of_fileio): Declare it as a lisp variable.
19034 (Finsert_file_contents):
19035 Call Vafter_insert_file_adjust_coding_function before calling
19036 decode-format.
19037
19038 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19039
19040 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
19041 get GtkAdjustment as widget now is a GtkRange.
19042
19043 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
19044 GtkRange to avoid memory leak.
19045
19046 2003-04-09 Kenichi Handa <handa@m17n.org>
19047
19048 * xfaces.c (Vface_font_rescale_alist): New variable.
19049 (struct font_name): New member rescale_ratio.
19050 (font_rescale_ratio): New function.
19051 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
19052 (better_font_p): On comparing point sized, pay attention to
19053 recale_ratio member of fonts.
19054 (build_scalable_font_name): Reflect font->rescale_ratio in the
19055 font name.
19056 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19057
19058 * lread.c (read1): Before calling index, check if the 2nd
19059 arguemnt is in ASCII range.
19060
19061 2003-04-08 Richard M. Stallman <rms@gnu.org>
19062
19063 * fileio.c (Ffile_symlink_p): Doc fix.
19064
19065 * editfns.c (Fformat): Translate positions of text properties
19066 in the format string to apply them to the result.
19067
19068 * fileio.c (Finsert_file_contents): Doc fix.
19069 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19070
19071 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
19072
19073 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
19074
19075 2003-04-08 Steven Tamm <steventamm@mac.com>
19076
19077 * mac.c (init_mac_osx_environment): Switch libexec and bin so
19078 that self-contained application finds libexec files.
19079
19080 2003-04-08 Kenichi Handa <handa@m17n.org>
19081
19082 * coding.c (code_convert_region_unwind):
19083 Set Vlast_coding_system_used to the argument.
19084 (code_convert_region): If post-read-conversion function changed
19085 the value of last-coding-sytem, keep the new value in
19086 coding->symbol so that it won't be overridden.
19087 (run_pre_post_conversion_on_str): Likewise.
19088 (coding_system_accept_latin_extra_p): New function.
19089 (find_safe_codings): Pay attention to characters registered in
19090 latin-extra-code-table.
19091
19092 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
19093
19094 * Makefile.in (md5.o): Add missing dependency info.
19095
19096 2003-04-06 Richard M. Stallman <rms@gnu.org>
19097
19098 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
19099
19100 * marker.c (verify_bytepos): New function.
19101
19102 * intervals.c (set_intervals_multibyte_1): When becoming
19103 multibyte, adjust right and left child sizes to a whole set of
19104 characters. If an interval gets zero total-length, delete it.
19105 If an interval consists of just its children, delete one of them.
19106
19107 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
19108 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
19109
19110 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
19111 All calls deleted.
19112 (lisp_malloc): Do the work here directly.
19113
19114 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
19115
19116 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
19117 char tables.
19118
19119 2003-04-04 Kenichi Handa <handa@m17n.org>
19120
19121 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
19122 destructively change "%S" to "%s".
19123
19124 2003-04-03 Miles Bader <miles@gnu.org>
19125
19126 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
19127 always set.
19128
19129 2003-04-01 Dave Love <fx@gnu.org>
19130
19131 * xfns.c (xpm_lookup_color): Grok "opaque".
19132
19133 2003-03-31 Andrew Choi <akochoi@shaw.ca>
19134
19135 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
19136 parent window ID.
19137
19138 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
19139
19140 * macterm.h (struct mac_output): Define x_pixels_diff and
19141 y_pixels_diff.
19142
19143 2003-03-31 Juanma Barranquero <lektu@terra.es>
19144
19145 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
19146 blockinput.h and files included from it.
19147
19148 2003-03-31 Kim F. Storm <storm@cua.dk>
19149
19150 The following changes consolidates the common code related to
19151 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
19152 files into frame.c.
19153
19154 * frame.c: Include blockinput.h.
19155 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
19156 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
19157 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
19158 related vars here.
19159 (struct frame_parm_table, frame_parms): New table for describing
19160 frame parameters and their associated Q-variable.
19161 The order of the parameters corresponds to the sequence of the
19162 frame_parm_handlers table in redisplay_interface.
19163 (x_fullscreen_move, x_set_frame_parameters)
19164 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
19165 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
19166 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19167 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
19168 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
19169 Generic functions for processing of frame parameters.
19170 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
19171 (display_x_get_resource, x_get_resource_string): Functions for
19172 generic access to X resources.
19173 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
19174 (x_default_parameter, Fx_parse_geometry): Functions for generic
19175 access to frame parameters.
19176 (x_figure_window_size): Generic calculation of frame size.
19177 Fixed to add space needed for tool bar. Also setup size_hint_flags.
19178 (syms_of_frame): Intern and staticpro frame parameter variables.
19179 Defvar_lisp Vx_resource_class and Vx_resource_name here.
19180 Defsubr Sx_get_resource and Sx_parse_geometry.
19181
19182 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
19183 parameter related vars defined in frame.c.
19184 (EMACS_CLASS): Define here.
19185 (enum FULLSCREEN_*): Define here.
19186 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
19187 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
19188 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
19189 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
19190 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
19191 (x_set_visibility, x_set_autoraise, x_set_autolower)
19192 (x_set_unsplittable, x_set_vertical_scroll_bars)
19193 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
19194 (x_figure_window_size): Add prototypes.
19195
19196 * dispextern.h (frame_parm_handler): New typedef.
19197 (struct redisplay_interface): New member frame_parm_handlers.
19198 (enum resource_types): Move declaration here.
19199 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
19200 (x_default_parameter): Add prototypes.
19201
19202 * window.c: Remove extern decl for frame parameter vars.
19203 (change_window_heights): New generic function;
19204 replaces x_change_window_heights. All users changed.
19205
19206 * window.h (change_window_heights): Add prototype.
19207
19208 * xfaces.c: Remove extern decl for frame parameter vars.
19209
19210 * xterm.h (EMACS_CLASS): Remove. Use generic define.
19211 (struct w32_display_info): Fix type of xrdb member.
19212 (enum FULLSCREEN_*): Remove.
19213 Remove prototypes for generic functions (in frame.h).
19214
19215 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19216 parameters now defined in frame.h and frame.c.
19217 (Vx_resource_name): Remove. Use generic var.
19218 (enum x_frame_parms): Remove (bogus, unused enum).
19219 (check_x_display_info): Make non-static (for frame.c).
19220 (struct x_frame_parm_table, x_frame_parms): Remove.
19221 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19222 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19223 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19224 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19225 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19226 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19227 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19228 Remove. Use generic functions instead.
19229 (enum resource_types): Remove.
19230 (x_set_scroll_bar_default_width): New global function (for frame.c).
19231 (Fx_create_frame): Depend on x_figure_window_size to add space for
19232 toolbar and setup size_hint_flags.
19233 (x_frame_parm_handlers): New table for redisplay_interface.
19234 (syms_of_xfns): Don't intern/staticpro removed vars.
19235
19236 * xterm.c: Remove unnecessary extern declarations.
19237 (x_fullscreen_adjust): Remove. Use generic instead.
19238 (x_redisplay_interface): Add x_frame_parm_handlers member.
19239
19240 * w32gui.h (XrmDatabase): New (dummy) typedef.
19241
19242 * w32term.h (EMACS_CLASS): Remove. Use generic define.
19243 (struct w32_display_info): Fix type of xrdb member.
19244 (enum FULLSCREEN_*): Remove.
19245 (x_fullscreen_adjust): Remove prototype.
19246
19247 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19248 parameters now defined in frame.h and frame.c.
19249 (Vx_resource_name): Remove. Use generic var.
19250 (enum x_frame_parms): Remove (bogus, unused enum).
19251 (check_x_display_info): Make non-static (for frame.c).
19252 (struct x_frame_parm_table, x_frame_parms): Remove.
19253 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19254 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19255 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19256 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19257 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19258 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19259 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19260 Remove. Use generic functions instead.
19261 (enum resource_types): Remove.
19262 (x_set_scroll_bar_default_width): New global function (for frame.c).
19263 (Fx_create_frame): Depend on x_figure_window_size to add space for
19264 toolbar and setup size_hint_flags.
19265 (w32_frame_parm_handlers): New table for redisplay_interface.
19266 (syms_of_w32fns): Don't intern/staticpro removed vars.
19267
19268 * w32term.c: Remove unnecessary extern declarations.
19269 (x_fullscreen_adjust): Remove. Use generic instead.
19270 (x_redisplay_interface): Add w32_frame_parm_handlers member.
19271
19272 * w32reg.c (x_get_string_resource): Use XrmDatabase.
19273
19274 * macgui.h (XrmDatabase): New (dummy) typedef.
19275
19276 * macterm.h (EMACS_CLASS): Remove.
19277 (struct mac_display_info): Add xrdb member.
19278 (struct mac_output): Add want_fullscreen member.
19279
19280 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19281 parameters now defined in frame.h and frame.c.
19282 (Vx_resource_name): Remove. Use generic var.
19283 (check_x_display_info): Make non-static (for frame.c).
19284 (struct x_frame_parm_table, x_frame_parms): Remove.
19285 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19286 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19287 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19288 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19289 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19290 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19291 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19292 Remove. Use generic functions instead.
19293 (enum resource_types): Remove.
19294 (x_set_scroll_bar_default_width): New global function (for frame.c).
19295 (mac_frame_parm_handlers): New table for redisplay_interface.
19296 (syms_of_macfns): Don't intern/staticpro removed vars.
19297
19298 * macterm.c: Remove unnecessary extern declarations.
19299 (x_redisplay_interface): Add mac_frame_parm_handlers member.
19300
19301 * Makefile.in (frame.o): Add dependency on blockinput.h and files
19302 included from it (atimer.h and systime.h).
19303
19304 2003-03-30 Andreas Schwab <schwab@suse.de>
19305
19306 * xdisp.c (x_insert_glyphs): Fix swapped width and height
19307 parameters for shift_glyphs_for_insert.
19308
19309 * macterm.c (x_redisplay_interface): Add missing entry for
19310 draw_vertical_window_border.
19311
19312 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
19313
19314 * fileio.c (Fexpand_file_name): In the no-handler case, after
19315 expanding, look again for a handler and invoke it. This is needed
19316 for filenames like "/foo/../user@host:/bar/../baz" -- the first
19317 expansion produces "/user@host:/bar/../baz" which needs to be
19318 expanded again for the finame result "/user@host:/baz".
19319
19320 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19321
19322 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
19323 of area to be redrawn for better performance.
19324
19325 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
19326
19327 * xterm.c (take_vertical_position_into_account): Remove.
19328 (xt_action_hook): Call set_vertical_scroll_bar if needed.
19329 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
19330 (xm_scroll_callback, x_create_toolkit_scroll_bar)
19331 (x_set_toolkit_scroll_bar_thumb): Simplify.
19332 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
19333 (XTread_socket): Remove unused var.
19334 (x_make_frame_invisible): Replace goto with else.
19335
19336 * xdisp.c (set_vertical_scroll_bar): New fun.
19337 (redisplay_window): Use it.
19338
19339 2003-03-26 Richard M. Stallman <rms@gnu.org>
19340
19341 * xdisp.c (update_tool_bar): Recompute tool bar if
19342 update_mode_lines is set. Set w->update_mode_line
19343 only if the tool bar contents actually change.
19344 (update_menu_bar): Undo previous change.
19345
19346 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19347
19348 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
19349 (xg_frame_set_char_size): Calculate scroll bar width before frame
19350 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
19351 (xg_separator_p): Check for all documented separator types.
19352 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
19353 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
19354
19355 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
19356 so tool bar gets updated.
19357
19358 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
19359
19360 * data.c (store_symval_forwarding): Re-instate part of the code
19361 that was deleted with too much enthusiasm.
19362
19363 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
19364
19365 * data.c (store_symval_forwarding): Delete special read-only
19366 hack for type == -1, since we now use ->constant instead.
19367 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
19368
19369 * buffer.c (overlays_in): Declare static.
19370 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
19371 `constant' field rather than the variable's `type' field.
19372
19373 2003-03-24 Andrew Choi <akochoi@shaw.ca>
19374
19375 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
19376
19377 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
19378
19379 * fns.c [MAC_OSX]: Do not redefine vector.
19380
19381 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
19382
19383 * macgui.h: Remove definition of No_Cursor.
19384
19385 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
19386
19387 * xdisp.c: Define No_Cursor.
19388 (x_write_glyphs, notice_overwritten_cursor)
19389 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
19390 (note_mouse_highlight): Remove Mac-specific code.
19391 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
19392
19393 2003-03-24 John Paul Wallington <jpw@gnu.org>
19394
19395 * xdisp.c (redisplay_window): If mini window's buffer is not
19396 empty, then redisplay it like other windows.
19397
19398 2003-03-23 Kim F. Storm <storm@cua.dk>
19399
19400 * w32term.c (w32_draw_window_cursor): Fix last change.
19401
19402 2003-03-23 Kenichi Handa <handa@m17n.org>
19403
19404 * alloc.c (make_string_from_bytes, make_specified_string):
19405 Add `const' for the arg CONTENTS.
19406
19407 * lisp.h (make_string_from_bytes, make_specified_string):
19408 Prototypes adjusted.
19409
19410 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19411
19412 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
19413
19414 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
19415 (XG_SB_RANGE): New define.
19416
19417 * gtkutil.c (xg_fixed_handle_expose): New function.
19418 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
19419 expose events.
19420 (xg_update_scrollbar_pos): Take two more arguments, left and width
19421 of scroll bar including borders.
19422 Clear left and right part outside scroll bar separately as some
19423 themes have bars that are not an even number of pixels.
19424 Don't set reallocate_redraws, don't call
19425 gdk_window_process_all_updates.
19426 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
19427 so no need to change it. Calculate size and value with XG_SB_RANGE.
19428
19429 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
19430 Pass left and width of scroll bar including borders to
19431 xg_update_scrollbar_pos.
19432
19433 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
19434
19435 * Makefile.in: Make sure space precedes end-of-line backslashes.
19436
19437 2003-03-22 Kim F. Storm <storm@cua.dk>
19438
19439 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
19440 Add generic versions here. Remove system specific versions
19441 defined elsewhere.
19442
19443 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
19444 Add prototypes.
19445
19446 * xterm.h (STORE_NATIVE_RECT): New macro.
19447
19448 2003-03-21 Kim F. Storm <storm@cua.dk>
19449
19450 * xdisp.c (get_glyph_string_clip_rect):
19451 Use FRAME_INTERNAL_BORDER_WIDTH.
19452
19453 * dispextern.h (struct redisplay_interface): Add active_p
19454 argument to draw_window_cursor member. All uses changed.
19455
19456 2003-03-21 Kim F. Storm <storm@cua.dk>
19457
19458 The following changes consolidate code related to writing and
19459 inserting glyphs, exposing frame, the tool bar, the mouse face,
19460 the output cursor, and help echo from xterm.c, w32term.c and
19461 macterm.c into xdisp.c. It also generalizes the use of the
19462 window_part enum instead of using numeric values throughout.
19463
19464 * xdisp.c: Consolidate gui-independent code here.
19465 Include keymap.h.
19466 (Qhelp_echo): Import.
19467 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
19468 (help_echo_string, help_echo_window, help_echo_object)
19469 (previous_help_echo_string, help_echo_pos): Declare here.
19470 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
19471 (estimate_mode_line_height): Define here. Handle windowing
19472 systems directly (without using estimate_mode_line_height_hook).
19473 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
19474 (update_window_cursor, update_cursor_in_window_tree)
19475 (fast_find_position, fast_find_string_pos)
19476 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
19477 (expose_area, expose_line, expose_overlaps, expose_window)
19478 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
19479 declared static as they are only used locally in xdisp.c.
19480 (draw_glyphs): Rename from x_draw_glyphs and make static.
19481 (tool_bar_item_info, notice_overwritten_cursor): Make static.
19482 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19483 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
19484 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
19485 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19486 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
19487 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
19488 (note_mouse_highlight, x_clear_window_mouse_face)
19489 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
19490 (x_intersect_rectangles): New generic functions for use by xdisp.c
19491 and GUI front-ends.
19492 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
19493 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
19494
19495 * dispextern.h (Display_Info): Generic typedef for *_display_info.
19496 (NativeRectangle): Generic typedef for rectangle type.
19497 (enum window_part): Move here from window.c.
19498 (struct redisplay_interface): New members flush_display_optional,
19499 define_frame_cursor, clear_frame_area, draw_window_cursor,
19500 draw_vertical_window_border, shift_glyphs_for_insert.
19501 Rename member clear_mouse_face to clear_window_mouse_face.
19502 (estimate_mode_line_height_hook): Remove hook.
19503 (auto_raise_tool_bar_buttons_p): Don't declare extern.
19504 (tool_bar_item_info): Remove prototype.
19505 (help_echo_string, help_echo_window, help_echo_object)
19506 (previous_help_echo_string, help_echo_pos)
19507 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
19508 (x_stretch_cursor_p, output_cursor): Declare extern.
19509 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
19510 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
19511 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19512 (display_and_set_cursor, set_output_cursor, x_cursor_to)
19513 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
19514 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19515 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
19516 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
19517 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
19518 Add prototypes.
19519 (mode_line_string, marginal_area_string): Fix prototypes.
19520
19521 * window.c (enum window_part): Move to dispextern.h.
19522 (coordinates_in_window): Use enum window_part member names
19523 instead of numbers to describe return value.
19524 (struct check_window_data): Change part member to window_part.
19525 (check_window_containing): Return window_part unaltered.
19526 (window_from_coordinates): Change part arg from int to enum
19527 window_part. Allow part arg to be null. All users changed.
19528
19529 * window.h (window_from_coordinates): Fix prototype.
19530
19531 * term.c (estimate_mode_line_height): Move to xdisp.c.
19532
19533 * keyboard.c (make_lispy_event): Use enum window_part.
19534
19535 * dispnew.c (mode_line_string, marginal_area_string): Use enum
19536 window_part instead of int in arg list. Users changed.
19537
19538 * xterm.h (No_Cursor): Declare as None for X.
19539 (struct mac_output): Replace member cross_cursor by hand_cursor.
19540
19541 * xterm.c: Remove consolidated defines and code.
19542 (BETWEEN): Remove unused macro.
19543 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
19544 (x_define_frame_cursor, x_clear_frame_area)
19545 (x_draw_window_cursor): New X-specific functions for RIF.
19546 (x_redisplay_interface): Add new members.
19547
19548 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
19549
19550 * w32term.h (struct w32_output): Remove cross_cursor member.
19551
19552 * w32term.c: Remove consolidated defines and code.
19553 (BETWEEN): Remove unused macro.
19554 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
19555 (w32_define_frame_cursor, w32_clear_frame_area)
19556 (w32_draw_window_cursor): New W32-specific functions for RIF.
19557 (w32_redisplay_interface): Add new members.
19558
19559 * w32gui.h (No_Cursor): Define as 0 for W32.
19560 (XRectangle): Add X compatible rectangle type.
19561 (NativeRectangle): Declare as RECT for W32.
19562 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
19563
19564 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
19565
19566 * w32console.c: Remove consolidated defines and code.
19567
19568 * msdos.h (Display_Info): Add generic typedef.
19569
19570 * msdos.c: Remove consolidated defines and code.
19571 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
19572
19573 * macterm.h (struct mac_output): Replace member cross_cursor by
19574 hand_cursor.
19575 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
19576
19577 * macterm.c: Remove consolidated defines and code.
19578 (BETWEEN): Remove unused macro.
19579 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
19580 (mac_define_frame_cursor, mac_clear_frame_area)
19581 (mac_draw_window_cursor): New Mac-specific functions for RIF.
19582 (x_redisplay_interface): Add new members.
19583
19584 * macgui.h (No_Cursor): Define as 0 for Mac.
19585 (XRectangle): Add X compatible rectangle type.
19586 (NativeRectangle): Declare as Rect for Mac.
19587 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
19588
19589 * macfns.c (x_set_mouse_color): Setup hand_cursor.
19590 (x_set_cursor_color): Use x_display_and_set_cursor.
19591
19592 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
19593 included from it. Add dependency on keymap.h.
19594
19595 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
19596
19597 2003-03-21 Kenichi Handa <handa@m17n.org>
19598
19599 * fileio.c (Fexpand_file_name): Fix previous change.
19600
19601 2003-03-19 Kenichi Handa <handa@m17n.org>
19602
19603 * fileio.c (Ffile_name_directory): Reconstruct file name by
19604 make_specified_string.
19605 (Ffile_name_nondirectory, Ffile_name_as_directory)
19606 (Fdirectory_file_name, Fexpand_file_name)
19607 (Fsubstitute_in_file_name): Likewise.
19608 (Fread_file_name): Compare decoded homedir with DIR and
19609 DEFAULT_FILENAME.
19610
19611 * alloc.c (make_specified_string): If NCHARS is negative, count
19612 the number of characters.
19613
19614 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19615
19616 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
19617 all widgets.
19618
19619 * gtkutil.h: Removed xg_ignore_next_thumb.
19620
19621 2003-03-18 Kenichi Handa <handa@m17n.org>
19622
19623 * coding.c (Vchar_coding_system_table): Remove this variable.
19624 (Vcoding_system_safe_chars): New variable.
19625 (intersection): Remove this function.
19626 (find_safe_codings): Don't use Vchar_coding_system_table, but try
19627 all codings in SAFE_CODINGS.
19628 (Ffind_coding_systems_region_internal): Adjust for the change of
19629 find_safe_codings. Get generic coding systems from
19630 Vcoding_system_safe_chars.
19631 (Fdefine_coding_system_internal): New function.
19632 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
19633 Initialize and staticpro Vcoding_system_safe_chars.
19634
19635 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19636
19637 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
19638 equal old values before updating.
19639
19640 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
19641
19642 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
19643
19644 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19645
19646 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
19647 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
19648 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
19649 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
19650 (xg_create_scroll_bar): Pass bar to button event callback.
19651 (xg_find_top_left_in_fixed): New function.
19652 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
19653 whole scroll bar area. Get old position with
19654 xg_find_top_left_in_fixed, calculate and only clear needed areas.
19655 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
19656 dragging is in progress. Calculate whole as for Motif.
19657 Remove code that saved last values. Call gtk_range functions to
19658 set scroll bar sizes.
19659
19660 * gtkutil.h: Removed xg_ignore_next_thumb.
19661
19662 2003-03-17 Juanma Barranquero <lektu@terra.es>
19663
19664 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
19665 and files included from it.
19666
19667 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
19668
19669 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
19670 multiple occurrences of the same keymap under different prefixes.
19671 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
19672
19673 2003-03-16 Jason Rumney <jasonr@gnu.org>
19674
19675 * w32gui.h: Use HDC for Display.
19676
19677 * w32term.c (w32_encode_char): Prevent double-byte chars from
19678 crashing Emacs.
19679
19680 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
19681 as binary.
19682
19683 2003-03-16 Juanma Barranquero <lektu@terra.es>
19684
19685 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
19686
19687 2003-03-16 Kim F. Storm <storm@cua.dk>
19688
19689 The following changes consolidate some of the gui-independent
19690 parts of the processing and drawing of "glyph strings" from
19691 xterm.c, w32term.c, and macterm.c into xdisp.c.
19692
19693 * dispextern.h (struct glyph): Reduce face_id member from 22 to
19694 21 bits (this reduces number of faces from 4M to 2M).
19695 Replace W32 specific w32_font_type member (2 bits) by generic
19696 font_type member (3 bits) for portability.
19697 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
19698 (enum draw_glyphs_face): Define here.
19699 (struct glyph_string): Define here. Merge W32 and X versions.
19700 (struct redisplay_interface): New members per_char_metric,
19701 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
19702 (VCENTER_BASELINE_OFFSET): Define here.
19703 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
19704 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
19705
19706 * xdisp.c: Consolidate gui-independent "glyph string" code here.
19707 (dump_glyph_string): Moved here.
19708 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
19709 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
19710 (fill_composite_glyph_string, fill_glyph_string)
19711 (fill_image_glyph_string, fill_stretch_glyph_string)
19712 (left_overwritten, left_overwriting, right_overwritten)
19713 (right_overwriting, get_char_face_and_encoding)
19714 (set_glyph_string_background_width, compute_overhangs_and_x)
19715 (append_glyph, append_composite_glyph, produce_image_glyph)
19716 (take_vertical_position_into_account, append_stretch_glyph)
19717 (produce_stretch_glyph): New generic functions (based on X version).
19718 Call platform specific functions through rif.
19719 (INIT_GLYPH_STRING): New macro, hides W32 details.
19720 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
19721 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
19722 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
19723 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
19724 (notice_overwritten_cursor):
19725 Generic functions exported to platform modules. Users changed.
19726
19727 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
19728 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
19729 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
19730 New macros for consolidated code.
19731
19732 * xterm.c: Remove consolidated defines and code.
19733 (x_per_char_metric, x_encode_char)
19734 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
19735 (x_redisplay_interface): Add new members.
19736
19737 * w32gui.h (Display): Add dummy typedef for consolidation.
19738 (XChar2b): Define alias for wchar_t for consolidation.
19739 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19740
19741 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
19742 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
19743 New macros for consolidation.
19744
19745 * w32term.c: Remove consolidated defines and code.
19746 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
19747 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
19748 (w32_per_char_metric): Change font_type arg to int for RIF.
19749 (w32_encode_char): Return int according to RIF requirements.
19750 (w32_compute_glyph_string_overhangs): Adapt to RIF.
19751 (w32_get_glyph_overhangs): New function for RIF. Uses generic
19752 x_get_glyph_overhangs.
19753 (w32_redisplay_interface): Add new members.
19754
19755 * macgui.h (XChar2b): Move typedef here for consolidation.
19756 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19757
19758 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
19759 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
19760 consolidation.
19761
19762 * macterm.c: Remove consolidated defines and code.
19763 (mac_per_char_metric): New function for RIF.
19764 (mac_encode_char): Adapt to new RIF requirements.
19765 (mac_compute_glyph_string_overhangs): Adapt for RIF.
19766 (x_redisplay_interface): Add new members.
19767
19768 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
19769
19770 * keymap.c (Vmenu_events): New var.
19771 (syms_of_keymap): Initialize it.
19772 (where_is_internal): Check more carefully what is a menu event.
19773
19774 2003-03-14 Richard M. Stallman <rms@gnu.org>
19775
19776 * lread.c (read1): After #!, exit loop on eof.
19777
19778 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19779
19780 * gtkutil.h: Add declaration for xg_frame_cleared.
19781
19782 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
19783
19784 * gtkutil.c (struct xg_last_sb_pos): New structure.
19785 (handle_fixed_child): New function.
19786 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
19787 and force a redraw on them.
19788 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
19789 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
19790 so we can avoid unneeded redraws.
19791 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
19792 and force a redraw on the scroll bar.
19793 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
19794 if xg_last_sb_pos shows the positions are up to date.
19795 (xg_frame_cleared): New function.
19796
19797 2003-03-13 Kenichi Handa <handa@m17n.org>
19798
19799 * coding.c (Fdetect_coding_region): Fix docstring.
19800 (Fdetect_coding_string): Fix docstring.
19801
19802 2003-03-13 Andreas Schwab <schwab@suse.de>
19803
19804 * gtkutil.c: Add prototype for create_menus.
19805
19806 * data.c (long_to_cons): Fix type of top.
19807
19808 * xselect.c (selection_data_to_lisp_data): Use int instead of
19809 long for an integer of size 4.
19810
19811 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
19812 (xg_tool_bar_help_callback): Likewise.
19813
19814 2003-03-12 Andreas Schwab <schwab@suse.de>
19815
19816 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
19817
19818 2003-03-12 Kim F. Storm <storm@cua.dk>
19819
19820 The following changes consolidate the fringe handling from
19821 xterm.c, w32term.c, and macterm.c into xdisp.c.
19822
19823 * xdisp.c: Consolidate fringe handling code here.
19824 (left_bits, right_bits, continued_bits, continuation_bits)
19825 (ov_bits, zv_bits): Define fringe bitmaps.
19826 (fringe_bitmaps): New array holding fringe bitmaps.
19827 (draw_fringe_bitmap): Draw a specific bitmap; call display
19828 specific drawing routine via rif->draw_fringe_bitmap.
19829 (draw_row_fringe_bitmaps): Generic replacement for
19830 x_draw_row_fringe_bitmaps; all callers changed.
19831 (compute_fringe_widths): Generic replacement for
19832 x_compute_fringe_widths; all callers changed.
19833
19834 * dispextern.h (enum fringe_bitmap_type): Define here.
19835 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
19836 (fringe_bitmaps): Declare extern.
19837 (struct redisplay_interface): New member draw_fringe_bitmap.
19838 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
19839
19840 * xterm.c: Remove generic fringe code.
19841 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19842 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19843
19844 * w32term.c: Remove generic fringe code.
19845 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
19846 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
19847
19848 * macterm.c: Remove generic fringe code.
19849 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19850 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19851
19852 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
19853
19854 * print.c (Fprin1_to_string): Return unibyte string if possible.
19855
19856 2003-03-09 David Kastrup <dak@gnu.org>
19857
19858 * process.c (read_process_output): We have allocated enough space
19859 for readmax and carryover, so actually use the alloted space.
19860
19861 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19862
19863 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
19864 toolkit scrollbar click.
19865
19866 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
19867 for USE_GTK.
19868 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
19869 also.
19870 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
19871 scrollbar and control is pressed, call x_scroll_bar_handle_click.
19872
19873 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
19874
19875 * gtkutil.c (xg_get_scroll_id_for_window): New function.
19876 (xg_tool_bar_item_expose_callback): New function.
19877 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
19878 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
19879 on the tool bar widget.
19880 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
19881 to expose on the tool bar item widgets.
19882
19883 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19884
19885 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
19886 struct image* when deciding to update (struct image* may have been
19887 deleted from the image cache).
19888
19889 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
19890 the event isn't for a frame (i.e. for dialogs).
19891
19892 2003-03-07 Kenichi Handa <handa@m17n.org>
19893
19894 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
19895 composition components reaches the limit, terminate composing.
19896 (COMPOSITION_OK): New macro.
19897 (detect_coding_iso2022): Use it if an escape sequence for
19898 composition is found.
19899 (coding_restore_composition): Adjust the number of composition
19900 components if it is not sane.
19901
19902 2003-03-06 Juanma Barranquero <lektu@terra.es>
19903
19904 * w32term.h (struct w32_display_info): Add xrdb member to support
19905 passing resources via -xrm on Windows.
19906
19907 * w32term.c (w32_make_rdb): New function.
19908 (w32_term_init): Use it to initialize xrdb member of w32_display_info
19909 struct. Delete leftover code.
19910
19911 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
19912 for resources passed on the command line.
19913
19914 * w32reg.c (w32_get_rdb_resource): New function.
19915 (x_get_string_resource): Use it, so resources passed with -xrm
19916 supercede the ones in the registry.
19917
19918 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19919
19920 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
19921 instead of x_top_window_to_frame.
19922
19923 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19924
19925 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
19926 when restarting Emacs.
19927
19928 2003-03-03 Richard M. Stallman <rms@gnu.org>
19929
19930 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
19931 to run kill-buffer-query-functions.
19932 (Qkill_buffer_query_functions): New var.
19933 (syms_of_buffer): Init and staticpro it.
19934
19935 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19936
19937 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
19938
19939 2003-02-25 Kim F. Storm <storm@cua.dk>
19940
19941 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
19942 If centering point failed to make whole line visible and vscroll
19943 is non-zero, disable vscroll and try centering point again.
19944
19945 * lread.c (read1): Accept `single space' syntax like (? x).
19946
19947 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19948
19949 * keyboard.c (cancel_hourglass_unwind): Surround with
19950 #ifdef HAVE_X_WINDOWS.
19951
19952 2003-02-25 Kenichi Handa <handa@m17n.org>
19953
19954 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
19955 process only when "subprocesses" is defined.
19956
19957 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
19958
19959 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
19960
19961 2003-02-24 Juanma Barranquero <lektu@terra.es>
19962
19963 * callint.c (fix_command): Declare as static void and move before
19964 Fcall_interactively.
19965
19966 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
19967 (syms_of_xdisp): Don't initialize Qwhen.
19968
19969 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19970
19971 * keyboard.c (cancel_hourglass_unwind): New function.
19972 (command_loop_1): Cancel hourglass with unwind-protect.
19973
19974 2003-02-23 Richard M. Stallman <rms@gnu.org>
19975
19976 * callint.c (fix_command): New subroutine, from Fcall_interactively.
19977 Detect (when ... (region-beginning)) etc.
19978 (Fcall_interactively): Call fix_command.
19979 (Qif, Qwhen): New variables.
19980 (syms_of_callint): Init and staticpro them.
19981
19982 * regex.c (print_partial_compiled_pattern): Output to stderr.
19983
19984 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
19985
19986 * dired.c (directory_files_internal): Don't expand directory.
19987 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
19988 instead. From Lars Hansen <larsh@math.ku.dk>.
19989
19990 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
19991
19992 * fns.c (string_to_multibyte): Remove unused var i.
19993 (Flanginfo): Fix int/Lisp_Object mixup.
19994 (void_call2): New fun.
19995 (Fmap_char_table): Use it in place of call2.
19996
19997 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
19998
19999 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
20000
20001 * keymap.c (copy_keymap_1): Make it static.
20002
20003 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
20004
20005 2003-02-22 David Ponce <david@dponce.com>
20006
20007 * lread.c (Fload): Don't check STRING_MULTIBYTE.
20008
20009 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20010
20011 * process.h: Removed subtty field from struct Lisp_Process.
20012
20013 * process.c (create_process): Remove setting of subtty.
20014 (emacs_get_tty_pgrp): New function.
20015 (Fprocess_running_child_p, process_send_signal):
20016 Call emacs_get_tty_pgrp instead of ioctl.
20017 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
20018
20019 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
20020
20021 * keymap.c (Fdefine_key): Doc fix.
20022
20023 2003-02-21 Juanma Barranquero <lektu@terra.es>
20024
20025 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
20026
20027 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
20028 POLLING_PROBLEM_IN_SELECT.
20029
20030 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
20031 Delete #undef of POLLING_PROBLEM_IN_SELECT.
20032
20033 * s/hpux10-20.h: New file.
20034
20035 * process.c (wait_reading_process_input):
20036 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
20037
20038 2003-02-20 Kenichi Handa <handa@m17n.org>
20039
20040 * fontset.c (check_fontset_name): If NAME is nil, return the
20041 default fontset.
20042 (override_font_info): New function.
20043 (Fset_fontset_font): Document that NAME nil means the default fontset.
20044 (Ffontset_info): If FONTSET is not the default fontset, merge
20045 FONTSET onto the copy of the default fontset, and work on that
20046 copy. Document that NAME nil means the default fontset.
20047 (Ffontset_font): Document that NAME nil means the default fontset.
20048
20049 * process.c (setup_process_coding_systems): If the process's
20050 in/out descriptor is -1, do nothing.
20051
20052 2003-02-19 Andreas Schwab <schwab@suse.de>
20053
20054 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
20055 Add prototypes.
20056
20057 2003-02-19 Kenichi Handa <handa@m17n.org>
20058
20059 * xfaces.c (try_alternative_families): Try all scalable fonts if
20060 Vscalable_fonts_allowed is not Qt.
20061
20062 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20063
20064 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
20065
20066 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20067
20068 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
20069 names.
20070
20071 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
20072 (sorted_font_list): Move allocation of struct font_name to
20073 x_face_list_fonts.
20074 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
20075 (Fx_list_fonts): Set maxnames to -1 to get all font names.
20076
20077 2003-02-18 Kim F. Storm <storm@cua.dk>
20078
20079 * lread.c (read1): Fix last change.
20080 "`" is not always special. Allow "?" after a character constant.
20081
20082 2003-02-18 Andrew Choi <akochoi@shaw.ca>
20083
20084 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
20085
20086 2003-02-18 Andreas Schwab <schwab@suse.de>
20087
20088 * window.c (window_scroll_pixel_based): Move outside a
20089 multi-glyph character before setting new window start.
20090
20091 * xdisp.c (in_display_vector_p): New function.
20092 * dispextern.h (in_display_vector_p): Declare.
20093
20094 2003-02-18 Kim F. Storm <storm@cua.dk>
20095
20096 * lread.c (read1): Fix and relax read syntax.
20097 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
20098 Only recognize "," after dotted-pair dot if inside backquote.
20099 Never include "`" or "," (inside backquote) in a symbol.
20100 Allow dotted-pair dot after a character constant.
20101 Allow "`" and "," (inside backquote) after a character constant.
20102
20103 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20104
20105 * gtkutil.c (xg_tool_bar_expose_callback): New function.
20106 (xg_create_tool_bar): Force style of tool bar to be horizontal with
20107 icons. Set name of tool bar to emacs-toolbar.
20108 (update_frame_tool_bar): Connect expose event to
20109 xg_tool_bar_expose_callback.
20110
20111 2003-02-17 Richard M. Stallman <rms@gnu.org>
20112
20113 * keyboard.c (this_command_key_count_reset): New variable.
20114 Initiatize to 0 where this_command_key_count is set.
20115 (read_char): Save and restore this_command_key_count_reset
20116 around input method code.
20117 (read_char): If this_command_key_count_reset, echo reread commands.
20118 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
20119
20120 2003-02-17 Kenichi Handa <handa@m17n.org>
20121
20122 * fns.c (string_to_multibyte): Always return a multibyte string.
20123
20124 2003-02-16 Jason Rumney <jasonr@gnu.org>
20125
20126 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
20127 Negative max_fonts parameter means list all.
20128
20129 2003-02-14 Dave Love <fx@gnu.org>
20130
20131 * fns.c (Flanginfo): Doc fix.
20132
20133 2003-02-13 Kim F. Storm <storm@cua.dk>
20134
20135 * lread.c (read_escape): Interpret \s as a SPACE character, except
20136 for \s-X in a character constant which still is the super modifier.
20137 (read1): Signal an `invalid read syntax' error if a character
20138 constant is immediately followed by a digit or symbol character.
20139
20140 * search.c (Fmatch_data): Doc fix. Explicitly state that
20141 match-data is undefined if last search failed.
20142
20143 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
20144 All uses changed.
20145
20146 2003-02-12 Juanma Barranquero <lektu@terra.es>
20147
20148 * eval.c (Fdefmacro): Fix typo.
20149
20150 2003-02-12 Kim F. Storm <storm@cua.dk>
20151
20152 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
20153 macro is a string, convert meta modifiers in string when copying
20154 the string into a vector.
20155
20156 2003-02-11 Kim F. Storm <storm@cua.dk>
20157
20158 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
20159
20160 2003-02-11 Kenichi Handa <handa@m17n.org>
20161
20162 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
20163
20164 2003-02-10 Kim F. Storm <storm@cua.dk>
20165
20166 * process.c: Doc fixes.
20167 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
20168
20169 2003-02-10 Kenichi Handa <handa@m17n.org>
20170
20171 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
20172
20173 * process.c (QCfilter_multibyte): New variable.
20174 (setup_process_coding_systems): New function.
20175 (Fset_process_buffer, Fset_process_filter):
20176 Call setup_process_coding_systems.
20177 (Fstart_process): Initialize the member `filter_multibyte' of
20178 struct Lisp_Process.
20179 (create_process): Call setup_process_coding_systems.
20180 (Fmake_network_process): New keyward `:filter-multibyte'.
20181 Initialize the member `filter_multibyte' of struct Lisp_Process.
20182 Call setup_process_coding_systems.
20183 (server_accept_connection): Call setup_process_coding_systems.
20184 (read_process_output): If the process has a filter, decide the
20185 multibyteness of a string to given to the filter by
20186 `filter_multibyte' member of the process. If the process doesn't
20187 have a filter and the result of conversion is unibyte, use
20188 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
20189 multibyte form.
20190 (Fset_process_coding_system): Call setup_process_coding_systems.
20191 (Fset_process_filter_multibyte): New function.
20192 (Fprocess_filter_multibyte_p): New function.
20193 (syms_of_process): Intern and staticpro QCfilter_multibyte.
20194 Defsubr Sset_process_filter_multibyte and
20195 Sprocess_filter_multibyte_p.
20196
20197 * process.h (struct Lisp_Process): New member filter_multibyte.
20198
20199 * lisp.h (setup_process_coding_systems): Add prototype.
20200
20201 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
20202 process, update coding systems for the process.
20203
20204 2003-02-09 Kenichi Handa <handa@m17n.org>
20205
20206 * fns.c (string_to_multibyte): New function.
20207 (Fstring_to_multibyte): New function.
20208 (syms_of_fns): Defsubr it.
20209
20210 2003-02-08 Andreas Schwab <schwab@suse.de>
20211
20212 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
20213 instead of the substitution.
20214
20215 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20216
20217 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
20218
20219 * xmenu.c (menu_position_func): Adjust menu popup position so that
20220 the menu is fully visible.
20221
20222 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20223
20224 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
20225 (x_make_frame_invisible, x_wm_set_icon_position):
20226 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
20227
20228 * xfns.c (x_set_name, x_set_title): Ditto.
20229
20230 2003-02-04 Richard M. Stallman <rms@gnu.org>
20231
20232 * keyboard.c (echo_now): Update before_command_echo_length.
20233 (Freset_this_command_lengths): Reset this_command_key_count etc.
20234 immediately rather than arranging to do it later.
20235 (before_command_key_count_1, before_command_echo_length_1)
20236 (before_command_restore_flag): Vars deleted.
20237 (add_command_key): Don't handle before_command_restore_flag.
20238 (read_char, record_menu_key): Don't update before_command_key_count or
20239 before_command_echo_length.
20240 (read_char): Don't handle before_command_restore_flag.
20241
20242 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
20243 in direct-output clauses if it wouldn't be called in the ordinary case.
20244
20245 2003-02-04 Kim F. Storm <storm@cua.dk>
20246
20247 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
20248
20249 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20250
20251 * gtkutil.c (remove_from_container): Copying list is not needed.
20252 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
20253 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
20254 on list returned from gtk_container_get_children to avoid memory leak.
20255
20256 2003-02-01 Jason Rumney <jasonr@gnu.org>
20257
20258 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
20259 local malloc.
20260 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
20261 definitions in xpm.h.
20262 (init_xpm_functions): New function.
20263 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
20264 (init_external_image_libraries): Try to load libXpm.dll.
20265
20266 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
20267 timestamp.
20268
20269 2003-01-31 Dave Love <fx@gnu.org>
20270
20271 * syntax.c (Fskip_chars_forward)
20272 (open-paren-in-column-0-is-defun-start): Doc fix.
20273
20274 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
20275
20276 * fileio.c: Support // at start of name for Cygwin (just added proper
20277 preprocessor tests).
20278
20279 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
20280
20281 * Makefile.in: Use @EXEEXT@ for Cygwin.
20282
20283 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
20284
20285 * s/cygwin.h: Added for Cygwin port.
20286
20287 2003-01-31 Juanma Barranquero <lektu@terra.es>
20288
20289 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
20290 when including gif_lib.h.
20291 (init_gif_functions, init_tiff_functions): New functions.
20292 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
20293 Windows. Disable color table lookups. Call library functions
20294 through pointers determined at runtime.
20295 (init_external_image_libraries): Try to load libungif.dll and
20296 libtiff.dll.
20297
20298 2003-01-31 Kenichi Handa <handa@m17n.org>
20299
20300 * xdisp.c (SKIP_GLYPHS): New macro.
20301 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
20302
20303 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20304
20305 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
20306
20307 2003-01-30 Dave Love <fx@gnu.org>
20308
20309 * alloc.c (Vgc_elapsed, gcs_done): New variables.
20310 (Fgarbage_collect): Use them.
20311 (init_alloc, syms_of_alloc): Set them up.
20312
20313 2003-01-30 Juanma Barranquero <lektu@terra.es>
20314
20315 * w32fns.c (init_external_image_libraries): Add missing operator.
20316
20317 2003-01-29 Jason Rumney <jasonr@gnu.org>
20318
20319 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
20320 an alternative name for jpeg.dll.
20321
20322 2003-01-29 Kenichi Handa <handa@m17n.org>
20323
20324 * xdisp.c (set_cursor_from_row): Pay attention to string display
20325 properties.
20326
20327 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
20328
20329 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
20330 <escape>.
20331 (keycode_to_xkeysym_table): Reformat and add more comments.
20332 (XTread_socket): Drop special case for backspace.
20333
20334 2003-01-28 Andrew Choi <akochoi@shaw.ca>
20335
20336 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
20337 values in old-style RGB specs.
20338
20339 2003-01-27 Juanma Barranquero <lektu@terra.es>
20340
20341 * w32fns.c (init_external_image_libraries): Try alternate names for the
20342 jpeg dll.
20343
20344 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20345
20346 * gtkutil.c (create_dialog, xg_separator_p)
20347 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
20348 before calling strcmp or strlen.
20349
20350 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20351
20352 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
20353 and handle image load failure.
20354
20355 2003-01-26 Jason Rumney <jasonr@gnu.org>
20356
20357 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
20358 New functions.
20359 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
20360 Disable color table lookups. Call jpeg library functions
20361 through pointers determined at runtime.
20362 (init_external_image_libraries): Try to load jpeg.dll.
20363
20364 2003-01-25 Richard M. Stallman <rms@gnu.org>
20365
20366 * lisp.h: Declare format2 instead of format1.
20367
20368 * fileio.c (barf_or_query_if_file_exists):
20369 Call format2 instead of format1.
20370
20371 * editfns.c (format2): New function, replaces format1
20372 but takes exactly two Lisp Objects as format args.
20373
20374 * buffer.c (Fkill_buffer): Call format2 instead of format1.
20375
20376 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20377
20378 * xterm.h: Change to return value of x_dispatch_event to int.
20379
20380 * xterm.c (x_filter_event): New function.
20381 (event_handler_gdk, XTread_socket): Call x_filter_event.
20382 (x_dispatch_event): Change to return value of finish.
20383 (event_handler_gdk): Use return value from x_dispatch_event.
20384
20385 * xfns.c (x_window): Call create_frame_xic for GTK version to
20386 initialize input methods.
20387
20388 * gtkutil.h: Add (void) prototypes.
20389
20390 * gtkutil.c (create_menus): Remove code that puts the help menu to
20391 the right.
20392
20393 2003-01-25 Jason Rumney <jasonr@gnu.org>
20394
20395 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
20396 [HAVE_PNG]: Sync with xfns.c version.
20397 (png_load): Adjust colors for Windows. Use Windows
20398 bitmaps. Disable color table lookups.
20399 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
20400 (init_png_functions): New function.
20401 (png_read_from_memory, png_load): Call png library functions
20402 through pointers determined at runtime.
20403 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
20404 (init_external_image_libraries): New function.
20405 (init_xfns): Call it.
20406
20407 2003-01-24 Andreas Schwab <schwab@suse.de>
20408
20409 * minibuf.c (Fminibuffer_message): Verify type of parameter.
20410
20411 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20412
20413 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
20414 of static initializer.
20415
20416 2003-01-24 Dave Love <fx@gnu.org>
20417
20418 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
20419 architectures.
20420
20421 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
20422 Use __alignof__.
20423
20424 2003-01-24 Kenichi Handa <handa@m17n.org>
20425
20426 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
20427 It it is nonzero, don't pretend that an invisible area doesn't exist.
20428 (command_loop_1): Call adjust_point_for_property with proper
20429 second arg.
20430
20431 2003-01-22 Jason Rumney <jasonr@gnu.org>
20432
20433 Sync changes with xterm.c and xfns.c.
20434
20435 * w32term.c (x_draw_glyph_string_foreground)
20436 (x_draw_composite_glyph_string_foreground): Implement overstriking.
20437
20438 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
20439 phys_cursor's hpos is overwritten. This is still not completely
20440 correct, as it doesn't really make sense to use hpos at all to
20441 get the cursor glyph (as that is relative to the width of the
20442 characters on the line, which may have changed during the update).
20443
20444 * w32term.c (notice_overwritten_cursor): Handle the special case
20445 of the cursor being in the first blank non-text line at the
20446 end of a window.
20447
20448 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
20449 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
20450 Compute from the x position returned by x_draw_glyphs.
20451
20452 (x_display_and_set_cursor): Don't set phys_cursor_width here,
20453 except for NO_CURSOR and system caret, to make phys_cursor_width
20454 contain what its name suggests.
20455 (notice_overwritten_cursor): Consider the cursor image erased if
20456 the output area intersects the cursor image in y-direction.
20457
20458 * w32term.c (note_mode_line_or_margin_highlight): Rename from
20459 note_mode_line_highlight and extend.
20460
20461 * w32term.c (last_window): New variable.
20462 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
20463 (note_mouse_movement): Remove reimplemented code in #if 0.
20464
20465 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
20466 not update_mode_lines, and always set it to 1.
20467
20468 2003-01-21 Jason Rumney <jasonr@gnu.org>
20469
20470 * w32fns.c (IDC_HAND): Define it if system headers don't.
20471
20472 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
20473
20474 * w32term.h (struct w32_output): New member hand_cursor.
20475 (WM_EMACS_SETCURSOR): New message definition.
20476
20477 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
20478 function w32_define_cursor.
20479 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
20480 position, change member name output_data.x to output_data.w32 and
20481 add function w32_define_cursor.
20482 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
20483 and change member name output_data.x to output_data.w32.
20484 (w32_initialize_display_info):
20485 Setup dpyinfo->vertical_scroll_bar_cursor.
20486
20487 * w32fns.c (Vx_hand_shape): New variable.
20488 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
20489 WM_EMACS_SETCURSOR.
20490 (x-create-frame): Setup Cursor types.
20491
20492 2003-01-21 David Ponce <david@dponce.com>
20493
20494 * w32term.c (w32_encode_char): For DIM=1 charset, set
20495 ccl->reg[2] to -1 before calling ccl_driver.
20496 (Sync. with xterm.c x_encode_char change by Kenichi Handa
20497 <handa@m17n.org> on 2002-09-30.)
20498 (w32_draw_relief_rect): Declare all args.
20499 (w32_define_cursor): New.
20500
20501 * w32fns.c (w32_load_cursor): New function.
20502 (w32_init_class): Use it.
20503 (x_put_x_image): Declare all args.
20504
20505 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
20506
20507 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
20508
20509 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20510
20511 * gtkutil.c: Must include stdio.h before termhooks.h.
20512
20513 2003-01-21 Dave Love <fx@gnu.org>
20514
20515 * alloc.c (Fgc_status): Print zombie list.
20516 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
20517 Fix assignment of zombies.
20518 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
20519 Don't take car of non-cons.
20520
20521 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20522
20523 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20524
20525 2003-01-20 David Ponce <david@dponce.com>
20526
20527 * w32menu.c (digest_single_submenu): Declare all args.
20528
20529 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
20530 changes in xmenu.c:
20531
20532 (parse_single_submenu): Use individual keymap's prompt
20533 string as pane name, if there is one.
20534 (set_frame_menubar): Save menu_items_n_panes from each call to
20535 parse_single_submenu and use it when calling digest_single_submenu.
20536
20537 2003-01-20 Steven Tamm <steventamm@mac.com>
20538
20539 * macterm.c (XTread_socket): Check for valid, visible window
20540 before sending a scroll-wheel event.
20541
20542 2003-01-20 Richard M. Stallman <rms@gnu.org>
20543
20544 * xdisp.c (redisplay_window): If mini window's buffer is not
20545 a minibuffer, then redisplay it like other windows.
20546
20547 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20548
20549 * gtkutil.c (xg_create_frame_widgets): Check if there is an
20550 external tool bar before setting tool bar height.
20551
20552 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20553
20554 * xterm.c (handle_one_xevent): Surround popup_activated
20555 with #ifdef:s for non-toolkit version.
20556
20557 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
20558 (gtkutil.o): New file.
20559 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
20560 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
20561
20562 * gtkutil.c: New file for GTK version.
20563
20564 * gtkutil.h: New file for GTK version.
20565
20566 * xterm.h: Add xt_or_gtk_widget.
20567 Include gtk files for USE_GTK.
20568 (struct x_output): Add toolbar_height.
20569 (struct x_output): Add GTK widgets and Gdk size_hints.
20570 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
20571 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
20572 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
20573
20574 * xterm.c: Include gtkutil.h for USE_GTK.
20575 (free_frame_menubar): Declare extern void for USE_GTK.
20576 (note_mouse_highlight): Check popup_activated for USE_GTK.
20577 (xt_action_hook): Don't compile if USE_GTK.
20578 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
20579 (xg_scroll_callback): New function.
20580 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
20581 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
20582 for USE_GTK.
20583 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
20584 xg_show_scroll_bar for USE_GTK.
20585 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
20586 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
20587 (event_handler_gdk): New function for USE_GTK.
20588 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
20589 (handle_one_xevent): Make sure widget is mapped before
20590 calling x_real_positions for USE_GTK.
20591 (XTread_socket): Add GTK event loop for USE_GTK.
20592 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
20593 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
20594 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
20595 (x_iconify_frame): Add code for USE_GTK.
20596 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
20597 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
20598 is in gtkutil.c.
20599 (x_term_init): Add initialization for GTK.
20600 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
20601
20602 * xmenu.c: Include gtkutil.h for USE_GTK.
20603 (Fx_popup_menu): Use current position if x and y are nil.
20604 (single_menu_item, single_menu_item, Fx_popup_dialog):
20605 Check for USE_GTK.
20606 (popup_widget_loop): New function for USE_GTK.
20607 (x_activate_menubar): Add code for USE_GTK.
20608 (popup_activate_callback, popup_deactivate_callback)
20609 (menu_highlight_callback, menubar_selection_callback):
20610 Add USE_GTK versions.
20611 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
20612 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
20613 (free_frame_menubar): Only compile if not USE_GTK. GTK version
20614 is in gtkutil.c.
20615 (popup_selection_callback): New version for USE_GTK.
20616 (create_and_show_popup_menu): New fuction, one USE_GTK version and
20617 one USE_X_TOOLKIT version.
20618 (xmenu_show): Call create_and_show_popup_menu.
20619 (dialog_selection_callback): New version for USE_GTK.
20620 (create_and_show_dialog): New fuction, one USE_GTK version and
20621 one USE_X_TOOLKIT version.
20622 (xdialog_show): Call create_and_show_dialog.
20623
20624 * xfns.c: Include gtkutil for USE_GTK.
20625 (x_window_to_frame, x_any_window_to_frame)
20626 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
20627 (x_top_window_to_frame): Add code for USE_GTK.
20628 (x_set_background_color): Call xg_set_background_color for GTK.
20629 (x_set_menu_bar_lines): Check for USE_GTK.
20630 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
20631 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
20632 (x_window): Call xg_create_frame_widgets for USE_GTK.
20633 (Fx_create_frame): Check for USE_GTK.
20634 (Fx_file_dialog): New implementation for USE_GTK.
20635
20636 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
20637 (update_menu_bar): Add check for USE_GTK.
20638 (update_tool_bar): Add check for USE_GTK and external tool bar.
20639 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
20640 (redisplay_internal): Add check for USE_GTK and popup_activated.
20641 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
20642 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
20643 (display_menu_bar): Add check for USE_GTK
20644
20645 * lisp.h (Vx_resource_name): Declare extern.
20646
20647 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
20648 for USE_GTK.
20649 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
20650
20651 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
20652 (FRAME_EXTERNAL_TOOL_BAR): New macro.
20653 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
20654
20655 * fileio.c (Fread_file_name): Add check for USE_GTK.
20656
20657 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
20658 Add check for USE_GTK.
20659
20660 * config.in: Added HAVE_GTK.
20661
20662 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
20663
20664 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
20665
20666 * charset.h (Funibyte_char_to_multibyte): Export.
20667
20668 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20669
20670 * xmenu.c (mouse_position_for_popup): New function.
20671 (Fx_popup_menu): Call mouse_position_for_popup for X and
20672 mouse_position_hook for others.
20673
20674 2003-01-17 Kim F. Storm <storm@cua.dk>
20675
20676 * editfns.c (Finsert): Mention `string-make-multibyte' and
20677 `string-as-multibyte' in doc string.
20678
20679 2003-01-17 Kenichi Handa <handa@m17n.org>
20680
20681 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
20682
20683 * editfns.c (Fformat): Convert an unibyte char argument that is
20684 formatted by "%c" to multibyte if the total result must be a
20685 multibyte string.
20686
20687 2003-01-16 Kim F. Storm <storm@cua.dk>
20688
20689 * process.c (set-process-filter): Document unibyte/multibyte-ness
20690 of string argument.
20691
20692 2003-01-16 Kenichi Handa <handa@m17n.org>
20693
20694 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
20695
20696 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
20697 (re_search_2): Likewise.
20698
20699 2003-01-15 Kenichi Handa <handa@m17n.org>
20700
20701 * xdisp.c (message_dolog): Fix bug of the case that *Message*
20702 buffer is unibyte.
20703
20704 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
20705
20706 * fns.c (Fsubstring): Clarify doc string.
20707
20708 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
20709 (Fprevious_char_property_change)
20710 (Fnext_single_char_property_change)
20711 (Fprevious_single_char_property_change, Fnext_property_change)
20712 (Fnext_single_property_change, Fprevious_property_change)
20713 (Fprevious_single_property_change, Fadd_text_properties)
20714 (Fput_text_property, Fset_text_properties)
20715 (Fremove_text_properties, Fremove_list_of_text_properties)
20716 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
20717
20718 2003-01-14 Kim F. Storm <storm@cua.dk>
20719
20720 * process.h (struct Lisp_Process): New member plist replaces old
20721 member private_vars. All uses changed.
20722
20723 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
20724 (QCplist): Rename from QCvars. Change all uses.
20725 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
20726 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
20727 (syms_of_process): Intern, staticpro, defsubr these.
20728 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
20729
20730 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
20731
20732 * m/delta.h: Remove (obsolete).
20733
20734 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
20735
20736 * fileio.c (Fdelete_directory, Fdelete_file): Document the
20737 behaviour in front of symlinks.
20738 (Fdelete_file): Raise an error on directories.
20739
20740 2003-01-13 Dave Love <fx@gnu.org>
20741
20742 * fns.c (Freverse): Use QUIT.
20743
20744 2003-01-13 Richard M. Stallman <rms@gnu.org>
20745
20746 * minibuf.c (minibuffer_completion_contents):
20747 Error if point is inside prompt.
20748
20749 * keyboard.c (command_loop_1): Don't redisplay directly
20750 if there's a post-command-hook.
20751
20752 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
20753 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
20754
20755 2003-01-12 Kim F. Storm <storm@cua.dk>
20756
20757 * process.h (struct Lisp_Process): New member private_vars.
20758
20759 * process.c (QCvars): New variable.
20760 (syms_of_process): Intern and staticpro it.
20761 (Fset_process_contact): Removed function.
20762 (Fprocess_variable, Fset_process_variable): New functions.
20763 (syms_of_process): Defsubr them.
20764 (Fstart_process): Initialize private_vars plist to nil.
20765 (Fmake_network_process): New arg :vars to setup the private
20766 variables for new network process.
20767 (server_accept_connection): Copy server's private variables to
20768 client process.
20769
20770 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
20771 crashes). Code rewritten and simplified. Now directly aligns the
20772 pointer and recalculates pure_bytes_used, rather than aligning the
20773 size and adjusting the pointer.
20774
20775 2003-01-11 Kim F. Storm <storm@cua.dk>
20776
20777 * process.c (Fset_process_contact): New function.
20778 (syms_of_process): defsubr it.
20779 (make-network-process): Update doc.
20780
20781 2003-01-10 Andreas Schwab <schwab@suse.de>
20782
20783 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
20784 Reported by Berthold Gunreben <b.gunreben@web.de>.
20785
20786 2003-01-10 Dave Love <fx@gnu.org>
20787
20788 * composite.c (syms_of_composite): Make composition_hash_table weak.
20789
20790 2003-01-09 Kim F. Storm <storm@cua.dk>
20791
20792 * process.c (Fmake_network_process): Convert new port number
20793 to host byte order for `:service t' case. From Mario Lang.
20794
20795 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20796
20797 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
20798 instead of XtAppProcessEvent.
20799
20800 * xterm.c (handle_one_xevent): New function.
20801 (x_dispatch_event): New function.
20802 (XTread_socket): Call handle_one_xevent.
20803
20804 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
20805
20806 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
20807 call XQueryPointer to get coordinates.
20808 (popup_get_selection): Do not set popup_activated_flag to zero,
20809 let popup_deactivate_callback do that. Needed for Motif.
20810 Call x_dispatch_event instead of XtDispatchEvent.
20811 (xmenu_show): Calculate root coordinate from frame top/left position.
20812
20813 2003-01-08 Kim F. Storm <storm@cua.dk>
20814
20815 * process.c (server_accept_connection): Fix recording of new
20816 connection's local address in :local property of contact info.
20817 (Fmake_network_process): Record local network address for new
20818 client processes in :local property of contact info.
20819 (format-network-address): Add arg OMIT-PORT. Change callers.
20820
20821 2003-01-07 Dave Love <fx@gnu.org>
20822
20823 * Makefile.in (fns.o): Depend on coding.h.
20824
20825 2003-01-06 Dave Love <fx@gnu.org>
20826
20827 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
20828 (Vlocale_coding_system): Declare.
20829 (Qcodeset, Qdays, Qmonths, Qpaper): New.
20830 (Flanginfo): New.
20831 (syms_of_fns): Initialize new stuff.
20832
20833 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
20834
20835 * minibuf.c (Fread_variable): Doc fix.
20836
20837 * eval.c (Fuser_variable_p): Doc change. For custom variables,
20838 use the same test as for custom-variable-p.
20839
20840 2003-01-05 Richard M. Stallman <rms@gnu.org>
20841
20842 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
20843 Count LAST_LINE_MISFIT in scroll margin for end of window.
20844 Move label too_near_end before setting SCROLL_MARGIN_POS.
20845 Set LAST_LINE_MISFIT before jumping there.
20846
20847 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
20848 scroll_conservatively case. If scrolling that much doesn't change
20849 STARTP, move it down one line.
20850
20851 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
20852 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
20853
20854 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
20855 selected frame.
20856
20857 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
20858 (syms_of_keymap): Staticpro them.
20859 (Fapropos_internal): Initialize them and clear them out.
20860 Don't GCPRO them.
20861
20862 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
20863
20864 * lisp.h: New misc type Lisp_Save_Value.
20865 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
20866 (XSAVE_VALUE): New macro.
20867 (struct Lisp_Save_Value): New data type.
20868 (union Lisp_Misc): Add u_save_value alternative.
20869 (make_save_value): Declare.
20870
20871 * alloc.c (make_save_value): New function.
20872
20873 * xterm.c (x_catch_errors): Save dpy using make_save_value.
20874 (x_catch_errors_unwind): Call XSync.
20875
20876 2003-01-01 Richard M. Stallman <rms@gnu.org>
20877
20878 * window.c (window_scroll_pixel_based): Partially undo last change.
20879
20880 * keyboard.c (command_loop_1): Call adjust_point_for_property
20881 in direct action cases for Qforward_char and Qbackward_char.
20882 Set already_adjusted so it won't be done twice.
20883
20884 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
20885
20886 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
20887 type definition of size_t.
20888
20889 2003-01-02 Steven Tamm <steventamm@mac.com>
20890
20891 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
20892 distinguish Carbon GUI builds from X11 builds on darwin.
20893
20894 2002-12-30 Steven Tamm <steventamm@mac.com>
20895
20896 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
20897 to default to t.
20898
20899 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
20900
20901 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
20902
20903 2002-12-28 Steven Tamm <steventamm@mac.com>
20904
20905 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
20906 allow building in a different directory than source. Uses some
20907 GNU Make extensions, but there is no other make on Mac OS X.
20908
20909 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
20910
20911 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
20912 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
20913 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
20914 (Fstring_to_number): Mention the returned value in the doc strings.
20915
20916 2002-12-23 Richard M. Stallman <rms@gnu.org>
20917
20918 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
20919 <scroll-down-aggressively>: Doc fix.
20920
20921 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
20922 string as pane name, if there is one.
20923 (set_frame_menubar): Save menu_items_n_panes from each call to
20924 parse_single_submenu and use it when calling digest_single_submenu.
20925
20926 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
20927 Don't try to make last line fully visible if it is past end of window.
20928
20929 2002-12-22 Steven Tamm <steventamm@mac.com>
20930
20931 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
20932 (mac_menu_show): Add support for hierarchical popup menus.
20933 (add_menu_item): Remove indentation support.
20934 (fill_submenu, fill_menu): Create hierarchical menus
20935 instead of using indentation.
20936
20937 2002-12-22 Richard M. Stallman <rms@gnu.org>
20938
20939 * xdisp.c (try_cursor_movement): Don't call try_window here.
20940 (redisplay_window): Never redisplay minibuffer when inactive.
20941
20942 * window.c (select_window_1): Undo 9/21 change.
20943
20944 2002-12-22 Steven Tamm <steventamm@mac.com>
20945
20946 * macterm.c (XTread_socket): Call KeyTranslate for control and
20947 meta to deal correctly shifted non-alpha characters, like C-S-5
20948 being treated like C-%. Do not look for shift key to deal
20949 with masking off control-key with mac-reverse-ctrl-meta.
20950
20951 2002-12-21 Richard M. Stallman <rms@gnu.org>
20952
20953 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
20954 If it is non-nil, run timers. Use an unwind-protect to requeue
20955 the events that were read ahead.
20956 (popup_get_selection_unwind): New subroutine.
20957 (popup_get_selection_queue): File-scope variable now holds that queue.
20958 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
20959 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
20960 Use an unwind-protect to pop down the dialog box.
20961 (xdialog_show_unwind): New subroutine implements that.
20962
20963 * xdisp.c (row_containing_pos): Change exit test using last_y.
20964 (try_window_id): Abort if row_containing_pos returns null.
20965
20966 * lread.c (load_error_handler): New function.
20967 (Fload): Handle errors in Fsubstitute_in_file_name.
20968 Don't expect Fsignal to return.
20969
20970 * eval.c: Errors and throws work right with interrupt blocking.
20971 (struct catchtag): New elt interrupt_input_blocked.
20972 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
20973 (internal_catch, Fcondition_case, internal_condition_case)
20974 (internal_condition_case_1, internal_condition_case_2): Save it.
20975 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
20976
20977 * editfns.c (Fformat): Add parens.
20978
20979 * dired.c (file_name_completion): Fix that change.
20980 Delete special quit-handling code; just use QUIT.
20981
20982 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
20983
20984 * dired.c (file_name_completion): Close directory on error
20985 just as in directory_files_internal.
20986
20987 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
20988
20989 * window.c (Fset_window_configuration): Set old_point to correct
20990 value when new_current_buffer == current_buffer.
20991
20992 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
20993
20994 Revisited my earlier fix for the following entry in etc/PROBLEMS:
20995 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20996 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
20997
20998 These changes were in part based upon suggestions made by Peter
20999 'Luna' Runestig [peter@runestig.com].
21000
21001 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
21002 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
21003 (g_b_init_get_sid_identifier_authority ): Add several static
21004 global variables.
21005
21006 * w32.c (globals_of_w32): New function. Used to initialize those
21007 global variables that must always be initialized on startup even
21008 when the global variable initialized is non zero. Its primary
21009 purpose at this time is to set the global variables
21010 g_b_init_is_windows_9x, g_b_init_open_process_token,
21011 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
21012 g_b_init_get_sid_identifier_authority to 0 on startup.
21013 Called from main.
21014
21015 * w32.c (is_windows_9x): Perform initialization only if
21016 g_b_init_is_windows_9x is equal to 0. On initialization set
21017 g_b_init_is_windows_9x equal to 1.
21018
21019 * w32.c (open_process_token): Perform initialization only if
21020 g_b_init_open_process_token is equal to 0. On initialization set
21021 g_b_init_open_process_token equal to 1.
21022
21023 * w32.c (get_token_information): Perform initialization only if
21024 g_b_init_get_token_information is equal to 0. On initialization
21025 set g_b_init_get_token_information equal to 1.
21026
21027 * w32.c (lookup_account_sid): Perform initialization only if
21028 g_b_init_lookup_account_sid is equal to 0. On initialization
21029 set g_b_init_lookup_account_sid equal to 1.
21030
21031 * w32.c (get_sid_identifier_authority): Perform initialization
21032 only if g_b_init_get_sid_identifier_authority is equal to 0.
21033 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
21034
21035 * w32fns.c (globals_of_w32fns): New function. Used to initialize
21036 those global variables that must always be initialized on startup
21037 even when the global variable initialized is non zero.
21038 Its primary purpose at this time is to initialize the global variable
21039 track_mouse_event_fn.
21040
21041 * w32fns.c (w32_wnd_proc): Remove initialization of
21042 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
21043
21044 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
21045
21046 * w32menu.c (globals_of_w32menu): New function. Used to
21047 initialize those global variables that must always be initialized
21048 on startup even when the global variable initialized is non zero.
21049 Its primary purpose at this time is to initialize the global
21050 variables get_menu_item_info and set_menu_item_info.
21051
21052 * w32menu.c (initialize_frame_menubar): Remove initialization of
21053 get_menu_item_info and set_menu_item_info.
21054
21055 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
21056
21057 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
21058 Declare them.
21059
21060 * emacs.c (main): Call globals_of_w32 prior to calling
21061 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
21062 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
21063 is defined.
21064
21065 * w32term.c (x_update_window_begin): Fix Windows API error
21066 detected by BoundsChecker. Test to determine if
21067 w32_system_caret_hwnd is NULL prior to attempting to use
21068 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
21069
21070 * w32term.c (x_update_window_end): Fix Windows API error
21071 detected by BoundsChecker. Test to determine if
21072 w32_system_caret_hwnd is NULL prior to attempting to use
21073 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
21074
21075 2002-12-17 Kenichi Handa <handa@m17n.org>
21076
21077 * coding.c (coding_system_require_warning): New variable.
21078 (syms_of_coding): DEFVAR it.
21079
21080 * coding.h (coding_system_require_warning): Extern it.
21081
21082 * fileio.c (choose_write_coding_system): Even if
21083 Vcoding_system_for_write is non-nil, if
21084 coding_system_require_warning is nonzero, call
21085 Vselect_safe_coding_system_function.
21086
21087 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
21088
21089 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
21090 (lisp): Add font-core.
21091
21092 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
21093
21094 * textprop.c (text_read_only): New arg `propval'.
21095 (get_char_property_and_overlay): Remove unused var `next_overlay'.
21096 (verify_interval_modification): Use text_read_only's new arg.
21097
21098 2002-12-13 Kenichi Handa <handa@m17n.org>
21099
21100 * coding.c (Funencodable_char_position): Set pend correctly.
21101
21102 2002-12-12 Jason Rumney <jasonr@gnu.org>
21103
21104 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
21105 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
21106 Be more careful about when help_events are generated.
21107
21108 2002-12-12 Steven Tamm <steventamm@mac.com>
21109
21110 * macterm.c (mac_check_for_quit_char): Correctly set the
21111 modifiers of the event to 0.
21112 * mac.c (sys_select): Duplicate rfds before calling select to
21113 ensure that rfds survive the while loop.
21114
21115 2002-12-11 Kim F. Storm <storm@cua.dk>
21116
21117 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
21118 row_containing_pos returned NULL.
21119
21120 2002-12-10 Steven Tamm <steventamm@mac.com>
21121
21122 * mac.c (sys_read): Fix sys_read to not call select if IO is
21123 non-blocking.
21124 (sys_select): Fix sys_select to not use a timeout larger than
21125 the one given.
21126
21127 2002-12-10 Juanma Barranquero <lektu@terra.es>
21128
21129 * editfns.c (Fformat): Use alloca, not _alloca.
21130
21131 2002-12-09 Richard M. Stallman <rms@gnu.org>
21132
21133 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
21134 as the last thing.
21135
21136 2002-12-09 Dave Love <fx@gnu.org>
21137
21138 * s/sol2-8.h: Removed. (Not necessary.)
21139
21140 2002-12-09 Matthew Swift <swift@alum.mit.edu>
21141
21142 * editfns.c (Fformat): Handle precision in string conversion
21143 specifiers like libc functions do (ie, print at most that many
21144 characters).
21145
21146 2002-12-08 Richard M. Stallman <rms@gnu.org>
21147
21148 * xdisp.c (row_containing_pos): Check more carefully
21149 whether charpos is really in the row before returning it.
21150
21151 2002-12-07 Steven Tamm <steventamm@mac.com>
21152
21153 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
21154
21155 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
21156 each stack frame. This may change as it could be time consuming.
21157
21158 * macterm.c (mac_check_for_quit_char, quit_char_comp)
21159 (init_quit_char_handler, mac_determine_quit_char_modifiers)
21160 (mac_initialize): Add code to check for pressing of quit_char
21161 in the OS event queue.
21162
21163 * mac.c (sys_select): Call mac_check_for_quit_char every second
21164 while blocking on select.
21165
21166 * mac.c (sys_read): Use sys_select to test for input first
21167 before calling read, to allow C-g to break.
21168
21169 2002-12-07 Richard M. Stallman <rms@gnu.org>
21170
21171 * minibuf.c (Fcompleting_read): Doc fix.
21172
21173 * lread.c (syms_of_lread) <load-history>: Doc fix.
21174
21175 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
21176
21177 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
21178 autoload.
21179
21180 * data.c (Fdefalias): Record in load-history redefining an autoload.
21181
21182 * alloca.c: Undo ifdef change accidentally made on 12-04.
21183
21184 2002-12-06 Francesco Potort\e,Al\e(B <pot@gnu.org>
21185
21186 * xfns.c (png_load): Avoid double gamma correction for PNG images.
21187
21188 2002-12-04 Richard M. Stallman <rms@gnu.org>
21189
21190 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
21191
21192 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
21193
21194 * alloca.c: Don't use #error.
21195
21196 2002-12-03 Dave Love <fx@gnu.org>
21197
21198 * buffer.c (Qucs_set_table_for_input): New.
21199 (Fget_buffer_create): Use it.
21200 (Qset_buffer_major_mode_hook): Deleted.
21201 (Fset_buffer_major_mode): Revert previous change.
21202 (init_buffer_once): Intern ucs-set-table-for-input.
21203 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
21204 Add &Qucs_set_table_for_input.
21205
21206 2002-12-03 Andreas Schwab <schwab@suse.de>
21207
21208 * callint.c (Fcall_interactively): Use next_event only if less
21209 than key_count.
21210
21211 2002-12-02 Andrew Choi <akochoi@shaw.ca>
21212
21213 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
21214 names to 255 characters.
21215
21216 * macterm.c (XTread_socket): If all frames have been collapsed,
21217 expand the first one before handling drag-and-drop events.
21218
21219 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
21220 which is detected by autoconf.
21221
21222 2002-12-01 Steven Tamm <steventamm@mac.com>
21223
21224 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
21225 offset in two hints table to allow prebinding to be redone and
21226 allow the executable to be stripped.
21227
21228 2002-11-29 Dave Love <fx@gnu.org>
21229
21230 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
21231 already provided.
21232
21233 2002-11-29 Richard M. Stallman <rms@gnu.org>
21234
21235 * xdisp.c (start_display): Check more intelligently for
21236 whether the line is continued.
21237 (move_it_vertically_backward): Clear it->continuation_lines_width.
21238
21239 2002-11-28 Dave Love <fx@gnu.org>
21240
21241 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
21242 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
21243
21244 2002-11-27 Steven Tamm <steventamm@mac.com>
21245
21246 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
21247 more descriptive error output from lread.c:Fload upon most require
21248 cycles during boostrapping.
21249
21250 2002-11-27 Jason Rumney <jasonr@gnu.org>
21251
21252 * fileio.c (Finsert_file_contents): Give a more appropriate error
21253 for files bigger than 2Gb when off_t is 32 bit.
21254
21255 * dired.c (Ffile_attributes): Don't return negative file sizes for
21256 files bigger than 2Gb when off_t is 32 bit.
21257
21258 2002-11-27 Dave Love <fx@gnu.org>
21259
21260 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21261
21262 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
21263 Test GETPGRP_VOID instead.
21264 [BSD_TERMIOS]: Remove definitions (never used).
21265
21266 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
21267 Don't define.
21268 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21269
21270 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
21271
21272 2002-11-25 Jason Rumney <jasonr@gnu.org>
21273
21274 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
21275 supported.
21276
21277 2002-11-25 Dave Love <fx@gnu.org>
21278
21279 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
21280
21281 * Makefile.in (TEMACS_LDFLAGS): Update last change.
21282
21283 2002-11-25 Andreas Schwab <schwab@suse.de>
21284
21285 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
21286
21287 2002-11-24 Steven Tamm <steventamm@mac.com>
21288
21289 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
21290 determine the size of pointers alloced in unexed space instead
21291 of using possibly invalid emacs_zone pointers. This fixes the
21292 binary incompatibility problems caused by updates to libSystem.B.
21293
21294 2002-11-24 Richard M. Stallman <rms@gnu.org>
21295
21296 * search.c (Fstring_match): Doc fix.
21297
21298 * callint.c (Fcall_interactively): If a command fails because
21299 `*' detects a read-only buffer, but RECORD_FLAG is set,
21300 record it anyway if the args don't actually do tty input.
21301
21302 2002-11-22 Dave Love <fx@gnu.org>
21303
21304 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
21305
21306 * keyboard.c (interrupt_signal): Provide forward declaration.
21307 (kbd_buffer_store_event): Don't declare interrupt_signal.
21308
21309 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
21310
21311 2002-11-21 Richard M. Stallman <rms@gnu.org>
21312
21313 * eval.c (interactive_p): Skip any number of bytecode
21314 and special form frames, in any order.
21315
21316 2002-11-20 Jason Rumney <jasonr@gnu.org>
21317
21318 * w32fns.c (convert_mono_to_color_image): New function.
21319 (xbm_load, xbm_load_image): Use it when foreground or background
21320 is explicitly set.
21321
21322 2002-11-19 Dave Love <fx@gnu.org>
21323
21324 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
21325
21326 2002-11-18 Jason Rumney <jasonr@gnu.org>
21327
21328 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
21329 (XPutPixel): Swap blue and red.
21330 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
21331 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
21332 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
21333 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
21334
21335 2002-11-18 Dave Love <fx@gnu.org>
21336
21337 * m/orion105.h (HAVE_ALLOCA): Don't define.
21338
21339 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
21340
21341 * m/intel386.h: Don't include alloca.h or define alloca.
21342
21343 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
21344 malloc, realloc, calloc.
21345
21346 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
21347 (bcmp): Don't define.
21348
21349 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
21350
21351 * m/amdahl.h: Don't define LIB_STANDARD.
21352
21353 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
21354
21355 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
21356
21357 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
21358 Don't include alloca.h.
21359
21360 * s/aix3-2.h (HAVE_FSYNC): Don't define.
21361
21362 * regex.c (_GNU_SOURCE): Don't define.
21363
21364 * process.c (_GNU_SOURCE): Don't define.
21365
21366 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
21367
21368 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
21369
21370 * s/sol2-8.h: Include sol2-6.h.
21371
21372 2002-11-18 Miles Bader <miles@gnu.org>
21373
21374 * dispextern.h (struct face): Add `overstrike' field.
21375 * xterm.c (x_draw_glyph_string_foreground)
21376 (x_draw_composite_glyph_string_foreground): Implement overstriking.
21377 * xfaces.c (load_face_font): Set `face->overstrike' based on
21378 result from choose_face_font.
21379 (best_matching_font, choose_face_font): Add `needs_overstrike'
21380 argument, and use it to return whether overstriking is desirable
21381 for this face/font combo.
21382 (set_font_frame_param: Pass new argument to choose_face_font.
21383
21384 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
21385
21386 This change is my fix for the following entry in etc/PROBLEMS:
21387 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
21388 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
21389
21390 * w32.c: Added wrapper functions around the win32 API functions
21391 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
21392 GetSidIdentifierAuthority. These wrapper functions serve two
21393 purposes:
21394 1. They ensure that the wrapped function can never be called
21395 when Emacs is running on an operating system on which they are
21396 not supported (Microsoft Windows 95 / 98 / ME).
21397 2. They call the wrapped functions via function pointers rather
21398 than calling them directly. This avoids taking advantage of the
21399 undocumented fact that although these functions are not supported
21400 in the 9x branch of Microsoft Windows, the functions do exist in
21401 the version of advapi32.dll that is found in the 9x branch of
21402 Microsoft Windows.
21403
21404 * w32.c (init_user_info): Replace the calls to the win32 API
21405 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
21406 and GetSidIdentifierAuthority with calls to the newly added
21407 wrapper functions.
21408
21409 * w32.h: Added extern declarations for the following functions:
21410 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
21411 syms_of_w32menu, and void syms_of_fontset.
21412
21413 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
21414 function pointer track_mouse_event_fn in the handler for the
21415 WM_SETFOCUS message.
21416
21417 * w32menu.c (initialize_frame_menubar): Add code to
21418 reinitialize the function pointers set_menu_item_info and
21419 get_menu_item_info.
21420
21421 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
21422
21423 * sound.c: Added a partial implementation of play-sound-internal
21424 for Microsoft Windows. Added various #ifdef / #else / #endif
21425 code blocks to separate the code that will compile under
21426 Microsoft Windows from the code that is specific to GNU/Linux.
21427 Moved several blocks of code around to make this separation of code
21428 into Windows compatible and GNU/Linux compatible code blocks easier.
21429
21430 * makefile.w32-in: Include sound.c and link with WinMM.lib.
21431
21432 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
21433 added support for play-sound-internal under Windows would be
21434 included in the build of Emacs.
21435
21436 2002-11-16 Jason Rumney <jasonr@gnu.org>
21437
21438 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
21439
21440 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
21441
21442 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
21443
21444 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
21445 (adjust_point_for_property): Move out of display and invisible even if
21446 we were already inside before (in case a property was added while
21447 we weren't looking). Be more careful when handling invisible props.
21448 Skip invisible text as if it really wasn't there at all.
21449
21450 2002-11-15 Jason Rumney <jasonr@gnu.org>
21451
21452 * w32term.c (x_draw_image_foreground)
21453 (w32_draw_image_foreground_1): Use standard copy and invert
21454 operations to draw images.
21455
21456 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
21457 depth of 1.
21458 (xbm_read_bitmap_data): Invert bits as xbm is read in.
21459 (XPutPixel): Don't invert bits here.
21460
21461 2002-11-15 Jason Rumney <jasonr@gnu.org>
21462
21463 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
21464 (w32_draw_image_foreground_1): Handle image masks.
21465 (x_draw_image_glyph_string): Don't BitBlt transparently.
21466
21467 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
21468 (x_from_xcolors): Adjust RGB values for W32.
21469 (image_background, image_background_transparent)
21470 (postprocess_image, x_to_xcolors, x_disable_image)
21471 (x_build_heuristic_mask): Adapt for W32 and enable.
21472 (x_create_x_image_and_pixmap): Mark images with palettes as such.
21473 (xbm_load): Remove unused variable.
21474
21475 2002-11-14 Richard M. Stallman <rms@gnu.org>
21476
21477 * buffer.c (syms_of_buffer): Doc fix.
21478
21479 2002-11-14 Dave Love <fx@gnu.org>
21480
21481 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
21482
21483 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
21484 * xmenu.c (unuse_menu_items, digest_single_submenu):
21485 * xfns.c (x_put_x_image):
21486 * xdisp.c (message2_nolog, set_message):
21487 * undo.c (record_point):
21488 * terminfo.c (tparam):
21489 * syntax.c (scan_sexps_forward):
21490 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21491 * composite.c (update_compositions):
21492 * cm.c (calccost, cmgoto):
21493 * charset.c (c_string_width): Declare all args (per C99).
21494
21495 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
21496
21497 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
21498 Don't declare.
21499
21500 * emacs.c (main) [!VMS]: Avoid third arg.
21501
21502 * fns.c (Fcopy_sequence): Doc fix.
21503 (Fmap_char_table): Cast `call2'.
21504
21505 2002-11-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
21506
21507 * s/sol2-8.h: New file.
21508
21509 2002-11-14 Kim F. Storm <storm@cua.dk>
21510
21511 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
21512 dependency on `risky-local-variable' and the :propertize form.
21513
21514 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
21515
21516 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
21517
21518 * syntax.c (scan_sexps_forward): Undo last patch.
21519 Use a more obvious fix: check eob before updating the syntax table.
21520
21521 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
21522
21523 * syntax.c (scan_sexps_forward): Update syntax table before reading
21524 a char rather than after so we don't update the table past eob.
21525
21526 2002-11-09 Dave Love <fx@gnu.org>
21527
21528 * buffer.c (Fset_buffer_major_mode): Fix last change.
21529
21530 * regex.c (regexec): Fix pmatch declaration.
21531
21532 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
21533
21534 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
21535 to self-inserting characters.
21536 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
21537
21538 * coding.c (Vtranslation_table_for_input): New.
21539 (syms_of_coding): DEFVAR it.
21540
21541 2002-11-08 Juanma Barranquero <lektu@terra.es>
21542
21543 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
21544 window.
21545
21546 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21547
21548 * process.c (Fformat_network_address): Remove unused locals p,
21549 cp, and i.
21550
21551 2002-11-06 Dave Love <fx@gnu.org>
21552
21553 * buffer.c (Qset_buffer_major_mode_hook): New.
21554 (Fset_buffer_major_mode): Use it.
21555
21556 2002-11-06 Richard M. Stallman <rms@gnu.org>
21557
21558 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
21559 and stop_polling.
21560
21561 * process.c (wait_reading_process_input):
21562 Test POLLING_PROBLEM_IN_SELECT, not hpux.
21563 Avoid initialization for auto Lisp_Object var.
21564
21565 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
21566
21567 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
21568
21569 2002-11-05 Richard M. Stallman <rms@gnu.org>
21570
21571 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
21572
21573 * callint.c (Fcall_interactively): New local filter_specs.
21574 (Fcall_interactively): Check for progn as well as let.
21575 Add a gcpro.
21576 (Qprogn): New variable.
21577 (syms_of_callint): Staticpro and init Qprogn.
21578
21579 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
21580
21581 * lread.c (Feval_buffer): Doc fix.
21582
21583 2002-11-04 Dave Love <fx@gnu.org>
21584
21585 * keyboard.c (read_char): Always translate iff
21586 Vkeyboard_translate_table is a char table and c is valid.
21587
21588 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21589 and fix C types.
21590
21591 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
21592
21593 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
21594
21595 * editfns.c (get_pos_property): Don't hardcode Qfield.
21596
21597 * keyboard.c (adjust_point_for_property): Handle `display' prop on
21598 overlays. Also handle `invisible' prop.
21599
21600 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
21601
21602 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
21603 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
21604
21605 2002-11-01 Andreas Schwab <schwab@suse.de>
21606
21607 * editfns.c (Fmessage): Revert last change to properly handle %%.
21608
21609 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
21610
21611 * xmenu.c (unuse_menu_items): New fun.
21612 (menu_items_inuse): New var.
21613 (syms_of_xmenu): Initialize it.
21614 (init_menu_items): Use it to detect re-entrance.
21615 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
21616 (Fx_popup_menu): Remove spurious XSETFRAME.
21617
21618 * editfns.c (find_field): Make an exception for nil fields.
21619
21620 2002-11-01 Dave Love <fx@gnu.org>
21621
21622 * m/gec63.h: Deleted.
21623
21624 2002-10-31 Dave Love <fx@gnu.org>
21625
21626 * xterm.c (XTread_socket): Fix last change.
21627 (xaw_scroll_callback): Cast call_data to long to avoid warning.
21628
21629 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
21630
21631 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
21632
21633 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
21634
21635 * editfns.c (overlays_around, get_pos_property): New funs.
21636 (find_field): Use them.
21637 Also be careful not to modify POS before its last use.
21638 (Fmessage): Don't Fformat if there's nothing to format.
21639
21640 2002-10-30 Dave Love <fx@gnu.org>
21641
21642 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
21643 [HAVE_PTY_H]; Include pty.h.
21644
21645 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
21646
21647 * xterm.c (Qeql): Declare.
21648 (Vx_keysym_table): New.
21649 (syms_of_xterm): Initialize it.
21650 (XTread_socket): Use it. Deal with ASCII keysyms.
21651 (XSetIMValues) [HAVE_X11R6]: Prototype.
21652
21653 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
21654 (lispy_kana_keys): Comment out.
21655 (make_lispy_event) [XK_kana_A]: Comment out.
21656 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
21657 Fix sprintf call.
21658
21659 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
21660 regexp.h change).
21661 (TERMINFO, LIBS_TERMCAP): Define.
21662
21663 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
21664 (bcmp): Define conditional on HAVE_BCMP.
21665 (NO_SIOCTL_H): Don't define.
21666 (TIOCSIGSEND): Don't make conditional on IRIX6.
21667
21668 * s/sol2-5.h: Don't include strings.h.
21669 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
21670
21671 * s/irix6-0.h (IRIX6): Don't define.
21672 (bcopy, bcmp, bzero): Don't undef.
21673
21674 * s/irix6-5.h: Don't include strings.h.
21675 (IRIX6): Don't define.
21676 (bcopy, bcmp, bzero): Don't undef.
21677
21678 * syntax.c (Fforward_comment): Doc fix.
21679
21680 2002-10-29 Kim F. Storm <storm@cua.dk>
21681
21682 * process.c (Fsignal_process): Allow PROCESS to be specified by
21683 name in addition to pid (as integer or string).
21684
21685 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
21686
21687 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
21688 environments.
21689
21690 2002-10-27 Kim F. Storm <storm@cua.dk>
21691
21692 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21693
21694 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
21695
21696 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
21697
21698 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21699
21700 2002-10-26 Richard M. Stallman <rms@gnu.org>
21701
21702 * editfns.c (Fformat): Detect invalid format letters for floats.
21703
21704 2002-10-25 Kenichi Handa <handa@m17n.org>
21705
21706 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
21707 (x_set_title): Likewise.
21708
21709 2002-10-25 Juanma Barranquero <lektu@terra.es>
21710
21711 * macgui.h:
21712 * w32gui.h: Remove definition of XColor.
21713
21714 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
21715
21716 2002-10-24 Kim F. Storm <storm@cua.dk>
21717
21718 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
21719 Callers changed (supply dummy arg).
21720
21721 * lisp.h (get_window_cursor_type): Update prototype.
21722
21723 * w32term.c (x_display_and_set_cursor): Get active_cursor from
21724 get_window_cursor_type to track system caret.
21725
21726 2002-10-24 Kim F. Storm <storm@cua.dk>
21727
21728 * process.c (Fformat_network_address): New function.
21729 (syms_of_process): Defsubr it.
21730 (list_processes_1): Use it to format :local/:remote address if
21731 service/host is not set; before Emacs would crash in that case.
21732 (Fmake_network_process): Don't use Ffind_operation_coding_system
21733 to setup coding system if host or service is not set.
21734
21735 2002-10-23 Juanma Barranquero <lektu@terra.es>
21736
21737 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
21738
21739 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
21740 COLORREF.
21741
21742 * macgui.h:
21743 * w32gui.h: Add definition of XColor.
21744
21745 * macfns.c:
21746 * w32fns.c:
21747 * xfaces.c: Remove definition of XColor.
21748
21749 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
21750
21751 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
21752
21753 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
21754 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
21755 window if it is dedicated.
21756 (Fshrink_window): Add preserve_before as was done for enlarge_window.
21757 (Vspecial_display_function): Update docstring.
21758
21759 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
21760 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
21761 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
21762
21763 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
21764
21765 * casefiddle.c (casify_region): Don't treat a prefix char as part
21766 of a word when at the beginning.
21767
21768 2002-10-17 Juanma Barranquero <lektu@terra.es>
21769
21770 * lread.c (syms_of_lread): Fix typos.
21771
21772 2002-10-17 Dave Love <fx@gnu.org>
21773
21774 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
21775
21776 2002-10-16 Richard M. Stallman <rms@gnu.org>
21777
21778 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
21779
21780 2002-10-14 Juanma Barranquero <lektu@terra.es>
21781
21782 * w16select.c (syms_of_win16select): Fix docstring for
21783 `selection-coding-system'.
21784
21785 * w32select.c (syms_of_w32select): Likewise.
21786
21787 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
21788
21789 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
21790 a backslash-quoted char.
21791 (scan_lists, scan_sexps_forward): Pacify the compiler.
21792
21793 2002-10-13 Richard M. Stallman <rms@gnu.org>
21794
21795 * window.c (window_scroll): Set immediate_quit.
21796
21797 * print.c (print): When backquote form is the car of a list,
21798 output in old style. Use old_backquote_output to output all
21799 comma forms inside it in old style too.
21800
21801 * buffer.h (struct buffer): Move `undo_list' down below `name'.
21802
21803 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
21804
21805 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
21806 batch mode).
21807
21808 * lread.c (Fload): Doc fix (load-suffixes).
21809
21810 2002-10-10 Steven Tamm <steventamm@mac.com>
21811
21812 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
21813 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
21814 Also switch the default to Qnil from Qt.
21815
21816 2002-10-08 Kenichi Handa <handa@m17n.org>
21817
21818 * coding.c (code_convert_region): When we need more GAP for
21819 conversion, pay attention to the case that coding->produced is not
21820 greater than coding->consumed.
21821
21822 2002-10-07 Richard M. Stallman <rms@gnu.org>
21823
21824 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
21825
21826 2002-10-06 Andrew Choi <akochoi@shaw.ca>
21827
21828 * macmenu.c (mac_menu_show): Add j to count menu items; match
21829 menu_item_selection to it to find selected item.
21830
21831 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21832
21833 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
21834 cases. The correct fix is to pass ReparentNotify to Xt.
21835 The shell widget interprets ConfigureNotify differently depending
21836 on if it has been reparented or not.
21837
21838 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
21839
21840 * editfns.c (Fformat_time_string): Doc fix.
21841
21842 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
21843
21844 * fns.c (Flength): Doc fix.
21845
21846 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
21847
21848 * keyboard.c (keyremap): New struct.
21849 (read_key_sequence): Use it: globally replace keytran_foo with
21850 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
21851 keytran_next and fkey_next to just `next'.
21852
21853 2002-10-04 Steven Tamm <steventamm@mac.com>
21854
21855 * macterm.c (keycode_to_xkeysym_table): Change return to be
21856 treated like an X keysym.
21857
21858 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21859
21860 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
21861 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
21862 This is to also handle x/y changes that occur because of a resize.
21863
21864 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
21865
21866 * frame.c (Vdelete_frame_functions): New variable.
21867 (syms_of_frame): Initialize and defvar it.
21868 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
21869 it when frame's `tooltip' parameter is non-nil.
21870
21871 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
21872
21873 * w32fns.c (x_create_tip_frame): Likewise.
21874
21875 * macfns.c (x_create_tip_frame): Likewise.
21876
21877 2002-09-30 Kenichi Handa <handa@m17n.org>
21878
21879 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
21880 -1 before calling ccl_driver.
21881
21882 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
21883 Only when it is non-nil, handle composition sequence.
21884 (setup_coding_system) <0>: Don't force composition handling.
21885
21886 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
21887
21888 2002-09-29 Richard M. Stallman <rms@gnu.org>
21889
21890 * search.c (Freplace_match): Adjust match data for the substitution
21891 just made in the buffer.
21892
21893 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
21894 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
21895
21896 2002-09-27 Richard M. Stallman <rms@gnu.org>
21897
21898 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
21899 (read_char): Use them. Do all exits thru the end of the function.
21900
21901 2002-09-27 Kenichi Handa <handa@etl.go.jp>
21902
21903 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
21904 is nil.
21905
21906 2002-09-26 Richard M. Stallman <rms@gnu.org>
21907
21908 * regex.h (__restrict_arr): Don't define if already defined.
21909
21910 * coding.c (run_pre_post_conversion_on_str):
21911 Save and restore Vdeactivate_mark.
21912
21913 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
21914
21915 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
21916
21917 2002-09-26 Kenichi Handa <handa@etl.go.jp>
21918
21919 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
21920 nonzero, try face's family at first. Otherwise try FAMILY at first.
21921 (choose_face_font): If C is a single byte char or latin-1, call
21922 try_font_list with PREFER_FACE_FAMILY 1.
21923
21924 2002-09-21 Richard M. Stallman <rms@gnu.org>
21925
21926 * window.c (select_window_1): Don't select frame.
21927 Set frame's selected window only when frame itself is selected.
21928 (Fselect_window): Doc fix.
21929
21930 2002-09-18 Kim F. Storm <storm@cua.dk>
21931
21932 * process.c (make-network-process): Doc fix (there is no
21933 network-server-log-function hook).
21934
21935 2002-09-18 Richard M. Stallman <rms@gnu.org>
21936
21937 * print.c (print): Clear out the unused parts of Vprint_number_table.
21938 (syms_of_print): Doc fix for `print-number-table'.
21939
21940 * unexelf.c (unexec): Undo previous change.
21941
21942 2002-09-17 Andreas Schwab <schwab@suse.de>
21943
21944 * m/alpha.h [LINUX]: Don't define DATA_START.
21945
21946 2002-09-16 Dave Love <fx@gnu.org>
21947
21948 * unexelf.c (unexec): Deal with .got, reinstating change from
21949 25-08-1999.
21950
21951 2002-09-13 Richard M. Stallman <rms@gnu.org>
21952
21953 * s/sol2-6.h (UNEXEC): Comment out definition.
21954
21955 * unexsol.c (unexec): Don't downcase first letter of error msg.
21956
21957 * xfaces.c (Fcolor_supported_p): Just one arg is required.
21958
21959 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
21960
21961 * unexsol.c: Include buffer.h, charset.h, coding.h.
21962
21963 2002-09-11 Richard M. Stallman <rms@gnu.org>
21964
21965 * unexsol.c: Don't use report_file_error; do it by hand
21966 using dlerror.
21967
21968 * process.c (wait_reading_process_input, both versions):
21969 Before calling turn_on_atimers, call stop_polling.
21970
21971 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
21972
21973 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
21974 we go to too_near_end, call clear_glyph_matrix.
21975 (redisplay_window): After make_cursor_line_fully_visible,
21976 call clear_glyph_matrix and bypass `goto done'.
21977
21978 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
21979 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
21980
21981 2002-09-10 Richard M. Stallman <rms@gnu.org>
21982
21983 * fileio.c (Fdo_auto_save): Catch error making directory.
21984 Only call push_message if we need to.
21985 At the same time, make an unwind-protect to pop it.
21986 Rename local message_p to old_message_p.
21987 (do_auto_save_make_dir, do_auto_save_eh): New functions.
21988 (do_auto_save_unwind): Don't call pop_message.
21989
21990 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
21991
21992 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
21993
21994 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
21995
21996 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
21997
21998 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
21999
22000 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
22001 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
22002 (re_match_2_internal): Be more careful with infinite loops.
22003
22004 2002-09-10 Kim F. Storm <storm@cua.dk>
22005
22006 * macros.c (end_kbd_macro): New function.
22007 (Fend_kbd_macro): Use it.
22008
22009 * macros.h (end_kbd_macro): Declare extern.
22010
22011 * keyboard.c (Fdiscard_input): If defining keyboard macro,
22012 end and save it instead of discarding it.
22013
22014 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
22015
22016 * s/sol2-6.h: Fix typo. Add comment.
22017
22018 2002-09-09 Richard M. Stallman <rms@gnu.org>
22019
22020 * regex.c (regnum_t): Use signed int, not unsigned int.
22021
22022 * s/sol2-6.h: New file.
22023
22024 * s/sol2-5.h (UNEXEC): Definition deleted.
22025
22026 2002-09-08 Kim F. Storm <storm@cua.dk>
22027
22028 * macros.c (executing_macro_index): Change type to EMACS_INT.
22029 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
22030
22031 * macros.h (executing_macro_index): Change type to EMACS_INT.
22032
22033 2002-09-06 Richard M. Stallman <rms@gnu.org>
22034
22035 * casetab.c (set_case_table): Make canon table point to eqv table.
22036
22037 2002-09-06 Juanma Barranquero <lektu@terra.es>
22038
22039 * coding.c (syms_of_coding): Fix spacing.
22040
22041 * composite.c (Fcompose_region_internal)
22042 (Fcompose_string_internal): Likewise.
22043
22044 * data.c (Flsh): Likewise.
22045
22046 * fontset.c (Fset_fontset_font): Likewise.
22047
22048 * macfns.c (Fx_server_max_request_size): Likewise.
22049
22050 * w16select.c (syms_of_win16select): Likewise.
22051
22052 * w32select.c (syms_of_w32select): Likewise.
22053
22054 * xselect.c (syms_of_xselect): Likewise.
22055
22056 2002-09-05 Richard M. Stallman <rms@gnu.org>
22057
22058 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
22059 call EXTEND_RANGE_TABLE and return a proper value.
22060 (set_image_of_range): Don't call set_image_of_range_1
22061 if no TRANSLATE or if range includes all of Latin-1.
22062 Only call it for the Latin-1 part of the range.
22063 For other cases, make two separate ranges,
22064 one for the original specified characters and one for
22065 their case-conversions.
22066
22067 2002-09-04 Richard M. Stallman <rms@gnu.org>
22068
22069 * s/sol2-5.h (UNEXEC): Use unexsol.o.
22070
22071 * window.c (displayed_window_lines): Correct for one-off bug
22072 in HEIGHT on non-window displays.
22073
22074 * regex.c (set_image_of_range_1): New function.
22075 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
22076 Return a value to indicate running out of memory.
22077 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
22078 (extend_range_table_work_area): New subroutine.
22079 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
22080 Different calling conventions, and used from set_image_of_range{,_1}.
22081 (IMMEDIATE_QUIT_CHECK): Definitions moved.
22082
22083 2002-09-04 Juanma Barranquero <lektu@terra.es>
22084
22085 * makefile.w32-in: All dependencies updated.
22086
22087 2002-09-01 Richard M. Stallman <rms@gnu.org>
22088
22089 * unexsol.c: New file.
22090
22091 * xfns.c (Qbox): Declare external, don't define.
22092
22093 * xdisp.c (redisplay_window) <force-start case>:
22094 If point is on semi-visible last line, reposition
22095 it at previous line.
22096
22097 * alloc.c (display_malloc_warning): Use display-warning.
22098 (malloc_warning_1): Function deleted.
22099
22100 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
22101
22102 * lread.c (read1): Handle #! by skipping the line.
22103
22104 2002-08-31 Richard M. Stallman <rms@gnu.org>
22105
22106 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
22107 Don't include LDFLAGS.
22108 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
22109
22110 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
22111
22112 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
22113 member of x_display_info unless we compile for some window system.
22114
22115 2002-08-31 Kim F. Storm <storm@cua.dk>
22116
22117 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
22118 (get_window_cursor_type): Don't use them.
22119 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
22120
22121 2002-08-30 Kenichi Handa <handa@etl.go.jp>
22122
22123 * xdisp.c (get_next_display_element): Fix previous change.
22124
22125 2002-08-30 Andrew Choi <akochoi@shaw.ca>
22126
22127 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
22128 (expose_window): Use it to fix the display of overlapping
22129 rows (merge code from xterm.c).
22130
22131 * macfns.c (Qbox): Add extern declaration.
22132
22133 2002-08-30 Juanma Barranquero <lektu@terra.es>
22134
22135 * w32fns.c (Qbox): Make extern.
22136 (syms_of_w32fns): Remove initialization of Qbox.
22137
22138 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
22139
22140 * xfns.c (Fx_open_connection): Fix error message.
22141
22142 2002-08-30 Kim F. Storm <storm@cua.dk>
22143
22144 The following changes consolidates the handling of the cursor
22145 type in xdisp.c, moving duplicate code and functionality from
22146 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
22147
22148 * frame.h (enum text_cursor_kinds): Consolidated here.
22149 Added DEFAULT_CURSOR value.
22150 (struct frame) <desired_cursor, cursor_width>
22151 <blink_off_cursor, blink_off_cursor_width>: New fields.
22152 Consolidated from output_x, output_w32 and output_mac structs.
22153 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22154 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
22155
22156 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
22157 Variables consolidated here.
22158 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
22159 (Vcursor_in_non_selected_windows): Renamed from
22160 cursor_in_non_selected_windows and changed to Lisp_Object.
22161 (syms_of_xdisp): Define and staticpro new and moved variables.
22162 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
22163 consolidated here. Recognize Qhollow setting.
22164 (set_frame_cursor_types): New function to set frame cursor types
22165 based on the frame parameters.
22166 (get_window_cursor_type): New function to calculate new cursor
22167 type and width for the specified window. Based on duplicated
22168 code consolidated here.
22169 Enhancements: cursor-in-non-selected-windows may be a cursor type,
22170 check buffer-local alternate-cursor-type and blink-cursor-alist
22171 before using built-in blink off methods.
22172
22173 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
22174
22175 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
22176 (get_specified_cursor_type, get_window_cursor_type)
22177 (set_frame_cursor_types): Added prototypes.
22178
22179 * macfns.c (x_specified_cursor_type): Removed.
22180 (x_set_cursor_type): Use set_frame_cursor_types.
22181 (Qbar, Qbox): Removed.
22182 (syms_of_macfns): Don't intern or staticpro them.
22183
22184 * macterm.c (x_specified_cursor_type): Remove prototype.
22185 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22186 (x_display_and_set_cursor): Use get_window_cursor_type.
22187 Remove unused local variables cursor_non_selected, active_cursor.
22188 Redraw cursor if hbar cursor width changes.
22189 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
22190
22191 * macterm.h (enum text_cursor_kinds): Removed.
22192 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
22193 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22194 (FRAME_DESIRED_CURSOR): Macro removed.
22195
22196 * w32fns.c (Vblink_cursor_alist): Removed.
22197 (Qbar, Qhbar, Qbox, Qhollow): Removed.
22198 (syms_of_w32fns): Don't intern, staticpro, or define them.
22199 (x_specified_cursor_type): Removed.
22200 (x_set_cursor_type): Use set_frame_cursor_types.
22201
22202 * w32term.c (x_specified_cursor_type): Remove prototype.
22203 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22204 (x_display_and_set_cursor): Use get_window_cursor_type.
22205 Remove unused local variables cursor_off_state.
22206 Redraw cursor if hbar cursor width changes.
22207 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
22208
22209 * w32term.h (enum text_cursor_kinds): Removed.
22210 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
22211 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22212 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22213 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
22214 (struct w32_display_info) <x_highlight_frame>: Renamed member from
22215 w32_highlight_frame.
22216
22217 * xfns.c (Vblink_cursor_alist): Removed.
22218 (Qbar, Qhbar, Qbox, Qhollow): Removed.
22219 (syms_of_xfns): Don't intern, staticpro, or define them.
22220 (x_specified_cursor_type): Removed.
22221 (x_set_cursor_type): Use set_frame_cursor_types.
22222
22223 * xterm.c (x_specified_cursor_type): Remove prototype.
22224 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22225 (x_display_and_set_cursor): Use get_window_cursor_type.
22226 Remove unused local variables cursor_off_state.
22227 Redraw cursor if hbar cursor width changes.
22228
22229 * xterm.h (enum text_cursor_kinds): Removed.
22230 (struct output_x) <current_cursor, desired_cursor, cursor_width>
22231 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22232 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22233 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
22234 (x_specified_cursor_type): Remove prototype.
22235
22236 2002-08-28 Richard M. Stallman <rms@gnu.org>
22237
22238 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
22239 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
22240 (Vblink_cursor_alist): New variable.
22241 (syms_of_w32fns): Initialize and defvar it.
22242 (x_specified_cursor_type): Recognize Qbox for filled box.
22243 Exceptions are hollow boxes.
22244 (Qbox, Qhollow): New variables.
22245 (syms_of_w32fns): Initialize and staticpro them.
22246
22247 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
22248 New macros.
22249 (struct w32_output): New fields blink_off_cursor,
22250 blink_off_cursor_width.
22251 (FRAME_CURSOR_WIDTH): New macro.
22252
22253 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
22254 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
22255
22256 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
22257 for bar cursor.
22258
22259 * w32term.c (expose_overlaps): New function.
22260 (expose_window): Use it to fix the display of overlapping rows.
22261
22262 2002-08-28 Simon Josefsson <jas@extundo.com>
22263
22264 * xfns.c (Fx_open_connection): Improve help when X connection
22265 fails, xhost is insecure and xauth is better.
22266
22267 2002-08-28 Juanma Barranquero <lektu@terra.es>
22268
22269 * makefile.w32-in: Add missing dependencies on w32term.h and
22270 composite.h.
22271
22272 * emacs.c (USAGE1): Add missing newline.
22273
22274 2002-08-27 Andrew Choi <akochoi@shaw.ca>
22275
22276 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
22277
22278 2002-08-27 Richard M. Stallman <rms@gnu.org>
22279
22280 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
22281 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
22282 (Vblink_cursor_alist): New variable.
22283 (syms_of_xfns): Initialize and defvar it.
22284 (x_specified_cursor_type): Recognize Qbox for filled box.
22285 Exceptions are hollow boxes.
22286 (Qbox, Qhollow): New variables.
22287 (syms_of_xfns): Initialize and staticpro them.
22288
22289 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
22290 New macros.
22291 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
22292
22293 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
22294 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
22295
22296 * emacs.c (main): Handle --script.
22297 (USAGE1): Mention --script.
22298 (standard_args): Define sort order for --script.
22299
22300 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
22301
22302 * xdisp.c (redisplay_updating_p): Variable removed.
22303 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
22304 New variables.
22305 (init_iterator): Don't free realized faces if
22306 inhibit_free_realized_faces is set.
22307 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
22308 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
22309 initialize Qinhibit_free_realized_faces.
22310
22311 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
22312 when iterator is adding glyphs to a glyph matrix.
22313
22314 2002-08-27 Kenichi Handa <handa@etl.go.jp>
22315
22316 * xdisp.c (get_next_display_element): In unibyte case, don't use
22317 octal form for such eight-bit characters that can be converted to
22318 multibyte char.
22319
22320 2002-08-26 Kim F. Storm <storm@cua.dk>
22321
22322 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
22323 foreground and background colors. From Joe Buehler.
22324
22325 2002-08-26 Miles Bader <miles@gnu.org>
22326
22327 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
22328
22329 2002-08-25 Andrew Choi <akochoi@shaw.ca>
22330
22331 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
22332 defined instead of MAC_OSX.
22333
22334 * s/darwin.h (select): Define select to sys_select only if
22335 HAVE_CARBON is defined.
22336 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
22337 (DONT_REOPEN_PTY): #def it.
22338
22339 * macterm.c (XTread_socket): Remove code to call
22340 SendEventToEventTarget for keys with command modifiers when
22341 mac_command_key_is_meta is nil.
22342
22343 2002-08-24 Andreas Schwab <schwab@suse.de>
22344
22345 * eval.c (Fdefvar): Fix last change.
22346
22347 2002-08-23 Richard M. Stallman <rms@gnu.org>
22348
22349 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
22350 Record variables in load history as (defvar . VAR).
22351 (Fdefvar): Don't record in load history if no initial value.
22352 (Qdefvar): New variable.
22353 (syms_of_eval): Init and staticpro it.
22354
22355 * lread.c (syms_of_lread): Doc fix.
22356 (build_load_history): Use Fmember to see if a definition
22357 is already in the Vload_history element.
22358
22359 * process.c (Fstart_process): Remove /: from program name.
22360
22361 * emacs.c (decode_env_path): Don't add /: if file name handler
22362 has a `safe-magic' property.
22363
22364 * callproc.c (Fcall_process): Remove /: from program name.
22365
22366 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
22367
22368 * regex.c (PATFETCH): Remove the translating fetch.
22369 (PATFETCH_RAW): Rename to PATFETCH.
22370 (set_image_of_range): New fun.
22371 (SET_RANGE_TABLE_WORK_AREA): Use it.
22372 (regex_compile): Don't translate the pattern chars so eagerly.
22373 Only do it when inserting an `exactn' bytecode or when handling
22374 a char-range.
22375 (mutually_exclusive_p): Avoid empty statement.
22376
22377 2002-08-22 Kim F. Storm <storm@cua.dk>
22378
22379 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
22380 end up on a partially visible line; this reverts a specific part
22381 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
22382 display error which has been reported several times now.
22383 However it introduces the problem that changes was supposed to fix.
22384 See my comments in the source if you want to debug this further.
22385
22386 2002-08-20 Kenichi Handa <handa@etl.go.jp>
22387
22388 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22389
22390 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
22391
22392 * msdos.c (croak): Add `void' to definition.
22393
22394 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
22395 Don't define them, they are defined in msdos.c.
22396
22397 * mem-limits.h [MSDOS]: Declare etext.
22398
22399 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
22400 `const' since CORRECT_DIR_SEPS modifies its target.
22401
22402 2002-08-19 Kim F. Storm <storm@cua.dk>
22403
22404 * keyboard.c (Fclear_this_command_keys): Add optional arg
22405 KEEP-RECORD to avoid clearing lossage when we just want to clear
22406 the current key sequence (kmacro needs this).
22407
22408 2002-08-19 Kenichi Handa <handa@localhost>
22409
22410 * composite.c (run_composition_function): Call FUNC if it is fboundp.
22411
22412 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
22413 cons, return Qnil.
22414
22415 2002-08-17 Richard M. Stallman <rms@gnu.org>
22416
22417 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
22418
22419 * sysdep.c [!VMS]: Include sys/files.h.
22420
22421 * editfns.c (save_restriction_restore): Defend from unchained marker.
22422
22423 * buffer.c (overlays_at): Handle extending vec uniformly.
22424 (overlays_in): Handle extending vec from length 0 as in overlays_at.
22425
22426 2002-08-15 Andrew Choi <akochoi@shaw.ca>
22427
22428 * mac.c (init_mac_osx_environment): New function.
22429
22430 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
22431
22432 2002-08-14 Kim F. Storm <storm@cua.dk>
22433
22434 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
22435 executing macro before appending to it (when used from Lisp).
22436 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
22437 which is called prior to each iteration of macro (for kmacro.el).
22438 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
22439
22440 * lisp.h (Fexecute_kbd_macro): Update prototype.
22441
22442 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
22443
22444 2002-08-14 Kenichi Handa <handa@etl.go.jp>
22445
22446 * xselect.c (QUTF8_STRING): New variable.
22447 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
22448 (x_atom_to_symbol): Likewise.
22449 (x_get_local_selection): New argument local_request. If it is
22450 nonzero, call handler_fn with the second arg nil.
22451 (x_handle_selection_request): Call x_get_local_selection with
22452 local_request 0.
22453 (lisp_data_to_selection_data): Don't encode the string here.
22454 (Fx_get_selection_internal): Call x_get_local_selection with
22455 local_request 1.
22456 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
22457
22458 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
22459
22460 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
22461
22462 2002-08-13 Richard M. Stallman <rms@gnu.org>
22463
22464 * minibuf.c (Fminibufferp): New function.
22465 (syms_of_minibuf): Defsubr it.
22466 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
22467
22468 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
22469
22470 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
22471
22472 2002-08-12 Richard M. Stallman <rms@gnu.org>
22473
22474 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
22475 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
22476 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
22477 already.
22478
22479 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
22480
22481 2002-08-11 Andrew Choi <akochoi@shaw.ca>
22482
22483 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
22484 (Vmac_pass_command_to_system): New variable.
22485 (Vmac_pass_control_to_system): New variable.
22486 (do_mouse_moved): Check wp with is_emacs_window.
22487 (XTread_socket): Check window_ptr with is_emacs_window.
22488 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
22489 events back to Mac Toolbox for processing, depending on values of
22490 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
22491 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
22492 Vmac_pass_control_to_system.
22493
22494 2002-08-10 Kenichi Handa <handa@etl.go.jp>
22495
22496 * coding.c (unencodable_char_position): New function.
22497 (Funencodable_char_position): New function.
22498 (syms_of_coding): Defsubr Funencodable_char_position.
22499
22500 2002-08-10 Andrew Choi <akochoi@shaw.ca>
22501
22502 * mac.c (sys_select) [MAC_OSX]: New function.
22503
22504 * macterm.c (MakeMeTheFrontProcess): New function.
22505 (mac_initialize): Call MakeMeTheFrontProcess.
22506
22507 * s/darwin.h: Define select to sys_select.
22508
22509 2002-08-09 Richard M. Stallman <rms@gnu.org>
22510
22511 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
22512
22513 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
22514
22515 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
22516 end of the buffer.
22517
22518 2002-08-08 Ken Raeburn <raeburn@gnu.org>
22519
22520 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
22521
22522 * puresize.h (BASE_PURESIZE): Increase to 910000.
22523
22524 2002-08-08 Kenichi Handa <handa@etl.go.jp>
22525
22526 * coding.c (Ffind_operation_coding_system): For write-region, if
22527 VISIT is a filename, make it the target.
22528
22529 2002-08-07 Richard M. Stallman <rms@gnu.org>
22530
22531 * alloc.c (mark_object): Detect long lists for debugging.
22532 (mark_object_loop_halt): New variable.
22533
22534 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
22535
22536 * data.c (Fmake_variable_frame_local): Doc fix.
22537
22538 2002-08-01 David Ponce <david@dponce.com>
22539
22540 * w32menu.c (local_heap, local_alloc, local_free): New macros.
22541 (malloc_widget_value, free_widget_value)
22542 (w32_free_submenu_strings): Use them.
22543
22544 (push_submenu_start, push_submenu_end, push_left_right_boundary)
22545 (push_menu_pane, push_menu_item, single_keymap_panes)
22546 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
22547 (single_submenu, set_frame_menubar)
22548 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
22549
22550 (Fx_popup_menu): Don't show pop up menu until preceding one is
22551 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
22552
22553 * w32menu.c: Changes adapted from xmenu.c
22554 (set_frame_menubar): First parse all submenus,
22555 then make widget_value trees from them.
22556 Don't allocate any widget_value objects
22557 until we are done with the parsing.
22558 (parse_single_submenu): New function.
22559 (digest_single_submenu): New function.
22560 (single_submenu): Function deleted, replaced by those two.
22561
22562 2002-08-04 Andrew Choi <akochoi@shaw.ca>
22563
22564 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
22565 returns a valid window pointer before proceeding for keyDown and
22566 autoKey events.
22567
22568 2002-08-03 Andrew Choi <akochoi@shaw.ca>
22569
22570 * macterm.c (USE_CARBON_EVENTS): New macro.
22571 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
22572 (x_iconify_frame): Call CollapseWindow.
22573 (Vmac_reverse_ctrl_meta): New variable.
22574 (Vmac_wheel_button_is_mouse_2): New variable.
22575 (init_mac_drag_n_drop): New function.
22576 (mac_do_receive_drag): New function.
22577 (mac_handle_service_event): New function.
22578 (init_service_handler): New function.
22579 (mac_to_emacs_modifiers): New function.
22580 (mac_event_to_emacs_modifiers): New function.
22581 (mac_get_mouse_btn): New function.
22582 (mac_convert_event_ref): New function.
22583 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
22584 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
22585 mac_get_mouse_btn.
22586 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
22587
22588 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
22589 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
22590 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
22591 TOOL_BAR_EVENT for MAC_OS as well.
22592 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
22593 as for WINDOWS_NT.
22594 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
22595
22596 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
22597
22598 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
22599
22600 * xdisp.c (forward_to_next_line_start): Fix a condition that
22601 lead to a newline being skipped.
22602
22603 2002-08-02 Andrew Choi <akochoi@shaw.ca>
22604
22605 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
22606
22607 2002-08-01 Richard M. Stallman <rms@gnu.org>
22608
22609 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
22610
22611 2002-07-31 Andrew Choi <akochoi@shaw.ca>
22612
22613 * macfns.c: #undef init_process before #define-ing it.
22614
22615 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
22616 HAVE_CARBON is defined.
22617
22618 2002-07-31 Richard M. Stallman <rms@gnu.org>
22619
22620 * xmenu.c (set_frame_menubar): First parse all submenus,
22621 then make widget_value trees from them.
22622 Don't allocate any widget_value objects
22623 until we are done with the parsing.
22624 (parse_single_submenu): New function.
22625 (digest_single_submenu): New function.
22626 (single_submenu): Function deleted, replaced by those two.
22627
22628 2002-07-30 Juanma Barranquero <lektu@terra.es>
22629
22630 * w32proc.c (syms_of_ntproc): Fix docstring of
22631 `w32-get-true-file-attributes'.
22632
22633 2002-07-28 Richard M. Stallman <rms@gnu.org>
22634
22635 * s/hpux8.h (HPUX8): Define this before including hpux.h.
22636 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
22637
22638 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
22639
22640 * keyboard.c (make_lispy_event):
22641 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
22642 Explicitly clear up_modifier in event->modifiers.
22643
22644 2002-07-27 Richard M. Stallman <rms@gnu.org>
22645
22646 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
22647
22648 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
22649 for bar cursor.
22650
22651 2002-07-26 Kenichi Handa <handa@etl.go.jp>
22652
22653 * coding.c (detect_coding_iso2022): While checking a byte sequence
22654 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
22655 it in the normal loop.
22656
22657 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
22658
22659 * xterm.c (expose_overlaps): New function.
22660 (expose_window): Use it to fix the display of overlapping rows.
22661
22662 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
22663
22664 2002-07-23 Ken Raeburn <raeburn@gnu.org>
22665
22666 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
22667 since it only depends on XUINT.
22668
22669 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
22670 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
22671 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
22672 Macros deleted.
22673
22674 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
22675 its value over other approaches.
22676 * sysdep.c (start_of_data): Don't define the function if a macro
22677 form has been defined.
22678
22679 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
22680
22681 * xdisp.c (redisplay_updating_p): New variable.
22682 (init_iterator): Don't free realized faces when
22683 redisplay_updating_p is set.
22684 (redisplay_internal): Set redisplay_updating_p while updating
22685 the display.
22686
22687 2002-07-23 Richard M. Stallman <rms@gnu.org>
22688
22689 * editfns.c (Fmessage): Treat "" like nil.
22690
22691 2002-07-23 Kenichi Handa <handa@etl.go.jp>
22692
22693 * xdisp.c (face_before_or_after_it_pos):
22694 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22695
22696 2002-07-22 Juanma Barranquero <lektu@terra.es>
22697
22698 * callproc.c (init_callproc) [DOS_NT]:
22699 Initialize Vshared_game_score_directory to nil.
22700 (syms_of_callproc) [DOS_NT]: Likewise.
22701
22702 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
22703
22704 * xdisp.c (display_line): Replace an abort with xassert.
22705
22706 2002-07-21 Richard M. Stallman <rms@gnu.org>
22707
22708 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
22709 and END_UNCHANGED when setting buffer_unchanged_p.
22710 Use current_matrix_up_to_date_p to decide whether to use
22711 try_cursor_movement.
22712
22713 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
22714
22715 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
22716
22717 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
22718 Set to nil if dir does not exist.
22719 (syms_of_callproc): Init unconditionally and simply.
22720
22721 * buffer.c (Fbuffer_list): Doc fix.
22722
22723 2002-07-21 Ken Raeburn <raeburn@gnu.org>
22724
22725 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
22726
22727 * buffer.c (mmap_realloc): When shrinking, make sure number of
22728 pages to unmap is rounded towards zero.
22729
22730 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
22731 (XSETINT): Deleted.
22732
22733 * m/att3b.h (XINT): Don't define.
22734 (VALBITS, VALMASK, XTYPE): Deleted.
22735 (DATA_SEG_BITS): Define.
22736 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
22737 ARRAY_MARK_FLAG): Deleted.
22738 (DATA_SEG_BITS): Define.
22739 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
22740 (DATA_SEG_BITS): Define.
22741
22742 2002-07-20 Richard M. Stallman <rms@gnu.org>
22743
22744 * print.c (print_error_message): New args CONTEXT and CALLER.
22745 Calls changed.
22746
22747 * lisp.h (print_error_message): Declare new args.
22748
22749 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
22750 and CONTEXT to print_error_message, don't print them here.
22751 For a Quit, don't use Vsignaling_function.
22752 Call message_log_maybe_newline.
22753
22754 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
22755
22756 2002-07-20 Kim F. Storm <storm@cua.dk>
22757
22758 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
22759
22760 2002-07-19 Ken Raeburn <raeburn@gnu.org>
22761
22762 * bytecode.c (struct byte_stack): Pointers into byte string now
22763 point to const.
22764 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
22765 const.
22766 * charset.h (BCOPY_SHORT): Source pointer now points to const.
22767 * coding.c (encode_eol, detect_coding, detect_eol):
22768 (decode_coding, encode_coding, detect_coding_system):
22769 Source strings now treated as const.
22770 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
22771 modify Lisp string contents.
22772 * coding.h (decode_coding, encode_coding, detect_coding,
22773 detect_eol): Declarations updated.
22774 * composite.c (compose_chars_in_text): Treat Lisp string contents
22775 as const.
22776 * dispnew.c (safe_bcopy): Source pointer now points to const.
22777 * lisp.h (STRING_COPYIN): New macro.
22778 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
22779 (internal_with_output_to_temp_buffer): Declarations updated.
22780 * print.c (temp_output_buffer_setup):
22781 (internal_with_output_to_temp_buffer): Buffer name argument is now
22782 pointer to const.
22783 * sound.c (struct sound_device): Function pointer field "write"
22784 buffer argument now points to const.
22785 (vox_write): Buffer argument points to const.
22786 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
22787 contents as const.
22788 * sysdep.c (emacs_write): Buffer pointer now const.
22789 * term.c (encode_terminal_code): Buffer pointer now const.
22790 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
22791 (x_face_list_fonts, x_update_menu_appearance):
22792 (hash_string_case_insensitive): Treat Lisp string contents as const.
22793
22794 2002-07-19 Juanma Barranquero <lektu@terra.es>
22795
22796 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
22797
22798 * fileio.c (syms_of_fileio): Likewise.
22799 (Ffile_name_as_directory): Fix argument name in docstring.
22800 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
22801
22802 2002-07-18 Richard M. Stallman <rms@gnu.org>
22803
22804 * data.c (Fdefalias): Doc fix.
22805
22806 2002-07-17 Dave Love <fx@gnu.org>
22807
22808 * intervals.h (text_property_stickiness): Use P_.
22809
22810 * ccl.c: Remove `emacs' conditionals.
22811 (ccl_backtrace_table): Fix size spec.
22812 (ccl_driver): Fix type errors.
22813
22814 2002-07-16 Ken Raeburn <raeburn@gnu.org>
22815
22816 * alloc.c (xstrdup, make_string, make_unibyte_string)
22817 (make_multibyte_string, build_string): String pointer args now
22818 point to const.
22819 * charset.c (find_charset_in_text, c_string_width):
22820 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
22821 * fileio.c (report_file_error):
22822 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
22823 (count_combining_before, count_combining_after, insert_1_both):
22824 (insert, insert_and_inherit, insert_string):
22825 (insert_before_markers, insert_before_markers_and_inherit):
22826 * lread.c (intern, oblookup, hash_string):
22827 * minibuf.c (temp_echo_area_glyphs):
22828 * search.c (fast_c_string_match_ignore_case):
22829 * sysdep.c (emacs_open, set_file_times):
22830 * xfaces.c (xstricmp):
22831 * xdisp.c (store_frame_title, string_char_and_length):
22832 (message_dolog, message2, message2_nolog, set_message): Likewise.
22833 (set_message_1): Cast message string argument to const pointer.
22834 * editfns.c (general_insert_function): Insertion function now
22835 takes pointer to const for input data.
22836 * charset.h (find_charset_in_text, c_string_width):
22837 (parse_str_as_multibyte): Declarations updated.
22838 * dispextern.h (xstricmp): Declaration updated.
22839 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
22840 (count_size_as_multibyte, count_combining_before):
22841 (count_combining_after, insert_1, insert_1_both, message_dolog):
22842 (insert, insert_and_inherit, insert_before_markers)
22843 (insert_before_markers_and_inherit, set_message, message2):
22844 (message2_dolog, build_string, make_string, make_unibyte_string):
22845 (make_multibyte_string, intern, oblookup, report_file_error):
22846 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
22847 (emacs_open, xstrdup): Declarations updated.
22848 * systime.h (set_file_times): Declaration updated.
22849
22850 * charset.c (find_charset_in_text, lisp_string_width): Use const
22851 for pointer to lisp string data.
22852 * charset.h (FETCH_STRING_CHAR_ADVANCE):
22853 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
22854 * coding.c (Ffind_coding_systems_region_interval):
22855 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
22856 (Fmake_directory_internal, Fdelete_directory):
22857 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
22858 * fontset.c (font_family_registry, fs_query_fontset):
22859 (list_fontsets):
22860 * frame.c (Fframe_parameter):
22861 * keyboard.c (cmd_error_internal):
22862 * keymap.c (Fdescribe_buffer_bindings):
22863 * lread.c (complete_filename_p, openp):
22864 * minibuf.c (Fminibuffer_complete_word):
22865 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
22866 (face_before_or_after_it_pos, next_element_from_string):
22867 (get_overlay_arrow_glyph_row, display_mode_element):
22868 (decode_mode_spec_coding):
22869 * xterm.c (same_x_server): Likewise.
22870
22871 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
22872 settings of non-existent fields.
22873
22874 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
22875 copy a lisp value.
22876
22877 * lread.c (Fintern_soft): Use string macros instead of
22878 Lisp_String fields.
22879 * keyboard.c (echo_char, parse_modifiers_uncached):
22880 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
22881 * textprop.c (validate_interval_range, interval_of): Likewise.
22882
22883 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
22884
22885 * charset.h (FETCH_STRING_CHAR_ADVANCE)
22886 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
22887 XSTRING()->size_byte.
22888
22889 * lisp.h (SDATA, SREF): Produce rvalue.
22890 (SSET): New macro.
22891 * alloc.c (make_event_array): Use SSET for storing into a string.
22892 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
22893 a string.
22894 * casefiddle.c (casify_object): Use SSET.
22895 * charset.h (FETCH_STRING_CHAR_ADVANCE)
22896 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
22897 address of string contents.
22898 * data.c (Faref): Use SDATA.
22899 (Faset): Use SDATA, SSET.
22900 * dired.c (directory_files_internal): Use SSET.
22901 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
22902 (Fread_file_name): Use SREF, SSET.
22903 * fns.c (concat): Use SSET.
22904 (concat, Fdelete): Use SDATA.
22905 * insdel.c (insert_from_string_1): Use SDATA.
22906 * keyboard.c (Fevent_convert_list): Use SREF.
22907 * lread.c (Fload): Use SDATA, SSET.
22908 * macfns.c (validate_x_resource_name): Use SSET.
22909 * process.c (status_message): Use SSET.
22910 * search.c (wordify): Use SDATA.
22911 (Freplace_match): Use SREF.
22912 * w32fns.c (validate_x_resource_name): Use SSET.
22913 * xfns.c (validate_x_resource_name): Use SSET.
22914 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
22915
22916 2002-07-16 Richard M. Stallman <rms@gnu.org>
22917
22918 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
22919
22920 * xdisp.c (reconsider_clip_changes):
22921 Don't test prevent_redisplay_optimizations_p.
22922 (redisplay_internal): Test prevent_redisplay_optimizations_p
22923 along with clip_changed in some cases.
22924 (try_window_id): Likewise.
22925 (redisplay_window): New local var buffer_unchanged_p.
22926
22927 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
22928
22929 * process.c (create_process): Test USG_SUBTTY_WORKS.
22930 (process_send_signal): Clean up handling of GID.
22931 Detect errors in ioctls meant to set GID.
22932
22933 * window.c (temp_output_buffer_show):
22934 Don't set prevent_redisplay_optimizations_p.
22935
22936 2002-07-15 Juanma Barranquero <lektu@terra.es>
22937
22938 * eval.c (Fdefvaralias): Add docstring argument.
22939
22940 2002-07-15 Ken Raeburn <raeburn@gnu.org>
22941
22942 * lisp.h (STRING_INTERVALS): Produce rvalue.
22943 (STRING_SET_INTERVALS): New macro.
22944 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
22945 * fns.c (Fstring_as_multibyte): Likewise.
22946 * intervals.c (balance_possible_root_interval, delete_interval)
22947 (create_root_interval, copy_intervals_to_string): Likewise.
22948 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
22949 instead of 0.
22950
22951 2002-07-14 Ken Raeburn <raeburn@gnu.org>
22952
22953 * lisp.h (STRING_SET_CHARS): New macro.
22954 (SCHARS, SBYTES): Produce rvalues.
22955 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
22956 * fns.c (concat): Likewise.
22957 * lread.c (read_vector): Likewise.
22958
22959 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
22960 (STRING_SET_UNIBYTE): New macro.
22961 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
22962 length of -1) changed to use STRING_SET_UNIBYTE.
22963 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22964 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
22965 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
22966 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
22967 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
22968 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
22969 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
22970 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
22971 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
22972 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
22973 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
22974 STRING_BYTES or indirection changed to SCHARS, SBYTES,
22975 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
22976 unchanged for now.
22977
22978 2002-07-13 Kim F. Storm <storm@cua.dk>
22979
22980 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
22981
22982 2002-07-12 Richard M. Stallman <rms@gnu.org>
22983
22984 * fileio.c (Fwrite_region): Doc fix.
22985
22986 * print.c (print_error_message): Don't handle Vsignaling_function here.
22987
22988 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
22989 (command_loop_1): Avoid certain actions after memory-full error.
22990
22991 * eval.c (Fsignal): Don't call cancel_hourglass.
22992 For a memory-full error, don't call Vsignal_hook_function
22993 and don't set Vsignaling_function.
22994
22995 * process.c (process_send_signal): Add abort call.
22996
22997 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
22998
22999 * keymap.c (Fkey_binding): Fix typo.
23000
23001 2002-07-11 Richard M. Stallman <rms@gnu.org>
23002
23003 * alloc.c (Vmemory_full): New variable.
23004 (Vmemory_signal_data): Rename from memory_signal_data.
23005 Uses changed.
23006 (syms_of_alloc): Defvar them.
23007 (memory_full, buffer_memory_full): Set Vmemory_full.
23008
23009 * lisp.h (Vmemory_full): Add declaration.
23010 (current_column, indented_beyond_p): Change declaration.
23011
23012 * indent.c (last_known_column): Declare as double, not float.
23013 (current_column, current_column_1, string_display_width)
23014 (position_indentation): Return `double'.
23015 (indented_beyond_p): Arg `column' is `double'. Callers changed.
23016
23017 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
23018 (back_to_previous_visible_line_start)
23019 (reseat_at_next_visible_line_start, next_element_from_buffer):
23020 Use `double', not `float', when calling indented_beyond_p.
23021
23022 * s/hpux11.h (BROKEN_SA_RESTART): Define.
23023
23024 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
23025
23026 2002-07-11 Juanma Barranquero <lektu@terra.es>
23027
23028 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
23029 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
23030 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
23031 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
23032 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
23033 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
23034
23035 2002-07-10 Juanma Barranquero <lektu@terra.es>
23036
23037 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
23038 All callers changed.
23039
23040 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
23041
23042 * data.c (Fdefalias): Add an optional `docstring' argument.
23043 (set_internal, Fsetq_default): Use XCAR/XCDR.
23044
23045 * composite.c (HASH_VALUE, HASH_KEY):
23046 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
23047
23048 2002-07-09 Kenichi Handa <handa@etl.go.jp>
23049
23050 * callproc.c (Fcall_process): Fix previous change.
23051
23052 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
23053
23054 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
23055 Add support for hash-tables.
23056 (Ftry_completion): Return t even if the string appears multiple times.
23057
23058 * fns.c (Fnconc): Use XCDR.
23059 (Fprovide): Use CONSP and XCDR.
23060 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
23061 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
23062 (Fmake_hash_table): Accept `:size nil'.
23063 (Fmakehash): Delete: moved to subr.el.
23064 (syms_of_fns): Don't defsubr makehash.
23065
23066 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
23067 (HASH_TABLE_SIZE): Move from fns.c.
23068
23069 2002-07-07 Richard M. Stallman <rms@gnu.org>
23070
23071 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
23072 Instead just return 0 when there is something to be done.
23073 (try_scrolling): If make_cursor_line_fully_visible returns 0,
23074 retry scrolling as if cursor were off the bottom.
23075 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
23076 return CURSOR_MOVEMENT_MUST_SCROLL.
23077 (redisplay_window): If make_cursor_line_fully_visible returns 0,
23078 go to try_to_scroll.
23079
23080 * buffer.c (Fbuffer_local_value): Store current value into its binding
23081 so we get the up-to-date value for the binding that is loaded.
23082
23083 * eval.c (Fdefmacro): Doc fix.
23084
23085 2002-07-05 Dave Love <fx@gnu.org>
23086
23087 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
23088 correctly.
23089
23090 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
23091 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
23092 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
23093 CCL_LookupCharConstTbl.
23094 (syms_of_ccl): Defvar translation-hash-table-vector.
23095
23096 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23097
23098 * xdisp.c: Remove unused variable `face'.
23099
23100 2002-07-04 Juanma Barranquero <lektu@terra.es>
23101
23102 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
23103 obsolescence information.
23104
23105 2002-07-03 Andrew Choi <akochoi@shaw.ca>
23106
23107 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
23108 pattern. Search cache first.
23109 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
23110 for Japanese font.
23111 (XLoadQueryFont): Use it.
23112
23113 2002-07-02 Richard M. Stallman <rms@gnu.org>
23114
23115 * keymap.c (Fdefine_key): Doc fix.
23116
23117 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
23118
23119 2002-07-02 Juanma Barranquero <lektu@terra.es>
23120
23121 * keymap.c (syms_of_keymap): Fix typo.
23122
23123 2002-07-01 Andrew Choi <akochoi@shaw.ca>
23124
23125 * s/darwin.h: Define POSIX_SIGNALS.
23126
23127 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
23128 and FSRefMakePath to convert FSSpec returned with Apple Event to
23129 Posix pathname.
23130 (mac_initialize) [TARGET_API_MAC_CARBON]:
23131 Call init_required_apple_events and disable the `Quit' menu item
23132 provided automatically by the Carbon Toolbox.
23133
23134 2002-07-01 Dave Love <fx@gnu.org>
23135
23136 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23137 for K&R.
23138
23139 * xterm.c: Fix prototype for K&R.
23140
23141 * term.c (costs_set): Declare static, non-initialized for pcc.
23142
23143 2002-07-01 Richard M. Stallman <rms@gnu.org>
23144
23145 * keyboard.c (timer_last_idleness_start_time): New variable.
23146 (timer_start_idle): Set that.
23147 (read_key_sequence): Use that to reset timer_idleness_start_time
23148 to previous value.
23149
23150 * window.c (Frecenter): With arg, set optional_new_start.
23151
23152 * xdisp.c (redisplay_internal): Make optional_new_start really work.
23153
23154 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
23155 buffer for completion.
23156
23157 2002-06-29 Ken Raeburn <raeburn@gnu.org>
23158
23159 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
23160
23161 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23162
23163 * keyboard.c (readable_filtered_events): New function that filters
23164 FOCUS_IN_EVENT depending on parameter.
23165 (readable_events): Calls readable_filtered_events, not filtering
23166 FOCUS_IN_EVENT.
23167 (get_filtered_input_pending): New function, filtering parameter passed
23168 to readable_filtered_events.
23169 (get_input_pending): Calls get_filtered_input_pending, not filtering
23170 FOCUS_IN_EVENT.
23171 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
23172 FOCUS_IN_EVENT.
23173
23174 * xterm.h (struct x_output): Add focus_state.
23175
23176 * xterm.c (x_focus_changed): New function.
23177 (x_detect_focus_change): New function.
23178 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
23179 EnterNotify and LeaveNotify to track X focus changes.
23180
23181 2002-06-28 Andreas Schwab <schwab@suse.de>
23182
23183 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
23184
23185 2002-06-27 Kim F. Storm <storm@cua.dk>
23186
23187 * xdisp.c (mode_line_string_list, mode_line_string_face)
23188 (mode_line_string_face_prop): New variables.
23189 (store_mode_line_string): New function.
23190 (display_mode_element): Use store_mode_line_string to
23191 add mode-line string elements to mode_line_string_list
23192 when mode_line_string_list is non-nil.
23193 (Fformat_mode_line): Now returns propertized string by
23194 default. New arg NO-PROPS to ignore properties.
23195 (decode_mode_spec): Only add two dashes for %- in propertized
23196 mode-line string.
23197 (syms_of_xdisp): Init and staticpro mode_line_string_list.
23198
23199 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
23200
23201 * minibuf.c (minibuffer_completion_contents): Add return type.
23202
23203 2002-06-27 Juanma Barranquero <lektu@terra.es>
23204
23205 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
23206
23207 2002-06-26 Juanma Barranquero <lektu@terra.es>
23208
23209 * fileio.c (read_file_name_cleanup): Add missing return.
23210
23211 2002-06-26 Richard M. Stallman <rms@gnu.org>
23212
23213 * window.c (Frecenter): Don't set force_start flag.
23214
23215 * minibuf.c (do_completion, Fminibuffer_complete_word)
23216 (Fminibuffer_completion_help): Complete just the text before point.
23217 (minibuffer_completion_contents): New function.
23218
23219 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
23220
23221 * frame.c (frames_bury_buffer): Function deleted.
23222
23223 2002-06-25 Miles Bader <miles@gnu.org>
23224
23225 * callint.c (Fcall_interactively): When checking to see if doprnt hit
23226 the end of callint_message, allow for a terminating '\0'.
23227
23228 2002-06-24 Juanma Barranquero <lektu@terra.es>
23229
23230 * w32select.c: Include composite.h.
23231
23232 * w16select.c: Likewise.
23233
23234 2002-06-24 Kenichi Handa <handa@etl.go.jp>
23235
23236 * callproc.c (Fcall_process): If code detection is necessary,
23237 call detect_coding directly here.
23238
23239 * coding.c (detect_eol): Preserve coding->cmp_data.
23240
23241 * w16select.c (Fw16_get_clipboard_data):
23242 * w32fns.c (w32_to_x_font):
23243 * w32select.c (Fw32_get_clipboard_data):
23244 * xselect.c (selection_data_to_lisp_data):
23245 * xterm.c (XTread_socket): Disable composition handling.
23246
23247 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
23248
23249 * print.c (temp_output_buffer_setup): Kill all local variables.
23250
23251 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
23252
23253 * lread.c (Fread): Remove redundant and imprecise declaration.
23254
23255 * xfns.c (check_x_display_info): Use check_x_frame.
23256
23257 * .gdbinit (xprintsym): Use the new `xname' field.
23258 (xsymbol): Use it.
23259
23260 2002-06-22 Jason Rumney <jasonr@gnu.org>
23261
23262 * w32fns.c (file_dialog_callback): New function.
23263 (Fx_file_dialog): Allow selecting directories as well as files.
23264
23265 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23266
23267 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
23268 OpenBSD. Add support for mipseb-*-netbsd* machines.
23269
23270 2002-06-17 Andrew Choi <akochoi@shaw.ca>
23271
23272 * macterm.c (mac_scroll_area): Set foreground and backcolor to
23273 black and white before scrolling. Restore frame background and
23274 foreground color after scrolling.
23275 (do_window_update): Call XClearWindow before calling expose_frame.
23276 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
23277 FRAME_FOREGROUND_PIXEL of frame.
23278
23279 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
23280 test Mac command key as <ALT> key.
23281
23282 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
23283
23284 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
23285
23286 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
23287 Lookup keys in function-key-map immediately so that key-translation-map
23288 can be applied earlier.
23289 Remove function_key_possible and key_translation_possible, replaced
23290 by checking `keytran_start < t'.
23291
23292 * .gdbinit (xsymbol): Use the new `xname' field.
23293
23294 2002-06-17 Andrew Choi <akochoi@shaw.ca>
23295
23296 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
23297 test Mac command key as <ALT> key.
23298
23299 * mac.c (do_applescript): Call initialize_applescript if necessary
23300 when first called. Dispose of result_desc only when there is no error.
23301 (Fdo_applescript): Use %d format specifier instead of %ld.
23302
23303 2002-06-16 Andrew Choi <akochoi@shaw.ca>
23304
23305 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
23306 of FrontWindow for cases keyDown and autoKey.
23307
23308 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
23309 Vdefault_fontset to Monaco with mac-roman coding.
23310
23311 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
23312 init_process before and after inclusion of Carbon/Carbon.h, resp.
23313
23314 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
23315 cursor_gc.
23316 (add_font_name_table_entry): New function.
23317 (init_font_name_table): Use add_font_name_table_entry; add italic,
23318 bold, and bold-italic entries for truetype fonts.
23319
23320 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
23321 for Mac too.
23322 (try_font_list) [MAC_OS]: If no font matches given registry, try
23323 fonts with any registry matching face_family.
23324 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
23325
23326 * s/darwin.h: If autoconf detects the Ncurses library, define
23327 LIBS_TERMCAP to -lncurses to use it.
23328
23329 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
23330
23331 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
23332
23333 2002-06-15 Richard M. Stallman <rms@gnu.org>
23334
23335 * window.c (Fset_window_configuration): Explicitly preserve
23336 the point value that new_current_buffer had at the start.
23337
23338 2002-06-14 Juanma Barranquero <lektu@terra.es>
23339
23340 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
23341 Fix typos.
23342
23343 2002-06-14 Kim F. Storm <storm@cua.dk>
23344
23345 * insdel.c (insert_1_both, insert_from_string_1)
23346 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
23347 insert happened in the end_unchanged region. Otherwise, the
23348 redisplay may be confused and duplicate the last line in the
23349 buffer [seen after save-buffer when require-final-newline==t].
23350
23351 2002-06-13 Jason Rumney <jasonr@gnu.org>
23352
23353 * w32.c (init_environment): Remove EMACSLOCKDIR.
23354 (stat): Swap _S_IFDIR and _S_IFREG.
23355
23356 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23357
23358 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
23359 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
23360 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
23361 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
23362 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
23363 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
23364 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
23365 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
23366 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
23367 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
23368 SELECTION_REQUEST_EVENT, selection_clear_event to
23369 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
23370 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
23371 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
23372 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
23373 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
23374 no_event to NO_EVENT.
23375
23376 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23377
23378 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
23379
23380 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
23381
23382 * intervals.c (textget): Don't forget to `return'.
23383 (lookup_char_property): Use XCAR/XCDR.
23384
23385 2002-06-12 Juanma Barranquero <lektu@terra.es>
23386
23387 * xdisp.c (Fformat_mode_line): Fix typo.
23388
23389 2002-06-12 Kim F. Storm <storm@cua.dk>
23390
23391 * xdisp.c (Fformat_mode_line): New function.
23392 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
23393 (store_frame_title_char, store_frame_title): Use unconditionally.
23394 (init_xdisp): Defsubr Fformat_mode_line.
23395 Initialize frame_title_buf etc. unconditionally.
23396
23397 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
23398
23399 * keyboard.c (read_key_sequence):
23400 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
23401 things through those maps after downcasing events.
23402 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
23403 applies after function-key-map.
23404 Make sure that keytran can be done in the middle in the sequence.
23405 Be careful not to throw away events past the one we downcase.
23406
23407 * lread.c (read_integer): Remove unused var `tem'.
23408 (read1): Fix int/Lisp_Object mixup.
23409
23410 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
23411
23412 2002-06-11 Richard M. Stallman <rms@gnu.org>
23413
23414 * keyboard.c (readable_events): Ignore any number of
23415 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
23416
23417 2002-06-09 Miles Bader <miles@gnu.org>
23418
23419 * xfaces.c (Ftty_supports_face_attributes_p): New function.
23420 (parse_rgb_list, tty_lookup_color): New functions.
23421 (tty_defined_color): Use `tty_lookup_color' to do all the work.
23422 (color_distance, Fcolor_distance): New functions.
23423 (TTY_SAME_COLOR_THRESHOLD): New macro.
23424 (Qtty_color_standard_values): New variable.
23425 (syms_of_xfaces): Initialize new vars & functions.
23426
23427 2002-06-08 Colin Walters <walters@verbum.org>
23428
23429 * textprop.c (Vchar_property_alias_alist): New variable.
23430 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
23431
23432 * intervals.c (lookup_char_property): New function for looking up
23433 overlay and text properties, created from textget.
23434 (textget): Use it.
23435
23436 * intervals.h (lookup_char_property): Declare.
23437 (Vchar_property_alias_alist): Declare.
23438
23439 * buffer.c (Foverlay_get): Use lookup_char_property.
23440
23441 2002-06-07 Sam Steingold <sds@gnu.org>
23442
23443 * xselect.c (lisp_data_to_selection_data): Fix last change:
23444 *data_ret is not a Lisp string, while unibyte_string is.
23445
23446 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
23447
23448 * xselect.c (lisp_data_to_selection_data): Fix last change:
23449 set size_ret.
23450
23451 2002-06-07 Andreas Schwab <schwab@suse.de>
23452
23453 * m/amdx86-64.h: New file.
23454
23455 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
23456
23457 * fns.c (Fstring_make_unibyte): Doc fix.
23458
23459 * xselect.c (lisp_data_to_selection_data): If the requested type
23460 is STRING, call string_make_unibyte to encode the selected text
23461 as a string.
23462
23463 * window.c (Fset_window_hscroll): Doc fix.
23464
23465 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23466
23467 * fileio.c (choose_write_coding_system):
23468 Call select-safe-coding-system properly.
23469
23470 2002-06-03 Richard M. Stallman <rms@gnu.org>
23471
23472 * xdisp.c (message_with_string): Error if STRING is not a string.
23473
23474 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
23475
23476 * fileio.c (choose_write_coding_system): Pass FILE arg to
23477 Vselect_safe_coding_system_function.
23478
23479 2002-06-03 Ken Raeburn <raeburn@gnu.org>
23480
23481 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
23482
23483 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
23484
23485 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
23486 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
23487 * keymap.c (describe_command): Likewise.
23488 * minibuf.c (read_minibuf): Likewise.
23489
23490 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
23491 Cast `current_column' return value to int.
23492 (back_to_previous_visible_line_start)
23493 (reseat_at_next_visible_line_start, next_element_from_buffer):
23494 Cast `indented_beyond_p' 3rd arg to float.
23495
23496 * indent.c (last_known_column): Now a float.
23497 (current_column_1, position_indentation, current_column)
23498 (string_display_width): Return float.
23499 (Fcurrent_column): Cast `current_column' return value to int.
23500 (Fcurrent_indentation): Cast `position_indentation' retval to int.
23501 (indented_beyond_p): Third arg now a float.
23502 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
23503
23504 * lisp.h (current_column): Now returns float.
23505 (indented_beyond_p): 3rd arg now a float.
23506
23507 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
23508
23509 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
23510 is Qcompound_text_with_extensions.
23511
23512 * xselect.c (lisp_data_to_selection_data): Always set selection
23513 type as string if x_encode_text returns streingp non-NULL.
23514
23515 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
23516
23517 2002-05-30 Richard M. Stallman <rms@gnu.org>
23518
23519 * window.c (Fset_window_configuration): Correct the handling
23520 of point in current buffer, to work with multiple windows.
23521
23522 2002-05-29 Colin Walters <walters@verbum.org>
23523
23524 * lread.c (Fread_from_string): Don't depend on order of evaluation
23525 for C function parameters.
23526
23527 2002-05-28 Richard M. Stallman <rms@gnu.org>
23528
23529 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
23530 way for blinked-off state and for a nonselected window.
23531
23532 * window.c (window_scroll_pixel_based): Don't call Fbolp;
23533 instead, see if the new start pos is at beginning of line.
23534
23535 * fileio.c (Fwrite_region): If START is a string, don't
23536 make any annotations.
23537
23538 * eval.c (syms_of_eval): Doc fix.
23539
23540 2002-05-28 Colin Walters <walters@debian.org>
23541
23542 * emacs.c (USAGE1): Add --no-splash.
23543 (standard_args): Ditto.
23544
23545 2002-05-28 Colin Walters <walters@gnu.org>
23546
23547 * lread.c (readchar_count): New variable.
23548 (readchar): Increment it.
23549 (unreadchar): Decrement it.
23550 (read_multibyte): Decrement it.
23551 (Vread_with_symbol_positions): New variable.
23552 (Vread_symbol_positions_list): New variable.
23553 (read_internal_start): New function, created from Fread and
23554 Fread_from_string. Handle Vread_symbol_positions_list and
23555 Vread_with_symbol_positions.
23556 (readevalloop, Fread, Fread_from_string): Use it.
23557 (read1): Use readchar_count to add symbol positions to
23558 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
23559 (syms_of_lread): DEFVAR_LISP and initialize them.
23560
23561 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
23562 (substitute_object_recurse, substitute_object_in_subtree)
23563 (substitute_in_interval): Prototype.
23564 (read_multibyte): Return c if it's less than zero.
23565
23566 2002-05-28 Kim F. Storm <storm@cua.dk>
23567
23568 * fileio.c (Fread_file_name_internal): Added brute-force
23569 speed up for using predicate file-directory-p.
23570
23571 2002-05-28 Kim F. Storm <storm@cua.dk>
23572
23573 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
23574 New variables.
23575 (syms_of_fileio): DEFVAR_LISP them.
23576 (read_file_name_cleanup): New unwind function.
23577 (Fread_file_name_internal): Only return completions satifying
23578 Vread_file_name_predicate. Temporarily unwind protect and rebind
23579 default-directory while checking completions against the predicate.
23580 (Fread_file_name): Added PREDICATE argument. Specbind it to
23581 Vread_file_name_predicate during completion.
23582 Call Vread_file_name_function to read the file name if non-nil.
23583
23584 * lisp.h (Fread_file_name): Now has 6 args.
23585
23586 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
23587 predicate for Fread_file_name when reading directory name.
23588 Supply Qnil for predicate in other calls to Fread_file_name.
23589
23590 2002-05-26 Miles Bader <miles@gnu.org>
23591
23592 * term.c (tty_capable_p): New function.
23593 * dispextern.h (tty_capable_p): New function declaration.
23594 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
23595 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
23596
23597 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
23598
23599 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
23600 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
23601 (Vwrite_region_annotate_functions): Docstring fix.
23602
23603 2002-05-23 Kim F. Storm <storm@cua.dk>
23604
23605 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
23606 phys_cursor's hpos is overwritten. This is still not completely
23607 correct, as it doesn't really make sense to use hpos at all to
23608 get the cursor glyph (as that is relative to the width of the
23609 characters on the line, which may have changed during the update).
23610
23611 2002-05-22 Jason Rumney <jasonr@gnu.org>
23612
23613 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
23614 Lisp_Object.
23615 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
23616 Use modified enumfont_t struct.
23617
23618 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
23619
23620 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
23621 Handle the `hbar' cursor type.
23622 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23623
23624 * w32fns.c (Qhbar): New variable.
23625 (x_specified_cursor_type): Use it.
23626
23627 2002-05-21 Ken Raeburn <raeburn@gnu.org>
23628
23629 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
23630 now, when the address is needed.
23631
23632 2002-05-21 Colin Walters <walters@gnu.org>
23633
23634 * Makefile.in (shortlisp): Add font-core.el.
23635
23636 2002-05-20 Richard M. Stallman <rms@gnu.org>
23637
23638 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
23639
23640 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
23641 equivalent key bindings here.
23642
23643 2002-05-20 Ken Raeburn <raeburn@gnu.org>
23644
23645 Change symbol structure to contain a lisp object for the symbol
23646 name:
23647 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
23648 object field named "xname".
23649 (SYMBOL_NAME): New macro.
23650 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
23651 name field.
23652 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
23653 (mark_object, gc_sweep): Use symbol xname field and XSTRING
23654 instead of name field.
23655 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
23656 SYMBOL_NAME instead of XSYMBOL and name field.
23657 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
23658 instead of XSYMBOL and name field.
23659 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
23660 and SYMBOL_NAME instead of XSYMBOL and name field.
23661 * coding.c (Fread_coding_system, code_convert_region1)
23662 (code_convert_string1, code_convert_string_norecord)
23663 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
23664 XSYMBOL and name field.
23665 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
23666 (Fmake_variable_buffer_local, Fmake_local_variable)
23667 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
23668 of XSYMBOL and name field.
23669 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
23670 XSYMBOL and name field.
23671 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
23672 instead of XSYMBOL and name field.
23673 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
23674 XSYMBOL and name field.
23675 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
23676 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23677 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
23678 instead of XSYMBOL and name field.
23679 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
23680 (parse_modifiers, apply_modifiers, Fevent_convert_list)
23681 (parse_solitary_modifier, Fexecute_extended_command):
23682 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23683 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
23684 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
23685 of XSYMBOL and name field.
23686 (describe_command, describe_translation): Use SYMBOL_NAME and
23687 assignment instead of XSYMBOL and name field and XSETSTRING.
23688 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
23689 instead of XSYMBOL and name field.
23690 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
23691 name field and XSETSTRING.
23692 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23693 of XSYMBOL and name field.
23694 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
23695 assignment instead of XSYMBOL and name field and XSETSTRING.
23696 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
23697 XSTRING instead of XSYMBOL and name field.
23698 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
23699 and XSTRING instead of XSYMBOL and name field.
23700 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
23701 and XSTRING instead of XSYMBOL and name field.
23702 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
23703 XSTRING instead of XSYMBOL and name field.
23704 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23705 of XSYMBOL and name field.
23706 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
23707 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23708
23709 2002-05-19 Ken Raeburn <raeburn@gnu.org>
23710
23711 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
23712 and XCDR real rvalues in most configurations.
23713
23714 * buffer.c (fix_overlays_in_range, fix_overlays_before):
23715 Don't take the address of the cdr part of a cons cell; instead, track
23716 the parent cell and call XSETCDR, or set the variable for the head
23717 of the list if we haven't started down the list yet.
23718
23719 2002-05-19 Richard M. Stallman <rms@gnu.org>
23720
23721 * doc.c (reread_doc_file): Don't ask for confirmation.
23722
23723 2002-05-18 Jason Rumney <jasonr@gnu.org>
23724
23725 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
23726 (xbm_load_image): Use it.
23727 (xbm_load): Ditto.
23728 (xbm_read_bitmap_data): Reverted to xfns.c version.
23729 From David Ponce <david@dponce.com>.
23730
23731 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
23732
23733 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
23734 2.02 and later.
23735
23736 2002-05-16 Juanma Barranquero <lektu@terra.es>
23737
23738 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
23739
23740 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
23741
23742 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
23743 meaningful test.
23744 (read_char_minibuf_menu_prompt): Fix typo.
23745
23746 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
23747
23748 * eval.c (Fcommandp): Doc fix.
23749
23750 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
23751
23752 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
23753 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
23754 (Fset_keymap_parent): Gcpro a bit more.
23755 (access_keymap): Gcpro around meta_map call and around the main loop.
23756 (get_keyelt): Gcpro when following indirect references.
23757 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
23758 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
23759 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
23760 Remove useless ad-hoc remap code.
23761
23762 2002-05-13 Richard M. Stallman <rms@gnu.org>
23763
23764 * search.c (search_buffer): Give up boyer moore search if inverse
23765 translation change charset_base.
23766
23767 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
23768
23769 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
23770 characters is carried over from the previous block of text, adjust
23771 coding->produced to account for the extra character.
23772
23773 2002-05-11 Andreas Schwab <schwab@suse.de>
23774
23775 * coding.c (intersection): Keep the elements of the returned list
23776 in the same order as in the first list.
23777
23778 2002-05-11 Kim F. Storm <storm@cua.dk>
23779
23780 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
23781 only update cmm_size if realloc actually succeeds.
23782 Testing with initial size of 2 elements revealed that using
23783 realloc on GNU/Linux would cause a random trap in xmalloc
23784 later on, so I rewrote the code to use malloc/bcopy/free instead
23785 of realloc.
23786
23787 2002-05-10 Jason Rumney <jasonr@gnu.org>
23788
23789 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
23790
23791 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
23792
23793 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
23794 parens, to ensure correct evaluation order.
23795
23796 2002-05-10 Kim F. Storm <storm@cua.dk>
23797
23798 * keymap.c (Vemulation_mode_map_alists): New variable.
23799 (syms_of_keymap): DEFVAR_LISP it.
23800 (current_minor_maps): Process keymap alists in that list before
23801 minor-mode-overriding-map-alist and minor-mode-map-alist.
23802
23803 2002-05-09 Richard M. Stallman <rms@gnu.org>
23804
23805 * search.c (Freplace_match): Doc fix.
23806
23807 2002-05-09 Kim F. Storm <storm@cua.dk>
23808
23809 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23810 Enlarge cursor rectangle drawn around image with non-zero relief.
23811
23812 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
23813 Enlarge cursor rectangle drawn around image with non-zero relief.
23814
23815 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23816 Enlarge cursor rectangle drawn around image with non-zero relief.
23817
23818 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
23819
23820 * xselect.c (lisp_data_to_selection_data): Don't set selection
23821 type if comes from the Lisp object's car. If the selection
23822 contains a pure ASCII text, always return QSTRING as its type.
23823
23824 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23825
23826 * mac.c (mac-cut-function): Doc fix.
23827
23828 2002-05-05 Richard M. Stallman <rms@gnu.org>
23829
23830 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
23831
23832 2002-05-04 Jason Rumney <jasonr@gnu.org>
23833
23834 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
23835 for event-click-count.
23836
23837 * process.c (init_process): Only add server subfeature if we can
23838 use non-blocking I/O.
23839
23840 2002-05-04 Andrew Choi <akochoi@shaw.ca>
23841
23842 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
23843 repeatedly.
23844
23845 2002-05-03 Jason Rumney <jasonr@gnu.org>
23846
23847 * process.c (Fmake_network_process): Only support server sockets
23848 when we can make them non-blocking.
23849
23850 * s/ms-w32.h (HAVE_SELECT): Define.
23851
23852 * w32.h (FILE_NDELAY): New flag.
23853
23854 * w32.c (sys_getpeername, fcntl): New functions.
23855 (_sys_read_ahead): Temporarily block on non-blocking sockets.
23856
23857 * w32proc.c: Include sys/file.h.
23858
23859 2002-05-03 Colin Walters <walters@verbum.org>
23860
23861 * callproc.c (Vgame_score_directory): Renamed to
23862 Vshared_game_score_directory.
23863
23864 2002-04-30 Richard M. Stallman <rms@gnu.org>
23865
23866 * s/gnu.h [emacs]: Include stdio.h.
23867 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
23868
23869 * eval.c (do_autoload): Error if called while preparing to dump.
23870
23871 * fns.c (Frequire): Error if need to load while preparing to dump.
23872
23873 2002-04-28 Colin Walters <walters@verbum.org>
23874
23875 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
23876 Default to "~/.emacs.d/games".
23877
23878 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
23879
23880 * lread.c (openp): Change arg exec_only to predicate.
23881 (build_load_history): Use XCAR/XCDR.
23882 (Flocate_file_internal): New fun.
23883 (syms_of_lread): Defsubr it.
23884 (Fload): Update call to openp.
23885
23886 * lisp.h (openp): Update prototype.
23887
23888 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
23889 * w32proc.c (sys_spawnve):
23890 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
23891 * w32.c (check_windows_init_file):
23892 * sound.c (Fplay_sound_internal):
23893 * process.c (Fstart_process):
23894 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
23895 * mac.c (run_mac_command):
23896 * emacs.c (init_cmdargs):
23897 * callproc.c (Fcall_process): Update call to openp.
23898
23899 * textprop.c (remove_properties): Don't use XCAR without CONSP.
23900
23901 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
23902
23903 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23904
23905 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
23906 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
23907
23908 2002-04-28 Richard M. Stallman <rms@gnu.org>
23909
23910 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
23911
23912 * eval.c (Fcommandp): New arg for_call_interactively.
23913 * lisp.h (Fcommandp): Declare new arg.
23914
23915 2002-04-28 Jason Rumney <jasonr@gnu.org>
23916
23917 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
23918
23919 * w32.c (stat, fstat): Use file index information to generate
23920 inodes for directories where available.
23921
23922 2002-04-26 Andrew Choi <akochoi@shaw.ca>
23923
23924 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
23925 [HAVE_CARBON]: Include Mac object files.
23926
23927 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
23928 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
23929 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
23930 MAC_OSX, and MAC_OS instead of macintosh.
23931
23932 * editfns.c [MAC_OS8]: Include stdio.h.
23933
23934 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
23935
23936 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
23937 Apple Monaco.
23938
23939 * process.c (QCfamily, QCfilte): Declare extern.
23940 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
23941 calling select.
23942
23943 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
23944
23945 * tparam.c [MAC_OSX]: Don't define BC and UP.
23946
23947 * config.in [HAVE_CARBON]: Add.
23948
23949 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
23950 Move here from mac/src and mac/inc.
23951
23952 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
23953
23954 2002-04-26 Gerd Moellmann <gerd@gnu.org>
23955
23956 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
23957 Compute phys_cursor_width from the x position returned
23958 by x_draw_glyhs, which is cheaper.
23959 (x_display_and_set_cursor): Compute the buffer-local value
23960 of `cursor-in-non-selected-windows' only when needed.
23961
23962 2002-04-25 Gerd Moellmann <gerd@gnu.org>
23963
23964 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
23965 cursor on a stretch glyph has a width that depends on
23966 x_stretch_cursor_p.
23967
23968 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23969
23970 * abbrev.c (abbrev-start-location): Doc fix.
23971
23972 * indent.c (Fvertical_motion): Fix last change.
23973
23974 2002-04-25 Gerd Moellmann <gerd@gnu.org>
23975
23976 * indent.c (Fvertical_motion): Move to the start of the line
23977 containing PT before moving up or down.
23978
23979 2002-04-24 Gerd Moellmann <gerd@gnu.org>
23980
23981 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
23982 case of writing a whole row, more or less analogous to the case of
23983 writing only parts of a row.
23984
23985 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
23986 0 for NO_CURSOR.
23987
23988 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
23989
23990 2002-04-23 Colin Walters <walters@verbum.org>
23991
23992 * buffer.c (syms_of_buffer): Doc fix.
23993
23994 2002-04-23 Gerd Moellmann <gerd@gnu.org>
23995
23996 * xterm.c (notice_overwritten_cursor): Handle the special case
23997 of the cursor being in the first blank non-text line at the
23998 end of a window.
23999
24000 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
24001 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
24002 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
24003 bar cursors only, to make phys_cursor_width contain what its name
24004 suggests.
24005 (notice_overwritten_cursor): Consider the cursor image erased if
24006 the output area intersects the cursor image in y-direction.
24007
24008 2002-04-23 Simon Marshall <simon@gnu.org>
24009
24010 * xfns.c (x_set_mouse_color): Change default for cross_cursor
24011 to XC_hand2.
24012
24013 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24014
24015 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
24016
24017 2002-04-22 Kim F. Storm <storm@cua.dk>
24018
24019 * textprop.c (remove_properties): Fixed trap for malformed plist.
24020
24021 2002-04-22 Richard M. Stallman <rms@gnu.org>
24022
24023 * cmds.c (Fend_of_line): Handle intangible text in mid line.
24024
24025 * window.c (make_window): Initialize height_fixed_p,
24026 last_cursor_off_p, and p->cursor_off_p slots.
24027
24028 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24029
24030 * fns.c (use-dialog-box): Doc fix.
24031
24032 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24033
24034 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
24035 variables `row', `i' and `area'.
24036 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
24037 toolkit library.
24038
24039 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
24040
24041 * xfaces.c (clear_font_table): Don't free the default font of
24042 a frame even if it's on another display.
24043 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
24044 that could be Qt.
24045
24046 2002-04-19 Juanma Barranquero <lektu@terra.es>
24047
24048 * indent.c (Fmove_to_column): Remove unused local variable
24049 `next_boundary_byte'.
24050 (current_column_1): Likewise.
24051
24052 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
24053
24054 * msdos.c (Qhbar): New variable.
24055 (syms_of_msdos): Intern and staticpro it.
24056 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
24057 cursor type.
24058
24059 2002-04-19 Dave Lambert <dlambert@acm.org>
24060
24061 Theses change implement an underscore-like (`hbar') cursor.
24062
24063 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
24064
24065 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
24066 Handle the `hbar' cursor type.
24067 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
24068
24069 * xfns.c (Qhbar): New variable.
24070 (syms_of_xfns): Intern and staticpro it.
24071 (x_specified_cursor_type): Handle `hbar' cursor.
24072
24073 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
24074 not defined.
24075
24076 2002-04-18 Richard M. Stallman <rms@gnu.org>
24077
24078 * textprop.c (remove_properties): New arg LIST allows scanning
24079 either a list or a plist.
24080 (interval_has_some_properties_list): New function, like
24081 interval_has_some_properties using list instead of plist.
24082 All callers changed.
24083 (Fremove_list_of_text_properties): New function.
24084 (syms_of_textprop): Defsubr it.
24085
24086 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
24087
24088 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
24089
24090 2002-04-17 Juanma Barranquero <lektu@terra.es>
24091
24092 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
24093
24094 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
24095
24096 * window.c (coordinates_in_window): Don't report on margin area
24097 if its width is zero.
24098
24099 2002-04-16 Jason Rumney <jasonr@gnu.org>
24100
24101 * w32fns.c (Fx_file_dialog): Decode file name before using.
24102
24103 * w32term.c (construct_drag_n_drop): Likewise.
24104
24105 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
24106
24107 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
24108 store load-history in pure space.
24109
24110 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
24111
24112 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
24113
24114 * xterm.c (Qlatin_1, Qutf_8): New vars.
24115 (syms_of_xterm): Initialize them.
24116 (XTread_socket): Eliminate incorrect optimization that tried to avoid
24117 decoding the output of X*LookupString.
24118 Always use latin-1 to decode the output of XLookupString.
24119 Try Xutf8LookupString if XmbLookupString failed.
24120
24121 * region-cache.c (new_region_cache): Use BEG.
24122
24123 2002-04-16 Gerd Moellmann <gerd@gnu.org>
24124
24125 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
24126 configuration files.
24127 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
24128 returns 0.
24129
24130 2002-04-15 Andreas Schwab <schwab@suse.de>
24131
24132 * config.in: Regenerated using autoheader.
24133
24134 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
24135 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
24136 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
24137 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
24138 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
24139 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
24140 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
24141 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
24142 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
24143 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
24144 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
24145 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
24146 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
24147 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
24148 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
24149 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
24150 STACK_DIRECTION, now set by autoconf.
24151
24152 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24153
24154 * dispnew.c (marginal_area_string): Sort arguments.
24155
24156 * dispextern.h (marginal_area_string): Add prototype.
24157
24158 2002-04-13 Richard M. Stallman <rms@gnu.org>
24159
24160 * fileio.c (Finsert_file_contents):
24161 Don't call temp_output_buffer_setup--do just part, by hand.
24162
24163 * coding.c (run_pre_post_conversion_on_str):
24164 Don't call temp_output_buffer_setup--do just part, by hand.
24165
24166 * keyboard.c (command_loop_1): Don't call start_hourglass
24167 or cancel_hourglass when executing a macro.
24168
24169 * marker.c (count_markers): New function.
24170
24171 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
24172 grow without limit. Move recently used elements to the front.
24173
24174 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
24175
24176 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
24177
24178 2002-04-12 Gerd Moellmann <gerd@gnu.org>
24179
24180 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
24181 rows marginal areas.
24182 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
24183 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
24184
24185 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
24186
24187 2002-04-12 Dave Love <fx@gnu.org>
24188
24189 * dispnew.c (marginal_area_string): New.
24190
24191 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
24192 (Qleft_margin, Qright_margin): Declare.
24193 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
24194
24195 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
24196 note_mode_line_highlight and extended.
24197
24198 * keyboard.c (Qleft_margin, Qright_margin): Declare.
24199 (make_lispy_event): Deal with mouse events in margins.
24200
24201 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
24202
24203 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
24204
24205 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
24206 than deactivating the mark if tmm is set to `lambda'.
24207 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
24208 Use a single event for HELP_EVENT.
24209 (Fexecute_extended_command): Save last_point_position.
24210
24211 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24212
24213 * lisp.h (Fpropertize): Add prototype.
24214
24215 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
24216
24217 2002-04-10 Colin Walters <walters@verbum.org>
24218
24219 * config.in: Add HAVE_SHARED_GAME_DIR.
24220
24221 * callproc.c (Vgame_score_directory): New variable.
24222 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
24223
24224 2002-04-10 Richard M. Stallman <rms@gnu.org>
24225
24226 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
24227
24228 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
24229
24230 * minibuf.c (read_minibuf): Use empty_string.
24231 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
24232 Short-circuit the search as soon as it "failed".
24233 (Fall_completions): Allow lambda forms and lists of strings for alist.
24234 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
24235 when require_match is nil.
24236 (Ftest_completion): Rename from `test_completion' and export to elisp.
24237 Call the predicate also when alist is a list.
24238 Obey Vcompletion_regexp_list.
24239 (do_completion, Fminibuffer_complete_and_exit): Use it.
24240 (Fassoc_string): Rename from `assoc_for_completion'.
24241 Allow list of strings as well and export to elisp.
24242
24243 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
24244
24245 * puresize.h (BASE_PURESIZE): Increase to 900KB.
24246
24247 2002-04-08 Juanma Barranquero <lektu@terra.es>
24248
24249 * w32.c (sys_accept): Don't hide variable `s'.
24250
24251 2002-04-05 Gerd Moellmann <gerd@gnu.org>
24252
24253 * callint.c (Fcall_interactively): Use INTEGERP instead of
24254 NUMBERP for checking Vhistory_length.
24255
24256 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24257
24258 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
24259 Doc fix to reflect it.
24260
24261 2002-04-04 Richard M. Stallman <rms@gnu.org>
24262
24263 * xdisp.c (display_mode_element): New arg RISKY.
24264 Disregard text props found or specified within a variable
24265 that isn't marked risky-local-variable.
24266 (Qrisky_local_variable): New variable.
24267 (syms_of_xdisp): Init and staticpro it.
24268
24269 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
24270
24271 * undo.c (record_point): New fun.
24272 (record_delete, record_insert): Use it.
24273
24274 2002-04-03 Juanma Barranquero <lektu@terra.es>
24275
24276 * doc.c (Fdocumentation): Add missing parentheses.
24277 (Fdocumentation_property): Likewise.
24278
24279 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
24280
24281 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
24282 data is 0, just return nil.
24283
24284 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
24285
24286 * msdos.c (syms_of_msdos): Fix last change with
24287 mouse_autoselect_window.
24288
24289 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24290
24291 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
24292 mouse_autoselect_window.
24293
24294 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
24295
24296 * keyboard.c (make_lispy_event): Handle unknown keysyms together
24297 with system-specific keysyms. Use it also for unknown function keys.
24298
24299 * doc.c (reread_doc_file): Return whether reload was attempted.
24300 (Fdocumentation, Fdocumentation_property): Don't try to reload
24301 if the doc is 0 and only ask once.
24302
24303 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
24304
24305 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
24306
24307 * keyboard.c (read_char): If the event was Qselect_window,
24308 restore timer_idleness_start_time to its previous value.
24309
24310 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
24311
24312 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
24313
24314 * region-cache.c (new_region_cache): Use BEG.
24315
24316 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
24317 Use BEG and BEG_BYTE.
24318
24319 * doc.c (get_doc_string): Return nil if the location is wrong.
24320 (reread_doc_file): New fun.
24321 (Fdocumentation, Fdocumentation_property):
24322 Call it if get_doc_string fails.
24323 (Fsnarf_documentation): Make it work for a dumped Emacs.
24324
24325 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
24326 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
24327
24328 * charset.c (Fstring): Allow 0 arguments.
24329
24330 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
24331
24332 * process.c (DATAGRAM_CONN_P, list_processes_1)
24333 (Fprocess_datagram_address, Fset_process_datagram_address)
24334 (Fset_network_process_options, server_accept_connection):
24335 Fix some int/Lisp_Object confusions (thank you union types).
24336
24337 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24338
24339 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
24340
24341 * w32term.c: Likewise.
24342 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
24343
24344 * keyboard.c (Qselect_window): New symbol.
24345 (head_table): Use it.
24346 (keys_of_keyboard): Bound select-window event to handle-select-window.
24347 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
24348
24349 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
24350 (last_window): New variable.
24351 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
24352 (note_mouse_movement): Remove reimplemented code in #if 0.
24353 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
24354 Emacs windows.
24355
24356 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
24357
24358 2002-03-31 Gerd Moellmann <gerd@gnu.org>
24359
24360 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
24361 Callers changed.
24362
24363 2002-03-30 Richard M. Stallman <rms@gnu.org>
24364
24365 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
24366 loop whenever it stops making progress.
24367
24368 * widget.c (set_frame_size): Don't call change_frame_size.
24369
24370 2002-03-30 Gerd Moellmann <gerd@gnu.org>
24371
24372 * dispnew.c (direct_output_for_insert):
24373 Call mark_window_display_accurate.
24374
24375 2002-03-29 Jason Rumney <jasonr@gnu.org>
24376
24377 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
24378
24379 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
24380
24381 * Makefile.in (lread.o): Depend on coding.h.
24382
24383 * lread.c (openp, Fload): Encode the file name before passing it
24384 to `stat', `access', and `emacs_open'.
24385 (openp): GCPRO the encoded file name. Don't recompute Lisp
24386 strings unnecessarily.
24387
24388 2002-03-29 Kim F. Storm <storm@cua.dk>
24389
24390 * fns.c (Flax_plist_put): Doc fix.
24391
24392 2002-03-28 Miles Bader <miles@gnu.org>
24393
24394 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
24395
24396 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24397
24398 * process.c (set-network-process-options): Add usage.
24399 (make-network-process): Doc fix.
24400
24401 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
24402
24403 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
24404
24405 2002-03-26 Richard M. Stallman <rms@gnu.org>
24406
24407 * fns.c (Fsubstring_no_properties): New function.
24408 (Flax_plist_get, Flax_plist_put): New functions.
24409 (syms_of_fns): defsubr them.
24410
24411 * xdisp.c (update_menu_bar): Test only update_mode_lines;
24412 don't test or alter w->update_mode_line.
24413
24414 * window.c (Fdisplay_buffer): Doc fix.
24415
24416 2002-03-24 Richard M. Stallman <rms@gnu.org>
24417
24418 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
24419
24420 2002-03-24 Gerd Moellmann <gerd@gnu.org>
24421
24422 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
24423 (Fdefmacro): Handle `(declare ...)'.
24424 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
24425 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
24426
24427 2002-03-24 Jason Rumney <jasonr@gnu.org>
24428
24429 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
24430 (xbm_file_p): Add prototypes.
24431 (xbm_format, xbm_image_p): Sync with xfns.c.
24432 (reflect_byte): New function.
24433 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
24434 (xbm_load_image): Create bitmaps with a depth of 1.
24435 (init_xfns): Enable XBM images.
24436
24437 2002-03-23 Jason Rumney <jasonr@gnu.org>
24438
24439 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
24440 correctly. Do not pass up_modifier to keyboard buffer.
24441
24442 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
24443
24444 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
24445
24446 * Makefile.in (bootstrapclean): New target.
24447 (bootstrap-temacs, bootstrap-doc): Remove.
24448 (bootstrap-emacs): Use a bog-standard `temacs'.
24449 Don't bother to build a DOC file.
24450
24451 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
24452
24453 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
24454 in temacs even if !CANNOT_DUMP.
24455 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
24456
24457 * alloc.c (check_pure_size): Only output a warning.
24458
24459 2002-03-22 Jason Rumney <jasonr@gnu.org>
24460
24461 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
24462 supported.
24463
24464 * w32term.c (zv_bits): Declare as short, for word alignment.
24465 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
24466 (syms_of_w32term): Define x-use-underline-position-properties.
24467
24468 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
24469 (clear_image_cache): Block input, fix logic, clear matrices in
24470 all frames that share this cache.
24471
24472 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
24473
24474 * emacs.c (main): Update the Copyright year in the blurb printed
24475 by "emacs --version".
24476
24477 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
24478
24479 * xterm.c (XTread_socket): If XK_ISO_Lock and
24480 XK_ISO_Last_Group_Lock are defined, handle keysyms between
24481 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
24482
24483 2002-03-21 Kim F. Storm <storm@cua.dk>
24484
24485 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
24486 menu-bar bindings in keymap and local-map properties _are_ used.
24487 But try keymap property first in accordance with 2002-01-03 patch.
24488 Added comment describing why this is not always reliable.
24489 (tool_bar_items): Ditto for tool-bar.
24490
24491 2002-03-21 Jason Rumney <jasonr@gnu.org>
24492
24493 * w32fns.c (x_clear_image_1): Disable color table code.
24494
24495 2002-03-21 Kim F. Storm <storm@cua.dk>
24496
24497 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
24498 removed the wrong version of the DEFUN macro; fixed it.
24499
24500 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
24501 Fmember rather than Fmemq).
24502 (Fprovide): Check that subfeatures is a list.
24503
24504 * process.c (QCfeature, QCdatagram): Removed variables.
24505 (QCtype, Qdatagram): New variables.
24506 (network_process_featurep): Removed function.
24507 (Fmake_network_process): Removed :feature check.
24508 Use :type 'datagram instead of :datagram t to create a datagram
24509 socket. This allows us to add other connection types (e.g. raw
24510 sockets) later in a consistent manner.
24511 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
24512 supported subfeatures for feature make-network-process.
24513 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
24514 Intern and staticpro QCtype and Qdatagram.
24515 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
24516
24517 * xfns.c (QCtype): Remove duplicate declaration and
24518 initialization (is now declared in process.c).
24519
24520 * w32fns.c (QCtype): Remove duplicate declaration and
24521 initialization (is now declared in process.c).
24522
24523 2002-03-21 Richard M. Stallman <rms@gnu.org>
24524
24525 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
24526 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
24527 when jumping to `fail' to avoid undoing reg changes in the
24528 last iteration of the loop.
24529 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
24530
24531 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
24532 Depend on process.h.
24533
24534 2002-03-20 Jason Rumney <jasonr@gnu.org>
24535
24536 Most of the following changes are still conditional on HAVE_IMAGES
24537 which is not set by default on Windows.
24538
24539 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
24540
24541 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
24542 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
24543 (four_corners_best, x_clear_image_1, x_clear_image)
24544 (x_alloc_image_color, postprocess_image)
24545 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
24546 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
24547 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
24548
24549 * w32gui.h (struct XImage): Define.
24550
24551 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
24552 extract mouse co-ordinates.
24553
24554 2002-03-20 Jason Rumney <jasonr@gnu.org>
24555
24556 * w32.c (init_winsock): Dynamically load new server and UDP
24557 socket functions.
24558 (socket_to_fd): New function.
24559 (sys_socket): Use it.
24560 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
24561 (sys_recvfrom, sys_sendto): New wrapper functions.
24562
24563 * process.c (QCfamily, QCfilter): Remove duplicate declaration
24564 and initialization.
24565
24566 * makefile.w32-in (LIBS): Remove $(WSOCK32).
24567
24568 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
24569
24570 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
24571 Don't use "sun" as a variable, it's a predefined constant on Sun
24572 machines.
24573
24574 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24575
24576 * bytecode.c (Fbyte_code): Revert last change.
24577
24578 2002-03-19 Kim F. Storm <storm@cua.dk>
24579
24580 * makefile.w32-in (LIBS): Add $(WSOCK32).
24581 From David Ponce <dponce@voila.fr>.
24582
24583 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24584
24585 * process.c (wait_reading_process_input): Move variables `pname'
24586 and `pnamelen' down where they are used.
24587
24588 * bytecode.c (Fbyte_code): Discard unused computed value to
24589 prevent gcc warning.
24590
24591 * lisp.h (Fplist_member): Add prototype.
24592
24593 2002-03-18 Kim F. Storm <storm@cua.dk>
24594
24595 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
24596 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
24597
24598 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
24599 Remove explicit GNU_LINUX settings for datagram support.
24600
24601 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24602
24603 * process.c (Fmake_network_process): Remove unused variable `sa'.
24604 Doc fix. Add usage:.
24605 (set_socket_options): Remove unused variables `optnum' and `opttype'.
24606
24607 2002-03-17 Richard M. Stallman <rms@gnu.org>
24608
24609 * xdisp.c (cursor_type_changed): New variable.
24610 (redisplay_internal): Redisplay all windows if cursor_type_changed.
24611 Clear it when clearing windows_or_buffers_changed.
24612 (try_cursor_movement, redisplay_window, try_window_id)
24613 (try_window_reusing_current_matrix): Test cursor_type_changed
24614 along with windows_or_buffers_changed.
24615
24616 * window.h (cursor_type_changed): New variable.
24617
24618 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
24619 not update_mode_lines, and always set it to 1.
24620
24621 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
24622 if no frames needed redrawing.
24623
24624 2002-03-17 Kim F. Storm <storm@cua.dk>
24625
24626 The following changes add support for network server processes,
24627 datagram connections, and local (unix) sockets.
24628
24629 * process.h (struct Lisp_Process): New member log.
24630 Doc fix: Member command used to indicate stopped network process.
24631 Doc fix: Member childp contains plist for network process.
24632 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
24633
24634 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
24635 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
24636 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
24637 variables.
24638 (NETCONN1_P): New macro.
24639 (DATAGRAM_SOCKETS): New conditional symbol.
24640 (datagram_address): New array.
24641 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
24642 (status_message): Use concat3.
24643 (Fprocess_status): Add `listen' status to doc string. Return
24644 `stop' for a stopped network process.
24645 (Fset_process_buffer): Update contact plist for network process.
24646 (Fset_process_filter): Ditto. Don't enable input for stopped
24647 network processes. Server must listen, even if filter is t.
24648 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
24649 New functions.
24650 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
24651 (Fprocess_contact): Added KEY argument. Handle datagrams.
24652 (list_processes_1): Optionally show only processes with the query
24653 on exit flag set. Dynamically adjust column widths. Omit tty
24654 column if not needed. Report stopped network processes. Identify
24655 server and datagram network processes.
24656 (Flist_processes): New optional arg `query-only'.
24657 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
24658 (conv_lisp_to_sockaddr, set_socket_options)
24659 (network_process_featurep, unwind_request_sigio): New helper
24660 functions.
24661 (Fprocess_datagram_address, Fset_process_datagram_address):
24662 (Fset_network_process_options): New lisp functions.
24663 (Fopen_network_stream): Removed. Now defined in simple.el.
24664 (Fmake_network_process): New lisp function. Code is based on
24665 previous Fopen_network_stream, but heavily reworked with new
24666 property list based argument list, support for datagrams, server
24667 processes, and local sockets in addition to old client-only
24668 functionality.
24669 (server_accept_connection): New function.
24670 (wait_reading_process_input): Use it to handle incoming connects.
24671 Do not enable input on a new connection if process is stopped.
24672 (read_process_output): Handle datagram sockets. Use 2k buffer for
24673 them.
24674 (send_process): Handle datagram sockets.
24675 (Fstop_process, Fcontinue_process): Apply to network processes. A
24676 stopped network process is indicated by setting command field to t.
24677 (Fprocess_send_eof): No-op if datagram connection.
24678 (Fstatus_notify): Don't read input for a stream server socket or a
24679 stopped network process.
24680 (init_process): Initialize datagram_address array.
24681 (syms_of_process): Intern and staticpro new variables, defsubr new
24682 functions.
24683
24684 2002-03-16 Jason Rumney <jasonr@gnu.org>
24685
24686 * w32fns.c (w32_to_all_x_charsets): Return correct type in
24687 startup case.
24688
24689 2002-03-16 Richard M. Stallman <rms@gnu.org>
24690
24691 * xdisp.c (redisplay_internal, redisplay_windows):
24692 Use list_of_error to call internal_condition_case_1.
24693 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
24694 so as to catch all errors with no possibility of debugger redisplay.
24695 (list_of_error): New variable.
24696 (syms_of_xdisp): Init and staticpro it.
24697
24698 * print.c (print_object): Delete `\ ' from printed rep of frame.
24699
24700 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
24701
24702 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
24703 until its implementation is fixed.
24704
24705 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24706
24707 * xfns.c (png_load): Remove unused variable `gamma_str'.
24708
24709 2002-03-14 Richard M. Stallman <rms@gnu.org>
24710
24711 * xfns.c (x_real_positions): Handle failure in XQueryTree.
24712
24713 2002-03-14 Miles Bader <miles@gnu.org>
24714
24715 * intervals.c (adjust_for_invis_intang): New function.
24716 (set_point_both): Use `adjust_for_invis_intang' to do most of the
24717 work for dealing with invisible+intangible regions. Do so before
24718 and after both forward and backward movements, to handle both
24719 front-sticky and rear-sticky cases.
24720 * textprop.c (text_property_stickiness): Function moved here from
24721 `editfns.c'.
24722 * intervals.h (text_property_stickiness): New declaration.
24723 * editfns.c (char_property_eq): Function removed.
24724 (text_property_stickiness): Function moved to `textprop.c'.
24725
24726 2002-03-13 Jason Rumney <jasonr@gnu.org>
24727
24728 * config.in: Add STRFTIME_NO_POSIX2.
24729
24730 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
24731 and %OX when underlying strftime does not.
24732
24733 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
24734
24735 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
24736 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
24737 line) to avoid annoying flicker.
24738 (xm_scroll_callback): Get rid of the now unnecessary kludge.
24739 (XTread_socket): Mark it static.
24740
24741 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
24742
24743 2002-03-13 Kim F. Storm <storm@cua.dk>
24744
24745 * puresize.h (BASE_PURESIZE): Increase to 775000.
24746
24747 2002-03-12 Juanma Barranquero <lektu@terra.es>
24748
24749 * editfns.c (syms_of_editfns): Fix typo.
24750
24751 2002-03-12 Gerd Moellmann <gerd@gnu.org>
24752
24753 * xsmfns.c: Include stdio.h because termhooks.h needs it.
24754 Include termopt.h for interrupt_input.
24755
24756 2002-03-11 Andreas Schwab <schwab@suse.de>
24757
24758 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
24759
24760 2002-03-11 Gerd Moellmann <gerd@gnu.org>
24761
24762 * xterm.c (note_mouse_movement): Put code for
24763 x_autoselect_window_p in #if 0.
24764
24765 * lread.c (Fload): Don't assume that message_with_string uses the
24766 string it is given like a C string.
24767
24768 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24769
24770 * xterm.h (x_session_check_input, x_session_initialize): Declare.
24771
24772 * xterm.c (XTread_socket): Add call to x_session_check_input and
24773 x_session_have_connection.
24774 (x_initialize): Add call to x_session_initialize.
24775
24776 * termhooks.h (enum event_kind): Add save_session_event.
24777
24778 * keyboard.c: Add Emacs event save_session_event.
24779
24780 * emacs.c (main): Add call to syms_of_xsmfns.
24781
24782 * lisp.h (syms_of_xsmfns): Declare extern.
24783
24784 * config.in: Add HAVE_X_SM.
24785
24786 * Makefile.in (LIBXT): Add -lSM -lICE
24787 if HAVE_X_SM and not USE_X_TOOLKIT.
24788 (XOBJ): New file xsmfns.c added.
24789
24790 * xsmfns.c: New file for X session management.
24791
24792 2002-03-09 Jason Rumney <jasonr@gnu.org>
24793
24794 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
24795 read-only when setting modified time.
24796
24797 2002-03-08 Gerd Moellmann <gerd@gnu.org>
24798
24799 * xdisp.c (move_it_vertically_backward): At the end of the function,
24800 when moving forward by lines, treat terminal frames specially.
24801
24802 * keyboard.c (echo_char): Make sure to add a separator between
24803 keys even if echo_dash hasn't been called.
24804
24805 * xdisp.c: Use new string macros.
24806 (update_echo_area): Pass number of bytes to message3 instead of
24807 number of chars.
24808 (set_message_1): Don't access a string's size_byte directly.
24809 (decode_mode_spec_coding): Use number of bytes of eoltype string
24810 instead number of chars.
24811
24812 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
24813
24814 2002-03-08 Juanma Barranquero <lektu@terra.es>
24815
24816 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
24817 24-bit.
24818
24819 2002-03-06 Jason Rumney <jasonr@gnu.org>
24820
24821 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
24822
24823 2002-03-06 Gerd Moellmann <gerd@gnu.org>
24824
24825 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
24826 (cancel_echoing, echo_length, echo_truncate): Changed to
24827 work with new kboard definition.
24828 (echo_now): Use message3_nolog instead of message2_nolog.
24829
24830 * alloc.c (mark_kboards): Mark echo_string.
24831
24832 * keyboard.h (ECHOBUFSIZE): Removed.
24833 (struct kboard): Member echoptr removed, member echobuf renamed
24834 to echo_string.
24835
24836 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
24837 message3 instead of message2 to display the message using STRING's
24838 text properties.
24839
24840 2002-03-05 Andreas Schwab <schwab@suse.de>
24841
24842 * xdisp.c (hscroll_margin): Change to EMACS_INT.
24843
24844 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
24845
24846 * frame.c (default-frame-alist): Explain that setting it doesn't
24847 affect existing frames.
24848
24849 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
24850
24851 * indent.c (skip_invisible): Fix my brain fart.
24852
24853 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
24854
24855 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
24856
24857 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
24858 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
24859 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
24860 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
24861 and variables to use EMACS_INT instead of just int.
24862
24863 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
24864
24865 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
24866
24867 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
24868 environment, pass it down with corrected value.
24869
24870 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24871
24872 * lread.c (read_filtered_event): Do not call start_hourglass
24873 before returning.
24874
24875 2002-03-04 Juanma Barranquero <lektu@terra.es>
24876
24877 * w32term.c (x_display_and_set_cursor): Fix typo.
24878
24879 2002-03-03 Richard M. Stallman <rms@gnu.org>
24880
24881 * fileio.c (Fmake_temp_name): Doc fix.
24882
24883 2002-03-03 Gary Wong <gtw@gnu.org>
24884
24885 * termcap.c [!emacs]: Replace ospeed for building standalone
24886 libtermcap, for binary compatibility.
24887
24888 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
24889
24890 2002-03-03 Richard M. Stallman <rms@gnu.org>
24891
24892 * xrdb.c (file_p): Rename arg `path' to `filename'.
24893
24894 * abbrev.c (Fexpand_abbrev): Increment plist as use count
24895 only if it is an integer.
24896
24897 * xfns.c (png_load): Set screen_gamma based on f->gamma.
24898 If png_get_sRGB gives an answer, call png_set_gamma
24899 using the default image gamma value.
24900
24901 * lread.c (read1): When reading from a file, default string to
24902 multibyte only if it has some multibyte characters.
24903
24904 * print.c (print_object): Output multibyte chars 128...255
24905 using \x even if ! print_escape_multibyte.
24906
24907 * xdisp.c (display_mode_element): Move the places where
24908 bytepos, charpos, this, and lisp_string are set.
24909 Use lisp_string to set bytepos.
24910
24911 * xdisp.c (redisplay_internal):
24912 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
24913
24914 * xdisp.c (display_mode_element): Merge properties specified with
24915 :propertize onto those that come with the string.
24916
24917 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
24918
24919 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
24920 automatic-hscrolling. Users changed.
24921 <hscroll-margin>: Renamed from automatic-hscroll-margin.
24922 Users changed.
24923 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
24924
24925 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
24926
24927 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
24928
24929 2002-03-02 Kim F. Storm <storm@cua.dk>
24930
24931 * window.c (Fminibuffer_selected_window): New function.
24932 (syms_of_window): Defsubr it.
24933
24934 2002-03-01 Kim F. Storm <storm@cua.dk>
24935
24936 * window.h (struct window): New member phys_cursor_width.
24937
24938 * window.c (make_window, replace_window): Init phys_cursor_width.
24939
24940 * xterm.c (x_display_and_set_cursor): Blink box cursor using
24941 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
24942
24943 * w32term.c (x_display_and_set_cursor): Blink box cursor using
24944 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
24945
24946 * lisp.h (GCPRO6): New macro.
24947
24948 * process.c (Fopen_network_stream): Use GCPRO6.
24949
24950 2002-03-01 Kim F. Storm <storm@cua.dk>
24951
24952 * process.c (Qconnect, Qfailed): New variables.
24953 (syms_of_process): Intern and staticpro them.
24954 (Fprocess_status): Document connect and failed return values.
24955 [NON_BLOCKING_CONNECT]: New conditional.
24956 (connect_wait_mask, num_pending_connects): New variables.
24957 (status_message): Convert Qfailed status.
24958 (Fopen_network_stream): Added support for non-blocking connect.
24959 New optional args: filter, sentinel, non_blocking. Doc updated.
24960 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
24961 (deactivate_process): Handle pending non-blocking connect.
24962 (wait_reading_process_input): Poll for status of non-blocking
24963 connects. Exec sentinel directly when connect succeeds.
24964 (status_notify): Don't read process output if not yet connected.
24965
24966 2002-02-28 Kim F. Storm <storm@cua.dk>
24967
24968 * window.c (minibuf_selected_window): Renamed from
24969 Vminibuf_selected_window. Users changed.
24970 (syms_of_window): Staticpro it.
24971
24972 2002-02-26 Kim F. Storm <storm@cua.dk>
24973
24974 The following changes add a new Vminibuf_selected_window variable
24975 which is similar to Vminibuf_scroll_window, but which is only set
24976 on entry to the minibuffer (from a non-minibuffer window):
24977
24978 * window.c (Vminibuf_selected_window): New variable.
24979 (struct save_window_data): New member minibuf_selected_window.
24980 (Fset_window_configuration): Restore Vminibuf_selected_window.
24981 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
24982 Set minibuf_scroll_window member to nil if minibuf_level is 0.
24983 (compare_window_configurations): Compare minibuf_selected_window.
24984
24985 * window.h (Vminibuf_selected_window): Declare extern.
24986
24987 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
24988 entry to minibuffer or on entry from a non-minibuffer window.
24989
24990 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
24991 Vminibuf_selected_window instead of Vminibuf_scroll_window.
24992
24993 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
24994 instead of Vminibuf_scroll_window when deciding in which window
24995 the region should be highlighted. Consequently, the region remains
24996 highlighteded even when a completion buffer is also displayed.
24997
24998 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
24999
25000 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
25001
25002 * xselect.c (Qcompound_text_with_extensions): Renamed from
25003 Qcompound_text_no_extensions.
25004 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
25005
25006 2002-02-26 Juanma Barranquero <lektu@terra.es>
25007
25008 * w32proc.c (syms_of_ntproc): Doc fix.
25009
25010 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25011
25012 * intervals.h: Include "dispextern.h" unconditionally.
25013
25014 2002-02-24 Jason Rumney <jasonr@gnu.org>
25015
25016 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
25017 and disp-table.elc.
25018 (lisp): Add emacs-lisp/backquote.elc.
25019
25020 2002-02-24 Kim F. Storm <storm@cua.dk>
25021
25022 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
25023 The validation of the event type was too strict as it didn't
25024 allow string events; buffer names are used in bindings for
25025 menu-bar-select-buffer (see `menu-bar-update-buffers').
25026
25027 2002-02-23 Kim F. Storm <storm@cua.dk>
25028
25029 The following changes rework my patch of 2002-02-06 which
25030 added command remapping by entering the commands directly into
25031 the keymaps. Now, command remapping uses an explicit `remap'
25032 prefix in the keymaps, i.e. [remap COMMAND].
25033
25034 * keymap.c (Qremap, remap_command_vector): New variables.
25035 (is_command_symbol): Remove function.
25036 (Fdefine_key): No longer accept a symbol for KEY.
25037 Added validation of [remap COMMAND] argument for KEY.
25038 The DEF is no longer required to be a symbol when remapping a command.
25039 (Fremap_command): New function to remap command through keymaps.
25040 (Flookup_key): Perform command remapping initiated by
25041 Fremap_command directly for speed.
25042 (Fkey_binding): Use Fremap_command for command remapping.
25043 (where_is_internal): Handle new command remapping representation.
25044 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
25045 staticpro them. Defsubr Fremap_command.
25046
25047 * keymap.h (Fremap_command): Declare extern.
25048 (is_command_symbol): Remove extern.
25049
25050 * keyboard.c (command_loop_1): Use Fremap_command for command
25051 remapping; now try command remapping for all symbols.
25052
25053 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
25054
25055 * coding.h (run_pre_post_conversion_on_str): Add prototype.
25056
25057 2002-02-23 Jason Rumney <jasonr@gnu.org>
25058
25059 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
25060 on the string before encoding it.
25061 (Fw32_get_clipboard_data): Run post-read-conversion on the string
25062 after decoding it.
25063
25064 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
25065
25066 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25067
25068 * w32term.c (enter_timestamp): Remove unused static variable to
25069 prevent warning.
25070
25071 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
25072
25073 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
25074
25075 * w16select.c (Fw16_get_clipboard_data): Fix last change.
25076
25077 * xselect.c (selection_data_to_lisp_data): Fix last change.
25078
25079 2002-02-22 Jason Rumney <jasonr@gnu.org>
25080
25081 * w32term.h (struct w32_output): New member menu_command_in_progress.
25082
25083 * w32menu.c (menubar_selection_callback): Free the menu and
25084 clear the menu_command_in_progress flag.
25085
25086 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
25087 (menu_free_timer): New variable.
25088 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
25089 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
25090 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
25091 menu command is in progress.
25092 <WM_COMMAND>: Set the menu_command_in_progress flag.
25093 Kill any menu_free_timer that is running.
25094
25095 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
25096 Call ExtTextOutA rather than ExtTextOut.
25097
25098 2002-02-22 Eli Zaretskii <eliz@gnu.org>
25099
25100 * puresize.h (BASE_PURESIZE): Increase to 755000.
25101
25102 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
25103
25104 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
25105 on the string before encoding it.
25106 (Fw16_get_clipboard_data): Run post-read-conversion on the string
25107 after decoding it.
25108
25109 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
25110
25111 Support for ICCCM Extended Segments in X selections:
25112
25113 * xselect.c <Qcompound_text_no_extensions>: New variable.
25114 (syms_of_xselect): Intern and staticpro it.
25115 (selection_data_to_lisp_data): Run post-read-conversion on decoded
25116 selection text.
25117 (lisp_data_to_selection_data): If next-selection-coding-system is
25118 compound-text-no-extensions, set the type of selection to be
25119 compound-text.
25120
25121 * xterm.h (x_encode_text): Update prototype.
25122
25123 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
25124 callers changed. If SELECTIONP is non-zero, run the
25125 pre-write-conversion function before encoding the selection text.
25126
25127 2002-02-21 Kim F. Storm <storm@cua.dk>
25128
25129 * frame.c (syms_of_frame): Change mouse-highlight default to t.
25130
25131 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
25132 Correct composing of language-change event.
25133
25134 2002-02-20 Kim F. Storm <storm@cua.dk>
25135
25136 * keyboard.c (menu_bar_items): Don't include keymap or local-map
25137 bindings at PT when building menu (the menu is not updated often
25138 enough for this to work reliable).
25139 (tool_bar_items): Likewise.
25140 (current_active_maps): Removed unused (and buggy) function.
25141
25142 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25143
25144 * xfns.c (gif_load): Use correct width and height for GIF images.
25145
25146 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
25147
25148 * floatfns.c (Fatan): Accept an optional second arg and call
25149 atan2 if passed 2 args.
25150
25151 2002-02-18 Jason Rumney <jasonr@gnu.org>
25152
25153 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
25154
25155 2002-02-17 Jason Rumney <jasonr@gnu.org>
25156
25157 * w32term.c (x_autoselect_window_p): New variable.
25158 (syms_of_w32term): DEFVAR_BOOL and initialize it.
25159 (note_mouse_movement): Use it.
25160
25161 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
25162
25163 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
25164
25165 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25166 New variables.
25167 (syms_of_w32fns): Intern and staticpro them.
25168 (x_frame_parms) <"fullscreen">: New parameter.
25169 (x_fullscreen_move, x_set_fullscreen): New functions.
25170 (x_set_frame_parameters): Support Qfullscreen.
25171 (x_real_positions): Save x/y_pixels_diff frame params.
25172 (x_figure_window_size): Support full-screen frames.
25173 (Fx_create_frame): Default the fullscreen parameter.
25174
25175 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
25176 (x_fullscreen_adjust): New functions.
25177 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
25178 fullscreen. Call x_check_fullscreen_move, and set the
25179 want_fullscreen member of output_data.w32
25180 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
25181
25182 * w32term.h: New enum for FULLSCREEN_* constants.
25183 (struct w32_output): New members want_fullscreen, x_pixels_diff,
25184 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
25185 (x-fullscreen-adjust): New prototype.
25186
25187 2002-02-17 Kim F. Storm <storm@cua.dk>
25188
25189 * frame.c (Vmouse_highlight): New variable.
25190 (syms_of_frame): DEFVAR_LISP it.
25191
25192 * frame.h (Vmouse_highlight): Declare extern.
25193
25194 * xterm.h (struct x_display_info): Add mouse_face_hidden.
25195
25196 * xterm.c (disable_mouse_highlight): Removed variable.
25197 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
25198 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25199 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
25200 and on after keyboard input.
25201 (x_term_init): Initialize mouse_face_hidden.
25202
25203 * msdos.h (struct display_info): Add mouse_face_hidden.
25204
25205 * msdos.c (disable_mouse_highlight): Removed variable.
25206 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25207 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
25208 (internal_terminal_init): Initialize mouse_face_hidden.
25209 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
25210 and on after keyboard input.
25211
25212 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
25213
25214 * w32term.c (disable_mouse_highlight): Removed variable.
25215 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
25216 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25217 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
25218 and on after keyboard input.
25219 (w32_initialize_display_info): Initialize mouse_face_hidden.
25220
25221 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
25222
25223 * msdos.c (last_mouse_window): New variable.
25224 (dos_rawgetc): Fix last change--if the mouse is in the same window
25225 as recorded in last_mouse_window, don't select this window.
25226
25227 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
25228
25229 * msdos.c (x_autoselect_window_p): New variable.
25230 (syms_of_msdos): Defvar it.
25231 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
25232 which the last mouse movement occured, unless it is already selected.
25233
25234 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
25235 New variables.
25236 (syms_of_xdisp): DEVFAR them.
25237 (hscroll_window_tree): Use automatic_hscroll_margin and
25238 Vautomatic_hscroll_step to compute the amount of window scrolling.
25239
25240 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25241
25242 * xterm.c (x-autoselect-window): New variable.
25243 (note_mouse_movement): Use it.
25244
25245 * keyboard.c: Do not include "systime.h" twice.
25246
25247 2002-02-15 Andreas Schwab <schwab@suse.de>
25248
25249 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
25250
25251 * alloc.c (NSTATICS): Increase to 1280.
25252
25253 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
25254
25255 * alloc.c (NSTATICS): Bump to 1026.
25256
25257 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
25258 (Vx_super_keysym): New variables.
25259 (syms_of_xterm): DEFVAR_LISP them.
25260 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
25261 variables to determine which keys to use for the various modifiers.
25262
25263 2002-02-13 Kim F. Storm <storm@cua.dk>
25264
25265 * window.c (Vmode_line_in_non_selected_windows): Removed.
25266 (mode_line_in_non_selected_windows): New variable.
25267 (syms_of_window): DEFVAR_BOOL it.
25268
25269 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
25270 Use mode_line_in_non_selected_windows.
25271 (mode_line_in_non_selected_windows): Declare extern.
25272 (Vmode_line_in_non_selected_windows): Removed extern.
25273
25274 2002-02-13 Richard M. Stallman <rms@gnu.org>
25275
25276 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
25277 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
25278 (Fclear_this_command_keys): Doc fixes.
25279
25280 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
25281 (update_face_from_frame_parameter): Increment face_change_count
25282 and windows_or_buffers_changed to force redisplay using changed faces.
25283
25284 * xdisp.c (QCpropertize): New variable.
25285 (mode_line_proptrans_alist): New variable.
25286 (display_mode_element): New arg PROPS; all calls changed.
25287 Implement this, for strings.
25288 Handle literal output of strings by sharing the
25289 main-line code for strings, using local var `literal'.
25290 Handle :propertize feature.
25291 (syms_of_xdisp): Initialze and staticpro QCpropertize and
25292 mode_line_proptrans_alist.
25293
25294 2002-02-11 Kim F. Storm <storm@cua.dk>
25295
25296 * window.c (Vmode_line_in_non_selected_windows): New variable.
25297 (syms_of_window): DEFVAR_LISP it.
25298
25299 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
25300 (CURRENT_MODE_LINE_FACE_ID): Use it.
25301 (Vmode_line_in_non_selected_windows): Declare extern.
25302
25303 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
25304 to get mode line face.
25305
25306 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
25307
25308 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
25309 variables; cus-start.el doesn't need them anymore.
25310
25311 2002-02-09 Kim F. Storm <storm@cua.dk>
25312
25313 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
25314 reduction. This fixes a display problem where stray newlines were
25315 inserted in the window (corrected by C-l). Clarified code (IMHO).
25316
25317 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
25318
25319 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
25320
25321 * xdisp.c (display_mode_lines): Fix last change.
25322
25323 2002-02-09 Jason Rumney <jasonr@gnu.org>
25324
25325 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
25326 match each other.
25327 (w32_load_system_font): Prevent Cleartype fonts from loading.
25328 (Fx_show_tip): Ensure tip frames are above other topmost windows.
25329
25330 2002-02-09 Kim F. Storm <storm@cua.dk>
25331
25332 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
25333 (CURRENT_MODE_LINE_HEIGHT): Use it.
25334 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
25335
25336 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
25337 (pos_visible_p, handle_face_prop): Likewise.
25338 (display_mode_lines): Likewise, but for the real selected window.
25339 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
25340
25341 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
25342 in non-selected windows.
25343 (realize_basic_faces): Realize it.
25344 (syms_of_term): Intern and staticpro it.
25345
25346 2002-02-08 Kim F. Storm <storm@cua.dk>
25347
25348 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
25349 Changed mail addresses to emacs-devel@gnu.org.
25350
25351 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
25352
25353 * fileio.c (Fsubstitute_in_file_name): If the file name includes
25354 ~user, and there's no such user, don't discard everything before ~user.
25355
25356 * floatfns.c (Fround): Doc fix.
25357
25358 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25359
25360 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
25361
25362 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
25363
25364 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
25365
25366 2002-02-07 Kim F. Storm <storm@cua.dk>
25367
25368 * keymap.c (where_is_internal): Only check whether definition is
25369 remapped if it fulfills is_command_symbol.
25370
25371 2002-02-07 Andreas Schwab <schwab@suse.de>
25372
25373 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
25374
25375 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
25376
25377 2002-02-06 Kim F. Storm <storm@cua.dk>
25378
25379 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
25380 defining command remapping. Doc updated.
25381 (Flookup_key): Remap command through keymap if KEY is a symbol.
25382 (is_command_symbol): New function.
25383 (Fkey_binding): Use it. New optional argument NO-REMAP.
25384 Doc updated. Callers changed. Perform command remapping via
25385 recursive call unless that arg is non-nil.
25386 (where_is_internal): New argument no_remap. Callers changed.
25387 Call recursively to find original key bindings for a remapped
25388 comand unless that arg is non-nil.
25389 (Fwhere_is_internal): New optional argument NO-REMAP.
25390 Doc updated. Callers changed. Pass arg to where_is_internal.
25391
25392 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
25393 (is_command_symbol): Add prototype.
25394
25395 * keyboard.c (Vthis_original_command): New variable.
25396 (syms_of_keyboard): DEFVAR_LISP it.
25397 (command_loop_1): Set it, and perform command remapping.
25398
25399 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25400
25401 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
25402
25403 2002-02-06 Jason Rumney <jasonr@gnu.org>
25404
25405 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
25406
25407 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
25408
25409 * charset.c (get_charset_id): Use if-else instead of ?:.
25410
25411 2002-02-06 Richard M. Stallman <rms@gnu.org>
25412
25413 * filelock.c (S_ISLNK): Define if not defined.
25414
25415 2002-02-03 Richard M. Stallman <rms@gnu.org>
25416
25417 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
25418
25419 * lread.c (read1): Redesign strategy for force_multibyte and
25420 force_singlebyte. Now is_multibyte records whether read_buffer
25421 is multibyte. Encountering any multibyte character makes it so.
25422
25423 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
25424
25425 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
25426 with the same sequence, map that sequence to f10 rather than f0.
25427
25428 2002-02-03 Andreas Schwab <schwab@suse.de>
25429
25430 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
25431 latter never being defined on GNU/Linux.
25432
25433 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
25434
25435 * xfaces.c (realize_default_face): Don't set the weight and slant of
25436 the default face to Qnormal, unless these attributes are unspecified.
25437
25438 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25439
25440 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
25441 Call cancel_hourglass unconditionally.
25442
25443 * eval.c (Fsignal): Remove duplicated declaration of
25444 the variable `display_hourglass_p'.
25445
25446 2002-01-31 Richard M. Stallman <rms@gnu.org>
25447
25448 * editfns.c (region_limit): Nicer error message.
25449
25450 * coding.c (decode_composition_emacs_mule):
25451 Give up if NCOMPONENT gets too large to index `component'.
25452
25453 * callint.c (check_mark): New arg to specify clearer error message.
25454 Callers changed.
25455
25456 2002-01-27 Richard M. Stallman <rms@gnu.org>
25457
25458 * minibuf.c (Fcompleting_read): Doc fix.
25459
25460 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25461
25462 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
25463 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
25464 Fix doc-strings.
25465
25466 2002-01-26 Richard M. Stallman <rms@gnu.org>
25467
25468 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
25469
25470 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
25471 and scroll_up_aggressively.
25472
25473 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25474
25475 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
25476
25477 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
25478
25479 * textprop.c (Fnext_property_change, Fnext_single_property_change)
25480 (Fprevious_property_change, Fprevious_single_property_change):
25481 Stay within the narrowed-buffer boundaries.
25482
25483 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
25484
25485 * term.c (Ftty_display_color_cells): New function.
25486 (syms_of_term): Defsubr it.
25487 (Ftty_display_color_cells, Ftty_display_color_p): Change the
25488 argument name to DISPLAY. Doc fix.
25489
25490 * dispextern.h: Add prototype for set_tty_color_mode and
25491 tty_setup_colors.
25492
25493 2002-01-24 Jason Rumney <jasonr@gnu.org>
25494
25495 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
25496 If region left to draw is not what was expected, mark the frame as
25497 garbaged.
25498
25499 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
25500 Combine the regions returned by BeginPaint and GetUpdateRect.
25501
25502 2002-01-23 Jason Rumney <jasonr@gnu.org>
25503
25504 * w32term.c (x_update_window_begin): Only hide caret if
25505 w32_use_visible_system_caret is set.
25506 (x_update_window_end): Only show caret if
25507 w32_use_visible_system_caret is set.
25508 (syms_of_w32term): Handle SystemParametersInfo call failing.
25509
25510 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
25511
25512 2002-01-22 Richard M. Stallman <rms@gnu.org>
25513
25514 * unexelf.c (unexec): Define n so as to cause compilation error
25515 for the code where people have often written n instead of nn.
25516
25517 * .gdbinit (hookpost-run): Defined.
25518
25519 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
25520
25521 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
25522
25523 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
25524
25525 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
25526 if fullscreen is being set.
25527
25528 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25529
25530 * minibuf.c (Fminibuffer_contents)
25531 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
25532 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
25533
25534 2002-01-21 Richard M. Stallman <rms@gnu.org>
25535
25536 * window.c (check_frame_size): Fix minimum height calculation.
25537
25538 2002-01-20 Ken Raeburn <raeburn@gnu.org>
25539
25540 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
25541 height before comparison.
25542 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
25543
25544 2002-01-20 Jason Rumney <jasonr@gnu.org>
25545
25546 * w32term.c (w32_system_caret_width): Remove.
25547 (w32_use_visible_system_caret): New user flag.
25548 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
25549 Windows reports a screen reader running.
25550 (x_update_window_begin): Hide the system caret.
25551 (x_update_window_end): Show the system caret.
25552 (x_display_and_set_cursor): Don't draw a cursor when
25553 w32_use_visible_system_caret is set. Do not adjust width.
25554
25555 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
25556 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
25557 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
25558 the user requests it. Use system default width when creating.
25559 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
25560
25561 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
25562 New window messages.
25563
25564 2002-01-20 Richard M. Stallman <rms@gnu.org>
25565
25566 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
25567
25568 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25569
25570 * doprnt.c (doprnt1): Fix typos in error call.
25571
25572 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
25573
25574 * unexelf.c (unexec) [__sgi]: Support the .got sections.
25575
25576 2002-01-20 Jason Rumney <jasonr@gnu.org>
25577
25578 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
25579 that Windows returns. If a double check fails, try to guess how
25580 ExtTextOut is going to act.
25581
25582 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
25583 in place of stricmp.
25584 (w32_list_synthesized_fonts): Removed.
25585 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
25586 (struct enumfont_t): New element; list.
25587 (enum_font_cb2): List all style and charset variations of a font.
25588 (Fw32_select_font): New optional argument; include_proportional.
25589 Exclude vertical fonts. Exclude proportional fonts unless
25590 include_proportional is non-nil.
25591 (w32_enable_synthesized_fonts): Change to a boolean.
25592 (Fw32_send_sys_command): Doc fix.
25593
25594 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25595
25596 * dispnew.c (update_frame): Move the variable `tem' to the block
25597 where it is used.
25598
25599 2002-01-19 Jason Rumney <jasonr@gnu.org>
25600
25601 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
25602 call to face-set-after-frame-default.
25603
25604 2002-01-18 Richard M. Stallman <rms@gnu.org>
25605
25606 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
25607 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
25608
25609 2002-01-17 Richard M. Stallman <rms@gnu.org>
25610
25611 * window.c (enlarge_window): When exceeding size of parent,
25612 directly delete all the siblings instead of trying to resize it.
25613
25614 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25615
25616 * term.c (set_tty_color_mode): Remove unused variable `tem'.
25617
25618 2002-01-16 Henrik Enberg <henrik@enberg.org>
25619
25620 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
25621
25622 2002-01-16 Kim F. Storm <storm@cua.dk>
25623
25624 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
25625 is invisible. This can happen if cursor is on top line of a
25626 window, and we switch to a buffer with a header line.
25627
25628 * w32term.c (x_erase_phys_cursor): Ditto.
25629
25630 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25631
25632 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
25633 `dont_resize' only when used.
25634
25635 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
25636
25637 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
25638
25639 * xdisp.c (display_mode_element): When computing charpos, depend
25640 on multibyteness of elt, not the text in field.
25641
25642 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25643
25644 * buffer.c (Fkill_all_local_variables):
25645 Increment `update_mode_lines' only once.
25646
25647 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25648
25649 * lisp.h (adjust_after_replace_noundo)
25650 (Fupdate_coding_systems_internal): Add prototypes.
25651
25652 * sound.c (Fplay_sound): Initialize header_size also for :data case.
25653
25654 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
25655
25656 Support for the --color command-line argument and tty-color-mode
25657 frame parameter:
25658
25659 * term.c (tty_default_color_capabilities, tty_setup_colors)
25660 (set_tty_color_mode): New functions.
25661 (term_init): Call tty_default_color_capabilities.
25662 (Qtty_color_mode_alist): New variable.
25663 (syms_of_term): Intern and staticpro it.
25664
25665 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
25666 frames.
25667 (do_switch_frame): For termcap frames, switch the tty
25668 color mode as specified by the frame's parameters.
25669 (Qtty_color_mode): New variable.
25670 (syms_of_frame): Intern and staticpro it.
25671
25672 * emacs.c (USAGE2): Add the --color option.
25673 (standard_args): Ditto.
25674
25675 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
25676
25677 * xterm.h (struct x_output): New members want_fullscreen,
25678 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
25679 y_pixels_outer_diff.
25680 New enum for FULLSCREEN_* constants.
25681 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
25682 is NULL.
25683 (x_fullscreen_adjust): Add prototype.
25684
25685 * emacs.c (USAGE2): Add the new full-screen arguments.
25686 (standard_args): Ditto.
25687
25688 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25689 New variables.
25690 (syms_of_xfns): Intern and staticpro them.
25691 (x_frame_parms) <"fullscreen">: New parameter.
25692 (x_fullscreen_move, x_set_fullscreen): New functions.
25693 (x_set_frame_parameters): Support for Qfullscreen.
25694 (x_real_positions): More accurate computation of the frame position.
25695 (x_figure_window_size): Support full-screen frames.
25696 (Fx_create_frame): Default the fullscreen parameter.
25697
25698 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
25699 (XTread_socket) <Expose>: Call x_check_fullscreen.
25700 <ConfigureNotify>: Don't resize to fullscreen.
25701 Call x_check_fullscreen_move, and set the want_fullscreen member of
25702 output_data.x.
25703
25704 2002-01-13 Jason Rumney <jasonr@gnu.org>
25705
25706 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
25707 for mice with more than 3 buttons.
25708
25709 * w32term.c (parse_button): New parameter xbutton. Callers changed.
25710 (w32_read_socket): Handle new "XBUTTON" messages.
25711
25712 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
25713 (syms_of_w32fns): DEFVAR_BOOL it.
25714 (w32_wnd_proc): Handle new "XBUTTON" messages.
25715
25716 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25717
25718 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
25719
25720 2002-01-13 Andreas Schwab <schwab@suse.de>
25721
25722 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
25723
25724 2002-01-12 Andreas Schwab <schwab@suse.de>
25725
25726 * .gdbinit (xbuffer): Remove address operator since data is now a
25727 pointer.
25728
25729 2002-01-11 Richard M. Stallman <rms@gnu.org>
25730
25731 * insdel.c (adjust_after_replace_noundo): New function.
25732
25733 * coding.c (code_convert_region): Don't copy old text if undo disabled.
25734
25735 2002-01-09 Jason Rumney <jasonr@gnu.org>
25736
25737 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
25738 when checking for multiple frames.
25739
25740 2002-01-08 Richard M. Stallman <rms@gnu.org>
25741
25742 * window.c (delete_window): Rewrite the code for changing the
25743 selected window to handle the case where WINDOW is not a leaf.
25744
25745 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
25746
25747 * process.c (send_process): Set src_multibyte to 1 after the call
25748 top setup_coding_system, not before the call.
25749
25750 2002-01-07 Jason Rumney <jasonr@gnu.org>
25751
25752 * xmenu.c (set_frame_menubar, xmenu_show):
25753 (xdialog_show): Initialize wv->help to Qnil.
25754
25755 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
25756 (w32_dialog_show): Initialize wv->help to Qnil.
25757
25758 2002-01-06 Jason Rumney <jasonr@gnu.org>
25759
25760 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
25761
25762 * w32menu.c (w32_menu_display_help): Revert last change.
25763
25764 * xmenu.c (menu_highlight_callback): Revert last change.
25765
25766 2002-01-06 Andreas Schwab <schwab@suse.de>
25767
25768 * insdel.c (make_gap_larger): Make sure buffer size does not
25769 overflow range of int.
25770
25771 2002-01-05 Jason Rumney <jasonr@gnu.org>
25772
25773 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25774 OVERLAPS_P.
25775
25776 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
25777
25778 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
25779 to the left or to the right of the pointer, put it against
25780 the left screen edge.
25781 (x_frame_parms): Add missing braces around initializer.
25782
25783 * w32term.c (x_setup_relief_colors): Don't compute an image's
25784 background color if it doesn't have a Pixmap.
25785 (notice_overwritten_cursor): Don't depend on
25786 output_cursor and updated_area. Compare pixel coordinates with
25787 window's cursor pixel coordinates.
25788 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25789 Call notice_overwritten_cursor with new arg list.
25790 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25791 unconditionally.
25792 (x_draw_image_relief): Use predefined macro instead of
25793 constant when the value of `tool_bar_button_relief' is negative.
25794
25795 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
25796
25797 2002-01-04 Richard M. Stallman <rms@gnu.org>
25798
25799 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
25800
25801 2002-01-03 Richard M. Stallman <rms@gnu.org>
25802
25803 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
25804 (Fkey_binding): Try the `keymap' property map first.
25805 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
25806 minor mode bindings.
25807
25808 2002-01-03 Kim F. Storm <storm@cua.dk>
25809
25810 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
25811
25812 2002-01-02 Richard M. Stallman <rms@gnu.org>
25813
25814 * keyboard.c (read_key_sequence): Handle the keymap property
25815 before minor mode maps.
25816
25817 * editfns.c (Fformat): Update thissize from field_width
25818 based on the actual width, in the string case.
25819
25820 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25821
25822 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
25823 when used as truth value to prevent gcc warnings.
25824
25825 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
25826 * w32proc.c: Include <config.h>.
25827
25828 2002-01-01 Andreas Schwab <schwab@suse.de>
25829
25830 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
25831 not EMACS_INT, to make them compatible with DEFVAR_INT.
25832 * lisp.h (max_specpdl_size): Adjust declaration.
25833
25834 2002-01-01 Richard M. Stallman <rms@gnu.org>
25835
25836 * print.c (print_object): Test print_escape_nonascii only for
25837 unibyte strings.
25838 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
25839 when outputting to a multibyte buffer.
25840
25841 2001-12-29 Richard M. Stallman <rms@gnu.org>
25842
25843 * print.c (print_object): In multibyte string, use hex escapes.
25844 Use octal only for unibyte strings.
25845 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
25846
25847 * lread.c (read_escape): New arg BYTEREP for reporting whether
25848 escape forces unibyte or multibyte.
25849 (read1): When reading a string, take note of that info.
25850
25851 2001-12-29 Ken Raeburn <raeburn@gnu.org>
25852
25853 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
25854 comparison to test lisp value returned by Fget.
25855
25856 2001-12-29 Richard M. Stallman <rms@gnu.org>
25857
25858 * lisp.h (max_specpdl_size): Add declaration.
25859
25860 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
25861
25862 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
25863 Handle modifier bits. Correct typo in error message.
25864
25865 2001-12-28 Richard M. Stallman <rms@gnu.org>
25866
25867 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
25868 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
25869 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25870 Update calls to Fdefine_abbrev.
25871 (write_abbrev): Update for changed data format.
25872 Don't list "system" abbrevs.
25873 (Fexpand_abbrev): Update use count with new data format.
25874 (describe_abbrev): Update for changed data format.
25875 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
25876
25877 * config.in (HAVE_MBSINIT): Add #undef.
25878
25879 * strftime.c (mbsinit): Define as no-op if not available.
25880
25881 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
25882 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
25883
25884 * keymap.c (Flookup_key): Error message if key has wrong data type.
25885 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
25886 (exclude_key): New variable.
25887
25888 2001-12-28 Gerd Moellmann <gerd@gnu.org>
25889
25890 * xterm.c (x_setup_relief_colors): Don't compute an image's
25891 background color if it doesn't have a Pixmap.
25892
25893 * xterm.c (notice_overwritten_cursor): Don't depend on
25894 output_cursor and updated_area. Compare pixel coordinates with
25895 window's cursor pixel coordinates.
25896 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25897 Call notice_overwritten_cursor with new arg list.
25898 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25899 unconditionally.
25900
25901 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
25902 height of the cursor line to the amount to scroll.
25903
25904 2001-12-27 Richard M. Stallman <rms@gnu.org>
25905
25906 * intervals.c (set_point_both): The position after an invisible,
25907 intangible character is not an acceptable stopping point.
25908
25909 2001-12-27 Ken Raeburn <raeburn@gnu.org>
25910
25911 * window.c (enlarge_window): In new preserve_before code, convert
25912 CURBEG from lisp object to integer before doing arithmetic.
25913
25914 2001-12-27 Richard M. Stallman <rms@gnu.org>
25915
25916 * bytecode.c (Fbyte_code): Undo previous change.
25917
25918 2001-12-26 Kim F. Storm <storm@cua.dk>
25919
25920 * keyboard.c (record_char): Ignore duplicate help-echo events only
25921 separated by mouse-movement. When tracking mouse, only record
25922 first and last mouse-movement event in same window.
25923 Don't record mouse-movement events in keyboard macros.
25924
25925 2001-12-25 Richard M. Stallman <rms@gnu.org>
25926
25927 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
25928 (Fenlarge_window): New arg PRESERVE_BEFORE.
25929
25930 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
25931 instead of Fstring_as_unibyte.
25932
25933 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25934
25935 The following changes remove mocklisp support:
25936
25937 * mocklisp.h, mocklisp.c: Files removed.
25938
25939 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
25940 `Qmocklisp' and `Qmocklisp_arguments'.
25941 Remove prototype of syms_of_mocklisp.
25942
25943 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
25944
25945 * callint.c: Do not include mocklisp.h.
25946 (Fcall_interactively): Do not test for mocklisp case.
25947
25948 * eval.c: Remove variables `Qmocklisp_arguments',
25949 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
25950 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
25951 Do not test for mocklisp case.
25952 (Fwhile): Remove unused variable `tem'.
25953 (syms_of_eval): Remove variable `moclisp-arguments'.
25954
25955 * data.c (wrong_type_argument): Remove mocklisp case.
25956
25957 * doc.c (Fdocumentation): Remove mocklisp case.
25958
25959 * emacs.c (main): Do not call syms_of_mocklisp.
25960
25961 2001-12-21 Richard M. Stallman <rms@gnu.org>
25962
25963 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
25964 to the left or to the right of the pointer, put it against
25965 the left screen edge.
25966
25967 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
25968
25969 * Makefile.in (distclean): Remove .gdbinit if we are building
25970 outside the source tree.
25971
25972 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
25973
25974 * w32.c (emacs_root_dir): New function.
25975
25976 * msdos.c (emacs_root_dir): New function.
25977
25978 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
25979 of the current drive as the fallback for default_directory.
25980
25981 * dired.c (file_name_completion): Run the elements of
25982 completion-ignored-extensions through ENCODE_FILE.
25983
25984 * lisp.h (scmp): Remove prototype, since it's now a static
25985 function private to dired.c.
25986
25987 2001-12-18 Richard M. Stallman <rms@gnu.org>
25988
25989 * dired.c (scmp): Function moved from minibuf.c.
25990 Delete multibyte handling--used only on encoded strings.
25991
25992 * minibuf.c (scmp): Function moved to dired.c.
25993
25994 * fns.c (merge): Add QUIT call.
25995
25996 2001-12-18 Dave Love <fx@gnu.org>
25997
25998 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
25999 language/georgian.el.
26000
26001 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
26002
26003 * Makefile.in (lisp, shortlisp): Synchronize with changes to
26004 lisp/Makefile.in:DONTCOMPILE.
26005
26006 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26007
26008 * xdisp.c (window_box_height): Do not return negative values.
26009 From Gerd Moellmann <gerd@gnu.org>.
26010
26011 * keyboard.c (head_table): Add missing braces around initializer.
26012
26013 * term.c (keys): Likewise.
26014
26015 * xfns.c (x_frame_parms, visual_classes): Likewise.
26016
26017 2001-12-17 Sam Steingold <sds@gnu.org>
26018
26019 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
26020 patch (COMPOSING_P, not COMPOSING).
26021
26022 2001-12-17 Richard M. Stallman <rms@gnu.org>
26023
26024 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
26025
26026 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
26027 before calling decode_coding.
26028
26029 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
26030
26031 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
26032 instead of only for COMPOSITION_DISABLED.
26033
26034 2001-12-16 Richard M. Stallman <rms@gnu.org>
26035
26036 * alloc.c (pure_alloc): After overflow, allocate just a small block.
26037
26038 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
26039
26040 * buffer.h (struct buffer): New field `display_error_modiff'.
26041 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
26042
26043 * window.c (Frecenter): Clear display_error_modiff field.
26044
26045 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
26046 Call redisplay_window, but not if display_error_modiff field says no.
26047 (redisplay_window_error): New function.
26048 (displayed_buffer): New variable.
26049 (redisplay_internal, redisplay_windows): Call the new functions
26050 instead of redisplay_window directly.
26051
26052 2001-12-15 Richard M. Stallman <rms@gnu.org>
26053
26054 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
26055
26056 2001-12-14 Andrew Innes <andrewi@gnu.org>
26057
26058 * makefile.w32-in (EMACSLOADPATH): Define.
26059 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
26060 (bootstrap-temacs): Remove dependency on bootstrap-clean.
26061
26062 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
26063
26064 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
26065 parameter have a numeric value all the time.
26066
26067 * w32fns.c (x_report_frame_params): Likewise.
26068
26069 2001-12-12 Richard M. Stallman <rms@gnu.org>
26070
26071 * fileio.c (Fwrite_region): Doc fix.
26072
26073 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
26074 (redisplay_internal): Call clear_image_cache only for window terminals.
26075
26076 2001-12-12 Gerd Moellmann <gerd@gnu.org>
26077
26078 * xdisp.c (move_it_vertically_backward): Change heuristic
26079 for the case that we didn't move far enough initially.
26080
26081 * window.c (Frecenter): Simplify computation in the case of window
26082 system frames and ARG < 0; use window_box_height.
26083
26084 2001-12-11 Richard M. Stallman <rms@gnu.org>
26085
26086 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
26087 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
26088
26089 2001-12-11 Andrew Innes <andrewi@gnu.org>
26090
26091 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
26092 arg is negative.
26093
26094 2001-12-11 Richard M. Stallman <rms@gnu.org>
26095
26096 * m/hp800.h: Split the __hpux conditional into the parts
26097 that are right for GNU/Linux too and the parts that are not.
26098 Use the former if GNU_LINUX.
26099 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
26100
26101 * s/gnu-linux.h (GNU_LINUX): Defined.
26102
26103 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26104
26105 * macros.c, msdos.c, w16select.c: Change doc-string comments to
26106 `new style' [w/`doc:' keyword].
26107
26108 2001-12-10 Jason Rumney <jasonr@gnu.org>
26109
26110 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
26111 before using.
26112
26113 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26114
26115 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
26116 keyword].
26117
26118 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
26119
26120 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
26121
26122 * s/hpux10.h (srand48): Don't undefine.
26123
26124 2001-12-09 Jason Rumney <jasonr@gnu.org>
26125
26126 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
26127 Add comment to explain where the struct came from.
26128 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
26129 (add_menu_item): Process pop-up menus first to avoid memory leak.
26130 (add_menu_item, w32_menu_display_help): Use `help' field as
26131 Lisp_Object.
26132 (w32_free_submenu_strings): Only free owner-drawn strings.
26133
26134 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26135
26136 * COPYING: Moved back.
26137
26138 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
26139 Add parentheses around && within ||.
26140
26141 * indent.c (compute_motion): Likewise.
26142
26143 * intervals.c (merge_properties_sticky): Likewise.
26144
26145 * coding.c (setup_coding_system, shrink_encoding_region)
26146 (Fdecode_sjis_char): Likewise.
26147
26148 2001-12-07 Andreas Schwab <schwab@suse.de>
26149
26150 * xdisp.c (display_mode_element): Don't read past end of string if
26151 it ends with '%'.
26152
26153 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
26154 can hold.
26155
26156 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
26157 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
26158 type changed to Lisp_Object.
26159 (syms_of_data): DEFVAR_LISP them.
26160
26161 2001-12-07 Richard M. Stallman <rms@gnu.org>
26162
26163 * callproc.c (init_callproc): Set Vdata_directory based on the source
26164 location whenever Emacs was run uninstalled.
26165
26166 2001-12-06 Paul Eggert <eggert@twinsun.com>
26167
26168 * config.in (HAVE_WORKING_VFORK): New #undefs.
26169 * process.c (create_process):
26170 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
26171 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
26172 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
26173 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
26174 * m/intel386.h (HAVE_VFORK): Likewise.
26175 * m/mips-siemens.h (HAVE_VFORK): Likewise.
26176 * m/mips.h (HAVE_VFORK): Likewise.
26177 * s/freebsd.h (vfork): Remove #define.
26178 * s/lynxos.h (HAVE_VFORK): Remove #undef.
26179 * s/usg5-4-2.h: Fix comment about vfork.
26180
26181 2001-12-06 Richard M. Stallman <rms@gnu.org>
26182
26183 * s/hpux10.h (random): Add undef.
26184 (HAVE_RANDOM): Define it just once.
26185
26186 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
26187
26188 * eval.c: Undo last change: the standard syntax is not wanted.
26189
26190 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
26191
26192 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
26193 scroll bars of the frame before deleting the frame itself. If the
26194 frame has a widget, delete the frame with XtDestroyWidget, and do
26195 not call XDestroyWindow before that.
26196
26197 2001-12-06 Kim F. Storm <storm@cua.dk>
26198
26199 * xfns.c (x_report_frame_params): Return actual fringe widths.
26200
26201 * w32fns.c (x_report_frame_params): Return actual fringe widths.
26202
26203 2001-12-05 Andrew Innes <andrewi@gnu.org>
26204
26205 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
26206 excessively large.
26207
26208 * insdel.c (make_gap_larger): New function.
26209 (make_gap_smaller): New function.
26210 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
26211 Call make_gap_smaller if arg is negative.
26212
26213 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
26214
26215 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
26216 Pass a dummy argument when calling interrupt_signal.
26217 (parse_menu_item): Mark disabled items before checking for empty def.
26218 (read_char_minibuf_menu_prompt): Make safety more visible.
26219 (read_key_sequence): Add a `first_unbound' variable.
26220 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
26221 unbound prefix as soon as we can detect it.
26222
26223 * doc.c (Fsnarf_documentation): Add prototype.
26224 (get_doc_string): Handle negative arguments.
26225 (Fdocumentation): Use AREF and ASIZE.
26226 Move the calls to get_doc_string to a single place.
26227 Don't confuse an interactive-spec for a docstring reference.
26228 (Fdocumentation_property): Take advantage of the fact that
26229 get_doc_string now ignores the sign of the docstring position.
26230
26231 * eval.c: Use standard syntax for usage in docstrings.
26232
26233 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26234
26235 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
26236
26237 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26238
26239 * xterm.c (x_draw_image_relief): Use predefined macro instead of
26240 constant when the value of `tool_bar_button_relief' is negative.
26241
26242 2001-12-02 Richard M. Stallman <rms@gnu.org>
26243
26244 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
26245 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
26246
26247 * fileio.c (read_non_regular): Delete Fsignal call.
26248
26249 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
26250
26251 * lisp.h (run_hook_list_with_args): Undo last change.
26252
26253 2001-12-01 Gerd Moellmann <gerd@gnu.org>
26254
26255 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
26256
26257 2001-12-01 Jason Rumney <jasonr@gnu.org>
26258
26259 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
26260
26261 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
26262 [!WM_MOUSELEAVE]: Define.
26263
26264 * w32menu.c (current_popup_menu, get_menu_item_info):
26265 (set_menu_item_info): New vars.
26266 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
26267 (w32_menu_show): Set current_popup_menu.
26268 (add_menu_item): Allocate new strings for owner-drawn menu items
26269 and help strings.
26270 Use owner-draw for disabled menu items again.
26271 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
26272 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
26273
26274 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
26275 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
26276 <WM_EXITMENULOOP>: Free menu strings.
26277 <WM_MOUSELEAVE>: Stop tracking mouse.
26278 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
26279
26280 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
26281 and mouse face.
26282
26283 2001-12-01 Kim F. Storm <storm@cua.dk>
26284
26285 The following changes add left-fringe and right-fringe
26286 frame parameters to adjust fringe widths, or remove one or
26287 both fringes.
26288
26289 * frame.h (struct frame): Remove trunc_area_pixel_width and
26290 trunc_area_cols fields.
26291 (Qleft_fringe, Qright_fringe): Declare.
26292 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
26293
26294 * frame.c (Qleft_fringe, Qright_fringe): New vars.
26295 (syms_of_frame): Initialize them.
26296
26297 * window.c (coordinates_in_window): Handle separate left and right
26298 fringe widths.
26299
26300 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
26301 and fringe_cols fields.
26302 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
26303 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
26304 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
26305 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
26306 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
26307 (x_compute_fringe_widths): Add prototype.
26308
26309 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
26310 fill fringe evenly with small dashes.
26311 (x_draw_fringe_bitmap): Clear background if necessary. Align and
26312 clip the new ZV bitmap to avoid jitter between rows.
26313 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
26314 background. Don't draw fringe bitmaps if fringe width is zero.
26315 (x_compute_fringe_widths): New function.
26316 (x_new_font, x_set_window_size_1): Use it.
26317
26318 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
26319 (x_set_frame_parameters): Process `font' parameter before other
26320 parameters as fringe widths depend on it.
26321 (x_set_fringe_width): New function.
26322 (x_figure_window_size): Use x_compute_fringe_widths.
26323 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
26324 parameters.
26325
26326 * widget.c (set_frame_size): Use x_compute_fringe_widths.
26327 (EmacsFrameSetCharSize): Ditto.
26328
26329 * w32term.h: Merged changes from xterm.h.
26330 * w32term.c: Merged changes from xterm.c.
26331 * w32fns.c: Merged changes from xfns.c.
26332
26333 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26334
26335 * COPYING: Removed.
26336
26337 2001-11-29 Dave Love <fx@gnu.org>
26338
26339 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
26340 extra extra slot.
26341 (detect_coding_mask): Fix call of detect_coding_iso2022.
26342
26343 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26344
26345 * fileio.c (file-name-coding-system)
26346 (default-file-name-coding-system): Doc fix (links to referenced
26347 variables added).
26348
26349 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
26350
26351 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
26352 Add dummy uses of gcproN variables.
26353
26354 * category.c (describe_category, describe_category_1)
26355 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
26356 (syms_of_category): Don't defsubr Sdescribe_categories.
26357
26358 2001-11-28 Richard M. Stallman <rms@gnu.org>
26359
26360 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
26361
26362 * Makefile.in (lispdir): New variable, referring to build dir.
26363 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
26364
26365 2001-11-28 Andrew Innes <andrewi@gnu.org>
26366
26367 * w32menu.c (w32_menu_display_help): Actually add the new argument
26368 OWNER.
26369
26370 2001-11-28 Jason Rumney <jasonr@gnu.org>
26371
26372 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
26373 menu items. From David Ponce <dponce@wanadoo.fr>.
26374 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
26375 conditionally.
26376 (w32_menu_display_help): New argument OWNER. Rewritten to store a
26377 help event in the owner frame's keyboard buffer.
26378
26379 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
26380 (Fx_show_tip): Don't subtract last width from row width.
26381
26382 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
26383 (w32_read_socket): Use EQ to compare frames.
26384
26385 2001-11-28 Gerd Moellmann <gerd@gnu.org>
26386
26387 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
26388 OVERLAPS_P.
26389
26390 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26391
26392 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
26393 `gcpro3' and `gcpro4'.
26394
26395 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
26396
26397 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
26398
26399 * ccl.c: Use AREF and ASIZE.
26400
26401 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
26402
26403 * lisp.h (run_hook_list_with_args): Remove.
26404 (LIST_END_P): Fix call to wrong_type_argument.
26405 (make_fixnum_or_float): Use EMACS_INT rather than int.
26406
26407 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
26408
26409 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
26410 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
26411
26412 * eval.c: Use AREF and ASIZE.
26413 (Ffetch_bytecode): Add the file name to the error message.
26414
26415 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
26416 which match the end of the file-name.
26417 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
26418 is not a valid env var, but leave it as is instead.
26419
26420 * keymap.c (access_keymap): Handle t bindings like nil bindings.
26421 Make nil bindings in char-tables transparent.
26422 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
26423
26424 2001-11-26 Richard M. Stallman <rms@gnu.org>
26425
26426 * textprop.c (set_text_properties_1): Allow START, END in either order.
26427 Do nothing if range is empty.
26428
26429 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
26430
26431 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
26432 (clean): Not here.
26433
26434 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
26435
26436 * textprop.c (set_text_properties_1): Clearly mark that the
26437 interval should not be empty.
26438
26439 * intervals.c (graft_intervals_into_buffer):
26440 Don't call set_text_properties_1 on an empty interval.
26441
26442 2001-11-25 Richard M. Stallman <rms@gnu.org>
26443
26444 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
26445
26446 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
26447 don't lose the data in it.
26448
26449 2001-11-25 Juanma Barranquero <lektu@terra.es>
26450
26451 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
26452
26453 * buffer.c (Fkill_buffer): Likewise.
26454
26455 * print.c (temp_output_buffer_setup): Likewise.
26456
26457 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
26458
26459 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
26460
26461 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
26462
26463 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
26464 Niemitalo <kon@iki.fi>.
26465
26466 2001-11-25 Jason Rumney <jasonr@gnu.org>
26467
26468 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
26469
26470 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
26471 (Fx_show_tip): Block input during frame creation.
26472 (Fx_show_tip, Fx_hide_tip): Enable.
26473
26474 2001-11-24 Richard M. Stallman <rms@gnu.org>
26475
26476 * lread.c (Fload): Detect recursive load error for more than 3
26477 nestings of the same file.
26478 (Vrecursive_load_depth_limit): Variable deleted.
26479 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
26480
26481 2001-11-24 Jason Rumney <jasonr@gnu.org>
26482
26483 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
26484 mouse position if either left or top is not specified.
26485
26486 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
26487 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
26488 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
26489 (my_create_tip_window): Assign tip_window.
26490 (x_create_tip_frame): Use same defaults as X.
26491 (compute_tip_xy): Remove unused variable. Use full screen width.
26492 (Fx_show_tip): Do not double height. Call ShowWindow directly.
26493
26494 * w32term.c (x_after_update_window_line): Doc fix.
26495 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
26496 frames.
26497 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
26498
26499 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
26500 for all Windowed systems.
26501
26502 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
26503
26504 * msdos.c (IT_clear_screen): If the frame's faces are not yet
26505 realized, use the initial screen colors to clear the screen.
26506
26507 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26508
26509 * textprop.c (Fset_text_properties): Remove unused variables
26510 `unchanged', `prev_changed', `s' and `len'.
26511
26512 * search.c (Freplace_match): Remove unused variable `inslen'.
26513
26514 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
26515
26516 2001-11-22 Jason Rumney <jasonr@gnu.org>
26517
26518 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
26519 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
26520 (my_create_tip_window): New function.
26521 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
26522 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
26523
26524 2001-11-20 Jason Rumney <jasonr@gnu.org>
26525
26526 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
26527 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
26528
26529 * w32fns.c (Vw32_system_coding_system): Remove.
26530 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
26531
26532 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
26533
26534 * fileio.c (Fwrite_region): Move choose_write_coding_system to
26535 after build_annotations.
26536
26537 * syntax.c (describe_syntax): Add dummy arg.
26538 (describe_syntax_1): Update call to describe_vector.
26539
26540 * category.c (describe_category): Add dummy arg.
26541 (describe_category_1): Update call to describe_vector.
26542
26543 * keymap.c (Fdescribe_vector): Add `describer' parameter.
26544 (describe_command, describe_translation): Add dummy second param.
26545 (describe_map): Call elt_describer with two arguments.
26546 (describe_vector_princ): Add `fun' parameter.
26547 Call it instead of the hardcoded `princ'.
26548 (describe_vector): Add arg `args'.
26549 Pass it as a new second argument to elt_describer.
26550
26551 * keymap.h (describe_vector): Update prototype.
26552
26553 * frame.c: Don't include keymap.h any more.
26554 (keys_of_frame): Remove.
26555
26556 * lisp.h (keys_of_frame): Remove declaration.
26557
26558 * emacs.c (main): Don't call `keys_of_frame' any more.
26559
26560 2001-11-14 Andreas Schwab <schwab@suse.de>
26561
26562 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
26563 if defined, 0 otherwise.
26564 (MAP_FAILED): Define if not defined and use it to test mmap failure.
26565 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
26566
26567 2001-11-19 Richard M. Stallman <rms@gnu.org>
26568
26569 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
26570
26571 2001-11-18 Jason Rumney <jasonr@gnu.org>
26572
26573 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
26574 (x_draw_bar_cursor): If the background color of the glyph under
26575 the cursor equals the frame's cursor color, use the glyph's
26576 foreground color for drawing the bar cursor.
26577 (x_after_update_window_line): Clear internal border in different
26578 circumstances.
26579 (w32_set_vertical_scroll_bar): Check for width and height > 0.
26580 (w32_draw_relief_rect): Correct relief by 1 pixel.
26581 (x_set_glyph_string_background_width):
26582 Set extends_to_end_of_line_p if the row's fill_line_p is set and
26583 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
26584 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
26585 if cursor_in_non_selected_windows is false.
26586 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
26587 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
26588 Notice if cursor gets overwritten.
26589 (notice_overwritten_cursor): Renamed from
26590 note_overwritten_text_cursor. Rewritten to take glyph widths
26591 into account, and to take X positions as parameters.
26592 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
26593 around call to x_draw_glyphs.
26594 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
26595 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
26596 color to use for image glyph reliefs.
26597 (x_draw_image_relief): Accept zero tool_bar_button_relief.
26598 (glyph_rect): Remove unused variable `area'.
26599
26600 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
26601 some items.
26602 (x_set_internal_border_width): Set frame garbaged when window
26603 doesn't exist yet.
26604 (Fx_create_frame): Accept zero tool_bar_button_relief.
26605 (x_clear_image_1, four_corners_best, image_background)
26606 (image_background_transparent): New functions.
26607 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
26608 (gs_format): Add `:background' entry.
26609 (lookup_image): Set IMG's background color if specified.
26610 (pbm_load, xbm_load_image, png_load): Set IMG's background field
26611 when appropriate.
26612 (x_clear_image_1): Reset `background_valid' and
26613 `background_transparent_valid' fields.
26614 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
26615 calculating it here. Set IMG's background_transparent field.
26616 (enum xpm_keyword_index): Add XPM_BACKGROUND.
26617 (enum png_keyword_index): Add PNG_BACKGROUND.
26618 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
26619 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
26620 (enum gif_keyword_index): Add GIF_BACKGROUND.
26621 (enum gs_keyword_index): Add GS_BACKGROUND.
26622 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
26623 Pre-calculate image background color where necessary.
26624 (x_create_x_image_and_pixmap, xbm_load, gs_load):
26625 Use display info's n_cbits entry for screen depth.
26626 (Fx_show_tip): Remove unused variables `buffer', `top',
26627 `left', `max_width' and `max_height'.
26628
26629 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
26630
26631 2001-11-18 Gerd Moellmann <gerd@gnu.org>
26632
26633 * puresize.h (BASE_PURESIZE): Increase to 750000.
26634
26635 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26636
26637 * frame.c (Fframe_live_p): Doc fix.
26638
26639 2001-11-18 Richard M. Stallman <rms@gnu.org>
26640
26641 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
26642 (message_dolog_marker3): New static variables hold three markers.
26643 (syms_of_xdisp): Initialize and staticpro them.
26644 (message_dolog): Use message_dolog_marker1..3 instead of
26645 allocating markers each time. Unchain them when done.
26646
26647 2001-11-17 Richard M. Stallman <rms@gnu.org>
26648
26649 * doc.c (Fsnarf_documentation): Doc fix.
26650
26651 2001-11-17 Andreas Schwab <schwab@suse.de>
26652
26653 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
26654
26655 2001-11-17 Richard M. Stallman <rms@gnu.org>
26656
26657 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
26658
26659 2001-11-17 Jason Rumney <jasonr@gnu.org>
26660
26661 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
26662
26663 2001-11-17 Gerd Moellmann <gerd@gnu.org>
26664
26665 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
26666 with invalid position.
26667
26668 2001-11-16 Richard M. Stallman <rms@gnu.org>
26669
26670 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
26671
26672 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
26673 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
26674 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
26675
26676 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
26677
26678 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
26679
26680 * fileio.c (build_annotations): Split off the tail.
26681 (build_annotations_2): New fun. Extracted from build_annotations.
26682 (Fwrite_region): Split the call to build_annotations into two
26683 calls to build_annotations and build_annotations_2.
26684
26685 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26686
26687 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
26688 clear_waiting_for_input with argument.
26689
26690 * xterm.h (x_update_cursor): Remove duplicated prototype.
26691
26692 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
26693
26694 * xterm.c (waiting_for_input): Remove unnecessary declaration.
26695
26696 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
26697
26698 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
26699
26700 * fileio.c (choose_write_coding_system): New fun, extracted
26701 from Fwrite_region.
26702 (Fwrite_region): Use it.
26703
26704 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
26705 (funcall_lambda, run_hook_with_args): Make static and add prototype.
26706 (ml_apply, find_handler_clause): Add prototype.
26707
26708 2001-11-16 Eli Zaretskii <eliz@gnu.org>
26709
26710 * config.in: Add #undef HAVE_COFF_H.
26711
26712 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
26713 Required for ISC 4.1.
26714
26715 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
26716
26717 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
26718 Andrew Wiseman <a.wiseman@btclick.com>.
26719
26720 2001-11-16 Kim F. Storm <storm@cua.dk>
26721
26722 The following changes are made to clean up the various internal
26723 references to the fringes to actually use the term `fringe' for
26724 them. Previously, they were called `flags areas', `bitmap areas',
26725 `left/right side of windows', or implicitly as `flags' or
26726 `bitmaps':
26727
26728 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
26729 Comments fixed. Use renamed symbols.
26730
26731 * dispnew.c: Comment fix. Use renamed symbols.
26732
26733 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
26734 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
26735 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
26736
26737 * msdos.c: Comment fix.
26738
26739 * w32fns.c: Use renamed symbols.
26740
26741 * w32term.c: Comment fixes. Use renamed symbols.
26742 (fringe_bitmap_type): Renamed from bitmap_type.
26743 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26744 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
26745 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
26746
26747 * w32term.h: Comment fixes. Use renamed symbols.
26748 (fringes_extra): Renamed from flags_areas_extra.
26749 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26750 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26751 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26752 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26753 (FRAME_X_LEFT_FRINGE_WIDTH):
26754 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26755 (FRAME_X_RIGHT_FRINGE_WIDTH):
26756 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26757
26758 * widget.c: Use renamed symbols.
26759
26760 * window.c: Comment fixes. Use renamed symbols.
26761 (coordinates-in-window-p): Doc fix.
26762
26763 * xdisp.c: Comment fixes. Use renamed symbols.
26764
26765 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
26766
26767 * xfns.c: Use renamed symbols.
26768
26769 * xterm.c: Comment fixes. Use renamed symbols.
26770 (fringe_bitmap_type): Renamed from bitmap_type.
26771 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26772 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
26773 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
26774
26775 * xterm.h: Comment fixes. Use renamed symbols.
26776 (fringes_extra): Renamed from flags_areas_extra.
26777 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26778 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26779 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26780 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26781 (FRAME_X_LEFT_FRINGE_WIDTH):
26782 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26783 (FRAME_X_RIGHT_FRINGE_WIDTH):
26784 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26785
26786 2001-11-15 Jason Rumney <jasonr@gnu.org>
26787
26788 * w32menu.c (add-menu-item): Make help_echo and radio buttons
26789 work for most menu items. From David Ponce
26790 <david.ponce@wanadoo.fr>.
26791
26792 2001-11-15 Gerd Moellmann <gerd@gnu.org>
26793
26794 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
26795 Some x_set_* function expect to be called even if old and new
26796 value are equal.
26797
26798 * xdisp.c (build_desired_tool_bar_string): Accept zero
26799 tool_bar_button_relief.
26800
26801 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
26802
26803 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
26804
26805 * xterm.c (x_draw_bar_cursor): If the background color of the
26806 glyph under the cursor equals the frame's cursor color, use
26807 the glyph's foreground color for drawing the bar cursor.
26808
26809 * dispnew.c (direct_output_forward_char): Fix character/byte
26810 position comparison.
26811
26812 2001-11-15 Miles Bader <miles@gnu.org>
26813
26814 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
26815 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
26816 Update arguments to find_field.
26817 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
26818 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
26819 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
26820 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
26821
26822 2001-11-14 Richard M. Stallman <rms@gnu.org>
26823
26824 * editfns.c (Fpropertize): Allow call with 1 arg.
26825
26826 * dispextern.h (image_background, image_background_transparent):
26827 Conditionalize on HAVE_X_WINDOWS.
26828
26829 2001-11-13 Richard M. Stallman <rms@gnu.org>
26830
26831 * print.c (Fprin1_to_string): Doc fix.
26832
26833 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
26834
26835 * floatfns.c (Fceiling, Ffloor): Doc fixes.
26836
26837 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
26838
26839 * fileio.c (Ffile_accessible_directory_p): Doc fix.
26840
26841 * eval.c (syms_of_eval): Doc fix.
26842
26843 * coding.c (syms_of_coding): Doc fix.
26844
26845 * doc.c (Fsnarf_documentation): Doc fix.
26846
26847 * dispnew.c (syms_of_display): Doc fix.
26848
26849 * category.c (Fget_unused_category): Doc fix.
26850
26851 * buffer.c (syms_of_buffer): Doc fixes.
26852
26853 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
26854
26855 * print.c (prin1, print): Doc fix.
26856
26857 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26858
26859 * fontset.h: Remove declarations of variables
26860 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
26861
26862 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
26863 `Vclip_large_size_font'.
26864
26865 2001-11-13 Jason Rumney <jasonr@gnu.org>
26866
26867 * w32fns.c: Doc fix.
26868
26869 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26870
26871 * xfaces.c (Fface_attributes_as_vector): Doc fix.
26872
26873 * fns.c: Doc fix.
26874
26875 * emacs.c: Doc fix.
26876
26877 * coding.c: Doc fix.
26878
26879 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
26880 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
26881 `new style' [w/`doc:' keyword].
26882
26883 2001-11-12 Richard M. Stallman <rms@gnu.org>
26884
26885 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
26886 LeaveNotify events. Only FocusIn and FocusOut do that now.
26887 (x_display_and_set_cursor): Do display hollow cursors in active
26888 minibuffer windows when they are not selected.
26889
26890 2001-11-12 Jason Rumney <jasonr@gnu.org>
26891
26892 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
26893 * w32term.c: Change doc-string comments to `new style'
26894 [w/`doc:' keyword]. Doc fixes.
26895
26896 * w32fns.c: Don't define max.
26897 (Fx_open_connection): Only execute once.
26898
26899 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26900
26901 * ccl.c: Change macros to use do-while block instead of if-else.
26902 Use braces to follow GNU Coding Standards.
26903
26904 2001-11-11 Richard M. Stallman <rms@gnu.org>
26905
26906 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
26907
26908 * lread.c (read_escape): Use end_of_file_error for reporting eof.
26909
26910 * insdel.c (replace_range): Use adjust_markers_for_replace
26911 instead of adjust_markers_for_delete and adjust_markers_for_insert.
26912
26913 * intervals.h (set_text_properties, set_text_properties_1): Declare.
26914
26915 * textprop.c (set_text_properties_1): New subroutine
26916 broken out of set_text_properties.
26917 (set_text_properties): Use set_text_properties_1.
26918
26919 * intervals.c (graft_intervals_into_buffer):
26920 Use set_text_properties_1 to clear out properties.
26921
26922 * search.c (Freplace_match): Use replace_range to insert
26923 and delete. Don't request property inheritance from
26924 surrounding text.
26925
26926 2001-11-10 Jason Rumney <jasonr@gnu.org>
26927
26928 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
26929 vertical fonts. Allow them if face name is explicitly specified.
26930 Do not give up if we find a font that cannot be converted to an xlfd.
26931
26932 2001-11-10 Gerd Moellmann <gerd@gnu.org>
26933
26934 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
26935 instead of malloc/free.
26936
26937 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26938
26939 * xfaces.c (merge_face_vectors): Use braces to follow GNU
26940 Coding Standards.
26941 (Finternal_set_lisp_face_attribute): Likewise.
26942
26943 * buffer.c (Fbury_buffer): Likewise.
26944
26945 * indent.c (current_column_1): Remove unused variable `prev_col'.
26946
26947 * coding.c (encode_coding): Use precomputed value of `src'.
26948 (encode_coding): Remove unused variable `src_end'.
26949 (code_convert_region): Remove unused variables `count'.
26950
26951 2001-11-07 Jason Rumney <jasonr@gnu.org>
26952
26953 * w32term.c (x_display_and_set_cursor): Do not move system caret
26954 if cursor_glyph is NULL.
26955
26956 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26957
26958 * keymap.c (access_keymap): Fix compilation error.
26959
26960 2001-11-07 Miles Bader <miles@gnu.org>
26961
26962 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
26963
26964 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26965
26966 * intervals.c (graft_intervals_into_buffer):
26967 Remove #ifdef'd-out code.
26968 (graft_intervals_into_buffer): Remove unused variable `middle'.
26969
26970 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
26971 code (eval-current-buffer).
26972 Change doc-string comments to `new style' [w/`doc:' keyword].
26973
26974 2001-11-06 Richard M. Stallman <rms@gnu.org>
26975
26976 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
26977
26978 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
26979
26980 * lread.c (read1): Fix behavior with nested backquoting.
26981
26982 * keyboard.c (make_lispy_event): Check integerness and fix
26983 Lisp_Object/int mixup.
26984
26985 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26986
26987 * fns.c (copy_hash_table): Remove unused variable `v'.
26988
26989 * fontset.c (fontset_font_pattern): Remove unused variable
26990 `family_registry'.
26991
26992 * indent.c (current_column_1): Remove unused variable `prev_col'.
26993
26994 2001-11-05 Richard M. Stallman <rms@gnu.org>
26995
26996 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
26997
26998 * buffer.c (Fkill_buffer): Don't delete auto save file
26999 if buffer is modified.
27000
27001 2001-11-05 Andrew Innes <andrewi@gnu.org>
27002
27003 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
27004 CHECK_NUMBER_CDR.
27005
27006 2001-11-05 Richard M. Stallman <rms@gnu.org>
27007
27008 * unexelf.c (unexec): Minor changes; clean up comments.
27009
27010 2001-11-05 Sam Steingold <sds@gnu.org>
27011
27012 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
27013
27014 2001-11-05 Andreas Schwab <schwab@suse.de>
27015
27016 * sound.c (sound_perror): Save errno from being clobbered.
27017
27018 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
27019
27020 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
27021 the program image directly.
27022
27023 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27024
27025 * buffer.h (Fbuffer_local_value): Add prototype.
27026
27027 2001-11-04 Richard M. Stallman <rms@gnu.org>
27028
27029 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
27030 and CHECK_BUFFER.
27031
27032 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
27033 (record_char): Likewise.
27034
27035 * keyboard.c (make_lispy_event): Don't insist a drag event must
27036 move to a different buffer position. Instead, check for moving at
27037 least double_click_fuzz.
27038
27039 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
27040
27041 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
27042
27043 * indent.c (current_column_1, Fmove_to_column): Separate the code
27044 for display-table glyphs from the code for buffer text, to fix
27045 bugs in the former.
27046
27047 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
27048
27049 * buffer.c (Fbuffer_local_value): New function.
27050 (syms_of_buffer): Defsubr it.
27051
27052 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
27053 value of `cursor-in-non-selected-windows'.
27054
27055 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
27056 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
27057 (syms_of_xdisp): Initialize it.
27058
27059 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27060
27061 * xfns.c (Fx_create_frame): Doc fix.
27062
27063 * coding.c: Change doc-string comments to `new style' [w/`doc:'
27064 keyword].
27065
27066 * eval.c (top_level_value, top_level_set): Remove commented and
27067 #ifdef'd-out code.
27068 (Fdefvar): Fix usage in doc-string.
27069
27070 2001-11-03 Richard M. Stallman <rms@gnu.org>
27071
27072 * xfns.c: Include unistd.h, if it exists.
27073
27074 * editfns.c: Move the include of ctype.h after unistd.h.
27075
27076 * gmalloc.c: Test BROKEN_PROTOTYPES.
27077
27078 2001-11-03 Ken Raeburn <raeburn@gnu.org>
27079
27080 * lisp.h (CHECK_STRING_CAR): New macro.
27081 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
27082 treating XCAR and XCDR as lvalues.
27083 (openp): Use CHECK_STRING_CAR.
27084 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
27085
27086 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
27087
27088 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
27089 (SIGMASKTYPE): Define.
27090
27091 * syssignal.h (sigunblock): Don't define if already defined.
27092
27093 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27094
27095 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
27096 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
27097 Fix typos in comments.
27098
27099 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
27100 and #ifdef'd-out code.
27101 Fix and reindent comments.
27102
27103 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
27104
27105 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
27106 argument `i' in macros.
27107
27108 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
27109 `i' in macros.
27110
27111 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
27112 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
27113 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
27114 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
27115 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
27116 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
27117 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
27118 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
27119 in macros.
27120
27121 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
27122 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
27123 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
27124 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
27125 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
27126 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
27127 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
27128 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
27129 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
27130 (remove unused second argument).
27131
27132 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
27133
27134 * syntax.c (describe_syntax): New wrapper.
27135 (Finternal_describe_syntax_value): Rename from describe_syntax.
27136 Don't insert space at front and \n at the end.
27137 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
27138
27139 * regex.c (re_wctype): Try to fix some warnings.
27140 (regcomp, regexec): Don't forget the __restrict.
27141
27142 2001-11-02 Richard M. Stallman <rms@gnu.org>
27143
27144 * textprop.c (Fget_char_property): Doc fix.
27145
27146 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27147
27148 * process.c (Fstart_process): Add usage to doc-string.
27149
27150 * data.c (Fsetq_default): Ditto.
27151
27152 * callint.c (Finteractive): Ditto.
27153
27154 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
27155
27156 * macros.c: Don't include keymap.h any more.
27157
27158 2001-11-01 Richard M. Stallman <rms@gnu.org>
27159
27160 * data.c (Fmake_local_variable): Doc fix.
27161
27162 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
27163 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
27164
27165 * keymap.c (Fdescribe_buffer_bindings): Print character property
27166 bindings along with or instead of the buffer local map.
27167 Make the overriding maps override what they should.
27168
27169 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27170
27171 * window.c (grow_mini_window): Fix typo in comment.
27172
27173 2001-11-01 Gerd Moellmann <gerd@gnu.org>
27174
27175 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
27176 (XTset_vertical_scroll_bar): Likewise.
27177
27178 * xfns.c (x_build_heuristic_mask): Use four_corners_best
27179 instead of IMAGE_BACKGROUND.
27180
27181 * xfns.c (four_corners_best): Reindent.
27182
27183 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27184 Handle :box so that it is possible to specify sexprs.
27185
27186 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
27187
27188 * s/hpux11.h: New file.
27189
27190 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27191
27192 * emacs.c (USAGE1): Show command line option --no-window-system
27193 instead of --no-windows in usage.
27194 (standard_args): Rename --no-windows to --no-window-system.
27195 (bug_reporting_address): Follow Emacs coding conventions.
27196
27197 * eval.c (Fcommandp): Doc fix.
27198 Change doc-string comments to `new style' [w/`doc:' keyword].
27199
27200 * frame.c (Fframe_live_p): Doc fix.
27201
27202 * buffer.c (selective-display-ellipses): Doc fix.
27203
27204 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27205
27206 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
27207
27208 * xfaces.c (realize_x_face): If C is not a single-byte character,
27209 set the face's colors_copied_bitwise_p instead of the defaulted_p
27210 members which have a different meaning.
27211 (free_face_colors): Do nothing for a face whose colors have been
27212 copied bitwise.
27213
27214 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
27215
27216 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27217
27218 * marker.c, mocklisp.c: Change doc-string comments to `new style'
27219 [w/`doc:' keyword].
27220
27221 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27222
27223 * fns.c (require_unwind): Return Lisp_Object.
27224
27225 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27226
27227 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
27228 (last-input-char): Revert doc-string to be the same as the
27229 doc-string of `last-input-event'.
27230
27231 * xdisp.c: Fix typos in comments.
27232
27233 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27234
27235 * window.c (grow_mini_window): Handle case that the root
27236 window is already smaller than the nominal mininum height.
27237
27238 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
27239
27240 * emacs.c (main): Don't call keys_of_macros any more.
27241
27242 * lisp.h (keys_of_macros): Remove.
27243
27244 * macros.c (keys_of_macros): Remove.
27245
27246 * xfaces.c (Fface_attribute_relative_p): Declare args.
27247
27248 2001-10-30 Jason Rumney <jasonr@gnu.org>
27249
27250 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
27251 (enum_font_cb2): Ignore fonts with vertical orientation.
27252
27253 2001-10-30 Richard M. Stallman <rms@gnu.org>
27254
27255 * keyboard.c (Finput_pending_p): Doc fix.
27256
27257 2001-10-30 Gerd Moellmann <gerd@gnu.org>
27258
27259 * xterm.c (x_after_update_window_line): Don't run the code
27260 clearing in borders for rows whose visible height is 0.
27261
27262 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
27263 resized_p flag is set. If not set, use the much less flickering
27264 method previously used.
27265
27266 * dispnew.c (change_frame_size_1): Set frame's resized_p.
27267
27268 * frame.h (struct frame) <resized_p>: New member.
27269
27270 * lread.c (to_multibyte): Ensure read_buffer is at least twice
27271 as large as the number of bytes to convert.
27272
27273 * lread.c (to_multibyte): New function.
27274 (read1): Use it.
27275
27276 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
27277
27278 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
27279
27280 2001-10-30 Gerd Moellmann <gerd@gnu.org>
27281
27282 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
27283 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
27284 if the row's fill_line_p is set and drawing the last glyph with
27285 DRAW_IMAGE_{RAISED,SUNKEN}.
27286
27287 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
27288
27289 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
27290
27291 * xmenu.c: Include coding.h and charset.h.
27292 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
27293 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
27294 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
27295 Explicitly set wv->help. Use `TRUE' rather than `True'.
27296 (menu_help_callback): Use empty_string.
27297
27298 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
27299 (Fx_popup_dialog): Explicitly init f.
27300 (w32_menu_display_help): Use empty_string.
27301
27302 2001-10-29 Richard M. Stallman <rms@gnu.org>
27303
27304 * fns.c (Frequire): Detect recursive try to require the same
27305 feature 3 or more levels deep, and get error.
27306 (require_unwind): New subroutine.
27307 (require_nesting_list): New variable.
27308 (syms_of_fns): Init and staticpro it.
27309
27310 * print.c (print_object): Clarify indication of insertion type.
27311
27312 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
27313
27314 * coding.c (syms_of_coding): Document that locale-coding-system is
27315 used for decoding input on X.
27316
27317 * window.c (Fscroll_left, Fscroll_right): Doc fix.
27318
27319 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27320
27321 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
27322 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
27323
27324 2001-10-29 Gerd Moellmann <gerd@gnu.org>
27325
27326 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
27327 use NO_CURSOR if cursor_in_non_selected_windows is false.
27328
27329 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
27330 the slant attribute if FRAME is t.
27331
27332 * xfns.c (x_set_internal_border_width): Set frame garbaged
27333 when X window doesn't exist yet.
27334
27335 * xterm.c (x_after_update_window_line): Clear internal border
27336 in different circumstances.
27337
27338 * xterm.c (XTread_socket) <KeyPress>: Don't use
27339 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
27340 <handa@etl.go.jp>.
27341
27342 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
27343
27344 * m/ibms390.h: New file. From Adam Thornton
27345 <athornton@sinenomine.net>.
27346
27347 2001-10-28 Gerd Moellmann <gerd@gnu.org>
27348
27349 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
27350
27351 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
27352 a loop counter.
27353
27354 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27355
27356 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
27357
27358 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
27359 keyword].
27360 Fix typos in comments.
27361
27362 * emacs.c (bug_reporting_address): New function.
27363 Use it when displaying usage message.
27364
27365 * minibuf.c (read_minibuf): Remove unused external declaration of
27366 variable `Qread_only'.
27367
27368 * keymap.c (access_keymap): Remove unused variable `charset'.
27369
27370 2001-10-28 Miles Bader <miles@gnu.org>
27371
27372 * xfaces.c (merge_face_heights): Handle TO being relative as well.
27373 Remove #ifdef'd-out code.
27374 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
27375 (syms_of_xfaces): Initialize them.
27376
27377 2001-10-27 Jason Rumney <jasonr@gnu.org>
27378
27379 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
27380 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
27381 position using the system caret.
27382
27383 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
27384 (w32_system_caret_height, w32_system_caret_x)
27385 (w32_system_caret_y): New variables for tracking system caret.
27386 (w32_initialize): Initialize them.
27387 (x_display_and_set_cursor): Make system caret follow the active cursor.
27388
27389 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
27390 New messages types.
27391
27392 * w32term.c (note_mouse_highlight): Clear old help_echo.
27393
27394 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27395
27396 * xterm.c: Fix typo in a comment.
27397
27398 * emacs.c: Fix typos in comments.
27399 Remove unnecessary spaces.
27400 Change doc-string comments to `new style' [w/`doc:' keyword].
27401 (USAGE2): Fix typos in usage string.
27402
27403 * xterm.c: Fix typo in a comment.
27404
27405 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
27406 emacs.c.
27407
27408 2001-10-27 Gerd Moellmann <gerd@gnu.org>
27409
27410 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
27411 instead of 1/2 line_height in the heuristic for skipping
27412 farther backward when target_y was not reached.
27413
27414 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
27415 Display errno only if non-zero.
27416 (sound_warning): New function.
27417 (vox_configure): Don't treat failing to set sample rate as error.
27418 (various places): Improve error messages.
27419
27420 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
27421
27422 * fileio.c (Faccess_file): Run the argument filename through
27423 Fexpand_file_name, before using it.
27424
27425 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
27426 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
27427
27428 2001-10-26 Gerd Moellmann <gerd@gnu.org>
27429
27430 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
27431
27432 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
27433 Fix clearing in the case of scroll bars on the right.
27434
27435 2001-10-26 Juanma Barranquero <lektu@terra.es>
27436
27437 * w32gui.h (XImage): Add a dummy typedef.
27438
27439 2001-10-26 Gerd Moellmann <gerd@gnu.org>
27440
27441 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
27442
27443 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
27444
27445 * frame.c (Fframe_parameter): Fix last change.
27446
27447 * fileio.c: Revert last change (which removed old commented-out
27448 version of expand-file-name). Add a comment that explains why
27449 this old version should not be removed.
27450
27451 2001-10-25 Gerd Moellmann <gerd@gnu.org>
27452
27453 * frame.c (Fframe_parameter): Fix a bug whereby some
27454 ``artificial'' frame parameters, like `minibuffer' were not
27455 obtained by calling Fframe_parameters.
27456
27457 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
27458 cursor differently.
27459
27460 * xdisp.c (move_it_vertically_backward): Compute line height
27461 differently. Add heuristic to try to be more compatible to 20.x.
27462
27463 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
27464
27465 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
27466
27467 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
27468 boolean.
27469
27470 2001-10-25 Miles Bader <miles@gnu.org>
27471
27472 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
27473 BG is a pointer to a structure, not a structure.
27474 (gif_format, png_format): Add missing commas.
27475
27476 2001-10-24 Richard M. Stallman <rms@gnu.org>
27477
27478 * xfaces.c (Fface_attributes_as_vector): New function.
27479 (syms_of_xfaces): Defsubr it.
27480
27481 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27482
27483 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
27484 variable `area'.
27485
27486 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27487
27488 * search.c (scan_newline): Remove unused variable `selective_display'.
27489
27490 2001-10-25 Miles Bader <miles@gnu.org>
27491
27492 * dispextern.h (struct image): Add `background',
27493 `background_valid', and `background_transparent' fields.
27494 (image_background, image_background_transparent): New declarations.
27495 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
27496 * xfns.c (image_background, image_background_transparent)
27497 (four_corners_best): New functions.
27498 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
27499 (gs_format): Add `:background' entry.
27500 (lookup_image): Set IMG's background color if specified.
27501 (pbm_load, xbm_load_image, png_load): Set IMG's background field
27502 when appropriate.
27503 (x_clear_image_1): Reset `background_valid' and
27504 `background_transparent_valid' fields.
27505 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
27506 calculating it here. Set IMG's background_transparent field.
27507 (enum xpm_keyword_index): Add XPM_BACKGROUND.
27508 (enum png_keyword_index): Add PNG_BACKGROUND.
27509 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
27510 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
27511 (enum gif_keyword_index): Add GIF_BACKGROUND.
27512 (enum gs_keyword_index): Add GS_BACKGROUND.
27513 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
27514 Pre-calculate image background color where necessary.
27515 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
27516 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
27517 color to use for image glyph reliefs.
27518
27519 2001-10-24 Gerd Moellmann <gerd@gnu.org>
27520
27521 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
27522 in full-width rows.
27523
27524 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
27525 Fix clearing of area not covered by scroll bar.
27526
27527 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27528
27529 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
27530 and `real_start'.
27531 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
27532 (glyph_rect): Remove unused variable `area'.
27533
27534 2001-10-24 Gerd Moellmann <gerd@gnu.org>
27535
27536 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
27537
27538 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
27539 (row_containing_pos): Take additional argument DY.
27540 Treat rows ending in middle of char differently.
27541 (display_line): Handle tabs on window systems differently.
27542
27543 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
27544 with additional argument.
27545
27546 * dispextern.h (row_containing_pos): Adjust prototype.
27547
27548 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
27549 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
27550 (try_window_id, try_window_reusing_current_matrix)
27551 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
27552 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
27553
27554 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27555
27556 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
27557 gnuemacs).
27558 (HAVE_BOXES): Fix typo in comment.
27559 (push_menu_pane): Fix typo in comment.
27560
27561 * xdisp.c (display_prop_string_p): Remove unused local declaration
27562 of `Qwhen'.
27563 (single_display_prop_string_p): Remove unused local declarations
27564 of `Qwhen' and `Qmargin'.
27565 (string_buffer_position): Remove unused variable `around'.
27566 (store_frame_title): Remove unused variable `width'.
27567
27568 * window.c: Don't define max.
27569 (coordinates_in_window): Remove unused variable `uy'.
27570
27571 * widget.c: Don't define max.
27572
27573 * process.c: Don't define max.
27574 (create_process): Remove unused variable `buffer'.
27575
27576 2001-10-23 Gerd Moellmann <gerd@gnu.org>
27577
27578 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
27579
27580 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
27581
27582 * xfaces.c (Finternal_set_lisp_face_attribute)
27583 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
27584 frame is on a windowed display.
27585
27586 2001-10-23 Gerd Moellmann <gerd@gnu.org>
27587
27588 * dispnew.c (sync_window_with_frame_matrix_rows):
27589 Fix handling of windows which aren't full-width, fix handling
27590 of marginal areas.
27591
27592 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
27593
27594 2001-10-23 Andreas Schwab <schwab@suse.de>
27595
27596 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
27597 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
27598
27599 2001-10-23 Gerd Moellmann <gerd@gnu.org>
27600
27601 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
27602 REAL_END. Notice if cursor gets overwritten.
27603 (notice_overwritten_cursor): Take X positions as parameters.
27604 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
27605 around call to x_draw_glyphs.
27606
27607 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27608
27609 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
27610 instead of C) and usage.
27611
27612 * editfns.c (char-to-string): Fix argument names (use CHAR instead
27613 of C) and usage.
27614
27615 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
27616 `left', `max_width' and `max_height'.
27617
27618 2001-10-23 Gerd Moellmann <gerd@gnu.org>
27619
27620 * xdisp.c (display_line): For a tab continued to the next line,
27621 set row's ends_in_middle_of_char_p.
27622
27623 2001-10-22 Gerd Moellmann <gerd@gnu.org>
27624
27625 * xdisp.c (display_line): Fix computation of continuation lines
27626 width for TABs.
27627
27628 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27629
27630 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
27631 `Qlaplace'.
27632
27633 * fileio.c: Remove unused code.
27634
27635 2001-10-22 Miles Bader <miles@gnu.org>
27636
27637 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
27638 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
27639 Remove `DOC_STRINGS_IN_COMMENTS' cases.
27640
27641 2001-10-21 Jason Rumney <jasonr@gnu.org>
27642
27643 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
27644
27645 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
27646
27647 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
27648 (Finsert_string): Avoid the multi-line string literals warning.
27649
27650 2001-10-22 Miles Bader <miles@gnu.org>
27651
27652 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
27653 (Fdocumentation): Don't use it.
27654 (syms_of_doc): Don't initialize it.
27655
27656 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
27657 * print.c (Fwith_output_to_temp_buffer): Likewise.
27658 * window.c (Fsave_window_excursion): Likewise.
27659 * editfns.c (Fsave_excursion, Fsave_current_buffer)
27660 (Fsave_restriction): Likewise.
27661 * eval.c (Frun_hooks, Frun_hook_with_args)
27662 (Frun_hook_with_args_until_failure)
27663 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
27664 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
27665 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
27666 (Funwind_protect, Fcondition_case): Likewise.
27667 * coding.c (Ffind_operation_coding_system): Likewise.
27668 * keyboard.c (Ftrack_mouse): Likewise.
27669
27670 2001-10-21 Miles Bader <miles@gnu.org>
27671
27672 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
27673 (Fmake_hash_table): Add usage: string to doc string.
27674 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
27675 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
27676 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
27677 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
27678 (Fml_prefix_argument_loop): Likewise.
27679
27680 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27681
27682 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
27683
27684 * sysdep.c (init_sys_modes): Change doc-string comments to `new
27685 style' [w/`doc:' keyword].
27686
27687 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
27688 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
27689 comments to `new style' [w/`doc:' keyword].
27690
27691 2001-10-21 Jason Rumney <jasonr@gnu.org>
27692
27693 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
27694
27695 * w32term.c (remember_mouse_glyph): New function.
27696 (w32_mouse_position): Use it.
27697 (note_mouse_movement): If the mouse moved off the glyph, remember
27698 its new position.
27699
27700 * w32term.h (struct w32_output): Correct spelling of x_compatible.
27701 (w32_display_info): Add mouse_face_overlay.
27702
27703 * w32term.c (notice_overwritten_cursor): Renamed from
27704 note_overwritten_text_cursor. Rewritten to take glyph widths into
27705 account.
27706 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
27707 (fast_find_string_pos): New function.
27708 (fast_find_position): Return the correct vpos. Add parameter
27709 STOP. In the final row, stop before glyphs having STOP as object.
27710 Don't consider glyphs that are not from a buffer.
27711 (fast_find_position) [0]: Add a presumably more correct version
27712 for after 21.1.
27713 (expose_window_tree, expose_frame): Don't compute intersections here.
27714 (expose_window): Do it here instead.
27715 (expose_window_tree, expose_window, expose_line): Return 1 when
27716 overwriting mouse-face.
27717 (expose_window): If W is the window currently being updated, mark
27718 the frame garbaged.
27719 (expose_frame): If mouse-face was overwritten, redo it.
27720 (x_use_underline_position_properties): New variable.
27721 (syms_of_xterm): DEFVAR_BOOL it.
27722 (x_draw_glyph_string): Add comment to use it in future.
27723 (x_draw_glyph_string): Restore clipping after drawing box.
27724 Fix a computation of the underline position.
27725 (w32_get_glyph_string_clip_rect): Minor cleanup.
27726 (x_fill_stretch_glyph_string): Remove an assertion.
27727 (x_produce_glyphs): Don't convert multibyte characters
27728 to unibyte characters in unibyte buffers.
27729 (cursor_in_mouse_face_p): New function.
27730 (x_draw_stretch_glyph_string): Use it to choose a different GC
27731 when drawing a cursor within highlighted text. Don't draw
27732 background again if it has already been drawn.
27733 (x_draw_glyph_string_box): Don't draw a full-width
27734 box just because the glyph row's full_width_p flag is set.
27735 (x_draw_glyphs): Fix computation of rightmost x for
27736 full-width rows.
27737 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
27738 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
27739 change bottom shadow accordingly. Some cleanup.
27740 (x_update_window_end): Handle overwritten mouse face
27741 also for tool bar windows.
27742 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
27743 DRAW is DRAW_IMAGE_RAISED.
27744 (clear_mouse_face): Return 1 if text with mouse face was
27745 actually redrawn. Make the function static.
27746 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
27747 optimize away highlighting if we pass over that same overlay again.
27748 (note_mouse_highlight): Call mouse_face_overlay_overlaps
27749 to detect a case where we have to highlight a different region
27750 despite not having left the currently highlighted region.
27751 Set mouse_face_overlay in the x_display_info. Avoid changing the
27752 mouse pointer shape when show_mouse_face has already done it, or
27753 there is no need. Handle mouse-face and help-echo in strings.
27754 (glyph_rect): New function.
27755 (w32_mouse_position): Use it to raise the threshold for mouse
27756 movement event generation.
27757 (w32_initialize_display_info): Initialize the x_display_info's
27758 mouse_face_overlay.
27759 (w32_set_vertical_scroll_bar): Don't clear a zero height
27760 or width area.
27761 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
27762 a widget to zero height.
27763
27764 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
27765 Protect unibyte strings created by replacing their multibyte
27766 equivalents in menu_items.
27767 (w32_menu_show): Don't overwrite an item's name with its key
27768 description in case the description is a multibyte string.
27769 (single_submenu): Some cleanup.
27770
27771 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
27772 (postprocess_image): New function.
27773 (lookup_image): Call it for all image types except PostScript.
27774 (x_kill_gs_process): Call postprocess_image.
27775 (tiff_error_handler, tiff_warning_handler): New functions.
27776 (tiff_load): Install them as handlers.
27777 (x_kill_gs_process): Recognize if someone has cleared the image
27778 cache under us.
27779 (valid_image_p): Protect better against invalid image
27780 specifications. Previous code could signal an error.
27781 (Fx_hide_tip, Fshow_tip): Doc fix.
27782 (Fv_max_tooltip_size): New variable.
27783 (syns_of_xfns): DEFVAR_LISP it.
27784 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
27785 window buffer to *tip* right after creating the frame. Set frame's
27786 window_width. Use a maximum tooltip size specified by
27787 Vx_max_tooltip_size, if that has valid contents.
27788 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
27789 Make sure the tooltip is completely visible.
27790 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
27791 (Fx_create_frame): Adjust the frame's height for presence
27792 of the tool bar before calling x_figure_window_size.
27793 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
27794 when the window gets smaller.
27795 (x_set_foreground_color): Set frame's cursor_pixel.
27796 (x_set_foreground_color, x_set_background_color): Cleaned up.
27797 (x_set_font): Handle case of x_new_fontset returning the same name
27798 as before, although there was a change in fontsets.
27799
27800 2001-10-21 Miles Bader <miles@gnu.org>
27801
27802 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
27803 (Flogxor): Add usage: string to doc string.
27804 * charset.c (Fstring): Likewise.
27805 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
27806 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
27807
27808 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27809
27810 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
27811
27812 * alloc.c: Reindent DEFUNs with doc: keywords.
27813
27814 * abbrev.c (Finsert_abbrev_table_description): Reindent.
27815
27816 * frame.c: Change doc-string comments to `new style' [w/`doc:'
27817 keyword].
27818
27819 See ChangeLog.9 for earlier changes.
27820
27821 ;; Local Variables:
27822 ;; coding: iso-2022-7bit
27823 ;; add-log-time-zone-rule: t
27824 ;; End:
27825
27826 Copyright (C) 2001, 2002, 2003, 2004, 2005,
27827 2006, 2007 Free Software Foundation, Inc.
27828
27829 This file is part of GNU Emacs.
27830
27831 GNU Emacs is free software; you can redistribute it and/or modify
27832 it under the terms of the GNU General Public License as published by
27833 the Free Software Foundation; either version 2, or (at your option)
27834 any later version.
27835
27836 GNU Emacs is distributed in the hope that it will be useful,
27837 but WITHOUT ANY WARRANTY; without even the implied warranty of
27838 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27839 GNU General Public License for more details.
27840
27841 You should have received a copy of the GNU General Public License
27842 along with GNU Emacs; see the file COPYING. If not, write to the
27843 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27844 Boston, MA 02110-1301, USA.
27845
27846 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4