(tty_supports_face_attributes_p): Use instead of LFACE_INVERSE_INDEX
[bpt/emacs.git] / src / ChangeLog
1 2007-08-27 Richard Stallman <rms@gnu.org>
2
3 * eval.c (condition-case): Doc fix.
4
5 2007-08-27 Masatake YAMATO <jet@gyve.org>
6
7 * xfaces.c (tty_supports_face_attributes_p): Fix code
8 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
9 was copied and not edited.
10
11 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
14
15 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
16
17 * lread.c (Qold_style_backquotes): New var.
18 (syms_of_lread): Init and staticpro it.
19 (load_warn_old_style_backquotes): New fun.
20 (Fload): Use them to warn about old style backquotes.
21 (end_of_file_error, Fload): Remove unused vars.
22
23 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24
25 * lread.c (Vold_style_backquotes): New var.
26 (syms_of_lread): Init and export it to Elisp.
27 (read1): Set it when we find an old-style (back)quote.
28
29 2007-08-22 Jason Rumney <jasonr@gnu.org>
30
31 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
32
33 2007-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
34
35 * insdel.c (reset_var_on_error): New fun.
36 (signal_before_change, signal_after_change):
37 Use it to reset (after|before)-change-functions to nil in case of error.
38 Bind inhibit-modification-hooks to t.
39 Don't bind (after|before)-change-functions to nil while they run.
40
41 2007-08-19 Andreas Schwab <schwab@suse.de>
42
43 * alloc.c (pure): Round PURESIZE up.
44
45 2007-08-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
46
47 * xterm.c (handle_one_xevent): Remove check that mouse click is in
48 active frame.
49
50 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
51
52 * term.c (tty_default_color_capabilities): Declare static
53 variables in file scope, to avoid HPUX compiler problem.
54
55 2007-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
56
57 * gtkutil.c (update_frame_tool_bar): Use -1 as index
58 to gtk_toolbar_insert.
59
60 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
61
62 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
63 filling pixmap with stippled background.
64
65 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
66
67 * print.c (new_backquote_output): Rename from old_backquote_output.
68 (print): Inverse its logic (according to its name) so as to match the
69 behavior of new_backquote_flag in lread.c.
70
71 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
72
73 * gmalloc.c (posix_memalign): New function.
74
75 2007-08-08 Glenn Morris <rgm@gnu.org>
76
77 * Replace `iff' in doc-strings and comments.
78
79 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
80
81 * dispextern.h (struct image): New members.
82
83 * image.c: Sync to trunk version.
84 (search_image_cache, uncache_image, image-refresh): New functions.
85 Check for fg and bg colors.
86 (lookup_image): Use search_image_cache. Cache fg and bg colors.
87 (pbm_load): Another check for invalid image data.
88 (png_load): Ignore default background field.
89
90 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
91
92 2007-08-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
93
94 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
95
96 2007-08-07 Sam Steingold <sds@gnu.org>
97
98 * gmalloc.c (__morecore): Fix the declaration to comply with the
99 definition.
100
101 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
102
103 * emacs.c (main)
104 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
105 Call malloc_enable_thread on interactive startup.
106
107 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
108 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
109 [USE_PTHREAD]: Conditionalize with it.
110 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
111 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
112 New functions.
113
114 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
115
116 * xdisp.c (redisplay_window): When restoring original buffer
117 position, make sure it is still valid.
118
119 2007-08-06 Martin Rudalics <rudalics@gmx.at>
120
121 * window.c (window_min_size_2): New function.
122 (window_min_size_1, size_window, Fdisplay_buffer)
123 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
124 windows without mode- or header-lines when window-min-height is
125 too small.
126 (size_window): Reset nodelete_p after testing it, following an
127 earlier note by Kim F. Storm.
128 (display_buffer): Do not set split_height_threshold to twice the
129 value of window_min_height to avoid changing the value of a
130 customizable variable. Rather explicitly check whether the
131 height of the window that shall be splitted is at least as large
132 as split_height_threshold.
133 (Fwindow_full_width_p): New defun.
134 (syms_of_window): Defsubr it.
135
136 * window.h: Add EXFUN for Fwindow_full_width_p.
137
138 2007-08-06 Andreas Schwab <schwab@suse.de>
139
140 * window.c (Fdisplay_buffer): Use NILP.
141 (Fset_window_scroll_bars): Likewise.
142
143 2007-08-03 Richard Stallman <rms@gnu.org>
144
145 * fileio.c (Fvisited_file_modtime): Use make_time.
146
147 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
148
149 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
150 build.
151
152 2007-07-30 Stefan Monnier <monnier@iro.umontreal.ca>
153
154 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
155
156 2007-07-25 Glenn Morris <rgm@gnu.org>
157
158 * Relicense all FSF files to GPLv3 or later.
159
160 * COPYING: Switch to GPLv3.
161
162 2007-07-24 Jason Rumney <jasonr@gnu.org>
163
164 * w32fns.c (x_real_positions): Get real position from OS instead of
165 calculating it.
166
167 2007-07-23 Jason Rumney <jasonr@gnu.org>
168
169 * filelock.c (current_lock_owner): Allow for @ sign in username.
170
171 2007-07-20 Eli Zaretskii <eliz@gnu.org>
172
173 * makefile.w32-in (clean): Don't delete *~.
174
175 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
176 Define if not defined.
177
178 2007-07-18 Jason Rumney <jasonr@gnu.org>
179
180 * w32proc.c (w32_executable_type): Handle 64 bit executables.
181
182 2007-07-16 Juanma Barranquero <lekktu@gmail.com>
183
184 * coding.c (Ffind_operation_coding_system):
185 * eval.c (For, Fand, Fprogn):
186 * keyboard.c (Ftrack_mouse):
187 * print.c (Fwith_output_to_temp_buffer):
188 * window.c (Fsave_window_excursion): Doc fixes (some reported
189 by Johan Bockg\e,Ae\e(Brd).
190
191 2007-07-15 Richard Stallman <rms@gnu.org>
192
193 * data.c (Fsetq_default): Doc fix.
194
195 * eval.c (Fsetq): Doc fix.
196
197 2007-07-11 Jason Rumney <jasonr@gnu.org>
198
199 * makefile.w32-in (LIBS): Include OLE32.
200
201 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
202 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
203
204 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
205
206 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
207 Check WINDOWP before using XWINDOW.
208
209 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
210
211 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
212
213 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
214
215 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
216 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
217 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
218 (_free_internal, memalign): Use them.
219 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
220 Initialize to PTHREAD_MUTEX_INITIALIZER.
221 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
222 (morecore_nolock): Rename from morecore. All uses changed.
223 Use only nolock versions of internal allocation functions.
224 (_malloc_internal_nolock, _realloc_internal_nolock)
225 (_free_internal_nolock): New functions created from
226 _malloc_internal, _realloc_internal, and _free_internal.
227 (_malloc_internal, _realloc_internal, _free_internal): Use them.
228 Copy hook value to automatic variable before its use.
229 (memalign): Copy hook value to automatic variable before its use.
230
231 2007-06-21 Jason Rumney <jasonr@gnu.org>
232
233 * image.c (convert_mono_to_color_image): Swap fore and background.
234
235 2007-06-20 Jason Rumney <jasonr@gnu.org>
236
237 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
238 (w32_free_bdf_font): Unmap memory not handle.
239
240 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
241
242 * w32.c (_wsa_errlist): Fix typo in error message.
243 (init_environment): Ignore any environment variable from the
244 registry having a null value.
245
246 2007-06-17 Jason Rumney <jasonr@gnu.org>
247
248 * w32menu.c (add_menu_item): Don't use multibyte string functions on
249 unicode strings.
250
251 2007-06-17 Juanma Barranquero <lekktu@gmail.com>
252
253 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
254 Fix typo in docstring.
255
256 2007-06-16 Eli Zaretskii <eliz@gnu.org>
257
258 * w32menu.c (add_menu_item): Escape `&' characters in menu items
259 and their keybindings.
260
261 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
262
263 * composite.c (update_compositions): Check validity of compositions.
264
265 2007-06-10 Jason Rumney <jasonr@gnu.org>
266
267 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
268
269 2007-06-06 Jason Rumney <jasonr@gnu.org>
270
271 * s/ms-w32.h: Don't define HAVE_TZNAME.
272
273 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
274
275 * image.c (xpm_load): Remove spurious call to
276 xpm_init_color_cache.
277
278 2007-06-06 Martin Rudalics <rudalics@gmx.at>
279
280 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
281
282 2007-06-05 Dan Nicolaescu <dann@ics.uci.edu>
283
284 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
285 * xdisp.c (next_element_from_buffer):
286 * window.c (delete_window):
287 * term.c (term_mouse_highlight):
288 * msdos.c (getdefdir):
289 * macterm.c (mac_create_bitmap_from_bitmap_data)
290 (init_font_name_table):
291 * fns.c (Fsxhash):
292 * data.c (Fmake_local_variable):
293 * ccl.c (ccl_driver): Likewise.
294
295 2007-06-04 Juanma Barranquero <lekktu@gmail.com>
296
297 * window.c (Fshrink_window): Reflow docstring.
298
299 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
300
301 * Version 22.1 released.
302
303 * xfns.c (x_set_name_internal): Undo last change.
304
305 2007-06-01 Richard Stallman <rms@gnu.org>
306
307 * xfns.c (x_encode_text): Add GCPRO.
308 (x_set_name_internal): Separate USE_GTK and non-USE_GTK cases.
309
310 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
311
312 * xfns.c (x_set_name_internal): Save encoded name before
313 x_encode_text in case string data is relocated.
314
315 2007-05-31 Richard Stallman <rms@gnu.org>
316
317 * buffer.c (syms_of_buffer): Doc fix.
318
319 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
320
321 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
322 around current_column call.
323
324 2007-05-24 Chong Yidong <cyd@stupidchicken.com>
325
326 * xdisp.c (redisplay_window): If first window line is a
327 continuation line, recompute the new window start instead of
328 recentering.
329
330 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
331
332 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
333 Call mac_wakeup_from_rne on window size change.
334
335 2007-05-22 Richard Stallman <rms@gnu.org>
336
337 * xterm.c (x_connection_closed): Remove NO_RETURN.
338
339 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
340
341 * syntax.c (skip_chars): Update syntax-table only after we checked that
342 the new location is valid.
343
344 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
345
346 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
347 mac_get_window_bounds.
348
349 2007-05-17 Glenn Morris <rgm@gnu.org>
350
351 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
352
353 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
354
355 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
356 dead key repeat and up events.
357
358 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
359
360 * xterm.c (XTread_socket): Revert last change.
361
362 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
363
364 * image.c (pbm_load): Correctly check image size for greyscale pbm.
365
366 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
367
368 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
369
370 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object mixup (YAILOM)
371
372 2007-05-06 Richard Stallman <rms@gnu.org>
373
374 * process.c: Undo May 3 change.
375
376 2007-05-03 Per Cederqvist <ceder@lysator.liu.se> (tiny change)
377
378 * process.c (Faccept_process_output): Revert 2006-03-22 change so
379 that the third argument once again is in microseconds (not
380 milliseconds). This makes it compatible with Emacs 21 and
381 earlier. Problem found by Henrik Rindl\e,Av\e(Bw.
382
383 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
384
385 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
386 (Fx_popup_dialog) [MAC_OSX]: Likewise.
387
388 2007-04-29 Richard Stallman <rms@gnu.org>
389
390 * insdel.c (replace_range): For undo, record insertion first.
391
392 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
393
394 * xdisp.c (try_window_reusing_current_matrix): Fix number of
395 disabled lines.
396
397 2007-04-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
398
399 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
400
401 * gtkutil.c (xg_update_menubar, create_menus): Create empty
402 submenu for menu bar items.
403
404 2007-04-24 Chong Yidong <cyd@stupidchicken.com>
405
406 * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
407 values of the actual window.
408
409 2007-04-23 Richard Stallman <rms@gnu.org>
410
411 * process.c (Fstart_process): Doc fix.
412
413 2007-04-23 Eli Zaretskii <eliz@gnu.org>
414
415 * process.c (Fstart_process): Doc fix.
416
417 2007-04-22 Richard Stallman <rms@gnu.org>
418
419 * abbrev.c (Fdefine_abbrev): Doc fix.
420
421 * keymap.c (Fdefine_key): Minor doc fix.
422
423 2007-04-21 Glenn Morris <rgm@gnu.org>
424
425 * keymap.c (Fdefine_key): Fix info ref in doc string.
426
427 2007-04-20 Glenn Morris <rgm@gnu.org>
428
429 * sysdep.c (init_system_name): Don't accept localhost.localdomain.
430
431 2007-04-19 Juanma Barranquero <lekktu@gmail.com>
432
433 * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
434 (Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
435 Doc fixes.
436
437 2007-04-16 Chong Yidong <cyd@stupidchicken.com>
438
439 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
440 Set garbaged flag in presence of window margins.
441 (showing_window_margins_p): New function.
442
443 * xdisp.c (cursor_row_p): Only end row on newline if it's a
444 display string. Suggested by Lennart Borgman.
445
446 2007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
447
448 * alloc.c (mem_insert): Set min_heap_address and max_heap_address
449 if they are not yet initialized.
450
451 2007-04-15 Chong Yidong <cyd@stupidchicken.com>
452
453 * xdisp.c (redisplay_window): When deciding whether or not to
454 recenter, don't use the reset values of BEG_UNCHANGED and
455 END_UNCHANGED.
456
457 2007-04-13 Kim F. Storm <storm@cua.dk>
458
459 * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
460 and check that buffer is still alive upon return.
461
462 2007-04-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
463
464 * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
465 (mac_screen_config_changed): New variable.
466 (mac_handle_dm_notification, init_dm_notification_handler)
467 (mac_get_screen_info): New functions.
468 [MAC_OS8] (main): Call init_dm_notification_handler.
469 (mac_initialize) [MAC_OSX]: Likewise.
470 (XTread_socket): Call mac_get_screen_info if screen config changed.
471 (mac_initialized): Make static.
472 (mac_initialize_display_info): Remove function.
473 (mac_term_init): Call mac_get_screen_info. Add partial contents of
474 mac_initialize_display_info.
475
476 2007-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
477
478 * mac.c (xrm_get_preference_database, Fmac_get_preference)
479 [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
480
481 * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
482 Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
483 (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
484 (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
485 dpyinfo->width are those of whole screen.
486
487 2007-04-10 Chong Yidong <cyd@stupidchicken.com>
488
489 * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
490 glyph pointer before start of glyph row.
491
492 2007-04-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
493
494 * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
495 (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
496
497 2007-04-09 Martin Rudalics <rudalics@gmx.at>
498
499 * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
500
501 2007-04-08 Richard Stallman <rms@gnu.org>
502
503 * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
504
505 2007-04-07 Chong Yidong <cyd@stupidchicken.com>
506
507 * editfns.c (Ftranspose_regions): Validate interval before setting
508 text properties.
509
510 2007-04-03 Eli Zaretskii <eliz@gnu.org>
511
512 * emacs.c (main): Fix instructions for building Emacs for profiling.
513
514 2007-04-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
515
516 * gtkutil.c (xg_update_menubar): Call g_list_next after moving
517 menu bar item.
518
519 2007-04-02 Juanma Barranquero <lekktu@gmail.com>
520
521 * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
522
523 2007-04-01 Chong Yidong <cyd@stupidchicken.com>
524
525 * keymap.c (Fcommand_remapping): New optional argument.
526 (where_is_internal): Use new keymaps argument.
527 (Fkey_binding): Caller changed.
528
529 * keyboard.c (command_loop_1): Caller changed.
530
531 2007-03-31 Eli Zaretskii <eliz@gnu.org>
532
533 * window.c (Fget_lru_window): Doc fix.
534
535 2007-03-30 Chong Yidong <cyd@stupidchicken.com>
536
537 * undo.c (Fprimitive_undo): Give clearer error message when trying
538 to change text properties outside accessible part of buffer.
539
540 2007-03-29 Kim F. Storm <storm@cua.dk>
541
542 * process.c (wait_reading_process_output) [HAVE_PTYS]:
543 When EIO happens, clear channel from descriptor masks before raising
544 SIGCHLD signal to avoid busy loop between read and sigchld_handler.
545 (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
546
547 2007-03-29 Juanma Barranquero <lekktu@gmail.com>
548
549 * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
550
551 * process.c (Fformat_network_address): Return nil when the
552 argument vector contains invalid values.
553
554 2007-03-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
555
556 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
557 [USE_PTHREAD]: Include pthread.h.
558 (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
559 (malloc_initialize_1): New function created from __malloc_initialize.
560 (__malloc_initialize): Use it.
561 (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
562 (_malloc_internal, _free_internal, _realloc_internal): Use them.
563
564 * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
565
566 2007-03-27 Juanma Barranquero <lekktu@gmail.com>
567
568 * process.c (Fformat_network_address): Make args array big enough
569 to format IPv6 addresses.
570
571 2007-03-27 Glenn Morris <rgm@gnu.org>
572
573 * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
574
575 2007-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
576
577 * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
578 screen size in pixels by millimeters per pixel of main display.
579
580 * macselect.c (get_scrap_target_type_list, x_own_selection):
581 Move assignments outside predicate macros.
582 (Vselection_converter_alist): Doc fix.
583
584 * macterm.c (create_text_encoding_info_alist): Move assignments
585 outside predicate macros.
586 (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
587 dpyinfo->width are those of whole screen.
588
589 2007-03-26 Sam Steingold <sds@gnu.org>
590
591 * process.c (sigchld_handler): Delay by 1ms instead of 1s to
592 alleviate sluggishness (the original problem is still fixed).
593
594 2007-03-25 Kim F. Storm <storm@cua.dk>
595
596 * intervals.c (merge_properties): Use explicit loop instead of
597 Fplist_member to avoid QUIT. Don't use Fcdr.
598 (intervals_equal): Likewise. Rewrite loop to perform length check
599 on the fly rather than calling Flength. Don't use Fcar.
600
601 2007-03-24 Eli Zaretskii <eliz@gnu.org>
602
603 * editfns.c (Fgoto_char): Doc fix.
604
605 * indent.c (Findent_to): Doc fix.
606
607 2007-03-24 Chong Yidong <cyd@stupidchicken.com>
608
609 * editfns.c (Ftranspose_regions): Use set_text_properties_1
610 instead of Fset_text_properties to avoid GC. Signal after change.
611
612 2007-03-24 Eli Zaretskii <eliz@gnu.org>
613
614 * xfns.c (Fx_show_tip): Doc fix.
615
616 * macfns.c (Fx_show_tip): Doc fix.
617
618 * w32fns.c (Fx_show_tip): Doc fix.
619
620 2007-03-23 Kim F. Storm <storm@cua.dk>
621
622 * intervals.c (merge_properties, intervals_equal):
623 Use Fplist_member instead of Fmemq to find properties.
624
625 2007-03-23 Glenn Morris <rgm@gnu.org>
626
627 * unexhp9k800.c: Restore file with clarified legal status.
628 * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
629
630 2007-03-22 Chong Yidong <cyd@stupidchicken.com>
631
632 * widget.c (EmacsFrameSetCharSize): Catch X errors.
633
634 2007-03-22 Kenichi Handa <handa@m17n.org>
635
636 * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
637 non-encoded file name.
638 (Frename_file): Likewise.
639 (Fadd_name_to_file): Likewise.
640 (Fmake_symbolic_link): Likewise.
641
642 2007-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
643
644 * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
645 (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
646 (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
647 systime.h.
648 (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
649 systime.h.
650 (macfns.o): Remove duplicate dependency on systime.h.
651
652 * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
653 (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
654
655 * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
656 (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
657
658 * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
659 (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
660
661 * lread.c: Include blockinput.h.
662 (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
663 (unreadchar): Add BLOCK_INPUT around ungetc.
664 (load_unwind): Add BLOCK_INPUT around fclose.
665
666 * print.c: Include blockinput.h.
667 (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
668
669 * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
670 Clear immediate_quit before calling freeaddrinfo.
671 Add BLOCK_INPUT around freeaddrinfo.
672
673 * term.c: Include blockinput.h.
674 (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
675
676 2007-03-19 Richard Stallman <rms@gnu.org>
677
678 * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
679
680 * buffer.c (syms_of_buffer): Doc fix.
681
682 2007-03-18 Chong Yidong <cyd@stupidchicken.com>
683
684 * image.c (pbm_load): Signal error for invalid image size.
685
686 2007-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
687
688 * macterm.c (note_mouse_movement): Don't return immediately for
689 LeaveNotify case.
690
691 * macmenu.c (popup_activated_flag): New variable.
692 (x_activate_menubar, mac_menu_show): Set it during menu tracking.
693 (popup_activated): New function.
694
695 * xdisp.c (redisplay_internal, note_mouse_highlight):
696 Check popup_activated for MAC_OS.
697
698 2007-03-17 Juanma Barranquero <lekktu@gmail.com>
699
700 * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
701 Reported by Nikolaj Schumacher <n_schumacher@web.de>.
702
703 2007-03-17 Richard Stallman <rms@gnu.org>
704
705 * dired.c (file_name_completion): gcpro NAME.
706
707 2007-03-17 Chong Yidong <cyd@stupidchicken.com>
708
709 * xdisp.c (try_window_id): Increment matrix positions if the
710 buffer's byte count has increased, but not the character count.
711
712 2007-03-12 Andreas Schwab <schwab@suse.de>
713
714 * lisp.h: Declare check_obarray.
715
716 * process.c (Fdelete_process): Properly handle deletion of first
717 element of deleted_pid_list.
718 (create_process): Declare pid as pid_t.
719
720 2007-03-12 Kim F. Storm <storm@cua.dk>
721
722 * process.c (sigchld_handler): Change type of pid to pid_t.
723 Scan deleted_pid_list explicitly to avoid using Fmember which don't
724 know about mark bits and make_fixnum_or_float which may malloc.
725 Reported by Andreas Schwab.
726
727 * keyboard.c (read_key_sequence): Store original event into keybuf
728 when replaying sequence with local keymap(s) from string.
729
730 2007-03-12 Glenn Morris <rgm@gnu.org>
731
732 * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
733 savings" to "daylight saving").
734
735 2007-03-11 Sam Steingold <sds@gnu.org>
736
737 * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
738
739 2007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
740
741 * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
742
743 2007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
744
745 * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
746 Ignore mouse wheel movement on title bar or tool bar.
747
748 2007-03-10 Chong Yidong <cyd@stupidchicken.com>
749
750 * keyboard.c (help_form_saved_window_configs): New var.
751 (read_char_help_form_unwind): New function.
752 (read_char): Don't restore window configuration if a mouse click
753 arrives while the help form is being displayed.
754
755 2007-03-10 Kim F. Storm <storm@cua.dk>
756
757 * xdisp.c (redisplay_window): Don't automatically select a new window
758 start for a contination line during mouse-click.
759
760 2007-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
761
762 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
763
764 2007-03-09 Juanma Barranquero <lekktu@gmail.com>
765
766 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
767
768 2007-03-08 Richard Stallman <rms@gnu.org>
769
770 * keyboard.c (syms_of_keyboard): Doc fix.
771
772 2007-03-08 Chong Yidong <cyd@stupidchicken.com>
773
774 * minibuf.c (Ftry_completion): Don't short circuit if
775 completion-ignore-case is non-nil.
776
777 2007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
778
779 * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
780 Undo 2006-03-06 changes.
781
782 * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
783 bar if its width is smaller than that of Aqua small scroll bar.
784
785 2007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
786
787 * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
788 to handle correctly prompts with read-only property.
789
790 2007-03-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
791
792 * sound.c (wav_play): Check header->data_length to see how much we
793 shall read.
794 (alsa_period_size): Convert ALSA period size in frames to bytes.
795 (alsa_write): Return if frames is zero.
796
797 2007-03-06 Kenichi Handa <handa@m17n.org>
798
799 * xselect.c (Vselection_coding_system): Documentation improved.
800
801 2007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
802
803 * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
804 USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
805 (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if
806 internal border width has changed.
807
808 * macterm.h (struct mac_output): New member `internal_border_width'.
809
810 2007-03-04 Richard Stallman <rms@gnu.org>
811
812 * window.c (Fdisplay_buffer): Doc fix.
813
814 2007-03-03 Glenn Morris <rgm@gnu.org>
815
816 * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
817 not include -lX11 on Solaris.
818
819 2007-03-02 Stuart D. Herring <herring@lanl.gov>
820
821 * keymap.c (Fkey_binding): Don't consider one-element lists as events.
822
823 2007-03-01 Kenichi Handa <handa@m17n.org>
824
825 * process.c (send_process_object): Check the process status and
826 signal an error if something is wrong.
827
828 2007-02-28 Chong Yidong <cyd@stupidchicken.com>
829
830 * insdel.c (Fcombine_after_change_execute): Return nil if
831 combine_after_change_buffer has been invalidated.
832
833 2007-02-25 Dan Nicolaescu <dann@ics.uci.edu>
834
835 * m/xtensa.h: New file.
836
837 2007-02-24 Nick Roberts <nickrob@snap.net.nz>
838
839 * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
840 as strings and not character arrays.
841
842 2007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
843
844 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
845 (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
846 scroll bar handle size in order to avoid `scroll backward' problem.
847 (x_scroll_bar_create, XTset_vertical_scroll_bar)
848 [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
849
850 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
851 New member `min_handle'.
852
853 2007-02-23 Kim F. Storm <storm@cua.dk>
854
855 * print.c (print): Reset print_number_index if Vprint_number_table
856 is nil.
857
858 2007-02-23 Eli Zaretskii <eliz@gnu.org>
859
860 * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
861 instead of strpbrk.
862
863 2007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
864
865 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
866 `menu_item_selection' as in W32 version.
867 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
868 braces to avoid ambiguous `else'.
869
870 * macterm.c (mac_display_info_for_display): Remove function.
871 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
872 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
873 flush_display_optional.
874 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
875 New argument MOUSE_POS. All uses changed. Set bar->dragging to
876 negative integer if scroll bar handle is pressed.
877 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
878 Negative bar->dragging means scroll bar handle is not dragged.
879 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
880 offset of scroll bar handle from negative bar->dragging.
881 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
882 bar click is compared against mapped one. Set down/up_modifier
883 for scroll bar click event with control key.
884
885 * macterm.h (x_display_info_for_display): Remove extern.
886 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
887 value to be unpacked to 32-bit on LP64 model.
888
889 2007-02-23 Kenichi Handa <handa@m17n.org>
890
891 * process.c (send_process_object_unwind): New function.
892 (send_process_object): New function.
893 (Fprocess_send_region): Call send_process_object.
894 (Fprocess_send_string): Likewise.
895
896 2007-02-22 Jason Rumney <jasonr@gnu.org>
897
898 * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
899 when popup menu finishes.
900
901 * w32fns.c (menubar_in_use): New flag.
902 (w32_wnd_proc) <WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND>:
903 Use it.
904
905 * w32menu.c (Fx_popup_menu): Don't free menu strings here.
906 (w32_menu_show): Do it here instead.
907
908 * w32fns.c (w32_wnd_proc) <WM_INITMENU>: Set menubar_active frame
909 parameter.
910
911 * w32menu.c (current_popup_menu): Make available globally.
912 (menubar_selection_callback): Free menu strings before pushing the
913 menu event into the keyboard buffer. Remove menu_command_in_progress.
914
915 * w32fns.c (current_popup_menu): Use from w32menu.c.
916 (w32_wnd_proc) <WM_EXITMENULOOP, WM_TIMER>: Use menubar_active
917 and current_popup_menu to determine whether a menubar menu has
918 been cancelled.
919
920 * w32term.h (w32_output): Remove menu_command_in_progress.
921
922 2007-02-22 Kim F. Storm <storm@cua.dk>
923
924 * dispnew.c (update_frame, update_single_window): Set force_p here if
925 redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
926 (update_window, update_frame_1): ... instead of here.
927 (update_text_area): Clear mouse face on header lines.
928
929 2007-02-21 Kim F. Storm <storm@cua.dk>
930
931 * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too.
932
933 2007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
934
935 * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
936 [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
937 `mapped_modifiers'.
938 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
939 Layout Services routines to get current Unicode keyboard layout.
940
941 2007-02-20 Chong Yidong <cyd@stupidchicken.com>
942
943 * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
944 bgcolor.
945
946 2007-02-19 Kim F. Storm <storm@cua.dk>
947
948 * minibuf.c (Fassoc_string): Allow symbols as keys.
949
950 * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
951 handle while dragging, except when we get close to eob.
952 Fix position and size calculations so we don't scroll backwards
953 just by clicking on the handle.
954
955 2007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
956
957 * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
958 [HAVE_CARBON]: Remove target.
959 (macosx-app) [HAVE_CARBON]: Don't depend on it.
960
961 2007-02-17 Juanma Barranquero <lekktu@gmail.com>
962
963 * callproc.c (syms_of_callproc) <doc-directory>:
964 <configure-info-directory>:
965 (Fgetenv_internal): Fix typos in docstrings.
966
967 * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
968
969 2007-02-16 Andreas Schwab <schwab@suse.de>
970
971 * frame.c (Fmodify_frame_parameters): Return a value.
972
973 * editfns.c (Fformat): Add support for '+' flag.
974 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
975
976 2007-02-14 Chong Yidong <cyd@stupidchicken.com>
977
978 * s/umips.h: Unused file removed.
979
980 2007-02-14 Juanma Barranquero <lekktu@gmail.com>
981
982 * xfaces.c (Fcolor_distance): Don't continue checking a color for
983 errors after it has been correctly parsed as an RGB list.
984
985 2007-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
986
987 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
988
989 2007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
990
991 * macfns.c (Fx_focus_frame): Move current process to foreground if
992 it is not.
993 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
994 #ifdef MAC_OSX.
995 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
996 Fmac_set_font_panel_visibility. All uses changed. Rename argument
997 VISIBLE to FLAG.
998
999 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
1000 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
1001 MakeMeTheFrontProcess.
1002
1003 2007-02-12 Chong Yidong <cyd@stupidchicken.com>
1004
1005 * frame.c (x_set_screen_gamma): Clear face cache.
1006
1007 2007-02-11 Juanma Barranquero <lekktu@gmail.com>
1008
1009 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
1010 Reflow docstrings.
1011
1012 2007-02-10 Eli Zaretskii <eliz@gnu.org>
1013
1014 * window.c (Fwindow_height, Fwindow_hscroll)
1015 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
1016 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
1017 Document the effect of WINDOW arg being nil.
1018
1019 2007-02-08 Kim F. Storm <storm@cua.dk>
1020
1021 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
1022 Use Qlambda as interim value of Vminibuffer_completing_file_name.
1023 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
1024 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
1025
1026 2007-02-07 Juanma Barranquero <lekktu@gmail.com>
1027
1028 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
1029 of $(ALL_DEPS).
1030
1031 2007-02-07 Eli Zaretskii <eliz@gnu.org>
1032
1033 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
1034 put into $(BLD).
1035
1036 2007-02-06 Chong Yidong <cyd@stupidchicken.com>
1037
1038 * frame.c (Fmodify_frame_parameters): Don't bind
1039 Qinhibit_default_face_x_resources, which has no effect.
1040 (Qinhibit_default_face_x_resources): Symbol deleted.
1041
1042 2007-02-03 Eli Zaretskii <eliz@gnu.org>
1043
1044 * indent.c (Fmove_to_column): Document that the argument COLUMN is
1045 taken from prefix numeric argument.
1046
1047 2007-02-03 Juanma Barranquero <lekktu@gmail.com>
1048
1049 * lread.c (syms_of_lread) <load-history>: Doc fix.
1050
1051 2007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
1052
1053 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
1054 Use the foreground color of the scroll-bar face when drawing
1055 the scroll-bar's border.
1056
1057 2007-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1058
1059 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
1060 calling wm_supports.
1061
1062 2007-02-01 Juanma Barranquero <lekktu@gmail.com>
1063
1064 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
1065 Wording by Eli Zaretskii.
1066
1067 2007-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1068
1069 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
1070
1071 2007-01-30 Richard Stallman <rms@gnu.org>
1072
1073 * minibuf.c (read_minibuf):
1074 Save and clear Vminibuffer_completing_file_name.
1075 (read_minibuf_unwind): Restore it.
1076 (Vminibuffer_completion_table, Qminibuffer_completion_table)
1077 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
1078 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
1079 (Vminibuffer_completing_file_name): Definitions moved up.
1080
1081 2007-01-29 Chong Yidong <cyd@stupidchicken.com>
1082
1083 * m/hp800.h: Restore, removing HP-UX support.
1084
1085 2007-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1086
1087 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
1088
1089 2007-01-28 Richard Stallman <rms@gnu.org>
1090
1091 * minibuf.c (Ftry_completion, Fall_completions)
1092 (Fcompleting_read, Ftest_completion):
1093 Rename arg ALIST or TABLE to COLLECTION.
1094
1095 2007-01-27 Chong Yidong <cyd@stupidchicken.com>
1096
1097 * unexhp9k800.c: Remove due to lack of legal papers.
1098
1099 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
1100
1101 2007-01-27 Eli Zaretskii <eliz@gnu.org>
1102
1103 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
1104
1105 * minibuf.c (Fcompleting_read): Doc fix.
1106
1107 2007-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1108
1109 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
1110
1111 * Makefile.in: Use XFT_LIBS if defined.
1112
1113 2007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1114
1115 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
1116 BLOCK_INPUT/UNBLOCK_INPUT.
1117
1118 * blockinput.h (interrupt_input_blocked): Declare volatile.
1119
1120 * keyboard.c (interrupt_input_blocked): Declare volatile.
1121
1122 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
1123
1124 2007-01-24 Kim F. Storm <storm@cua.dk>
1125
1126 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
1127
1128 2007-01-23 Juanma Barranquero <lekktu@gmail.com>
1129
1130 * editfns.c (Finsert_char): Doc fix.
1131 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
1132
1133 2007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1134
1135 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
1136 Don't pass keyboard modifiers to mac_store_drag_event, but put
1137 them as kEventParamKeyModifiers Apple event parameter.
1138
1139 2007-01-21 Chong Yidong <cyd@stupidchicken.com>
1140
1141 * xdisp.c (try_window): Revert previous change.
1142
1143 * dispnew.c (update_text_area): Revert 2006-09-17 change.
1144 Always redraw non-mode-line rows with mouse-face.
1145
1146 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
1147
1148 * xdisp.c (try_window): Clear mouse-face highlights first.
1149
1150 * window.c (set_window_buffer): Revert 2006-11-22 change.
1151
1152 2007-01-20 Eli Zaretskii <eliz@gnu.org>
1153
1154 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
1155 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
1156
1157 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
1158
1159 * keyboard.c (read_key_sequence): Extract local map only if the
1160 given position is in an accessible buffer region.
1161
1162 2007-01-19 Nick Roberts <nickrob@snap.net.nz>
1163
1164 * .gdbinit: Reformat documentation so that first sentence
1165 displays properly with "help user-defined" (like apropos).
1166
1167 2007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
1168
1169 * epaths.in: Move PATH_DOC from local/info to local/share/info.
1170
1171 2007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1172
1173 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
1174 Create movable modal window instead of movable alert window.
1175 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
1176 of DisableControl.
1177
1178 * macselect.c (Fmac_resume_apple_event): Set error number when
1179 descriptor type of reply is non-null.
1180
1181 2007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1182
1183 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
1184 Use DisableControl for disabled items. Set default button to first
1185 enabled one. Use icon of application in execution.
1186
1187 2007-01-13 Eli Zaretskii <eliz@gnu.org>
1188
1189 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
1190 Copy PID into EMACS_INT to avoid GCC warnings.
1191
1192 * fns.c (maybe_resize_hash_table): Copy new size of hash table
1193 into EMACS_INT to avoid GCC warnings.
1194
1195 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
1196 geteuid and getuid into EMACS_INT to avoid GCC warnings.
1197
1198 * dired.c (Ffile_attributes): Fix last change.
1199
1200 2007-01-12 Eli Zaretskii <eliz@gnu.org>
1201
1202 * dired.c (Ffile_attributes): Copy some members of `struct stat'
1203 into int's to avoid GCC warnings about limited range of short in
1204 arguments to FIXNUM_OVERFLOW_P.
1205
1206 2007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1207
1208 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
1209 (mac_handle_dialog_event, install_dialog_event_handler)
1210 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
1211 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1212 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
1213 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1214 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1215 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1216 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1217 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
1218 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
1219 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
1220
1221 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
1222 Call mac_prepare_for_quickdraw.
1223 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
1224 outside #ifdef MAC_OSX.
1225 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
1226 outside #ifdef MAC_OSX.
1227 (mac_check_bundle) [MAC_OSX]: Remove unused function.
1228
1229 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
1230 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
1231
1232 2007-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1233
1234 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
1235 block/unblock SIGIO.
1236
1237 2007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * editfns.c (Fformat): Allow integer-format to work with floats of size
1240 larger than most-positive-fixnum (but still smaller than MAXINT).
1241
1242 * dired.c (Ffile_attributes): Use floats for large uids/gids.
1243
1244 2007-01-09 Eli Zaretskii <eliz@gnu.org>
1245
1246 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
1247
1248 2007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1249
1250 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
1251 around mkstemp.
1252
1253 * image.c (XDrawLine) [MAC_OS]: Remove macro.
1254 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
1255 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
1256 XCreateGC_pixmap.
1257
1258 * macgui.h (Display): Typedef to opaque type.
1259
1260 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
1261 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
1262 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
1263 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
1264 Use mac_quit_char_key_p.
1265
1266 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
1267 (XCreateGC): Change type of 2nd argument to void *.
1268 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1269 Fix last change.
1270 (mac_to_emacs_modifiers): Change return type to int.
1271 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
1272 (mac_mapped_modifiers): New function.
1273 (XTread_socket): Use it.
1274 [USE_TSM] (mac_handle_text_input_event): Likewise.
1275 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1276 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
1277 Remove variables.
1278 (mac_determine_quit_char_modifiers, init_quit_char_handler)
1279 [MAC_OSX]: Remove functions.
1280 (make_ctrl_char) [MAC_OSX]: Add extern.
1281 (mac_quit_char_key_p) [MAC_OSX]: New function.
1282 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
1283
1284 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
1285 (XCreateGC): Change type in extern.
1286 (XDrawLine): Rename from mac_draw_line_to_pixmap.
1287 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
1288
1289 2007-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1290
1291 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
1292 interrupt_input_pending.
1293
1294 * xterm.h (x_display_info): New: net_supported_atoms,
1295 nr_net_supported_atoms and net_supported_window.
1296
1297 * xterm.c (last_user_time): New variable.
1298 (handle_one_xevent): Set last_user_time from events that have Time.
1299 Set net_supported_window to 0 when reparented.
1300 (wm_supports): New function.
1301 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
1302 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
1303 and net_supported_window.
1304
1305 2007-01-05 Kim F. Storm <storm@cua.dk>
1306
1307 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
1308 strings without embedded newlines immediately followed by newline.
1309
1310 2007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1311
1312 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
1313 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
1314 gmtime/localtime/emacs_memftimeu/mktime.
1315
1316 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
1317 instead of 'EMAx'.
1318 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
1319
1320 * macgui.h (struct _XGC) [USE_CG_DRAWING
1321 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
1322 and cg_back_color.
1323
1324 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
1325 (restore_show_help_function, menu_target_item_handler)
1326 [TARGET_API_MAC_CARBON]: New functions.
1327 (install_menu_target_item_handler): New function.
1328 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
1329 item property.
1330
1331 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
1332 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
1333 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
1334 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
1335 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
1336 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
1337 (mac_cg_color_black) [USE_CG_DRAWING
1338 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
1339 (init_cg_color) [USE_CG_DRAWING]: New function.
1340 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
1341 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
1342 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
1343 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
1344 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
1345 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
1346 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
1347 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
1348 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
1349 gc->cg_back_color.
1350 (install_drag_handler, remove_drag_handler): Make extern.
1351 (install_menu_target_item_handler): Add extern.
1352 (install_window_handler): Call install_menu_target_item_handler.
1353 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
1354 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
1355
1356 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
1357
1358 2007-01-04 Juanma Barranquero <lekktu@gmail.com>
1359
1360 * window.c (Fwindow_end): Fix use of >= operator.
1361
1362 2007-01-03 Richard Stallman <rms@gnu.org>
1363
1364 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
1365
1366 2007-01-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1367
1368 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
1369 unhighlight_id.
1370
1371 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
1372 parent of the menu item. Get menu item widget from event.
1373 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
1374 unhighlight_id has been removed.
1375 (create_menus): Connect enter/leave-notify-event to the menu instead
1376 of individual items.
1377
1378 2006-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1379
1380 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
1381 xg_tool_bar_menu_proxy.
1382 (xg_tool_bar_menu_proxy): New function.
1383 (xg_tool_bar_proxy_callback): New function.
1384
1385 2006-12-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1386
1387 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
1388 (xg_tool_bar_callback): Remove check for button.
1389 (update_frame_tool_bar): Put an event box in the tool bar and a button
1390 in the event box. Attach enter/leave-notify-event to the event box.
1391
1392 2006-12-30 Richard Stallman <rms@gnu.org>
1393
1394 * keymap.c (Fdefine_key): Doc fix.
1395
1396 2006-12-29 Kim F. Storm <storm@cua.dk>
1397
1398 * frame.h (struct frame): New member minimize_tool_bar_window_p.
1399
1400 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
1401 (Vauto_resize_tool_bars): ... this.
1402 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
1403 to describe new value `grow-only', and use of C-l.
1404 (display_tool_bar_line): Only use default face for border below
1405 toolbar if not grow-only (to get acceptable visual appearence).
1406 Explicitly set visible_height for empty toolbar lines.
1407 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
1408 minimize_tool_bar_window_p flag.
1409
1410 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
1411 when called without arg to redraw with minimum toolbar height.
1412 Update doc string.
1413
1414 2006-12-29 Jason Rumney <jasonr@gnu.org>
1415
1416 * s/ms-w32.h (tzname): Do not define in msvc8.
1417 (utime): Do not define in msvc8.
1418
1419 * regex.c (regerror): Change parameter name err_code.
1420
1421 2006-12-26 Richard Stallman <rms@gnu.org>
1422
1423 * search.c (Fsearch_forward): Doc fix.
1424
1425 * callint.c (Finteractive): Doc fix.
1426
1427 2006-12-25 Kim F. Storm <storm@cua.dk>
1428
1429 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
1430
1431 2006-12-23 Eli Zaretskii <eliz@gnu.org>
1432
1433 * keyboard.c (some_mouse_moved): Fix last change.
1434
1435 2006-12-22 Eli Zaretskii <eliz@gnu.org>
1436
1437 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
1438
1439 2006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
1440
1441 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
1442 * m/sh3el.h: New file.
1443
1444 2006-12-22 Eli Zaretskii <eliz@gnu.org>
1445
1446 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
1447 $(BLD).
1448 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
1449 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
1450 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
1451 (clean): Delete stamp_BLD.
1452
1453 2006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1454
1455 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1456 Call mac_update_proxy_icon also when buffer modification flag changed.
1457 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
1458 but compare FSRef/FSSpec of resolved alias.
1459
1460 2006-12-21 Kim F. Storm <storm@cua.dk>
1461
1462 * w32.c (_sys_wait_accept): Fix handle leak.
1463
1464 2006-12-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1465
1466 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
1467 defined.
1468
1469 2006-12-20 Kim F. Storm <storm@cua.dk>
1470
1471 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
1472
1473 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
1474
1475 * keyboard.c (syms_of_keyboard) <double-click-time>:
1476 * mac.c (Fmac_code_convert_string):
1477 * search.c (Fsearch_forward): Doc fixes.
1478
1479 2006-12-19 Kim F. Storm <storm@cua.dk>
1480
1481 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
1482 a sigusr1 event instead of [signal usr1] sequence, and signal events
1483 are now supposed to be handled via special-event-map.
1484
1485 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
1486 (make_lispy_event): Don't generate Qsignal prefix for code 0.
1487 Abort if signal code is unknown.
1488 (store_user_signal_events): Don't make Qsignal prefix (code 0).
1489 (Qsignal): Move declaration back to process.c.
1490 (syms_of_keyboard): Don't intern or staticpro it here.
1491
1492 * process.c (Qsignal): Declare here.
1493 (syms_of_process): Intern or staticpro it.
1494
1495 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
1496
1497 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
1498
1499 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
1500
1501 * buffer.c (syms_of_buffer) <buffer-display-table>:
1502 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
1503
1504 2006-12-17 Richard Stallman <rms@gnu.org>
1505
1506 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
1507 to Ffile_name_completion.
1508
1509 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
1510 (Ffile_name_completion): New arg PREDICATE.
1511
1512 2006-12-17 Juanma Barranquero <lekktu@gmail.com>
1513
1514 * buffer.c (Fkill_buffer): Doc fix.
1515 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
1516
1517 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
1518
1519 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
1520
1521 2006-12-16 Eli Zaretskii <eliz@gnu.org>
1522
1523 * w32fns.c (w32-window-exists-p): New function.
1524 (syms_of_w32fns): Defsubr it.
1525
1526 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
1527
1528 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
1529
1530 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
1531
1532 2006-12-15 Eli Zaretskii <eliz@gnu.org>
1533
1534 * emacs.c (USAGE3): Clarify documentation of --color.
1535
1536 2006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1537
1538 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
1539 New variable.
1540 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
1541 [!MAC_OSX] (select): Use them.
1542 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
1543 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
1544
1545 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
1546 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
1547 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
1548
1549 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
1550 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
1551
1552 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
1553 ATSUGetGlyphBounds if not necessary.
1554 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
1555 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
1556 (fm_get_style_from_font, atsu_find_font_from_family_name)
1557 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
1558 [USE_ATSUI]: New functions.
1559 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
1560 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
1561 Don't get metrics for Latin-1 right half characters.
1562 (mac_load_query_font): Don't load font if space width is not positive.
1563 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
1564 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
1565 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
1566
1567 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
1568
1569 2006-12-15 Kim F. Storm <storm@cua.dk>
1570
1571 * keyboard.c (ignore_mouse_drag_p): New global var.
1572 (some_mouse_moved): Return 0 if it is non-zero.
1573 (make_lispy_event): Generate click event on mouse up if
1574 ignore_mouse_drag_p is non-zero, even if mouse moved.
1575 Clear ignore_mouse_drag_p on mouse down/up.
1576
1577 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
1578 is resized to avoid generating a mouse drag event.
1579
1580 2006-12-14 Juanma Barranquero <lekktu@gmail.com>
1581
1582 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
1583 minimum tracking size. Remove non-working old hack to do the same.
1584
1585 2006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1586
1587 * emacs.c (handle_user_signal): Move function to keyboard.c.
1588 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
1589
1590 * keyboard.c (make_lispy_event): Use find_user_signal_name.
1591 (read_avail_input): Store pending user signal events.
1592 (struct user_signal_info): New struct.
1593 (user_signals): New variable.
1594 (add_user_signal, store_user_signal_events)
1595 (find_user_signal_name): New functions.
1596 (handle_user_signal): Move function from emacs.c. Don't store
1597 USER_SIGNAL_EVENT here, but increment number of pending signals.
1598
1599 * keyboard.h (add_user_signals): Add extern.
1600
1601 2006-12-11 Juanma Barranquero <lekktu@gmail.com>
1602
1603 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
1604 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
1605 <line-spacing, left-margin>: Doc fixes.
1606
1607 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
1608
1609 2006-12-10 Kim F. Storm <storm@cua.dk>
1610
1611 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
1612
1613 2006-12-10 Juanma Barranquero <lekktu@gmail.com>
1614
1615 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
1616 * buffer.c (syms_of_buffer) <default-major-mode>:
1617 * keymap.c (Flookup_key):
1618 * lread.c (Feval_buffer, Feval_region):
1619 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
1620 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
1621 * marker.c (Fmarker_insertion_type):
1622 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
1623 * msdos.c (syms_of_msdos) <delete-exited-processes>:
1624 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
1625 <x-underline-at-descent-line>:
1626 * xdisp.c (format-mode-line):
1627 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
1628 <x-underline-at-descent-line>: Doc fixes.
1629
1630 2006-12-10 Andreas Schwab <schwab@suse.de>
1631
1632 * systime.h (EMACS_GET_TIME): Remove check for
1633 HAVE_STRUCT_TIMEZONE which is never defined.
1634
1635 2006-12-10 Alan Mackenzie <acm@muc.de>
1636
1637 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
1638 result is now neither the last elt nor optional for OLDSTATE.
1639
1640 2006-12-09 Eli Zaretskii <eliz@gnu.org>
1641
1642 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
1643 extract the process ID from a Lisp float.
1644
1645 2006-12-09 Chong Yidong <cyd@stupidchicken.com>
1646
1647 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
1648
1649 2006-12-08 Eli Zaretskii <eliz@gnu.org>
1650
1651 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
1652 platforms where long is 64-bit.
1653
1654 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
1655
1656 2006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
1657
1658 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
1659
1660 2006-12-08 Kenichi Handa <handa@m17n.org>
1661
1662 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
1663
1664 2006-12-08 Juanma Barranquero <lekktu@gmail.com>
1665
1666 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
1667
1668 2006-12-07 Kim F. Storm <storm@cua.dk>
1669
1670 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
1671 (Fsignal_process): Don't use strncasecmp.
1672
1673 2006-12-05 Glenn Morris <rgm@gnu.org>
1674
1675 * abbrev.c (Qforce): New Lisp_Object.
1676 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
1677 abbrevs, unless 'force is applied.
1678 (syms_of_abbrev): Add Qforce.
1679
1680 2006-12-04 Kim F. Storm <storm@cua.dk>
1681
1682 * process.c (parse_signal): Rename macro from handle_signal.
1683 (Fsignal_process): Also accept lower-case variants of signal
1684 names (to align with signal names generated by Emacs itself).
1685
1686 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
1687 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
1688 first with code == 0 [signal] and one with code == sig number.
1689 (main): Use it as handler for SIGUR1 and SIGUSR2.
1690
1691 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
1692 if first event in [signal xxx] sequence.
1693 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
1694 (syms_of_keyboard): Don't intern and staticpro them.
1695 (Qsignal): Declare here.
1696 (syms_of_keyboard): Intern and staticpro it.
1697 (make_lispy_event): Use it. Intern symbols on the fly for other
1698 USER_SIGNAL_EVENTs events.
1699
1700 * process.c (Qsignal): Declare extern.
1701 (syms_of_process): Don't intern/staticpro it here.
1702
1703 * process.c (read_process_output): Abort if carryover < 0.
1704
1705 2006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1706
1707 * config.in: Regenerate.
1708
1709 * fileio.c [__NetBSD__]: Don't define `unix'.
1710 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
1711 `#ifdef unix'.
1712
1713 2006-12-04 Glenn Morris <rgm@gnu.org>
1714
1715 * Makefile.in (version): New variable, set by configure.
1716 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
1717
1718 2006-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1719
1720 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
1721 without an image.
1722
1723 2006-12-01 Eli Zaretskii <eliz@gnu.org>
1724
1725 * w32fns.c (Fw32_shell_execute): Doc fix.
1726
1727 2006-11-30 Chong Yidong <cyd@stupidchicken.com>
1728
1729 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
1730 lines ending in tab.
1731
1732 2006-11-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1733
1734 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
1735 property ...
1736 (XTframe_raise_lower): ... to here.
1737
1738 2006-11-30 Kenichi Handa <handa@m17n.org>
1739
1740 * regex.c (regex_compile): Fix previous change.
1741
1742 2006-11-29 Juanma Barranquero <lekktu@gmail.com>
1743
1744 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
1745
1746 2006-11-28 Chong Yidong <cyd@stupidchicken.com>
1747
1748 * config.in: Regenerate.
1749
1750 2006-11-28 Kenichi Handa <handa@m17n.org>
1751
1752 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
1753 multibyte character.
1754
1755 2006-11-27 Chong Yidong <cyd@stupidchicken.com>
1756
1757 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
1758
1759 2006-11-27 Kim F. Storm <storm@cua.dk>
1760
1761 * window.c (set_window_buffer): Refactor recent changes.
1762
1763 2006-11-27 Jason Rumney <jasonr@gnu.org>
1764
1765 * w32term.c (w32_msg_worker): Declare correctly.
1766 (w32_initialize): Don't cast w32_msg_worker.
1767
1768 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
1769
1770 2006-11-26 Chong Yidong <cyd@stupidchicken.com>
1771
1772 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
1773 directory exists.
1774
1775 2006-11-25 Eli Zaretskii <eliz@gnu.org>
1776
1777 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
1778 as per the calling sequence change on 2006-07-11.
1779
1780 2006-11-25 Chong Yidong <cyd@stupidchicken.com>
1781
1782 * window.c (set_window_buffer): Use BLOCK_INPUT.
1783
1784 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
1785
1786 * fns.c (substring_both): Add missing address operator.
1787
1788 2006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1789
1790 * fns.c: Use AREF/ASIZE macros.
1791 (concat): Provide the full ANSI prototype.
1792
1793 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
1794
1795 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
1796
1797 2006-11-23 William Smith <William.Smith@global360.com> (tiny change)
1798
1799 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
1800
1801 2006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
1802
1803 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
1804 /usr/pkg/lib from the library search path.
1805 (LD_SWITCH_X_DEFAULT): New macro.
1806
1807 2006-11-22 Chong Yidong <cyd@stupidchicken.com>
1808
1809 * window.c (set_window_buffer): Clear mouse highlight if it is in
1810 this window.
1811
1812 2006-11-21 Chong Yidong <cyd@stupidchicken.com>
1813
1814 * xfaces.c (realize_default_face): Check if the default font name
1815 exists on this display before trying to use it.
1816
1817 2006-11-21 Richard Stallman <rms@gnu.org>
1818
1819 * fileio.c: Break line before &&, not after.
1820
1821 2006-11-20 Eli Zaretskii <eliz@gnu.org>
1822
1823 * fns.c (concat) [!__GNUC__]: Add prototype.
1824
1825 2006-11-20 Kenichi Handa <handa@m17n.org>
1826
1827 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
1828 check the tailing slash of a filename.
1829
1830 2006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
1831
1832 * indent.c (Fvertical_motion): Include composition in the case of
1833 overshoot expected.
1834
1835 2006-11-19 Andreas Schwab <schwab@gnu.org>
1836
1837 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
1838
1839 * xmenu.c (Fx_popup_menu): Initialize selection.
1840
1841 2006-11-18 Andreas Schwab <schwab@suse.de>
1842
1843 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
1844
1845 2006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1846
1847 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
1848 to avoid gcc 2.96 error.
1849
1850 2006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
1851
1852 * search.c (simple_search): In the loop of backward searching,
1853 check also the byte position against the limit.
1854
1855 2006-11-14 Romain Francoise <romain@orebokech.com>
1856
1857 * minibuf.c (Fcompleting_read): Fix typo in docstring.
1858
1859 2006-11-14 Kenichi Handa <handa@m17n.org>
1860
1861 * coding.c (code_convert_region): Initialize coding->heading_ascii.
1862 (decode_coding_string, code_convert_region): Likewise.
1863
1864 2006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1865
1866 * config.in: Regenerate.
1867
1868 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
1869 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1870 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1871 CGDisplayScreenSize is available.
1872
1873 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
1874 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
1875 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
1876 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1877 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1878 CancelMenuTracking is available.
1879
1880 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
1881 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
1882 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
1883 CGContextShowGlyphsWithAdvances is available.
1884
1885 2006-11-13 Jason Rumney <jasonr@gnu.org>
1886
1887 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
1888
1889 2006-11-13 Nozomu Ando <nand@mac.com>
1890
1891 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
1892 Fix address calculations for case END < START.
1893 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
1894
1895 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
1896
1897 * coding.c (Fencode_sjis_char, Fencode_big5_char):
1898 Improve argument/docstring consistency.
1899
1900 * editfns.c (Fmessage): Doc fixes.
1901
1902 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
1903
1904 2006-11-12 Chong Yidong <cyd@stupidchicken.com>
1905
1906 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
1907
1908 2006-11-12 Romain Francoise <romain@orebokech.com>
1909
1910 * xselect.c (selection-coding-system): Fix docstring.
1911
1912 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
1913
1914 * category.c (Fchar_category_set): Improve arg/docstring consistency.
1915
1916 * data.c (Flogxor):
1917 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
1918 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
1919 (Fstring_make_unibyte): Fix typos in docstrings.
1920
1921 2006-11-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1922
1923 * xterm.h (struct x_display_info): Fix indentation.
1924
1925 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
1926 (x_check_fullscreen): Call do_ewmh_fullscreen.
1927 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
1928
1929 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
1930
1931 * term.c: Define fullscreen_hook.
1932 (syms_of_term): Initialize fullscreen_hook to NULL.
1933
1934 * termhooks.h: Add fullscreen_hook.
1935
1936 2006-11-08 Juanma Barranquero <lekktu@gmail.com>
1937
1938 * bytecode.c (Fbyte_code):
1939 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
1940
1941 2006-11-06 Juanma Barranquero <lekktu@gmail.com>
1942
1943 * lread.c (syms_of_lread):
1944 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
1945
1946 2006-11-06 Martin Rudalics <rudalics@gmx.at>
1947
1948 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1949
1950 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1951 Return nil if building without menus.
1952
1953 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
1954 Return nil if building without menus.
1955
1956 2006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
1957
1958 * s/netbsd.h (POSIX_SIGNALS): Define.
1959
1960 2006-11-05 Martin Rudalics <rudalics@gmx.at>
1961
1962 * macmenu.c (Fmenu_or_popup_active_p): New function.
1963 (syms_of_macmenu): Defsubr it.
1964
1965 * w32menu.c (Fmenu_or_popup_active_p): New function.
1966 (syms_of_w32menu): Defsubr it.
1967 (popup_activated_flag, popup_activated): Remove.
1968
1969 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
1970 check popup_activated.
1971
1972 * xmenu.c (Fmenu_or_popup_active_p): New function.
1973 (syms_of_xmenu): Defsubr it.
1974
1975 2006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1976
1977 * unexmacosx.c (malloc_cookie): Remove unused variable.
1978 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
1979 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
1980 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
1981 (num_unexec_regions, unexec_regions): Make variables static.
1982 (print_regions, find_emacs_zone_regions): Make static.
1983 (unexec_region_info): New typedef.
1984 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
1985 All uses changed.
1986 (unexec_regions_recorder): Subtract size of trailing null pages from
1987 filesize. Show filesize.
1988 (unexec_regions_merge): Don't merge if null pages of preceding region
1989 is not too small. Use long format in printf.
1990 (copy_segment, copy_data_segment): Show filesize.
1991 (copy_data_segment): Write filesize bytes of region data.
1992 Adjust filesize in segment command accordingly.
1993 (dump_it): Use long format in printf.
1994
1995 2006-11-05 Juanma Barranquero <lekktu@gmail.com>
1996
1997 * dosfns.c (Finsert_startup_screen):
1998 * fns.c (Ffeaturep, syms_of_fns):
1999 * frame.c (syms_of_frame): Fix typos in docstrings.
2000
2001 * unexcw.c (unexec): Fix typo in output message.
2002
2003 2006-11-04 Ralf Angeli <angeli@caeruleus.net>
2004
2005 * w32fns.c (w32_createwindow): Remove code for handling -geometry
2006 command line option and `initial-frame-alist' which is superfluous
2007 after the last change to `w32_createwindow'.
2008
2009 2006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
2010
2011 * w32proc.c (sys_wait): Only wait for processes with fd<0.
2012 Others should be handled by sys_select instead. Fixes problems
2013 with (progn (start-process "" nil "ls") (call-process "ls")).
2014
2015 2006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2016
2017 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
2018 avoid gcc 2.95 error.
2019
2020 2006-11-04 Chong Yidong <cyd@stupidchicken.com>
2021
2022 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
2023 wicon is null, insert an empty button.
2024
2025 2006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2026
2027 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
2028 window.
2029
2030 2006-11-02 Juanma Barranquero <lekktu@gmail.com>
2031
2032 * emacs.c (Fkill_emacs): Fix typo in docstring.
2033
2034 2006-11-02 Nozomu Ando <nand@mac.com>
2035
2036 * unexmacosx.c (mach_header, segment_command, vm_region, section)
2037 [_LP64]: New defines.
2038 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
2039 (MH_MAGIC) [_LP64]: Redefine.
2040 (delta): Remove variable.
2041 (curr_file_offset, pagesize): New variables.
2042 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
2043 (data_segment_old_fileoff): Initialize explicitly.
2044 (print_region, unexec_regions_recorder, print_load_command_name)
2045 (copy_segment, copy_data_segment): Use long format in printf.
2046 (MAX_UNEXEC_REGIONS): Increase to 400.
2047 (unexec_regions_recorder): Don't warn too many regions here.
2048 (find_emacs_zone_regions): Warn too many regions here.
2049 (print_load_command_name) [_LP64]: Show correct load command name.
2050 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
2051 Show starting virtual memory address. Don't show ending file offset.
2052 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
2053 (dump_it): Use new local variable `linkedit_delta' and pass to them.
2054 Error if trying to handle multiple DATA segments.
2055 (unexec): Initialize variable `pagesize'.
2056
2057 2006-11-01 Juanma Barranquero <lekktu@gmail.com>
2058
2059 * eval.c (Fcatch): Doc fix.
2060
2061 2006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2062
2063 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
2064 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
2065 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
2066 (xpm_load_image): Add const qualifier to arguments.
2067 [MAC_OS] (xpm_color_key_strings): Make static const.
2068
2069 * mac.c (create_apple_event_from_event_ref)
2070 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
2071 (parse_include_file, parse_binding, parse_component)
2072 (parse_resource_name, parse_value, parse_resource_line)
2073 (xrm_merge_string_database, xrm_get_resource)
2074 (xrm_get_preference_database): Add const qualifier to arguments.
2075 [MAC_OSX] (sys_select): Make variable `context' static const.
2076
2077 * macfns.c (mac_color_map): Make static const.
2078 (mac_color_map_lookup): Add const qualifier to arguments.
2079
2080 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
2081 static const.
2082 (name_is_separator): Add const qualifier to arguments.
2083
2084 * macselect.c (init_service_handler): Make variable `specs' static
2085 const.
2086
2087 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
2088 `swap_nibbles' static const.
2089 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
2090 `tags', `sizes', `values' static const.
2091 (mac_draw_string_common): Make variables `context' static.
2092 Make variables `tags', `sizes', and `values' static const.
2093 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
2094 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
2095 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
2096 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
2097 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
2098 qualifier to arguments.
2099 (xlfd_scalable_fields, keycode_to_xkeysym_table)
2100 (fn_keycode_to_keycode_table): Make static const.
2101 (mac_load_query_font): Make variables `tags', `sizes', `values',
2102 `types', and `selectors' static const.
2103 (mac_handle_command_event, mac_handle_window_event):
2104 Make variables `names' and `types' static const.
2105 (init_command_handler, install_window_handler): Make variables
2106 `specs*' static const.
2107 (mac_handle_font_event, mac_handle_text_input_event)
2108 (mac_store_service_event): Make variables `names' and `types'
2109 const. Make variables `names_*' and `types_*' static const.
2110
2111 * macterm.h (create_apple_event_from_event_ref)
2112 (create_apple_event_from_drag_ref, xrm_merge_string_database)
2113 (xrm_get_resource, xrm_get_preference_database): Add const
2114 qualifier to arguments in externs.
2115
2116 2006-10-31 Kenichi Handa <handa@m17n.org>
2117
2118 * xfns.c (xic_create_xfontset): Fix previous change.
2119
2120 2006-10-30 Chong Yidong <cyd@stupidchicken.com>
2121
2122 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
2123 /usr/pkg/lib to library search path.
2124
2125 2006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
2126
2127 * ralloc.c (relinquish): Use a long for excess space counter to
2128 handle 64-bit case correctly.
2129
2130 2006-10-29 Jeramey Crawford <jeramey@jeramey.com>
2131
2132 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
2133
2134 2006-10-29 Juanma Barranquero <lekktu@gmail.com>
2135
2136 * window.c (Fdisplay_buffer): Fix typo in docstring.
2137
2138 2006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
2139
2140 * w32term.c (x_draw_glyph_string_foreground): Set background mode
2141 to TRANSPARENT before using overstrike to simulate bold faces.
2142
2143 * xfaces.c (best_matching_font): Fix logic to decide whether to
2144 use overstriking to simulate bold-face (it was reversed).
2145
2146 2006-10-23 Kim F. Storm <storm@cua.dk>
2147
2148 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
2149 initialized.
2150
2151 * keyboard.c (read_char): Make an element (t . EVENT) in
2152 unread-command-events add EVENT to the current command's key sequence.
2153 (syms_of_keyboard) <unread-command-events>: Update doc.
2154
2155 2006-10-21 Richard Stallman <rms@gnu.org>
2156
2157 * minibuf.c (Vread_expression_map): Define here.
2158 (Qread_expression_history): New variable.
2159 (syms_of_minibuf): Initialize them.
2160 (Feval_minibuffer): Use Vread_expression_map and
2161 Qread_expression_history.
2162
2163 2006-10-21 Kenichi Handa <handa@m17n.org>
2164
2165 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
2166 card, change it to "*".
2167 (xic_create_xfontset): Call XCreateFontSet for each single
2168 fontname in fontsetname.
2169
2170 2006-10-19 Chong Yidong <cyd@stupidchicken.com>
2171
2172 * callint.c (callint_message): Convert to a Lisp string.
2173 (syms_of_callint): Initialize it.
2174 (callint_message_size): Var deleted.
2175 (Fcall_interactively): Use Fformat instead of doprnt to construct
2176 prompt string.
2177
2178 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2179
2180 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
2181
2182 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2183
2184 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
2185 New variable.
2186 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
2187
2188 2006-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2189
2190 * xselect.c (x_handle_selection_request): If the converted_selection
2191 is nil or XCDR (converted_selection) is nil, decline the request.
2192
2193 2006-10-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2194
2195 * gtkutil.c (get_utf8_string): Remove warnings with casts.
2196 (xg_tool_bar_button_cb): Ditto.
2197 (xg_tool_bar_callback): Ditto.
2198
2199 2006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2200
2201 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
2202 variable ch_dim.
2203 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
2204 menu bar window matrices on non-X systems.
2205
2206 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
2207
2208 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
2209 adjustment is needed.
2210 (mac_load_query_font): Check if width and height are positive.
2211
2212 2006-10-14 Richard Stallman <rms@gnu.org>
2213
2214 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
2215
2216 2006-10-13 Chong Yidong <cyd@stupidchicken.com>
2217
2218 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
2219 title.
2220
2221 2006-10-12 Chong Yidong <cyd@stupidchicken.com>
2222
2223 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
2224 XCAR and XINT.
2225
2226 2006-10-12 Romain Francoise <romain@orebokech.com>
2227
2228 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
2229
2230 2006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
2231
2232 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
2233
2234 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
2235
2236 * xterm.c (x_check_expected_move): Remove unused var `count'.
2237
2238 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
2239 Fdefalias is not declared in any *.h file.
2240
2241 2006-10-09 Chong Yidong <cyd@stupidchicken.com>
2242
2243 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
2244
2245 * keyboard.c (command_loop_1): Handle non-number values of
2246 `minibuffer-message-timeout'.
2247 (Fexecute_extended_command): Fix typo.
2248
2249 * minibuf.c (temp_echo_area_glyphs): Sit for
2250 `minibuffer-message-timeout' seconds.
2251
2252 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2253
2254 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
2255 Add argument OVERSTRIKE_P.
2256 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
2257 Support overstrike.
2258 (mac_draw_string, mac_draw_string_16): Remove functions.
2259 (x_draw_glyph_string_foreground): Use overstrike when needed.
2260 (x_draw_composite_glyph_string_foreground): Likewise.
2261 Use mac_draw_image_string_16 instead of mac_draw_string_16.
2262 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
2263 F instead of DPY. All uses changed. Don't save/restore font.
2264
2265 2006-10-07 Ralf Angeli <angeli@caeruleus.net>
2266
2267 * w32fns.c (w32_createwindow): Honour left and top positions if
2268 supplied explicitly.
2269
2270 2006-10-06 Kim F. Storm <storm@cua.dk>
2271
2272 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
2273
2274 2006-10-05 Chong Yidong <cyd@stupidchicken.com>
2275
2276 * frame.c (Qinhibit_face_set_after_frame_default): New var.
2277 (syms_of_frame): Initialize it.
2278 (x_set_frame_parameters): Avoid resetting :font attributes to the
2279 new-frame defaults.
2280
2281 2006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
2282
2283 * lisp.h (clear_regexp_cache): Declare.
2284
2285 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
2286 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
2287 (clear_regexp_cache): Only flush those regexps which depend on
2288 a syntax-table.
2289
2290 * regex.c (regex_compile): Set the new `used_syntax' bit.
2291
2292 * regex.h: Remove file local variables.
2293 (struct re_pattern_buffer): New field `used_syntax'.
2294
2295 2006-10-03 Kim F. Storm <storm@cua.dk>
2296
2297 * process.c (list_processes_1): Run sentinels before removing dead
2298 processes. Also remove `closed' network connections.
2299
2300 2006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2301
2302 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
2303
2304 2006-09-30 Eli Zaretskii <eliz@gnu.org>
2305
2306 * config.in: Regenerated.
2307
2308 2006-09-29 Juri Linkov <juri@jurta.org>
2309
2310 * buffer.c (syms_of_buffer): Reorder coding systems in the
2311 docstring of %z to the real order displayed in the modeline.
2312
2313 2006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2314
2315 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
2316
2317 2006-09-26 Chong Yidong <cyd@stupidchicken.com>
2318
2319 * indent.c (Fvertical_motion): Do move back if the Lisp string
2320 being displayed contains newlines.
2321
2322 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2323
2324 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
2325 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
2326
2327 2006-09-26 Kenichi Handa <handa@m17n.org>
2328
2329 * keymap.c (Fsingle_key_description): For an invalid char, return
2330 "Invalid char code NNNNN".
2331
2332 2006-09-25 Chong Yidong <cyd@stupidchicken.com>
2333
2334 * callint.c (Fcall_interactively): Doc fix.
2335
2336 2006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2337
2338 * macterm.c (x_underline_at_descent_line): New variable.
2339 (syms_of_macterm): DEFVAR_BOOL it.
2340 (x_draw_glyph_string): Use it.
2341 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
2342
2343 2006-09-25 Kenichi Handa <handa@m17n.org>
2344
2345 * keymap.c (Fsingle_key_description): Return unique names for
2346 generic characters.
2347
2348 2006-09-24 Richard Stallman <rms@gnu.org>
2349
2350 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
2351
2352 2006-09-24 Eli Zaretskii <eliz@gnu.org>
2353
2354 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
2355 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
2356
2357 * w32proc.c (nl_langinfo): New function.
2358
2359 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
2360 (w32-pass-lwindow-to-system, w32-enable-num-lock)
2361 (w32-enable-caps-lock, w32-scroll-lock-modifier)
2362 (w32-lwindow-modifier, w32-rwindow-modifier)
2363 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
2364
2365 2006-09-23 Juanma Barranquero <lekktu@gmail.com>
2366
2367 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
2368 (Fdisplay_completion_list): Fix typos in docstrings.
2369
2370 2006-09-23 Romain Francoise <romain@orebokech.com>
2371
2372 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
2373
2374 2006-09-23 Kenichi Handa <handa@m17n.org>
2375
2376 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
2377
2378 2006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
2379
2380 * regex.c (analyse_first): For eight-bit-control chars, mark both the
2381 char's value and its leading byte in the fastmap.
2382 (re_search_2): When fast-scanning without translation, be careful to
2383 check that we only match the leading byte of a multibyte char.
2384
2385 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
2386 byte sequence.
2387 (AT_CHAR_BOUNDARY): New macro.
2388
2389 2006-09-22 Kenichi Handa <handa@m17n.org>
2390
2391 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
2392 whose default value is non-nil.
2393
2394 2006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2395
2396 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
2397 Gtk+ versions < 2.10.
2398
2399 * xfns.c (syms_of_xfns): Fix typo in help text for
2400 x-gtk-file-dialog-help-text.
2401
2402 2006-09-21 Kim F. Storm <storm@cua.dk>
2403
2404 * fns.c (Fmemq): Refill doc string.
2405 (Fmemql): New defun, like memq but using eql.
2406 (syms_of_fns): Defsubr it.
2407
2408 2006-09-20 Kim F. Storm <storm@cua.dk>
2409
2410 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
2411 last visible glyph in window.
2412
2413 * window.c (Fset_window_hscroll, Fwindow_line_height):
2414 Doc fix. Use "off-window" instead of "off-screen".
2415 (Fpos_visible_in_window_p): Likewise.
2416 If POS is t, return info for last visible glyph in window.
2417
2418 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
2419
2420 * search.c (struct regexp_cache): New entry syntax_table.
2421 (compile_pattern_1): Set it.
2422 (syms_of_search): Initialize it.
2423 (compile_pattern): Require the syntax_table entry of the cache
2424 element to match the current syntax table entry.
2425
2426 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
2427
2428 * window.c (Fwindow_end): Fix recent change.
2429
2430 2006-09-19 Kim F. Storm <storm@cua.dk>
2431
2432 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
2433 Doc fix. Use "off-screen" instead of "invisible".
2434 (Fwindow_line_height): Make line numbers 0-based. Make line arg
2435 optional; if nil, use current cursor row. Handle text terminals
2436 properly. Return nil if non-interactive or pseudo-window.
2437
2438 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
2439
2440 * keymap.c: Include alloca.h if available.
2441 (Fkey_binding): Only use AREF after checking it's a vector.
2442 Remove unused var `window'.
2443
2444 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2445
2446 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
2447 inhibit_sentinels.
2448
2449 * mac.c [!MAC_OSX] (select): Fix argument name.
2450
2451 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
2452 menu ID for Apple menu.
2453 (menubar_selection_callback): Remove function.
2454 (find_and_call_menu_selection): New function from xmenu.c.
2455 (x_activate_menubar): Use it.
2456 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
2457
2458 * macterm.c (menubar_selection_callback): Remove extern.
2459 (M_APPLE): Change to 234.
2460 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
2461 (do_menu_choice): Remove function.
2462
2463 * macterm.h (struct mac_output): Remove member menubar_active.
2464 (do_menu_choice): Remove extern.
2465 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
2466
2467 2006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2468
2469 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
2470 x_gtk_file_dialog_help_text.
2471
2472 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
2473 to x-gtk-use-old-file-dialog.
2474 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
2475 x_gtk_file_dialog_help_text.
2476
2477 * xfns.c (syms_of_xfns): Ditto.
2478
2479 2006-09-18 Kim F. Storm <storm@cua.dk>
2480
2481 * window.c (Fwindow_line_visibility): Remove.
2482 (Fwindow_line_height): New defun replacing it.
2483 (syms_of_window): Defsubr it.
2484
2485 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2486
2487 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
2488 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
2489
2490 2006-09-17 Jay Belanger <belanger@truman.edu>
2491
2492 * gmalloc.c:
2493 * md5.c:
2494 * md5.h:
2495 * strftime.c: Replace "GNU Library General Public License" by "GNU
2496 General Public License" throughout.
2497
2498 2006-09-17 Kim F. Storm <storm@cua.dk>
2499
2500 * dispnew.c (update_text_area): Undo 2000-07-18 change.
2501 Always redrawing whole row if line has mouse-face in it causes
2502 excessive flickering of the mode line.
2503
2504 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
2505
2506 * search.c (clear_regexp_cache): New function.
2507
2508 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
2509
2510 2006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2511
2512 * gtkutil.c (xg_get_file_with_chooser):
2513 Check x-gtk-show-chooser-help-text before adding the help text.
2514
2515 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
2516
2517 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
2518 will simply crash if we fail.
2519
2520 2006-09-16 Richard Stallman <rms@gnu.org>
2521
2522 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
2523
2524 2006-09-15 Kim F. Storm <storm@cua.dk>
2525
2526 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
2527 (syms_of_window): Defsubr it.
2528 (Fwindow_end): Use window's buffer rather than current buffer.
2529
2530 2006-09-15 Jay Belanger <belanger@truman.edu>
2531
2532 * COPYING: Replace "Library Public License" by "Lesser Public
2533 License" throughout.
2534
2535 2006-09-15 David Kastrup <dak@gnu.org>
2536
2537 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
2538
2539 * keymap.c: include "window.h".
2540 (Fcommand_remapping): New optional POSITION argument.
2541 (Fkey_binding): New optional POSITION argument. Completely rework
2542 handling of mouse clicks to get the same order of keymaps as
2543 `read-key-sequence' and heed POSITION. Also temporarily switch
2544 buffers to location of mouse click and back.
2545
2546 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
2547 for additional argument.
2548 (parse_menu_item): Adjust call of `Fkey_binding' for additional
2549 argument.
2550 (read_key_sequence): If there are both `local-map' and `keymap'
2551 text properties at some buffer position, heed both.
2552
2553 * keymap.h: Declare additional optional arguments of
2554 `Fcommand_remapping' and `Fkey_binding'.
2555
2556 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
2557
2558 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
2559
2560 2006-09-14 Andreas Schwab <schwab@suse.de>
2561
2562 * print.c: Whitespace fixup.
2563
2564 2006-09-14 Kim F. Storm <storm@cua.dk>
2565
2566 * xdisp.c (produce_image_glyph): Automatically crop wide images at
2567 right window edge so we can draw the cursor on the same row to
2568 avoid confusing redisplay by placing the cursor outside the visible
2569 window area.
2570
2571 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2572
2573 * xterm.c (x_initialize): Don't install Xt event timer here.
2574 (x_timeout_atimer_activated_flag): New var.
2575 (x_activate_timeout_atimer): New function to install Xt timer.
2576 (x_send_scroll_bar_event, x_process_timeouts): Use it.
2577
2578 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
2579 (create_and_show_popup_menu, create_and_show_dialog): Use it.
2580
2581 * xterm.h (x_activate_timeout_atimer): Add prototype.
2582
2583 2006-09-13 Richard Stallman <rms@gnu.org>
2584
2585 * print.c (print_string): When printcharfun is t,
2586 copy string contents and call strout on the copy.
2587
2588 * keyboard.c (read_char): If end_time specified, don't put the
2589 event into this_command_keys.
2590 (read_key_sequence): If Voverriding_terminal_local_map is specified,
2591 don't check Voverriding_local_map at all.
2592
2593 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2594
2595 * textprop.c (Fnext_property_change, Fnext_single_property_change)
2596 (Fprevious_property_change, Fprevious_single_property_change):
2597 Avoid changing limit, so we can correctly catch the case where the
2598 property is constant up to limit.
2599
2600 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2601
2602 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2603 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2604 Undo 2006-09-08 change.
2605
2606 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
2607
2608 * keymap.c (Fkey_binding): Use string position for string objects.
2609
2610 2006-09-11 Kim F. Storm <storm@cua.dk>
2611
2612 * keymap.c (Fkey_binding): Fix last change.
2613
2614 * editfns.c (Fmessage): Recommend using (message "%s" ...).
2615
2616 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
2617
2618 * keymap.c (Fkey_binding): Check for local keymap for mouse click
2619 events.
2620
2621 2006-09-10 Kim F. Storm <storm@cua.dk>
2622
2623 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
2624 and Vunread_post_input_method_events.
2625
2626 * dispnew.c (Fredisplay): Document return value.
2627
2628 2006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2629
2630 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
2631
2632 * gtkutil.c (xg_display_close): Always change default display if needed,
2633 check for < Gtk+ version 2.10 before calling gdk_display_close.
2634
2635 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2636
2637 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
2638 Make variable `ofds' static. Remove variable `maxfd'.
2639
2640 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
2641 Call check_mac.
2642
2643 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
2644 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
2645 Apply 2006-09-08 change for xmenu.c.
2646
2647 * xfns.c (Fx_file_dialog): Call check_x.
2648
2649 2006-09-10 Kim F. Storm <storm@cua.dk>
2650
2651 * xdisp.c (get_window_cursor_type): Use hollow cursor on
2652 non-transparent images.
2653
2654 2006-09-09 Eli Zaretskii <eliz@gnu.org>
2655
2656 * editfns.c (Fsystem_name): Mention "host" in the doc string.
2657 (syms_of_editfns) <system-name>: Likewise.
2658
2659 2006-09-08 Martin Rudalics <rudalics@gmx.at>
2660
2661 * xdisp.c (mouse_autoselect_window): Remove.
2662 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
2663
2664 * dispextern.h (mouse_autoselect_window): Remove extern.
2665 (Vmouse_autoselect_window): Add extern.
2666
2667 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
2668 instead of mouse_autoselect_window.
2669
2670 * msdos.c (dos_rawgetc): Likewise.
2671
2672 * w32term.c (w32_read_socket): Likewise.
2673
2674 * xterm.c (handle_one_xevent): Likewise.
2675
2676 2006-09-08 Richard Stallman <rms@gnu.org>
2677
2678 * xdisp.c (Vmenu_updating_frame): Define here.
2679 (syms_of_xdisp): DEFVAR it here.
2680 (update_menu_bar): Always return hooks_run.
2681 Set Vmenu_updating_frame.
2682
2683 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
2684 before calculating SELECTED_FRAME.
2685
2686 * xmenu.c (Vmenu_updating_frame): Don't define here.
2687 (syms_of_xmenu): Don't DEFVAR it here.
2688
2689 * xterm.c (x_error_quitter): For BadName error, just return.
2690
2691 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
2692
2693 * casetab.c (init_casetab_once): Call set_case_table.
2694
2695 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
2696
2697 * process.c (inhibit_sentinels): New variable.
2698 (exec_sentinel): Test inhibit_sentinels.
2699 (init_process): Initialize it.
2700
2701 * process.h (inhibit_sentinels): Add decl.
2702
2703 * search.c (looking_at_1, string_match_1, search_command):
2704 Make syntax table's canon table point to eqv table.
2705
2706 2006-09-08 Andreas Schwab <schwab@suse.de>
2707
2708 * print.c (strout): Fix whitespace.
2709
2710 2006-09-08 Kim F. Storm <storm@cua.dk>
2711
2712 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
2713
2714 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2715
2716 * mac.c [!MAC_OSX]: Don't include keyboard.h.
2717 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
2718 in the same BLOCK_INPUT block, in case that some input has already
2719 been read asynchronously. Pretend to be interrupted by a signal
2720 if some input is available.
2721 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
2722 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
2723 Now used for ReceiveNextEvent timeout instead of select timeout.
2724 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
2725 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
2726 support. Quit event loop.
2727 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
2728 connect support. Reuse previously allocated CFRunLoopSource.
2729 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
2730 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2731
2732 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2733 Specify kWindowAsyncDragAttribute.
2734
2735 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
2736 (mac_get_ideal_size): New functions.
2737 (x_set_offset, x_set_window_size, x_make_frame_visible)
2738 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
2739 (install_window_handler, mac_handle_window_event)
2740 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
2741 kEventWindowBoundsChanged.
2742 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
2743 DragWindow.
2744
2745 2006-09-07 Andreas Schwab <schwab@suse.de>
2746
2747 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
2748 use lib64 instead of lib.
2749
2750 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
2751
2752 * Makefile.in: Avoid double quotes when possible.
2753
2754 2006-09-06 Kenichi Handa <handa@m17n.org>
2755
2756 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
2757 a Lisp string from the result of emacs_memftimeu call.
2758
2759 2006-09-06 Kim F. Storm <storm@cua.dk>
2760
2761 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
2762 so calculate heights even when pos-visible-in-window-p is called
2763 with partially = t. Don't overshoot last_visible_y in move_it_to.
2764 Return row height and row number in new rowh and vpos args.
2765 (cursor_row_fully_visible_p): First line is always "fully visible".
2766 (try_window): Don't clear matrix if vscrolled.
2767
2768 * lisp.h (pos_visible_p): Update prototype.
2769
2770 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
2771 Return row height and row number for partially visible rows.
2772 Modify return value to a 2 element list for fully visible rows and
2773 6 for partially visible row.
2774 (window_scroll_pixel_based): Use pos_visible_p directly instead of
2775 Fpos_visible_in_window_p. Fix auto vscrolling for partially
2776 visible lines. Only vscroll backwards if already vscrolled
2777 forwards. Unconditionally vscroll forwards if PT is first (and
2778 only) line. Set new window start instead of scrolling at
2779 start/end of tall line.
2780
2781 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2782
2783 * macterm.c (install_window_handler, mac_handle_window_event)
2784 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
2785 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
2786 ASCII keystroke event.
2787
2788 2006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2789
2790 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
2791 the file chooser message. Only call gtk_file_chooser_set_current_name
2792 when action is SAVE.
2793
2794 2006-09-04 Andreas Schwab <schwab@suse.de>
2795
2796 * Makefile.in: Double all single and back quotes in C-style
2797 comments to help fontifier.
2798
2799 2006-09-03 Jason Rumney <jasonr@gnu.org>
2800
2801 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
2802 (globals_of_w32): Register it as a signal handler.
2803
2804 2006-09-02 Juri Linkov <juri@jurta.org>
2805
2806 * marker.c (Fmarker_position): Doc fix.
2807
2808 2006-09-03 Eli Zaretskii <eliz@gnu.org>
2809
2810 * window.c (syms_of_window) <split-height-threshold>:
2811 <window-min-height, window-min-width>: Doc fix.
2812
2813 2006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2814
2815 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
2816 for writing files. Call gtk_file_chooser_set_current_name to keep
2817 default filename.
2818
2819 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
2820
2821 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
2822
2823 * fns.c (concat) [__GNUC__]: Declare with
2824 `__attribute__((noinline))'.
2825
2826 * eval.c (apply1, call2) [__GNUC__]: Declare with
2827 `__attribute__((noinline))'.
2828
2829 2006-09-02 Stuart D. Herring <herring@lanl.gov>
2830
2831 * minibuf.c (Finternal_complete_buffer): New function.
2832 (syms_of_minibuf): Defsubr it.
2833 (Fread_buffer): Use it, instead of Vbuffer_alist.
2834
2835 2006-09-01 Martin Rudalics <rudalics@gmx.at>
2836
2837 * buffer.h (struct buffer_text): New field chars_modiff.
2838 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
2839 * buffer.c (Fbuffer_chars_modified_tick): New function returning
2840 value of BUF_CHARS_MODIFF.
2841 (syms_of_buffer): Defsubr it.
2842 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
2843 * insdel.c (modify_region): New argument preserve_chars_modiff.
2844 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
2845 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
2846 (adjust_after_replace, adjust_after_replace_noundo)
2847 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
2848 * lisp.h (modify_region): Add fourth argument in extern.
2849 * casefiddle.c (casify_region): Call modify_region with fourth
2850 argument zero to assert that CHARS_MODIFF is updated.
2851 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
2852 (Ftranspose_regions): Likewise.
2853 * textprop.c (Fadd_text_properties, Fset_text_properties)
2854 (Fremove_text_properties, Fremove_list_of_text_properties):
2855 Call modify_region with fourth argument 1 to avoid that
2856 CHARS_MODIFF is updated.
2857
2858 2006-08-31 Richard Stallman <rms@gnu.org>
2859
2860 * editfns.c (Fformat): Don't sign-extend for %o or %x.
2861
2862 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
2863
2864 * indent.c (Fvertical_motion): Don't move back if we were
2865 displaying a Lisp string, either.
2866
2867 2006-08-28 Kim F. Storm <storm@cua.dk>
2868
2869 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
2870 Don't attempt to replace cursor on image glyphs.
2871
2872 2006-08-28 Kenichi Handa <handa@m17n.org>
2873
2874 * coding.c (Fdetect_coding_region, Fdetect_coding_string):
2875 Fix docstring about ISO-2022 control characters.
2876
2877 2006-08-28 Kim F. Storm <storm@cua.dk>
2878
2879 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
2880 with a hollow box cursor if image is larger than 32x32 (or the default
2881 frame font if that is bigger). Replace any other cursor on images
2882 with hollow box cursor, as redisplay doesn't support bar and hbar
2883 cursors on images.
2884
2885 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2886
2887 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
2888 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
2889
2890 * dired.c (directory_files_internal_unwind, directory_files_internal)
2891 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
2892
2893 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
2894 of OSErr.
2895
2896 * keyboard.c (in_sighandler): Remove variable.
2897 (Fcurrent_idle_time): Add missing `doc:'.
2898 (input_available_signal, init_keyboard): Undo previous change.
2899
2900 * keyboard.h (in_sighandler): Remove extern.
2901
2902 * mac.c (create_apple_event_from_event_ref, select)
2903 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2904 (Fmac_set_file_type, cfstring_create_normalized)
2905 (mac_get_system_locale, select_and_poll_event, sys_select):
2906 Use OSStatus instead of OSErr.
2907
2908 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
2909 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
2910 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
2911
2912 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
2913 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
2914 (get_scrap_private_timestamp, get_scrap_target_type_list)
2915 (x_own_selection, x_get_foreign_selection)
2916 (Fx_disown_selection_internal, Fx_selection_owner_p)
2917 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
2918
2919 * macterm.c (mac_draw_string_common, mac_query_char_extents)
2920 (x_iconify_frame, XLoadQueryFont, install_window_handler)
2921 (mac_handle_command_event, init_command_handler, init_menu_bar):
2922 Use OSStatus instead of OSErr.
2923 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
2924 FRAME_FILE_NAME.
2925 (x_query_font): Apply 2006-08-04 change for xterm.c.
2926 (Qhi_command): Rename from Qhicommand. All uses changed.
2927
2928 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
2929 file_name.
2930 (FRAME_FILE_NAME): Remove macro.
2931 (install_window_handler, create_apple_event_from_event_ref):
2932 Return OSStatus instead of OSErr.
2933
2934 2006-08-26 Kim F. Storm <storm@cua.dk>
2935
2936 * buffer.c (Fset_buffer_multibyte):
2937 * editfns.c (Fcurrent_time, Fget_internal_run_time):
2938 * macfns.c (Fxw_color_values):
2939 * w32fns.c (Fxw_color_values):
2940 * xfns.c (Fxw_color_values): Simplify; use list3.
2941
2942 * fileio.c (Fmake_directory_internal, Fdelete_directory)
2943 (Fdelete_file): Simplify; use list1.
2944 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
2945 Simplify; remove NO_ARG_ARRAY stuff, use list2.
2946
2947 2006-08-25 Richard Stallman <rms@gnu.org>
2948
2949 * buffer.c (Fswitch_to_buffer): Fix previous change.
2950
2951 2006-08-25 Kim F. Storm <storm@cua.dk>
2952
2953 * keyboard.c (Fcurrent_idle_time): Simplify.
2954
2955 2006-08-25 Richard Stallman <rms@gnu.org>
2956
2957 * fns.c (sxhash_string): Rotate properly; don't lose bits.
2958
2959 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
2960
2961 * xdisp.c (overline_margin): New variable.
2962 (x_produce_glyphs): Use it.
2963 (syms_of_xdisp): DEFVAR_INT it.
2964
2965 * xterm.c (x_underline_at_descent_line): New variable.
2966 (syms_of_xterm): DEFVAR_BOOL it.
2967 (x_draw_glyph_string): Use it.
2968 Draw underline and overline up to the end of line if the face
2969 extends to the end of line.
2970
2971 * macterm.c: Likewise.
2972
2973 * w32term.c: Likewise.
2974
2975 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
2976
2977 * buffer.c (Fswitch_to_buffer): Move buffer to front of
2978 buffer-alist if necessary.
2979
2980 2006-08-22 Kim F. Storm <storm@cua.dk>
2981
2982 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
2983 number of items changes.
2984
2985 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
2986
2987 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
2988
2989 2006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2990
2991 * keyboard.c: Clarify difference between in_sighandler and
2992 handling_signal.
2993
2994 2006-08-21 Kim F. Storm <storm@cua.dk>
2995
2996 * macterm.c (x_draw_stretch_glyph_string):
2997 * w32term.c (x_draw_stretch_glyph_string):
2998 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
2999 stretch glyph in left marginal areas on header and mode lines.
3000
3001 2006-08-21 Kenichi Handa <handa@m17n.org>
3002
3003 * keyboard.c (syms_of_keyboard): Docstring of
3004 Vunread_post_input_method_events and Vunread_input_method_events
3005 fixed.
3006
3007 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
3008
3009 * keyboard.c (show_help_echo): Preserve mouse movement flag if
3010 tracking mouse.
3011
3012 2006-08-20 Richard Stallman <rms@gnu.org>
3013
3014 * xfaces.c (load_pixmap): Add quotes in error message.
3015
3016 * keyboard.c (Fcurrent_idle_time): New function.
3017 (syms_of_keyboard): defsubr it.
3018
3019 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
3020
3021 * window.c (Fset_window_fringes): Do nothing on a tty.
3022 (Fwindow_fringes): Put ? operator after the line break.
3023
3024 2006-08-16 Andreas Schwab <schwab@suse.de>
3025
3026 * print.c (debug_output_compilation_hack): Fix return type.
3027
3028 2006-08-16 Richard Stallman <rms@gnu.org>
3029
3030 * print.c (debug_output_compilation_hack): New function.
3031
3032 2006-08-16 Kenichi Handa <handa@m17n.org>
3033
3034 * fileio.c (choose_write_coding_system): Use LF for end-of-line
3035 in auto-saving.
3036
3037 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
3038
3039 * keyboard.c (read_char): Don't change idle timer state at all if
3040 end_time is supplied.
3041
3042 2006-08-15 Kenichi Handa <handa@m17n.org>
3043
3044 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
3045 is exhausted, return with RET.
3046 (detect_coding_emacs_mule, detect_coding_iso2022)
3047 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
3048 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
3049 change.
3050
3051 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
3052
3053 * keyboard.c (read_char): Don't reset idle timers if a time limit
3054 is supplied.
3055
3056 2006-08-14 Kim F. Storm <storm@cua.dk>
3057
3058 * .gdbinit (pitx): Print iterator position.
3059 Limit stack dump in case iterator is not initialized.
3060
3061 2006-08-12 Eli Zaretskii <eliz@gnu.org>
3062
3063 * frame.c (Fmouse_position, Fmouse_pixel_position)
3064 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
3065
3066 2006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3067
3068 * xselect.c (Fx_register_dnd_atom): New function.
3069 (syms_of_xselect): Defsubr it.
3070 (x_handle_dnd_message): Check that message_type is in
3071 dpyinfo->x_dnd_atoms before generating lisp event.
3072
3073 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
3074 of drag and drop Atoms.
3075
3076 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
3077
3078 2006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3079
3080 * keyboard.c: Define in_sighandler.
3081 (input_available_signal): Set in_sighandler.
3082 (init_keyboard): Initialize in_sighandler.
3083
3084 * keyboard.h: Declare in_sighandler.
3085
3086 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
3087 to check if mutex should be locked or not.
3088
3089 2006-08-09 Richard Stallman <rms@gnu.org>
3090
3091 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
3092 (read_key_sequence): Always start fkey.start and fkey.end at 0,
3093 and likewise for keytran.
3094
3095 2006-08-09 Kenichi Handa <handa@m17n.org>
3096
3097 * coding.c (syms_of_coding): Improve the docstring
3098 of file-coding-system-alist.
3099
3100 2006-08-07 Andreas Schwab <schwab@suse.de>
3101
3102 * puresize.h (BASE_PURESIZE): Increase to 1120000.
3103
3104 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
3105
3106 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
3107 (Fkill_all_local_variables): Use it.
3108 (syms_of_buffer): Defvar it.
3109
3110 2006-08-05 Eli Zaretskii <eliz@gnu.org>
3111
3112 * w32.c (w32_valid_pointer_p): New function.
3113
3114 * w32.h: Add prototype for w32_valid_pointer_p.
3115
3116 * alloc.c: Include w32.h.
3117 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
3118 the job.
3119
3120 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
3121 is exactly equal to end_time, not only when it is past that.
3122
3123 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
3124
3125 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
3126
3127 * process.c: Reapply 2006-08-01 change.
3128
3129 2006-08-04 Eli Zaretskii <eliz@gnu.org>
3130
3131 * w32fns.c (w32_query_font): Fix last change: use stricmp.
3132
3133 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
3134
3135 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
3136 the before-change-functions since they may have altered the buffer.
3137
3138 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
3139
3140 * w32fns.c (w32_createwindow): Handle -geometry command line option
3141 and the geometry settings in the Registry.
3142
3143 2006-08-04 Kenichi Handa <handa@m17n.org>
3144
3145 * w32fns.c (w32_query_font): Compare names by ignoring case.
3146
3147 * xterm.c (x_query_font): Compare names by ignoring case.
3148
3149 2006-08-03 Jason Rumney <jasonr@gnu.org>
3150
3151 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
3152 when no option selected.
3153
3154 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
3155
3156 * process.c: Revert last change.
3157
3158 2006-08-01 Kim F. Storm <storm@cua.dk>
3159
3160 * process.c (wait_reading_process_output_unwind): New function.
3161 Restores waiting_for_user_input_p to saved value.
3162 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
3163 instead of save/restore old value on stack.
3164
3165 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
3166
3167 * editfns.c: Undo 2006-06-27 change.
3168
3169 2006-07-29 Eli Zaretskii <eliz@gnu.org>
3170
3171 * coding.c (Ffind_operation_coding_system): Revert the change from
3172 2006-05-29.
3173
3174 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
3175
3176 2006-07-28 Richard Stallman <rms@gnu.org>
3177
3178 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
3179 Add conditional aborts for clarity.
3180
3181 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
3182 Used to avoid running the hooks over and over for each frame.
3183 (prepare_menu_bars): Pass value from update_menu_bar
3184 as HOOKS_RUN of next call.
3185
3186 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
3187
3188 2006-07-28 Kim F. Storm <storm@cua.dk>
3189
3190 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
3191 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
3192
3193 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
3194
3195 * keyboard.c (read_char): New arg END_TIME specifying timeout.
3196 All callers changed. Turn off echoing if END_TIME is non-NULL.
3197 (kbd_buffer_get_event): New arg END_TIME.
3198
3199 * lread.c (read_filtered_event): New arg SECONDS to wait until.
3200 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
3201
3202 * lisp.h: Update read-char, read-event, and read_filtered_event
3203 prototypes.
3204
3205 * keyboard.h: Include systime.h. Update read_char prototype.
3206
3207 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3208
3209 * alloc.c (find_string_data_in_pure): New function.
3210 (make_pure_string): Use it to reuse existing string data if possible.
3211
3212 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
3213
3214 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
3215
3216 * keymap.c (Fdefine_key): If the key binding definition looks like an
3217 XEmacs-style key sequence, convert it to Emacs's format.
3218
3219 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
3220
3221 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
3222 parameters are bound to some values, use that instead of
3223 CW_USEDEFAULT.
3224
3225 2006-07-21 Eli Zaretskii <eliz@gnu.org>
3226
3227 * w32.c (convert_time): Use explicit long double constants to
3228 ensure long double arithmetics is used throughout.
3229
3230 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3231
3232 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
3233 (init_alloc_once): Initialize them.
3234 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
3235 without alignment.
3236
3237 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
3238
3239 2006-07-18 Francis Litterio <franl@world.std.com>
3240
3241 * w32term.c (x_calc_absolute_position): Fix frame positioning
3242 with negative X/Y coordinates.
3243
3244 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
3245
3246 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
3247
3248 * textprop.c (text_read_only): Likewise.
3249
3250 * lread.c (end_of_file_error): Likewise.
3251
3252 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
3253 Likewise.
3254
3255 * eval.c (unwind_to_catch): Likewise.
3256
3257 * buffer.h (buffer_slot_type_mismatch): Likewise.
3258
3259 2006-07-18 Kim F. Storm <storm@cua.dk>
3260
3261 Cleanup Fsignal calls that never returns; now only use it for Qquit.
3262
3263 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
3264 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
3265 (signal_error): New no-return function (from xfaces.c).
3266 (Fthrow): Use xsignal2 instead of Fsignal + abort.
3267 (error): Use xsignal1 instead of Fsignal + abort.
3268 (FletX, Flet, grow_specpdl): Use signal_error.
3269 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
3270
3271 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
3272 (list1): New function.
3273
3274 * lisp.h (list1): Add EXFUN.
3275 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
3276 Add prototypes. Mark them as no-return.
3277
3278 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
3279 Use xsignal1.
3280
3281 * callint.c (check_mark): Use xsignal0.
3282
3283 * casefiddle.c (casify_object): wrong_type_argument is no-return.
3284
3285 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
3286
3287 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
3288 (Fdefine_coding_system_internal): Use xsignal1.
3289
3290 * data.c (circular_list_error): Use xsignal.
3291 (wrong_type_argument): Use xsignal2. Don't care about return value.
3292 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
3293 Remove loop around Fsignal.
3294 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
3295 (indirect_function, Findirect_function, Fstring_to_number)
3296 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
3297 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
3298 Use xsignal0.
3299
3300 * doc.c (Fdocumentation): Use xsignal1.
3301
3302 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
3303
3304 * fileio.c (report_file_error): Use xsignal.
3305 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
3306 (Finsert_file_contents): Use xsignal2.
3307 (syms_of_fileio): Use list2, list3.
3308
3309 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
3310 (range_error2, domain_error2): Use xsignal3.
3311 (rounding_driver, fmod_float): Use xsignal0.
3312 (float_error): Use xsignal1.
3313 (matherr): Use xsignal.
3314
3315 * fns.c (Flength): wrong_type_argument is no-return.
3316 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
3317 (Fmd5): Use xsignal1.
3318
3319 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
3320
3321 * keyboard.c (recursive_edit_1): Use xsignal1.
3322
3323 * keymap.c (Fmap_keymap): Use xsignal1.
3324
3325 * lread.c (Fload): Use xsignal2, signal_error.
3326 (end_of_file_error): Use xsignal0, xsignal1.
3327 (read0): Use xsignal1.
3328 (invalid_syntax): New error function marked no-return.
3329 (read_integer, read1, read_list): Use it.
3330
3331 * macselect.c (x_get_local_selection): Use signal_error.
3332
3333 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
3334
3335 * search.c (compile_pattern_1): Use xsignal1.
3336 (signal_failure): Remove (was only called once).
3337 (search_command): Use xsignal1 instead of signal_failure.
3338
3339 * syntax.c (scan_lists): Use xsignal3.
3340
3341 * textprop.c (text_read_only): Use xsignal0, xsignal1.
3342
3343 * unexsol.c (unexec): Use xsignal.
3344
3345 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3346 Use xsignal0.
3347
3348 * xfaces.c (signal_error): Move to eval.c.
3349 (resolve_face_name): Use xsignal1.
3350
3351 * xfns.c (x_decode_color): Use signal_error.
3352
3353 * xselect.c (x_get_local_selection, copy_multiple_data)
3354 (x_get_window_property_as_lisp_data)
3355 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
3356 (Fx_get_cut_buffer_internal): Use signal_error.
3357
3358 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3359
3360 * macterm.c (XTread_socket): Undo previous change.
3361
3362 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3363
3364 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
3365 directly lookup keycode_to_xkeysym_table.
3366 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
3367 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
3368 (XTread_socket): Use character codes to construct keypad key events.
3369 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
3370 (x_delete_display): Apply 2006-07-04 change for xterm.c.
3371
3372 2006-07-17 Richard Stallman <rms@gnu.org>
3373
3374 * keyboard.c (Vcommand_error_function): New variable.
3375 (syms_of_keyboard): Defvar it.
3376 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
3377
3378 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
3379
3380 2006-07-17 Kim F. Storm <storm@cua.dk>
3381
3382 * xdisp.c (handle_single_display_spec): Ensure the right value of
3383 it->position is saved by push_it.
3384 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
3385 (reseat_1): Don't setup it->object twice.
3386 (set_iterator_to_next): No need to set it->object after pop_it.
3387 (move_it_to): Explicitly check to see if last move reached to_charpos.
3388
3389 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
3390
3391 * xdisp.c (display_mode_line): Preserve match data.
3392
3393 2006-07-14 Kim F. Storm <storm@cua.dk>
3394
3395 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
3396 (init_winsock): Load them. Use ws2_32.dll.
3397 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
3398 (sys_accept): Undo last change. Instead, set child status to
3399 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
3400 sys_select will wakeup the reader thread.
3401 (_sys_wait_accept): New function used by reader thread to wait for
3402 an incoming connection on a server socket.
3403
3404 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
3405
3406 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
3407 server socket (FILE_LISTEN flag).
3408
3409 2006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3410
3411 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
3412
3413 2006-07-14 Kim F. Storm <storm@cua.dk>
3414
3415 * w32.c: Fix high cpu load for server sockets.
3416 (pfn_WSAEventSelect): New function ptr.
3417 (init_winsock): Load it.
3418 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
3419 char_avail event object to FD_ACCEPT.
3420 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
3421 socket's char_avail event object to FD_READ|FD_CLOSE.
3422
3423 * w32.h (FILE_LISTEN): New filedesc flag value.
3424
3425 2006-07-13 Kim F. Storm <storm@cua.dk>
3426
3427 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
3428 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
3429 Simplify loops and use CAR for Bnth and Belt.
3430
3431 * data.c (Findirect_function): Optimize for no indirection.
3432
3433 * eval.c (Fthrow): Remove loop around Fsignal.
3434 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
3435 Use original function name in all signaled errors.
3436 Simplify Fsignal calls (no return).
3437 (funcall_lambda): Simplify Fsignal calls (no return).
3438
3439 2006-07-13 Andreas Schwab <schwab@suse.de>
3440
3441 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
3442 out_charpos.
3443
3444 2006-07-13 Kenichi Handa <handa@m17n.org>
3445
3446 * editfns.c (Fformat): Fix calculation of text property positions
3447 of format string.
3448
3449 2006-07-12 Kim F. Storm <storm@cua.dk>
3450
3451 * lisp.h (CHECK_TYPE): New macro for generic type checking.
3452 (CAR_SAFE, CDR_SAFE): New macros.
3453 (ARRAYP, CHECK_ARRAY): New macros.
3454 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
3455 (CHECK_WINDOW_CONFIGURATION): New macro.
3456 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
3457 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
3458 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
3459 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
3460 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
3461 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
3462 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
3463 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
3464
3465 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
3466 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
3467
3468 * callint.c (Fcall_interactively):
3469 * casefiddle.c (casify_object):
3470 * editfns.c (general_insert_function):
3471 * fns.c (Flength, Felt, Ffillarray):
3472 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
3473
3474 * data.c (wrong_type_argument): Remove loop around Fsignal.
3475 (Farrayp, Fsequencep): Use ARRAYP.
3476 (Fcar): Use CAR.
3477 (Fcar_safe): Use CAR_SAFE.
3478 (Fcdr): Use CDR.
3479 (Fcdr_safe): Use CDR_SAFE.
3480 (Fsetcar, Fsetcdr): Use CHECK_CONS.
3481 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
3482 (Faset): Use CHECK_ARRAY.
3483
3484 * fns.c (Felt): Use CHECK_ARRAY.
3485 (concat): Use CHECK_NUMBER.
3486 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
3487 (Fmemq): Use CHECK_LIST.
3488 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
3489 (assq_no_quit): Use CAR_SAFE.
3490 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
3491 Use CHECK_LIST_CONS.
3492 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
3493
3494 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
3495
3496 * casetab.c (check_case_table):
3497 * category.c (check_category_table):
3498 * marker.c (Fcopy_marker):
3499 * syntax.c (check_syntax_table):
3500 * xfaces.c (load_pixmap): Use CHECK_TYPE.
3501
3502 * fns.c (Fcopy_sequence, concat):
3503 * fringe.c (Fdefine_fringe_bitmap):
3504 * lread.c (check_obarray): Cleanup wrong_type_argument use.
3505
3506 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
3507
3508 * keymap.c (Fdefine_key, Flookup_key):
3509 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
3510
3511 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
3512
3513 * search.c (Fset_match_data): Use CHECK_LIST.
3514
3515 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
3516
3517 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
3518 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
3519
3520 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3521
3522 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
3523
3524 * dired.c: Include blockinput.h.
3525 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
3526
3527 * editfns.c: Include blockinput.h.
3528 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
3529 getpwuid/getpwnam.
3530
3531 * fileio.c: Include blockinput.h.
3532 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
3533 around getpwnam.
3534 (search_embedded_absfilename): Remove spurious xfree.
3535
3536 2006-07-11 Kim F. Storm <storm@cua.dk>
3537
3538 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
3539 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
3540 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
3541 Signal error if TIMEOUT is not a number.
3542 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
3543 The rework of sit_for args also fixes several incorrect Qt args
3544 which should have been 1.
3545 (Fredisplay): Pass 1 instead of Qt to swallow_events and
3546 detect_input_pending_run_timers.
3547
3548 * lisp.h (sit_for): Update prototype.
3549 (Fredisplay): Add EXFUN.
3550
3551 * dispextern.h (sit_for): Remove prototype.
3552
3553 * callint.c (Fcall_interactively):
3554 * minibuf.c (temp_echo_area_glyphs):
3555 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
3556 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
3557
3558 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
3559
3560 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
3561
3562 2006-07-11 Kim F. Storm <storm@cua.dk>
3563
3564 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
3565 input is available. Fix test for redisplay_dont_pause non-nil.
3566 Specbind redisplay-dont-pause to t if FORCE non-nil.
3567
3568 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
3569
3570 * puresize.h (BASE_PURESIZE): Increment to 1211000.
3571
3572 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
3573 (Fsit_for): Function deleted.
3574
3575 * keyboard.c (command_loop_1, Fexecute_extended_command):
3576 Call sit_for instead of Fsit_for.
3577
3578 * minibuf.c (temp_echo_area_glyphs): Likewise.
3579
3580 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
3581
3582 * syntax.c (Fforward_comment): Revert the reversion.
3583 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
3584
3585 2006-07-09 John Paul Wallington <jpw@pobox.com>
3586
3587 * syntax.c (Fforward_comment): Revert previous change.
3588
3589 2006-07-09 Kim F. Storm <storm@cua.dk>
3590
3591 * window.c (Fforce_window_update): Doc fix.
3592
3593 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
3594
3595 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
3596 directory unreadable for better user privacy.
3597
3598 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
3599
3600 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
3601
3602 * lread.c (read_filtered_event): Remove `register' qualifier because it
3603 causes compilation problem with gcc-4.0.2-20051125 on amd64.
3604 (readevalloop): Remove unused var `bpos'.
3605 Yet another int/Lisp_Object mixup (YAILOM).
3606
3607 2006-07-07 Eli Zaretskii <eliz@gnu.org>
3608
3609 * keyboard.c (Fexecute_extended_command): Mention the argument
3610 PREFIXARG in the doc string.
3611
3612 2006-07-07 Kim F. Storm <storm@cua.dk>
3613
3614 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
3615
3616 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
3617
3618 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
3619 clash detection using the base buffer.
3620
3621 * puresize.h (BASE_PURESIZE): Increment to 1210500.
3622
3623 2006-07-04 Kim F. Storm <storm@cua.dk>
3624
3625 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
3626
3627 2006-07-04 Kenichi Handa <handa@m17n.org>
3628
3629 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
3630 to update Voverriding_fontspec_alist.
3631
3632 2006-07-03 Richard Stallman <rms@gnu.org>
3633
3634 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
3635
3636 * xfaces.c (Fface_attribute_relative_p): Doc fix.
3637
3638 * textprop.c (Fget_char_property_and_overlay): Doc fix.
3639
3640 * eval.c (Fdefvaralias): Doc fix.
3641
3642 2006-07-03 Kim F. Storm <storm@cua.dk>
3643
3644 * dispnew.c (sit_for): Fix preempt condition.
3645
3646 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
3647
3648 * lread.c (read_filtered_event): Treat select-window just like
3649 switch-frame.
3650
3651 2006-07-02 Kim F. Storm <storm@cua.dk>
3652
3653 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
3654 to ever fit the tool-bar,
3655 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
3656 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
3657 (redisplay_tool_bar): Only clear desired matrix if we actually
3658 change the tool-bar window height. Only try to make the tool-bar
3659 window bigger if there is actually room for it.
3660
3661 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
3662
3663 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
3664 SPI_GETWORKAREA to find the dimensions of the screen work area,
3665 and adjust vertical position of the frame in order to avoid being
3666 covered by the task bar.
3667
3668 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
3669 f->left_pos and SH_SHOW instead of f->top_pos in the call to
3670 CreateWindow. Record the actual position in f->left_pos and
3671 f->top_pos.
3672
3673 2006-06-30 John Paul Wallington <jpw@pobox.com>
3674
3675 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
3676 Doc fix - default value has changed.
3677
3678 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3679
3680 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
3681
3682 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
3683
3684 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
3685
3686 * macterm.c (Qeql): Add extern.
3687 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
3688 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
3689 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
3690 Change keys of Vmac_atsu_font_table from strings to numbers.
3691 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
3692 (init_font_name_table) [USE_ATSUI]: Use it.
3693 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
3694 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
3695 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
3696 only when saved_ts_script_language_on_focus coincides with
3697 Vmac_ts_script_language_on_focus.
3698 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
3699 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
3700 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
3701 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
3702
3703 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
3704
3705 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
3706 (Ffield_string_no_properties, Ffield_end): Mention
3707 args-out-of-range error condition in docstring.
3708
3709 2006-06-27 Kim F. Storm <storm@cua.dk>
3710
3711 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
3712
3713 2006-06-25 Kim F. Storm <storm@cua.dk>
3714
3715 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
3716 version 2.4 and later.
3717
3718 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
3719
3720 * xfns.c (Fx_create_frame): Set font parameter directly instead of
3721 using x_default_parameter, since x_get_args clears the parm alist.
3722
3723 2006-06-24 Eli Zaretskii <eliz@gnu.org>
3724
3725 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
3726 case-insensitively.
3727
3728 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
3729
3730 * lread.c (read_escape): When an unknown Unicode code point is
3731 encountered as a string or character escape, signal an error.
3732
3733 2006-06-23 Kim F. Storm <storm@cua.dk>
3734
3735 * .gdbinit (pitx): Dump iterator stack.
3736
3737 * xdisp.c (handle_composition_prop): Push iterator on stack.
3738 (set_iterator_to_next): Pop iterator at end of composition.
3739
3740 2006-06-23 Martin Rudalics <rudalics@gmx.at>
3741
3742 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
3743 itself on DOS_NT platforms, if the old and new names are identical
3744 but for the letter-case.
3745
3746 2006-06-21 Kim F. Storm <storm@cua.dk>
3747
3748 * dispextern.h (struct it): Add `position' member to iterator stack.
3749 Rename `pos' member to `current'. Rearrange and add comments.
3750
3751 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
3752 if we get any overlays.
3753 (set_cursor_from_row): Don't clobber `end' if we rescan from
3754 start_string.
3755 (push_it, pop_it): Save it->position.
3756
3757 2006-06-19 Richard Stallman <rms@gnu.org>
3758
3759 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
3760 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
3761 for the case of a top-level window and the following minibuffer.
3762 Don't exit because of no `next' when there is a parent.
3763 Use the FIRST_ONLY feature when resizing following windows.
3764
3765 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
3766
3767 2006-06-17 Kim F. Storm <storm@cua.dk>
3768
3769 * dispnew.c (update_frame): Check for input pending on entry.
3770 (update_window, update_frame_1): Break loop if input is detected.
3771
3772 2006-06-16 Francis Litterio <flitterio@gmail.com>
3773
3774 * xterm.c (x_check_expected_move, handle_one_xevent)
3775 (x_set_offset, x_check_fullscreen): Extensive changes to make
3776 frame positioning deterministic under X.
3777
3778 * xterm.h (x_output): Add members left_before_move and
3779 top_before_move. Removed members expected_left and expected_top.
3780
3781 2006-06-16 Kim F. Storm <storm@cua.dk>
3782
3783 * dispextern.h (struct it): Add union to iterator stack to save
3784 image, composition, and stretch specific paramters.
3785
3786 * xdisp.c (next_overlay_string): Fix assert.
3787 (push_it, pop_it): Handle composition and stretch specific values.
3788 Only handle it->slice in image (for now).
3789 (back_to_previous_visible_line_start): Continue search if newline is
3790 part of a compisition. Simplify.
3791 (reseat_1): Set it->object to buffer.
3792 (set_iterator_to_next): Set it->object to string or buffer, when
3793 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
3794 (next_element_from_composition): Set it->object to buffer if not
3795 from string.
3796 (set_cursor_from_row): Only save start of string if not already
3797 done to handle multiple strings in a row.
3798
3799 * .gdbinit (pitx): Show composition parameters.
3800 (pgx, pg): New commands to print a glyph structure.
3801 (pgi, pgn): New commands to print specific/next glyph.
3802 (pgrowx, pgrow): New commands to print all glyphs in a row.
3803
3804 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3805
3806 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
3807 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
3808
3809 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
3810 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
3811 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
3812 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
3813 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
3814 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
3815 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
3816 Services functions to get size of main display in pixels.
3817
3818 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
3819
3820 * xdisp.c (back_to_previous_visible_line_start):
3821 Reset it->continuation_lines_width.
3822
3823 2006-06-14 Richard Stallman <rms@gnu.org>
3824
3825 * eval.c (Fdefconst): Mark variable as risky.
3826
3827 * callproc.c (Fcall_process): Doc fix.
3828
3829 * window.c (adjust_window_trailing_edge): Don't break out of the loop
3830 because there's no next window, if there are parallel windows.
3831 Do break out when WINDOW is nil.
3832
3833 2006-06-14 Kim F. Storm <storm@cua.dk>
3834
3835 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
3836 iterator stack (instead of hardcoded number). Increase from 2 to
3837 4 to make room for propertized overlay strings before and after a
3838 display string, image or composition.
3839 (struct it): Add image_id and method members to iterator stack.
3840
3841 * xdisp.c (init_from_display_pos): Don't set it->method and
3842 overlay_string_index after pop_it. Add asserts.
3843 (handle_stop): Look for overlay strings around a display string,
3844 image, or composition. Handle properties on those strings.
3845 (next_overlay_string): Don't set string, pos or method after pop_it.
3846 (get_overlay_strings_1): Split from get_overlay_strings; don't
3847 modify it if no overlay strings are found.
3848 (get_overlay_strings): Use get_overlay_strings_1. Always set
3849 it->string and it->method.
3850 (push_it): Push it->image_id and it->method. Push it->object
3851 instead of it->string if method is GET_FROM_IMAGE.
3852 (pop_it): Pop it->image_id and it->method. Ppo it->object
3853 instead of it->string if method is GET_FROM_IMAGE.
3854 Reset it->current.string_pos if popped it->string is nil.
3855 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
3856 whether a given change was correct; but the change is correct.
3857 Clear it->string_from_display_prop_p.
3858 (set_iterator_to_next): Rely on it->method and it->image_id from
3859 iterator stack, instead of setting them explicitly after pop_it.
3860
3861 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
3862 negative time forces redisplay even when input is available.
3863 (Fsit_for): Doc fix.
3864
3865 2006-06-13 Kim F. Storm <storm@cua.dk>
3866
3867 * dispnew.c: Modify preemptive redisplay to be based on periodic
3868 checks for input.
3869 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
3870 (Vredisplay_preemption_period): New variable.
3871 (syms_of_display): DEFVAR_LISP and initialize it.
3872 (preemption_period, preemption_next_check): New variables.
3873 (update_frame, update_single_window): Initialize them based on
3874 Vredisplay_preemption_period if !force_p.
3875 (update_window, update_frame_1): Use them to determine when to
3876 check for input.
3877
3878 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
3879
3880 * lread.c (read_escape): Provide a Unicode character escape
3881 syntax; \u followed by exactly four or \U followed by exactly
3882 eight hex digits in a comment or string is read as a Unicode
3883 character with that code point.
3884
3885 2006-06-09 Eli Zaretskii <eliz@gnu.org>
3886
3887 * window.c (window_scroll_pixel_based): Signal "Beginning of
3888 buffer" when scroll-down at the beginning of an empty buffer.
3889
3890 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3891
3892 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
3893 Exclude 0x7f from ASCII range.
3894
3895 2006-06-05 Jason Rumney <jasonr@gnu.org>
3896
3897 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
3898 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
3899 (x_scroll_bar_report_motion): Remove workarounds for
3900 versions of Windows NT < 3.51.
3901 [!SIF_ALL]: Remove.
3902 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
3903 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
3904
3905 2006-06-04 David Kastrup <dak@gnu.org>
3906
3907 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
3908 `sit-for'.
3909
3910 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3911
3912 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
3913
3914 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
3915
3916 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
3917 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
3918 [USE_MAC_TSM]: Likewise.
3919 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
3920 (Qbefore_string) [USE_MAC_TSM]: Add extern.
3921 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
3922 ActivateTSMDocument/DeactivateTSMDocument.
3923 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
3924 (mac_handle_window_event) [USE_MAC_TSM]: Handle
3925 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
3926 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
3927 (install_window_handler) [USE_MAC_TSM]: Install it. Register
3928 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
3929 (keycode_to_xkeysym_table): Add entry for f16.
3930 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
3931 before/after passing keystroke event to toolbox dispatcher.
3932 (init_tsm) [USE_MAC_TSM]: New function.
3933 (mac_initialize) [USE_MAC_TSM]: Call it.
3934 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
3935
3936 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
3937
3938 2006-06-02 John Paul Wallington <jpw@gnu.org>
3939
3940 * xfns.c (x_set_name_internal): Set icon to `text', derived from
3941 name, when frame's icon_name isn't a string rather than only when
3942 it is nil.
3943
3944 2006-06-03 Eli Zaretskii <eliz@gnu.org>
3945
3946 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
3947 and not nil.
3948
3949 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
3950
3951 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
3952 string.
3953
3954 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3955
3956 * xdisp.c (next_element_from_composition): Set it->object to
3957 it->string if composition is coming from string.
3958 (set_cursor_from_row): Don't return 0 unless row displays a
3959 continued line.
3960 (dump_glyph): Dump composite glyph.
3961
3962 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3963
3964 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
3965
3966 2006-06-01 Richard Stallman <rms@gnu.org>
3967
3968 * window.c (Fsplit_window): Doc fix.
3969
3970 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
3971
3972 * process.c (deleted_pid_list): New variable to store the pids
3973 of deleted processes. Declare it only if SIGCHLD is defined.
3974 (init_process): Initialize it.
3975 (syms_of_process): Staticpro it.
3976 (Fdelete_process): Add pid of the deleted process to it. Check after
3977 the addition and before the kill if the process is already stopped,
3978 in which case it is deleted from the list and not killed.
3979 (sigchld_handler): Define it only if SIGCHLD is. Search the process
3980 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
3981 Original idea by Stefan Monnier.
3982
3983 2006-06-01 Kim F. Storm <storm@cua.dk>
3984
3985 * dispnew.c (sit_for): Perform redisplay even if input is pending
3986 when redisplay-dont-pause is non-nil.
3987
3988 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3989
3990 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
3991 (XTread_socket): Remove obsolete comment.
3992
3993 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3994
3995 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
3996 menu-bar-open.
3997
3998 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3999
4000 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
4001 menu-bar-open.
4002
4003 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
4004
4005 2006-05-31 Juri Linkov <juri@jurta.org>
4006
4007 * minibuf.c (Vhistory_add_new_input): New variable.
4008 (read_minibuf): Use it.
4009 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
4010 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
4011
4012 2006-05-31 Kim F. Storm <storm@cua.dk>
4013
4014 * process.c (select_wrapper): Add wrapper around select to work around
4015 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
4016 select called from wait_reading_process_output.
4017
4018 2006-05-30 Andreas Schwab <schwab@suse.de>
4019
4020 * xmenu.c (Fmenu_bar_start): Return a value.
4021
4022 2006-05-30 Richard Stallman <rms@gnu.org>
4023
4024 * coding.c (Ffind_operation_coding_system): Doc fix.
4025
4026 2006-05-30 Eli Zaretskii <eliz@gnu.org>
4027
4028 * w32term.c (x_draw_hollow_cursor): Fix last change.
4029
4030 2006-05-29 Kim F. Storm <storm@cua.dk>
4031
4032 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
4033
4034 2006-05-29 Eli Zaretskii <eliz@gnu.org>
4035
4036 * coding.c (Ffind_operation_coding_system): Doc fix.
4037
4038 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4039
4040 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
4041 Call mac_set_font_info_for_selection if font panel is made visible.
4042
4043 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
4044 (mac_font_panel_visible_p, mac_show_hide_font_panel)
4045 [USE_MAC_FONT_PANEL]: New functions.
4046 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
4047 Return immediately if font panel is not visible.
4048
4049 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
4050 Add externs.
4051
4052 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
4053
4054 * search.c (matcher_overflow): Mark as NO_RETURN.
4055
4056 * xterm.c (x_connection_closed): Likewise.
4057
4058 * sysdep.c (croak): Likewise.
4059
4060 * sound.c (sound_perror, alsa_sound_perror): Likewise.
4061
4062 * lisp.h (die, nsberror): Likewise.
4063
4064 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4065
4066 * sound.c (alsa_open, alsa_configure, alsa_write):
4067 Move assignment to err out of if-statement.
4068
4069 * gtkutil.c (menu_nav_ended): New function.
4070 (create_menus): Connect menu_nav_ended to "selection-done" to fix
4071 grabs.
4072
4073 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
4074
4075 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
4076
4077 * charset.h (invalid_character): Mark as NO_RETURN.
4078
4079 2006-05-29 Kenichi Handa <handa@m17n.org>
4080
4081 * coding.c (Ffind_operation_coding_system): Call a function by
4082 safe_call1 instead of call1.
4083
4084 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4085
4086 * window.c (struct saved_window): Add `dedicated'.
4087 (Fset_window_configuration, save_window_save): Save/restore the
4088 `dedicated' flag.
4089
4090 2006-05-28 Kim F. Storm <storm@cua.dk>
4091
4092 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
4093 don't update w->cursor and return 0. Return 1 on success.
4094 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
4095 until it succeeds.
4096
4097 * dispextern.h (set_cursor_from_row): Update prototype.
4098
4099 2006-05-28 Kim F. Storm <storm@cua.dk>
4100
4101 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
4102 parameters. Adjust x and width in case cursor in on a partially
4103 visible stretch glyph on the left edge.
4104 (erase_phys_cursor): Don't erase into left fringe/margin in case
4105 previous cursor glyph is a partially visible stretch glyph on left.
4106
4107 * dispextern.h (get_phys_cursor_geometry): Update prototype.
4108
4109 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
4110 cursor and erasing cursor on partially visible stretch glyph on left.
4111 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
4112
4113 * macterm.c: Likewise.
4114
4115 * w32term.c: Likewise.
4116
4117 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4118
4119 * macselect.c (mac_handle_apple_event):
4120 Return errAEEventNotHandled if key binding is not found.
4121
4122 2006-05-26 Eli Zaretskii <eliz@gnu.org>
4123
4124 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
4125 [__MINGW32__]: MinGW-specific declaration of `etext'.
4126
4127 * w32heap.c (etext, edata): Remove unused definitions.
4128
4129 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
4130
4131 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
4132 Incorporate the exclusive file-opening functionality into the behavior
4133 when OK-IF-ALREADY-EXISTS is nil.
4134 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
4135
4136 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4137
4138 * sound.c (alsa_configure): Move get period/buffer_size after
4139 setting hwparams.
4140
4141 2006-05-26 Kenichi Handa <handa@m17n.org>
4142
4143 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
4144 . BUFFER) in TARGET.
4145
4146 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
4147
4148 * image.c (png_load): Don't call fclose on NULL.
4149
4150 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
4151
4152 * fns.c (Fyes_or_no_p):
4153 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
4154 only seven args.
4155
4156 2006-05-25 Juri Linkov <juri@jurta.org>
4157
4158 * lisp.h (Fread_from_minibuffer): Decrement number of args.
4159
4160 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
4161 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
4162
4163 * buffer.c (mode-line-format): Fix docstring.
4164
4165 2006-05-25 Richard Stallman <rms@gnu.org>
4166
4167 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
4168
4169 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
4170
4171 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4172
4173 2006-05-24 Alan Mackenzie <acm@muc.de>
4174
4175 * lread.c (Vload_history): Enhance doc-string to say that the file
4176 is the absolute truename of the loaded file.
4177
4178 * lread.c (Vafter_load_alist): doc-string: state that an element
4179 now has a regexp to match file names, not a file name as such.
4180
4181 * lread.c (readevalloop): Call file-truename on the name for
4182 load-history, except at preloading time.
4183
4184 * lread.c (Fload): At preloading time, preserve the extension of
4185 the filename which goes into load-history. New var hist_file_name.
4186
4187 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
4188 function do-after-load-evaluation.
4189
4190 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4191
4192 * mac.c (ae_attr_table): New variable.
4193 (syms_of_mac): Intern and staticpro its elements.
4194 (mac_aelist_to_lisp): Also convert Apple event attributes.
4195 (mac_ae_put_lisp): New function.
4196 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
4197
4198 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
4199
4200 * macselect.c (Qemacs_suspension_id): New variable.
4201 (syms_of_macselect): Intern and staticpro it.
4202 (struct suspended_ae_info): New struct.
4203 (deferred_apple_events, defer_apple_events)
4204 (Fmac_process_deferred_apple_events): Use it.
4205 (suspended_apple_events): New variable.
4206 (mac_handle_apple_event_1): New function.
4207 (mac_handle_apple_event): Use it. Don't process previously
4208 suspended events.
4209 (cleanup_suspended_apple_events, get_suspension_id)
4210 (cleanup_all_suspended_apple_events): New functions.
4211 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
4212 at exit.
4213 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
4214 (Fmac_resume_apple_event): New defuns.
4215 (syms_of_macselect): Defsubr them.
4216
4217 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
4218 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
4219
4220 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
4221 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
4222 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
4223 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4224 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4225 Likewise.
4226 (typeUTF8Text, kEventParamWindowMouseLocation)
4227 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
4228 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
4229
4230 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4231
4232 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
4233 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
4234 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
4235 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
4236 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
4237 resource to backtranslate key with modifiers.
4238 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
4239
4240 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4241
4242 * xterm.c: Remove declarations already in xterm.h
4243
4244 * xterm.h: Add extern declarations for x_clear_errors,
4245 x_fully_uncatch_errors, x_catching_errors and
4246 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
4247
4248 2006-05-21 Richard Stallman <rms@gnu.org>
4249
4250 * xfaces.c (best_matching_font): Abort for best == NULL
4251 before we start to use it.
4252
4253 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
4254
4255 2006-05-20 Kim F. Storm <storm@cua.dk>
4256
4257 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
4258
4259 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4260
4261 * macterm.c (convert_fn_keycode): Fix last change.
4262
4263 2006-05-19 Eli Zaretskii <eliz@gnu.org>
4264
4265 * w32.c (init_environment): Perform the processing of environment
4266 variables on a copy of default variables and their values, not on
4267 the original. Simplify code that calls ExpandEnvironmentStrings
4268 and make buf1[] and buf2[] more visible for easier debugging.
4269
4270 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4271
4272 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
4273
4274 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
4275
4276 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
4277
4278 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
4279 Forward keyUp events to toolbox_dispatcher.
4280
4281 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
4282
4283 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4284
4285 * config.in: Regenerated (HAVE_ALSA).
4286
4287 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
4288 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
4289 (snd_error_quiet, alsa_init): New functions.
4290 (vox_init): Return 0 if unable to open device.
4291 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
4292 a fallback.
4293 (struct sound_device): Add period_size.
4294 (wav_play, au_play): Use period_size if set.
4295
4296 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
4297 (ALL_CFLAGS): Add CFLAGS_SOUND.
4298
4299 2006-05-18 Kenichi Handa <handa@m17n.org>
4300
4301 * callproc.c (Fcall_process): Reject encoding arguments by
4302 ascii-incompatible coding systems (e.g. utf-16).
4303
4304 * coding.c (Qascii_incompatible): New variable.
4305 (syms_of_coding): Setup Qascii_incompatible.
4306 (setup_coding_system): Be sure to initialize coding->common_flags.
4307 Check `ascii-incompatible' property of the coding system.
4308
4309 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
4310
4311 2006-05-18 Kim F. Storm <storm@cua.dk>
4312
4313 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
4314 geometry when backtracking in case last image doesn't fit on line.
4315
4316 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
4317
4318 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
4319 more than height of one frame default line.
4320
4321 2006-05-17 Richard Stallman <rms@gnu.org>
4322
4323 * xfaces.c (better_font_p): Any font beats no font.
4324 (best_matching_font): Simplify based on above change.
4325
4326 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
4327
4328 2006-05-16 Kim F. Storm <storm@cua.dk>
4329
4330 * xterm.c (handle_one_xevent): Check that f is not NULL before
4331 calling x_kill_gs_process.
4332
4333 2006-05-14 Richard Stallman <rms@gnu.org>
4334
4335 * textprop.c (Fnext_single_char_property_change)
4336 (Fprevious_single_char_property_change): Don't allow returning
4337 value beyond LIMIT in any cases.
4338 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
4339
4340 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
4341
4342 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4343
4344 * xterm.c (handle_one_xevent): Check that f is not NULL before
4345 calling _XEditResCheckMessages.
4346
4347 2006-05-14 Kim F. Storm <storm@cua.dk>
4348
4349 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
4350
4351 2006-05-13 Eli Zaretskii <eliz@gnu.org>
4352
4353 * frame.c (x_set_border_width): Fix error message to say "frame",
4354 not "window".
4355
4356 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
4357
4358 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
4359
4360 * intervals.c (set_point_both): Fix mixup before before and after
4361 in variable names.
4362
4363 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
4364 while setting point temporarily.
4365
4366 2006-05-11 Richard Stallman <rms@gnu.org>
4367
4368 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
4369
4370 2006-05-11 Kim F. Storm <storm@cua.dk>
4371
4372 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
4373
4374 2006-05-11 Kenichi Handa <handa@m17n.org>
4375
4376 * fileio.c (Finsert_file_contents): Fix for the case of IO error
4377 while handling replace operation.
4378
4379 2006-05-10 Kenichi Handa <handa@m17n.org>
4380
4381 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
4382 chosen for the default face was different from the frame font,
4383 adjust the frame font.
4384
4385 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4386
4387 * image.c (Qduration) [MAC_OS]: Undo previous change.
4388 (syms_of_image) [MAC_OS]: Likewise.
4389 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
4390
4391 * macfns.c (x_to_mac_color): Fix shift amount change.
4392 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
4393 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
4394
4395 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
4396 Vmac_services_selection. All uses changed.
4397 (mac_store_service_event): Rename from mac_store_services_event in
4398 extern and calls.
4399
4400 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
4401 changed.
4402 [MAC_OSX] (mac_store_service_event): Rename from
4403 mac_store_services_event. All callers changed.
4404 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
4405 FACE_ID and C. All callers changed.
4406 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
4407 mac_set_font_info_for_selection when focus frame is destroyed.
4408 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
4409
4410 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
4411 args in extern.
4412
4413 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
4414
4415 * keymap.c (describe_map): Avoid generating duplicate entries if
4416 the shadowed binding has the same definition.
4417
4418 2006-05-09 Kenichi Handa <handa@m17n.org>
4419
4420 * keymap.c (push_key_description): Handle invalid character key.
4421
4422 2006-05-08 Kenichi Handa <handa@m17n.org>
4423
4424 * callproc.c (Fcall_process): Use system_eol_type for encoding
4425 arguments if eol_type is not yet decided.
4426
4427 * coding.h (system_eol_type): Extern it.
4428
4429 * coding.c (setup_coding_system): For invalid coding-system, set
4430 coding->eol_type to CODING_EOL_UNDECIDED.
4431 (encode_coding): Cancel previous change.
4432 (shrink_encoding_region): Likewise.
4433 (code_convert_region1): Likewise.
4434 (code_convert_string1): Likewise.
4435 (code_convert_string_norecord): Likewise.
4436
4437 * fileio.c (choose_write_coding_system): Use system_eol_type for
4438 encoding if eol_type is not yet decided.
4439
4440 * process.c (setup_process_coding_systems): Use system_eol_type
4441 for encoding if eol_type is not yet decided.
4442 (read_process_output): Likewise.
4443 (send_process): Likewise.
4444
4445 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
4446
4447 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
4448
4449 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4450
4451 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
4452 (syms_of_mac): Likewise for defsubr.
4453
4454 * macfns.c (mac_set_font): New function.
4455 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
4456 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
4457 kWindowToolbarButtonAttribute when creating window.
4458 (Fmac_clear_font_name_table): Move from macfns.c.
4459 (syms_of_macfns): Likewise for defsubr.
4460 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
4461 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
4462
4463 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
4464 and build is done on Mac OS X 10.2 and later.
4465
4466 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
4467 (mac_store_services_event): Change return type in extern.
4468
4469 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
4470 FMFontFamily value.
4471 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
4472 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
4473 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
4474 (QWindow) [MAC_OSX]: Likewise.
4475 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
4476 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
4477 (syms_of_macterm) [USE_ATSUI]: Defvar it.
4478 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
4479 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
4480 (syms_of_macterm): Intern and staticpro them.
4481 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
4482 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
4483 New function.
4484 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
4485 [MAC_OSX] (mac_store_services_event): Likewise.
4486 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
4487 kEventWindowToolbarSwitchMode event.
4488 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
4489 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
4490 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
4491 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
4492 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
4493
4494 * macterm.h (mac_set_font_info_for_selection): Add extern.
4495
4496 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4497
4498 * image.c (Qduration) [MAC_OS]: New variable.
4499 (syms_of_image) [MAC_OS]: Intern and staticpro it.
4500 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
4501 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
4502 instead of cfstring_create_with_string.
4503
4504 2006-05-06 Kim F. Storm <storm@cua.dk>
4505
4506 * .gdbinit (xframe): Print frame name.
4507 (xlist): New command to print a list (max 10 elements).
4508 (xpr): Print lisp object of any type.
4509 (pitx): Print it->pixel_width.
4510
4511 2006-05-05 Kenichi Handa <handa@m17n.org>
4512
4513 * xdisp.c (handle_composition_prop): Fix for the case of empty
4514 composition component.
4515
4516 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4517
4518 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
4519 from event->arg.
4520
4521 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
4522 MAC_APPLE_EVENT.
4523
4524 * macterm.h (mac_make_lispy_event_code): Remove extern.
4525 (mac_post_mouse_moved_event): Add extern.
4526 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
4527 `const AEDesc *' in externs.
4528 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
4529
4530 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
4531 `const AEDesc *'.
4532 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
4533 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
4534 Use xrealloc instead of repeated xmalloc/xfree.
4535 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
4536 New function.
4537
4538 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
4539
4540 * macselect.c: Update copyright year.
4541 (mac_store_apple_event): Change return type to void in extern.
4542 (mac_handle_apple_event): Don't get return value from
4543 mac_store_apple_event.
4544 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
4545 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
4546 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
4547 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
4548 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
4549 implementation using create_apple_event_from_drag_ref.
4550 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4551 (mac_do_receive_dragUPP): Move variables from macterm.c.
4552 (install_drag_handler, remove_drag_handler): New functions.
4553
4554 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
4555 path select also for proxy icon click.
4556 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
4557 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
4558 (xlfdpat_create): Remove unused label `error' and trailing sentences.
4559 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
4560 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
4561 macselect.c.
4562 (install_drag_handler, remove_drag_handler): Add extern.
4563 (mac_store_apple_event): Change return type to void. All uses changed.
4564 Create Lisp object from Apple event and store it into input event.
4565 (mac_make_lispy_event_code): Remove function.
4566 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
4567 (install_window_handler): Call install_drag_handler.
4568 (remove_window_handler): Call remove_drag_handler.
4569
4570 2006-05-03 Richard Stallman <rms@gnu.org>
4571
4572 * sound.c (Fplay_sound_internal): Dynamically allocate
4573 current_sound_device and current_sound.
4574 (sound_cleanup): Free them.
4575
4576 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
4577 when inside a keyboard macro.
4578
4579 2006-05-02 Andreas Schwab <schwab@suse.de>
4580
4581 * xmenu.c (restore_menu_items): Return a value.
4582
4583 2006-05-01 Martin Rudalics <rudalics@gmx.at>
4584
4585 * syntax.c (Fforward_comment): Detect generic comment at beginning of
4586 buffer when moving backwards.
4587
4588 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4589
4590 * dispnew.c (update_window): Don't set changed_p when mode/header
4591 line is updated.
4592
4593 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
4594 (get_glyph_face_and_encoding, get_char_face_and_encoding):
4595 Don't distinguish known faces from others.
4596
4597 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
4598 through typeFileURL failed.
4599
4600 * macfns.c (mac_update_title_bar): New function.
4601 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
4602 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
4603 Call mac_prepare_for_quickdraw.
4604
4605 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
4606 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
4607 (enum pcm_status): New enum.
4608 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
4609 (XCharStructRow): Remove. Now validity is represented by
4610 non-negativeness of sum of ascent and descent.
4611 (struct MacFontStruct): Change type of member `rows'.
4612 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
4613
4614 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
4615 Adjust endpoints of strictly horizontal/vertical lines.
4616 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
4617 (pcm_init, pcm_get_status): New functions.
4618 (x_per_char_metric, XLoadQueryFont): Use them instead of
4619 XCharStructRow and related macros.
4620 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
4621 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
4622 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
4623 and window path pop-up menu on title bar.
4624 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
4625
4626 * macterm.h (mac_update_title_bar): Add extern.
4627 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
4628 (FRAME_FILE_NAME): New macro.
4629
4630 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
4631
4632 2006-04-30 Richard Stallman <rms@gnu.org>
4633
4634 * keymap.c (Fdefine_key): Improve error message
4635 when KEY begins with a non-prefix key.
4636
4637 2006-04-30 Martin Rudalics <rudalics@gmx.at>
4638
4639 * syntax.c (Fforward_comment): Don't forget to break out of the loop
4640 when we skipped backward over a generic comment.
4641
4642 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
4643
4644 * .gdbinit (pp1, pv1): Only print value as expression is now
4645 printed out by gud-print.
4646 (pv1): Correct doc string.
4647
4648 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
4649
4650 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
4651 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
4652 keymap.c:895: error: address of register variable `def' requested.
4653
4654 2006-04-26 Jason Rumney <jasonr@gnu.org>
4655
4656 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
4657
4658 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
4659 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
4660 where we preempt mouse_button_timer.
4661
4662 2006-04-25 Miles Bader <miles@gnu.org>
4663
4664 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
4665
4666 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
4667
4668 * process.h: Include headers for pid_t.
4669
4670 2006-04-24 Kim F. Storm <storm@cua.dk>
4671
4672 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
4673 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
4674 (produce_stretch_glyph): Assume that face box height and width is
4675 already included in stretch glyph size so caller doesn't have to
4676 consider the extra space otherwise added (fixes problem in ses.el).
4677
4678 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
4679 matrices to force recalculation of tool-bar height after font change.
4680
4681 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
4682 Clear it when done, so we don't accidentally draw a second copy of
4683 the tool-bar after resetting f->n_tool_bar_rows.
4684 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
4685 we recalculate f->n_tool_bar_rows.
4686
4687 2006-04-23 Lars Hansen <larsh@soem.dk>
4688
4689 * editfns.c (find_field): Fix comment.
4690 (Ffield_beginning): Fix bug when POS is at field beginning.
4691
4692 2006-04-22 Eli Zaretskii <eliz@gnu.org>
4693
4694 * puresize.h (BASE_PURESIZE): Increase to 1205000.
4695
4696 2006-04-21 Kim F. Storm <storm@cua.dk>
4697
4698 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
4699 window start is at BEGV.
4700
4701 * dispextern.h (struct image): New member `corners'.
4702 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
4703
4704 * image.c (four_corners_best): New arg CORNERS specifies what pixels
4705 to look at in case image has margin.
4706 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
4707 (image_background, image_background_transparent)
4708 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
4709 (gif_load): Set img->corners according to image's margin spec.
4710 Use img->corners values directly where applicable.
4711 Save image extension data in img->data.lisp_val.
4712 (gif_clear_image): New function to free img->data.lisp_val.
4713 (gif_type): Use it instead of generic x_clear_image.
4714 (Fimage_extension_data): New defun.
4715 (syms_of_image): Defsubr it.
4716
4717 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
4718
4719 * window.c (Fdisplay_buffer): Doc fix.
4720
4721 2006-04-21 Eli Zaretskii <eliz@gnu.org>
4722
4723 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
4724
4725 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4726
4727 * image.c [MAC_OS] (xpm_load_image): Fill in background field
4728 while we have ximg handy.
4729
4730 * macmenu.c (restore_menu_items, save_menu_items): New functions
4731 from xmenu.c.
4732 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
4733 changes for xmenu.c.
4734
4735 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
4736 (add_mac_font_name): New function.
4737 (init_font_name_table): Use it. Adopt the first found font from
4738 those having the same family name.
4739
4740 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
4741
4742 * xdisp.c (note_mouse_highlight): Use build_string.
4743
4744 2006-04-20 Lars Hansen <larsh@soem.dk>
4745
4746 * textprop.c (Fremove_list_of_text_properties):
4747 Ensure modify_region is called only when buffer is modified and that
4748 signal_after_change is allways called in that case.
4749
4750 * print.c (PRINTFINISH): Call signal_after_change.
4751
4752 2006-04-20 Kim F. Storm <storm@cua.dk>
4753
4754 * xdisp.c (redisplay_window): Fix last change.
4755
4756 * xdisp.c (redisplay_window): If current window start is not at the
4757 beginning of a line, select a new window start if buffer is modified
4758 and window start is in the modified region, but the first change is
4759 before window start.
4760
4761 2006-04-18 Richard Stallman <rms@gnu.org>
4762
4763 * xmenu.c (restore_menu_items, save_menu_items): New fns.
4764 (set_frame_menubar): Use save_menu_items. Save updated vector in
4765 the frame before unwinding it. Don't use unuse_menu_items.
4766 Don't use discard_menu_items.
4767 (digest_single_submenu): Abort if an item is not in a pane.
4768 (init_menu_items): Put the error check at the top.
4769
4770 * keymap.c (describe_map): Make "shadowed" warning more verbose.
4771
4772 * window.c (adjust_window_trailing_edge): Correctly distinguish
4773 series vs parallel cases, even when window has no parent.
4774
4775 * abbrev.c (record_symbol): New function.
4776 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
4777
4778 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4779
4780 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
4781 value of xmalloc.
4782
4783 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
4784 (create_apple_event_from_event_ref, xrm_get_preference_database)
4785 (cfstring_create_normalized): Don't check return value of xmalloc.
4786
4787 * macselect.c (get_scrap_target_type_list, defer_apple_events)
4788 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
4789 return value of xmalloc/xrealloc.
4790
4791 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
4792 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
4793 (XLoadQueryFont, mac_store_apple_event): Don't check return value
4794 of xmalloc.
4795
4796 2006-04-17 Kim F. Storm <storm@cua.dk>
4797
4798 * window.c (coordinates_in_window): On the vertical border,
4799 calculate the row number measured from the top of the window, not
4800 the top of the frame.
4801 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
4802 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
4803
4804 2006-04-16 Eli Zaretskii <eliz@gnu.org>
4805
4806 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
4807
4808 2006-04-16 Romain Francoise <romain@orebokech.com>
4809
4810 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
4811
4812 2006-04-16 Andreas Schwab <schwab@suse.de>
4813
4814 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
4815
4816 2006-04-15 Romain Francoise <romain@orebokech.com>
4817
4818 * puresize.h (BASE_PURESIZE): Increment to 1210000.
4819
4820 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
4821
4822 * print.c (Fprin1_to_string): Mention in the `doc' that the
4823 behavior is modified by `print-level' and `print-length'.
4824
4825 2006-04-13 Kenichi Handa <handa@m17n.org>
4826
4827 * coding.c (setup_coding_system): If eol-type is not yet decided
4828 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
4829 If coding_system is nil, return 0.
4830 (code_convert_region1): Even if coding_system is nil, don't skip
4831 conversion if system_eol_type is not LF.
4832 (code_convert_string1): Likewise.
4833 (code_convert_string_norecord): Likewise.
4834
4835 2006-04-13 Kenichi Handa <handa@m17n.org>
4836
4837 * coding.c (setup_coding_system): Fix previous change.
4838 (encode_coding): If eol_type is not yet decided, use system_eol_type.
4839 (shrink_encoding_region): If eol_type is not yet decided and
4840 system_eol_type is not LF, don't shrink.
4841
4842 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
4843
4844 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
4845 line.
4846
4847 2006-04-12 Richard Stallman <rms@gnu.org>
4848
4849 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
4850
4851 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
4852 (Fprocess_send_eof): Abort if fail to open null device.
4853
4854 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4855
4856 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
4857
4858 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
4859 assignment used as truth value. Add explicit braces to avoid
4860 ambiguous `else'.
4861 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
4862
4863 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
4864 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
4865 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
4866 Put externs in #ifdef HAVE_X_WINDOWS.
4867 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
4868 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
4869 (init_mac_osx_environment) [MAC_OSX]: Add extern.
4870
4871 * mac.c (init_process): Remove undef.
4872 (select) [MAC_OSX]: Undefine before including sysselect.h.
4873 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
4874 Remove functions and prototypes.
4875 (parse_value): Add parentheses around + inside shift.
4876 (path_from_vol_dir_name): Make static.
4877 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
4878 [!MAC_OSX] (get_path_to_system_folder): Likewise.
4879 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
4880 variable `cCode'.
4881 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
4882 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
4883
4884 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
4885 (x_set_mouse_color): Remove unused variable `dpy'.
4886 (Fx_create_frame): Remove unused variable `x_frame_count'.
4887 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
4888 (x_sync): Move from macterm.c.
4889 (Fx_file_dialog): Remove unused variable `default_filter_index'.
4890
4891 * macmenu.c (min_menu_id): Make element type explicit.
4892
4893 * macselect.c (get_flavor_type_from_symbol): Remove unused
4894 variable `val'.
4895 (get_scrap_private_timestamp, x_get_foreign_selection)
4896 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
4897 (Fmac_process_deferred_apple_events): Remove unused variables
4898 `keyword', `reply', `apple_event', `count', and `err'.
4899
4900 * macterm.c: Don't include gnu.h.
4901 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
4902 (x_sync): Move to macfns.c.
4903 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
4904 variable `mask_bits'.
4905 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
4906 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
4907 (x_mac_to_emacs_modifiers): Remove function.
4908 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
4909 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
4910 Add explicit braces to avoid ambiguous `else'.
4911 (x_make_frame_visible): Remove unused variables `type',
4912 `original_top', and `original_left'.
4913 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
4914 (x_load_font): Remove unused variables `full_name', and `value'.
4915 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
4916 Remove functions.
4917 (do_zoom_window): Reorganize variables with respect to conditionals.
4918 (init_command_handler): Remove unused variable `err'.
4919 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
4920
4921 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
4922 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
4923 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
4924 (do_menu_choice, have_menus_p, x_real_positions)
4925 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
4926 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
4927 (free_frame_menubar): Add externs.
4928
4929 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
4930 (malloc, realloc, free): Add undefs.
4931 (read_load_commands): Remove unused variable `n' and `j'.
4932 (copy_data_segment): Remove unused variable `r'.
4933
4934 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
4935 within ||. Add explicit braces to avoid ambiguous `else'.
4936 (dump_glyph_row): Remove label for `inverse_p' from legend.
4937
4938 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
4939 Add explicit braces to avoid ambiguous `else'.
4940
4941 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
4942
4943 * dispnew.c (init_display): Don't init X display if the user asked
4944 for a non-X display.
4945
4946 2006-04-12 Kenichi Handa <handa@m17n.org>
4947
4948 * coding.c (setup_coding_system): Use system_eol_type for default
4949 coding->eol_type.
4950
4951 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4952
4953 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
4954
4955 * data.c (wrong_type_argument): Try to avoid compiler warnings due
4956 to the fact the function is now marked as NO_RETURN.
4957
4958 2006-04-10 Eli Zaretskii <eliz@gnu.org>
4959
4960 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
4961
4962 2006-04-10 Romain Francoise <romain@orebokech.com>
4963
4964 * xrdb.c (gethomedir): Use xstrdup.
4965
4966 2006-04-10 Andreas Schwab <schwab@suse.de>
4967
4968 * xrdb.c (gethomedir): Make sure to always return a pointer that
4969 can be passed to free.
4970
4971 2006-04-09 Richard Stallman <rms@gnu.org>
4972
4973 * lisp.h (Fkill_emacs): Undo previous change.
4974
4975 2006-04-08 Richard Stallman <rms@gnu.org>
4976
4977 * search.c (boyer_moore): Test ch >= 0400, not >.
4978
4979 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
4980
4981 * puresize.h (pure_write_error): Mark as NO_RETURN.
4982
4983 * lisp.h (args_out_of_range, args_out_of_range_3)
4984
4985 2006-04-08 Eli Zaretskii <eliz@gnu.org>
4986
4987 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
4988 if a menu is active on this frame.
4989
4990 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
4991
4992 * lisp.h (report_file_error): Mark as NO_RETURN.
4993
4994 2006-04-08 Eli Zaretskii <eliz@gnu.org>
4995
4996 * alloc.c [STDC_HEADERS]: Include stddef.h.
4997
4998 * lisp.h (PSEUDOVECSIZE): Fix last change.
4999
5000 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
5001
5002 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
5003 `raw_status_high', and `raw_status_low' with plain integers, and move
5004 them to the end of the structure.
5005
5006 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
5007 pseudovector's size field so only the Lisp_Object fields get GC'd.
5008
5009 * process.c (update_status, make_process, Fdelete_process)
5010 (Fprocess_status, list_processes_1, start_process_unwind)
5011 (create_process, Fmake_network_process, server_accept_connection)
5012 (wait_reading_process_output, send_process, Fprocess_running_child_p)
5013 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
5014 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
5015 `pid' and `raw_status'.
5016 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
5017 representing PIDs that are larger than most-positive-fixnum.
5018
5019 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
5020
5021 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
5022
5023 2006-04-08 Eli Zaretskii <eliz@gnu.org>
5024
5025 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
5026
5027 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
5028
5029 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
5030 ../lib-src/b2m.c and ../lib-src/editfns.c.
5031 (Fcurrent_time_string): Use it.
5032 Document that the year might not consume 4 columns if it's outside
5033 the range 1000-9999.
5034 Check for asctime failure.
5035 Don't assume that the output string length is always exactly 24.
5036
5037 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5038
5039 * macterm.c (XTread_socket): Initialize variable `f' before its use.
5040
5041 2006-04-03 Kenichi Handa <handa@m17n.org>
5042
5043 * image.c: Include "charset.h" and "coding.h".
5044 (x_find_image_file): Return an encoded file name.
5045
5046 2006-04-01 Eli Zaretskii <eliz@gnu.org>
5047
5048 * configure: Regenerated.
5049
5050 2006-03-31 Kenichi Handa <handa@m17n.org>
5051
5052 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
5053
5054 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5055
5056 * xdisp.c (syms_of_xdisp): Fix variable name.
5057
5058 2006-03-30 Kenichi Handa <handa@m17n.org>
5059
5060 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
5061
5062 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
5063
5064 * keyboard.c (process_tool_bar_item): Reorder dummy args.
5065
5066 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
5067
5068 * keyboard.c (tool_bar_items): Use map_keymap.
5069 (process_tool_bar_item): Add dummy args to fit the required interface.
5070
5071 2006-03-25 Eli Zaretskii <eliz@gnu.org>
5072
5073 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
5074 to zero before calling debug_print or safe_debug_print.
5075
5076 * print.c (print_output_debug_flag): New global variable.
5077 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
5078 OutputDebugString if print_output_debug_flag is zero.
5079
5080 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
5081
5082 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
5083 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
5084 (Fdecode_time): Cast tm_year to EMACS_INT.
5085 (Fcurrent_time_string): Report an invalid time specification if
5086 the argument is invalid. Also, check for out-of-range time stamps.
5087
5088 2006-03-24 Kim F. Storm <storm@cua.dk>
5089
5090 * xterm.c (handle_one_xevent):
5091 * w32term.c (w32_read_socket):
5092 * macterm.c (XTread_socket): Don't let key-press clear mouse face
5093 on in toolbar window if mouse-highlight is an integer.
5094
5095 * fns.c (sxhash_list): Include last non-nil CDR in hash.
5096
5097 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5098
5099 * macmenu.c (enum mac_menu_kind): New enum.
5100 (min_menu_id): New variable.
5101 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
5102 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
5103 min_menu_id and enumerators in enum mac_menu_kind.
5104 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
5105 All uses changed. Add range check for menu ID.
5106 (fill_menubar): Add range check for menu ID.
5107 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
5108 GetEventParameter.
5109 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
5110 for each menu kind.
5111
5112 2006-03-22 Kim F. Storm <storm@cua.dk>
5113
5114 * xdisp.c: Undo 2006-03-21 change.
5115
5116 * term.c: Define aliases for append_glyph and produce_stretch_glyph
5117 when `static' is defined to avoid name clash with those in xdisp.c.
5118
5119 * process.c (Faccept_process_output): Fix to comply with lisp
5120 reference. Change arg "timeout" to "seconds" and allow both
5121 integer and float value. Change arg "timeout-msec" to "millisec"
5122 and interpret" as milliseconds rather than microseconds. Fix doc
5123 string accordingly.
5124
5125 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
5126
5127 * xdisp.c (store_next_glyph): Rename from append_glyph.
5128 (generate_stretch_glyph): Rename from produce_stretch_glyph.
5129 All callers changed accordingly.
5130
5131 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5132
5133 * xterm.c: x_session_initialized new variable.
5134 (x_term_init): Use x_session_initialized to check if
5135 x_session_initialize should be called.
5136 (x_initialize): Initialize x_session_initialized.
5137
5138 2006-03-21 Kim F. Storm <storm@cua.dk>
5139
5140 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
5141 bitmap here, but ...
5142 (update_window_fringes): ... here, so we can test if it has changed.
5143
5144 2006-03-20 Andreas Schwab <schwab@suse.de>
5145
5146 * dispnew.c (init_display): Check DISPLAY here.
5147
5148 * emacs.c (main): Don't check here.
5149
5150 * xterm.c (x_display_ok): Don't use DISPLAY env var.
5151
5152 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5153
5154 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
5155 mixup (YAILOM).
5156
5157 2006-03-20 Eli Zaretskii <eliz@gnu.org>
5158
5159 * emacs.c (main): Fix last change.
5160
5161 2006-03-20 Kenichi Handa <handa@m17n.org>
5162
5163 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
5164
5165 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
5166
5167 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
5168
5169 * xterm.c (x_term_init): Remove unnecessary GCPRO.
5170
5171 2006-03-19 Kim F. Storm <storm@cua.dk>
5172
5173 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
5174 so it doesn't associate overlay string with following glyph by default.
5175 Allow integer property value to specify explicit number of buffer
5176 positions associate with overlay string.
5177
5178 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
5179
5180 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
5181
5182 2006-03-18 Nozomu Ando <nand@mac.com>
5183
5184 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
5185 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
5186 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
5187 Don't redefine.
5188
5189 * m/mips.h: Don't use unexmips on NetBSD.
5190 (LIBS_MACHINE): Move definition lower, so it doesn't use
5191 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
5192 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
5193
5194 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
5195 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
5196 option is broken (e.g., MIPS/NetBSD).
5197
5198 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
5199
5200 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
5201 Remove the HAVE_X_WINDOWS conditional.
5202
5203 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
5204
5205 * emacs.c (main): If user asks for a display that is unavailable,
5206 simulate -nw.
5207
5208 * xterm.c (x_display_ok): New function.
5209
5210 * xterm.h: Add prototype for x_display_ok.
5211
5212 2006-03-18 Eli Zaretskii <eliz@gnu.org>
5213
5214 * w32fns.c (Fw32_select_font): Doc fix.
5215
5216 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5217
5218 * image.c [MAC_OS] (XPutPixel, XGetPixel)
5219 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
5220 version when depth is 32.
5221 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
5222 New function.
5223 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
5224 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
5225
5226 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
5227 Create GWorld in ARGB pixel format.
5228 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
5229 Remove functions.
5230 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
5231 instead of mac_copy_area/mac_copy_area_with_mask.
5232
5233 2006-03-15 Kim F. Storm <storm@cua.dk>
5234
5235 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
5236 empty row. Fixes memory corruption revealed by 2006-03-02 change.
5237 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
5238 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
5239 width is exactly the same as the window width. Don't count a final
5240 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
5241
5242 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
5243
5244 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
5245 conditional on HAVE_NTGUI, not WINDOWS_NT.
5246
5247 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5248
5249 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
5250
5251 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
5252
5253 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
5254 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
5255 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
5256 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
5257 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
5258 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
5259 instead of mac_draw_bitmap.
5260 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
5261 define_fringe_bitmap and destroy_fringe_bitmap.
5262
5263 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
5264
5265 * xterm.c (x_uncatch_errors): Block input for entire function.
5266
5267 2006-03-12 Jason Rumney <jasonr@gnu.org>
5268
5269 * w32fns.c (Fx_create_frame): Remove call to
5270 Qface_set_after_frame_default (from xfns.c 2003-05-26).
5271
5272 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
5273 finished with the menu.
5274
5275 * w32term.c: Sync 2005-10-24 xterm.c changes.
5276 (last_mouse_glyph_frame): New var.
5277 (note_mouse_movement): Say mouse moved if current frame differs
5278 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5279 (w32_mouse_position): Set last_mouse_glyph_frame.
5280 Remove OLD_REDISPLAY_CODE block.
5281
5282 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5283
5284 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
5285
5286 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
5287 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
5288
5289 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
5290
5291 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
5292
5293 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
5294 (x_draw_composite_glyph_string_foreground)
5295 (x_draw_image_foreground): Undo previous changes.
5296 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
5297 argument of mac_draw_rectangle.
5298 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
5299 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
5300 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
5301 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
5302 [USE_CG_DRAWING]: New functions.
5303 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
5304 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
5305 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
5306 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
5307 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
5308 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
5309 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
5310
5311 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5312
5313 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
5314
5315 2006-03-11 Jason Rumney <jasonr@gnu.org>
5316
5317 * w32fns.c (signal_user_input): New function.
5318 (post_character_message): Use it for keyboard input.
5319 (w32_msg_pump): Use it for mouse input.
5320
5321 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
5322
5323 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
5324 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
5325
5326 2006-03-11 Eli Zaretskii <eliz@gnu.org>
5327
5328 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
5329 if a menu is already active (the menubar_active flag is on).
5330
5331 2006-03-11 David Ponce <david@dponce.com>
5332
5333 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
5334
5335 2006-03-11 Eli Zaretskii <eliz@gnu.org>
5336
5337 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
5338 the list of unused display error handling functions.
5339
5340 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
5341 HAVE_X_WINDOWS.
5342 (internal_condition_case, internal_condition_case_1)
5343 (internal_condition_case_2): Call x_catching_errors only if
5344 HAVE_X_WINDOWS.
5345
5346 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
5347 Don't include sys/resource.h unless defined.
5348
5349 2006-03-11 Richard Stallman <rms@gnu.org>
5350
5351 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
5352
5353 * vm-limit.c (get_lim_data, lim_data, data_space_start):
5354 Move from mem-limits.h.
5355 (enum warnlevel): New data type.
5356 (check_memory_limits): Rewrite the logic about warnings.
5357 Use standard `struct rlimit'. Check return values for nonsense.
5358 (memory_warnings): Always clear lim_data.
5359
5360 * mem-limits.h (get_lim_data, lim_data, data_space_start):
5361 Move to vm-limit.c.
5362
5363 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
5364
5365 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
5366 (internal_condition_case_1, internal_condition_case_2):
5367 Abort if within unclosed x_catch_errors.
5368
5369 2006-03-11 Romain Francoise <romain@orebokech.com>
5370
5371 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
5372
5373 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5374
5375 * lisp.h: Remove duplicate prototypes. Make the prototype of
5376 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
5377
5378 2006-03-11 Eli Zaretskii <eliz@gnu.org>
5379
5380 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
5381 argument of XDrawRectangle.
5382
5383 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
5384
5385 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
5386 (x_draw_glyph_string_foreground)
5387 (x_draw_composite_glyph_string_foreground)
5388 (x_draw_image_foreground): Don't subtract 1 from width and height
5389 arguments to mac_draw_rectangle.
5390 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
5391
5392 2006-03-10 Kim F. Storm <storm@cua.dk>
5393
5394 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
5395
5396 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
5397
5398 * alloc.c (USE_POSIX_MEMALIGN): New macro.
5399 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
5400
5401 2006-03-09 Kenichi Handa <handa@m17n.org>
5402
5403 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
5404 ASCII component of a composition.
5405
5406 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
5407
5408 * window.c: Declare preserve_y as a static global variable.
5409 (window_scroll_pixel_based): No longer declare preserve_y;
5410 it is global now.
5411 (syms_of_window): Set preserve_y to -1.
5412
5413 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5414
5415 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
5416 depth is 32.
5417 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
5418 depth is 32.
5419
5420 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
5421
5422 * xdisp.c (handle_invisible_prop): Don't update it->position with
5423 a buffer position if we're in a display string.
5424
5425 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5426
5427 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
5428 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
5429
5430 * macfns.c (x_default_scroll_bar_color_parameter)
5431 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
5432 Remove unnecessary prototypes.
5433 (x_set_scroll_bar_default_width):
5434 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
5435 (mac_set_scroll_bar_width): New function.
5436 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
5437
5438 * macterm.c (get_control_part_bounds): Fix type of return value.
5439 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5440 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
5441 scroll bar if it is not tall enough to display scroll bar thumb.
5442 [USE_CARBON_EVENTS] (mac_convert_event_ref)
5443 (mac_handle_command_event, mac_handle_window_event)
5444 (mac_handle_mouse_event): Check error code of GetEventParameter.
5445 (convert_fn_keycode) [MAC_OSX]: Likewise.
5446
5447 2006-03-05 Andreas Schwab <schwab@suse.de>
5448
5449 * xselect.c (x_catch_errors_unwind): Fix missing return value.
5450
5451 2006-03-02 Kim F. Storm <storm@cua.dk>
5452
5453 * frame.h (struct frame): New member n_tool_bar_rows.
5454
5455 * xdisp.c: Minimize the unpleasent visual impact of the requirement
5456 that non-toolkit tool-bars must occupy an integral number of screen
5457 lines, by distributing the rows evenly over the tool-bar screen area.
5458 (Vtool_bar_border): New variable.
5459 (syms_of_xdisp): DEFVAR_LISP it.
5460 (display_tool_bar_line): Add HEIGHT arg for desired row height.
5461 Make tool-bar row the desired height. Use default face for border
5462 below tool-bar.
5463 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
5464 actual tool-bar rows.
5465 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
5466 Adjust the height of the tool-bar rows to fill tool-bar screen area.
5467 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
5468 is resized.
5469
5470 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
5471
5472 * search.c (Fregexp_quote): Do not precede a literal `]' with two
5473 backslashes to try to make clear that it has a literal meaning; it
5474 does not do that. (It could close a character alternative
5475 containing a backslash.)
5476
5477 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
5478
5479 * xselect.c (x_catch_errors_unwind): New function.
5480 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
5481 (Fx_get_atom_name): Call x_uncatch_errors earlier.
5482
5483 * window.c (Qscroll_up, Qscroll_down): New syms.
5484 (window_scroll_pixel_based): Make preserve_y static to avoid
5485 getting point stuck when scrolling 1 line.
5486
5487 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
5488
5489 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
5490
5491 * xterm.c (x_load_font, x_term_init, XTmouse_position)
5492 (handle_one_xevent, x_connection_closed, x_list_fonts):
5493 No arg for x_uncatch_errors.
5494
5495 * xselect.c (x_own_selection, x_decline_selection_request)
5496 (x_reply_selection_request, x_get_foreign_selection)
5497 (Fx_get_atom_name, Fx_send_client_event): Likewise.
5498
5499 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
5500 Likewise.
5501
5502 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
5503
5504 * lread.c: Declare Vload_file_rep_suffixes instead of
5505 deleted variable default_suffixes.
5506 (Fget_load_suffixes): New function.
5507 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
5508 No longer use deleted variable default_suffixes. Update docstring.
5509 (syms_of_lread): defsubr Sget_load_suffixes.
5510 Expand `load-suffixes' docstring.
5511 Delete default_suffixes and DEFVAR_LISP the new variable
5512 `load-file-rep-suffixes'.
5513
5514 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
5515 of Vload_suffixes.
5516
5517 * lisp.h: EXFUN Fget_load_suffixes.
5518 Extern Vload_file_rep_suffixes.
5519
5520 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
5521 with lisp.h.
5522
5523 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5524
5525 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
5526 qualifier which was trying to avoid the bug that was fixed by
5527 yesterday's changes to xterm.c.
5528
5529 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
5530
5531 * xterm.h (x_catch_errors) Return value changed to void.
5532 (x_uncatch_errors): Delete unused count argument.
5533
5534 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
5535 it can be called in a signal handler.
5536 (x_catch_errors_unwind): Function deleted.
5537 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
5538 (x_check_errors): Call x_uncatch_errors before signalling error.
5539
5540 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
5541 (x_connection_closed, x_list_fonts): Use new versions of
5542 x_catch_errors and x_uncatch_errors.
5543
5544 * xselect.c (x_own_selection, x_decline_selection_request)
5545 (x_reply_selection_request, x_get_foreign_selection)
5546 (Fx_get_atom_name, Fx_send_client_event): Likewise.
5547
5548 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
5549 Likewise.
5550
5551 * eval.c (record_unwind_protect): Add an assertion.
5552
5553 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5554
5555 * process.c (Fmake_network_process): Init the process's mark.
5556
5557 2006-02-25 Kim F. Storm <storm@cua.dk>
5558
5559 * buffer.c (modify_overlay): Force redisplay if we modify an
5560 overlay at the end of the buffer.
5561
5562 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5563
5564 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
5565 nil the image file has been removed, in that case use the (cached)
5566 pixmap.
5567
5568 2006-02-24 Kenichi Handa <handa@m17n.org>
5569
5570 * fileio.c (Finsert_file_contents): When a text is replaced
5571 partially, be sure to set point before the inserted characters.
5572
5573 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
5574
5575 * xfns.c (Fx_file_dialog): Return a decoded file name.
5576
5577 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5578
5579 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
5580 glyph whose face is extended to the text area end.
5581
5582 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
5583 values if control is not visible or values are not changed.
5584
5585 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5586
5587 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
5588 The default `window' should not be "on a different frame".
5589
5590 2006-02-22 Kim F. Storm <storm@cua.dk>
5591
5592 * indent.c (Fvertical_motion): Only try to move back if we can.
5593
5594 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5595
5596 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
5597 n_clip_rects.
5598
5599 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
5600 xmenu.c.
5601
5602 * macterm.c (GC_CLIP_REGION): Remove macro.
5603 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
5604 All uses changed. Don't do clipping if n_clip_rects is zero.
5605 (mac_set_clip_rectangles): Use xassert instead of abort.
5606 Set n_clip_rects. Don't make clip_region empty when number of
5607 clipping rectangles is zero.
5608 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
5609 calling mac_set_clip_rectangles.
5610 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
5611 avoid multiple redraws.
5612
5613 2006-02-22 Kim F. Storm <storm@cua.dk>
5614
5615 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
5616
5617 2006-02-21 Kim F. Storm <storm@cua.dk>
5618
5619 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
5620
5621 2006-02-21 Zhang Wei <brep@newsmth.org>
5622
5623 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
5624 returning it.
5625
5626 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5627
5628 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
5629 (standard_bitmaps): Use it.
5630
5631 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5632
5633 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
5634 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
5635 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
5636 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
5637 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
5638 Draw background if BG_WIDTH is not zero. Use float constants as
5639 divisors instead of double. Use alloca instead of xmalloc/xfree.
5640 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5641 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
5642 mac_draw_image_string* functions.
5643 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
5644 some fonts when srcCopy text transfer mode might be used.
5645 (mac_begin_clip, mac_end_clip): Check if region is empty.
5646 (mac_set_clip_rectangles): When resetting clip region, make it
5647 empty instead of disposing of it.
5648
5649 2006-02-20 Kim F. Storm <storm@cua.dk>
5650
5651 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
5652
5653 * buffer.h (struct buffer): New members fringe_indicator_alist and
5654 fringe_cursor_alist.
5655
5656 * buffer.c (init_buffer_once): Set dummy default values for
5657 fringe-indicator-alist and fringe-cursor-alist. The proper
5658 default values are set by pre-loading fringe.el.
5659 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
5660 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
5661 corresponding default- variables.
5662
5663 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
5664 to use `int'.
5665 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
5666 Define explicitly.
5667 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
5668 (Qhollow_small): New variables.
5669 (syms_of_fringe): Intern and staticpro them.
5670 (question_mark_bits): Rename from unknown_bits.
5671 (left_curly_arrow_bits): Rename from continuation_bits.
5672 (right_curly_arrow_bits): Rename from continued_bits.
5673 (left_triangle_bits): Rename from ov_bits.
5674 (right_triangle_bits): Add.
5675 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
5676 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
5677 (filled_square_bits): Add.
5678 (vertical_bar_bits): Rename from bar_cursor_bits.
5679 (horizontal_bar_bits): Rename from hbar_cursor_bits.
5680 (empty_line_bits): Rename from zv_bits.
5681 (standard_bitmaps): Update to use new names.
5682 (draw_fringe_bitmap_1): Make static.
5683 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
5684 to map from logical cursors and indicators to physical bitmaps.
5685 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
5686 bitmaps using symbol names instead of bitmap numbers.
5687 (update_window_fringes): Use logical indicator symbol names
5688 instead of bitmap numbers for logical. Add bitmap cache.
5689 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
5690
5691 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
5692
5693 * regex.c: Revert 2006-02-19 change.
5694 (xmalloc, xrealloc): Define these when not linked to Emacs.
5695 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
5696
5697 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
5698
5699 * regex.c (extend_range_table_work_area): Fix typo.
5700
5701 2006-02-19 Richard M. Stallman <rms@gnu.org>
5702
5703 * xterm.c (x_catch_errors): Use xmalloc.
5704
5705 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
5706 (regex_compile): Likewise.
5707 (regcomp): Use xmalloc.
5708
5709 * gtkutil.c (malloc_widget_value): Use xmalloc.
5710
5711 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
5712 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
5713
5714 * xmenu.c (digest_single_submenu): When pane_string is empty,
5715 do initialize save_wv.
5716
5717 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5718
5719 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
5720 w->update_mode_line if arg F is not the selected frame.
5721
5722 * macmenu.c (popup_activated_flag, submenu_id)
5723 (next_menubar_widget_id): Remove variables.
5724 (initialize_frame_menubar): Remove function.
5725 (pop_down_menu, mac_menu_show): Simplify save value.
5726 (dispose_menus): New function.
5727 (pop_down_menu, fill_menubar): Use it.
5728 (fill_submenu): Remove function. All uses changed to fill_menu.
5729 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
5730 POS. Don't call SetMenuItemHierarchicalID here.
5731 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
5732 used next. Call SetMenuItemHierarchicalID here.
5733 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
5734 objects if needed. Reuse existing menu bar titles if possible.
5735 (set_frame_menubar): Don't clean up menu objects here.
5736
5737 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
5738
5739 * window.c (window_min_size_1): Ensure room for the scroll bar and
5740 fringes.
5741
5742 2006-02-17 Romain Francoise <romain@orebokech.com>
5743
5744 * puresize.h (BASE_PURESIZE): Increment to 1200000.
5745
5746 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
5747
5748 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
5749 addition of the BLOCK_INPUTs.
5750
5751 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
5752
5753 * window.c (Fset_window_scroll_bars): Doc fix.
5754
5755 2006-02-17 Kenichi Handa <handa@m17n.org>
5756
5757 * xdisp.c (display_mode_element): Call display_string with correct
5758 PREC arg (which must be a number of characters, not column width).
5759
5760 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5761
5762 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
5763
5764 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
5765
5766 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
5767
5768 2006-02-14 Richard M. Stallman <rms@gnu.org>
5769
5770 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
5771
5772 * m/ibms390x.h: New file.
5773
5774 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5775
5776 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
5777 value of x-gtk-whole-detached-tool-bar.
5778 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
5779
5780 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
5781
5782 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5783
5784 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
5785
5786 * xterm.h: Declare x_x_to_emacs_modifiers.
5787
5788 * gtkutil.c (xg_tool_bar_button_cb): New function.
5789 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
5790 store modifiers in event.
5791 (update_frame_tool_bar): Connect button-release-event to
5792 xg_tool_bar_button_cb.
5793
5794 2006-02-13 Richard M. Stallman <rms@gnu.org>
5795
5796 * .gdbinit (xwindow): Update the code to show the window box.
5797
5798 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5799
5800 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
5801
5802 2006-02-12 Richard M. Stallman <rms@gnu.org>
5803
5804 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
5805
5806 2006-02-11 Eli Zaretskii <eliz@gnu.org>
5807
5808 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
5809 (syms_of_keyboard): DEVFAR_LISP and initialize it.
5810 (parse_tool_bar_item, parse_menu_item): If that variable is
5811 non-nil, don't disable menu items and tool-bar buttons.
5812
5813 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
5814
5815 * doc.c (Fsubstitute_command_keys): Doc fix.
5816
5817 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
5818
5819 * data.c (Findirect_function): Rewrite docstring.
5820 Fix omission bug: Declare new arg NOERROR.
5821
5822 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5823
5824 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
5825 if window_desc is not set yet.
5826 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
5827 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
5828 parameter `visibility' is `icon'.
5829 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
5830 instead of "fontset-mac".
5831 (Fx_focus_frame): New defun.
5832 (syms_of_macfns): Defsubr it.
5833
5834 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
5835 for unfocused frame.
5836 (x_raise_frame): Call BringToFront instead of SelectWindow.
5837 (x_lower_frame): Use NULL instead of nil.
5838 (x_make_frame_visible): Don't call SelectWindow.
5839 (XTread_socket): Increment handling_signal at the start, decrement
5840 it at the end.
5841 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
5842 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
5843
5844 2006-02-10 Kim F. Storm <storm@cua.dk>
5845
5846 * data.c (Findirect_function): Add NOERROR arg. All callers changed
5847 to pass Qnil for NOERROR.
5848
5849 * keymap.c (current_minor_maps_error): Remove.
5850 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
5851 instead of using internal_condition_case_1+current_minor_maps_error.
5852
5853 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5854
5855 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
5856 frames for GTK, in that case it is the tool bar. This is so that
5857 highlighted text get reset properly.
5858
5859 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
5860
5861 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
5862
5863 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5864
5865 * window.c (adjust_window_trailing_edge): Check that shrinking
5866 does not set a window to size zero or less.
5867
5868 2006-02-08 Miles Bader <miles@gnu.org>
5869
5870 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
5871 of Fget_text_property (other field functions work with overlays as
5872 well as text-properties).
5873
5874 2006-02-07 Kenichi Handa <handa@m17n.org>
5875
5876 * dispextern.h (unibyte_display_via_language_environment): Extern it.
5877
5878 * xterm.h (unibyte_display_via_language_environment):
5879 * w32term.h (unibyte_display_via_language_environment):
5880 * macterm.h (unibyte_display_via_language_environment): Delete extern.
5881
5882 2006-02-07 Kenichi Handa <handa@m17n.org>
5883
5884 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
5885 (produce_glyphs): Set the character to print in
5886 it->char_to_display. Handle unibyte-display-via-language-environment.
5887 (produce_stretch_glyph): Set character to print in it->char_to_display.
5888
5889 2006-02-06 Kenichi Handa <handa@m17n.org>
5890
5891 * lread.c (openp): Initialize encoded_fn before GCPRO it.
5892
5893 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
5894
5895 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
5896
5897 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
5898 Cast bitfield value to EMACS_INT, to suppress gcc warning.
5899
5900 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
5901 defining.
5902
5903 2006-02-03 Kim F. Storm <storm@cua.dk>
5904
5905 * xdisp.c: Cache last merged escape glyph face.
5906 (last_escape_glyph_frame, last_escape_glyph_face_id)
5907 (last_escape_glyph_merged_face_id): New variables.
5908 (get_next_display_element): Use/update them.
5909 (redisplay_internal): Reset them before redisplay.
5910
5911 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
5912 Only recheck faces after displaying ellipsis.
5913
5914 2006-02-02 Kenichi Handa <handa@m17n.org>
5915
5916 * coding.c (decode_composition_emacs_mule): Fix handling of
5917 incorrect format data.
5918
5919 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5920
5921 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
5922 gtk_toolbar_insert() so we can have tool bars of different sizes.
5923
5924 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
5925
5926 * data.c (Flistp): Doc fix.
5927
5928 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
5929
5930 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
5931 Fix typos in docstrings.
5932
5933 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
5934
5935 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
5936
5937 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
5938
5939 * alloc.c (make_interval, allocate_string)
5940 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
5941 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
5942 global variables.
5943
5944 2006-01-27 Eli Zaretskii <eliz@gnu.org>
5945
5946 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
5947 the MSDOS definition.
5948
5949 2006-01-26 Richard M. Stallman <rms@gnu.org>
5950
5951 * alloc.c (check_pure_size): Make overflow message an "error message".
5952
5953 * keymap.c (Fmap_keymap): Doc fix.
5954
5955 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
5956 unless they were cleared out.
5957
5958 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
5959
5960 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5961
5962 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
5963 (find_field): Set before_field to after_field when pos is at BEGV.
5964 (Fline_beginning_position, Fline_end_position):
5965 Clarify confusing doc string.
5966
5967 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
5968 string.
5969
5970 2006-01-26 Kenichi Handa <handa@m17n.org>
5971
5972 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
5973 current_dir, and error_file. On reporting an error, decode them
5974 back.
5975
5976 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5977
5978 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
5979 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
5980 Don't check for quit, since any loop will go through fail or jump.
5981
5982 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
5983
5984 * alloc.c (allocate_string_data): Update next_free immediately, to
5985 reduce risk of memory clobberage.
5986
5987 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5988
5989 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
5990 display when point moves across an ellipsis. If there are
5991 adjacent invisible texts, don't lose the second one's ellipsis.
5992 (x_produce_glyphs): Doc fix.
5993
5994 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
5995
5996 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
5997
5998 2006-01-23 Kim F. Storm <storm@cua.dk>
5999
6000 * xdisp.c (handle_single_display_spec): Fix handling of space
6001 property on char from string: set *position rather than
6002 it->current.pos.
6003 (produce_stretch_glyph): Reduce width of stretch glyphs so they
6004 don't get wider than the window (unless truncate-lines is on).
6005
6006 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
6007
6008 * xterm.c: Avoid allocating Lisp data from a signal handler.
6009 (x_error_message): New var to replace x_error_message_string.
6010 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
6011 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
6012 (syms_of_xterm): Use it instead of x_error_message_string.
6013
6014 * alloc.c (lisp_align_free): Add an assertion.
6015 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
6016 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
6017 a signal handler.
6018
6019 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
6020
6021 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
6022
6023 2006-01-21 Romain Francoise <romain@orebokech.com>
6024
6025 * xdisp.c (get_window_cursor_type): Fix last change.
6026 Update copyright year.
6027
6028 2006-01-20 Eli Zaretskii <eliz@gnu.org>
6029
6030 * lread.c (Fload): Don't leak the file descriptor returned by
6031 openp if we are going to signal an error.
6032
6033 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
6034 directly to _close.
6035 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
6036 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
6037 to _read.
6038 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
6039 directly to _write.
6040
6041 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
6042 if it is NULL.
6043
6044 2006-01-20 Kenichi Handa <handa@m17n.org>
6045
6046 * puresize.h (BASE_PURESIZE): Increment to 1190000.
6047
6048 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
6049
6050 * xdisp.c (get_window_cursor_type): Use cursor type specified by
6051 the selected buffer for the echo area too.
6052
6053 2006-01-19 Richard M. Stallman <rms@gnu.org>
6054
6055 * keymap.c (Fmap_keymap): Doc fix.
6056
6057 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
6058
6059 * keyboard.c (echo_char): Don't omit the space between first two
6060 echoed chars.
6061
6062 * minibuf.c (read_minibuf): Fix previous change.
6063
6064 2006-01-19 Kenichi Handa <handa@m17n.org>
6065
6066 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6067
6068 2006-01-17 Richard M. Stallman <rms@gnu.org>
6069
6070 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
6071 value in f->param_alist.
6072
6073 2006-01-15 Andreas Schwab <schwab@suse.de>
6074
6075 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
6076
6077 2006-01-13 Richard M. Stallman <rms@gnu.org>
6078
6079 * Makefile.in: Define new macro WINDOW_SUPPORT.
6080 (lisp): Use it.
6081 (SOME_MACHINE_LISP): Add conditionally loaded files.
6082
6083 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6084
6085 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
6086 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
6087 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
6088 decomposed form.
6089
6090 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
6091 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
6092 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
6093 macro. Also try member ifr_addr when getting netmask.
6094
6095 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
6096
6097 * fileio.c (Fexpand_file_name): Remove redundant tests.
6098 Fix elimination of // so that it doesn't prevent elimination of an
6099 immediately following /. or /..
6100
6101 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6102
6103 * gtkutil.c (xg_toggle_notify_cb): New function.
6104 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
6105 xg_toggle_notify_cb.
6106 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
6107 parameter value changes so the toggle button gets updated.
6108
6109 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
6110
6111 * .gdbinit: Fix typo.
6112
6113 2006-01-05 Eli Zaretskii <eliz@gnu.org>
6114
6115 * .gdbinit: Fix last change.
6116
6117 2006-01-05 Kim F. Storm <storm@cua.dk>
6118
6119 * process.c (Fmake_network_process): Use AF_INET instead of
6120 AF_UNSPEC when AF_INET6 is not defined.
6121
6122 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6123
6124 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
6125 Don't check that the other type is known file-related one.
6126
6127 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
6128 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
6129 OS X 10.4 and later.
6130
6131 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6132
6133 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
6134 let GTK do all image processing. Importing Emacs own pixmaps to GTK
6135 looks bad for inactive tool bar items with some Gnome themes.
6136
6137 2006-01-04 Eli Zaretskii <eliz@gnu.org>
6138
6139 * .gdbinit: Avoid a warning message when x_error_quitter is not
6140 compiled in.
6141
6142 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
6143 for w32.
6144
6145 2006-01-04 Kim F. Storm <storm@cua.dk>
6146
6147 * process.c: Add IPv6 support.
6148 (Qipv4, Qipv6): New vars.
6149 (syms_of_process): Intern and staticpro them.
6150 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
6151 with or without port number. Handle 4 element vector as IPv4 address
6152 without port number.
6153 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
6154 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
6155 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
6156 request that address family only. :family nil or omitted means to
6157 determine address family from the specified :host and :service.
6158 (ifflag_table): Add missing OpenBSD IFF_ flags.
6159 (server_accept_connection): Handle IPv6 addresses.
6160 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
6161
6162 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
6163 determine which breakpoints to set.
6164
6165 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
6166
6167 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
6168
6169 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
6170
6171 2006-01-03 Romain Francoise <romain@orebokech.com>
6172
6173 * emacs.c (main): Update copyright year.
6174
6175 2006-01-03 Ken Raeburn <raeburn@gnu.org>
6176
6177 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
6178 nil for the call to internal_delete_file.
6179
6180 2006-01-01 Ken Raeburn <raeburn@gnu.org>
6181
6182 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
6183 to nil for the call to Fwrite_region.
6184
6185 2005-12-31 Richard M. Stallman <rms@gnu.org>
6186
6187 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
6188
6189 2005-12-31 Eli Zaretskii <eliz@gnu.org>
6190
6191 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
6192
6193 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
6194
6195 * textprop.c (set_text_properties): Reword description of return value.
6196 Return Qnil if caller wants to remove all text properties from a
6197 string and the string already has no intervals.
6198
6199 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
6200
6201 * term.c (visible_cursor): New boolean var.
6202 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
6203 visible_cursor.
6204 (syms_of_term): Export the new var as "visible-cursor".
6205
6206 2005-12-30 Eli Zaretskii <eliz@gnu.org>
6207
6208 * .gdbinit: Tell users not to worry about GDB warnings that some
6209 functions do not exist in the binary.
6210
6211 2005-12-30 Andreas Schwab <schwab@suse.de>
6212
6213 * process.c (Fnetwork_interface_info): Correctly terminate the
6214 loop over ifflag_table.
6215
6216 2005-12-29 Richard M. Stallman <rms@gnu.org>
6217
6218 * lread.c (readevalloop): Test for reading a whole buffer
6219 before actually reading anything. Handle all cases, including
6220 START = END = nil and an already-narrowed buffer.
6221 Convert END to a marker if it is a number.
6222
6223 * keymap.c (describe_map): Put sparse map elements into an array,
6224 sort them, then output a sequence of identical bindings on one line.
6225 (struct describe_map_elt): New data type.
6226 (describe_map_compare): New function.
6227
6228 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6229
6230 * gtkutil.c (xg_get_file_with_chooser): Change message shown
6231 in file chooser.
6232
6233 2005-12-27 Richard M. Stallman <rms@gnu.org>
6234
6235 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
6236 not the current one.
6237
6238 * minibuf.c (Fminibuffer_message): Doc fix.
6239 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
6240
6241 * eval.c (do_autoload): Ignore elements of Vautoload_queue
6242 where car is not symbol.
6243
6244 2005-12-27 Kenichi Handa <handa@m17n.org>
6245
6246 * charset.c (lisp_string_width): Check multibyteness of STRING.
6247
6248 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6249
6250 * xfns.c (x_show_hidden_files): New variable.
6251 (syms_of_xfns): Defvar it.
6252
6253 * gtkutil.c (xg_toggle_visibility_cb): New function.
6254 (xg_get_file_with_chooser): Add toggle hidden files and a message
6255 to the new file chooser dialog. Show hidden files if
6256 x_show_hidden_files is non-zero.
6257
6258 2005-12-26 Richard M. Stallman <rms@gnu.org>
6259
6260 * keyboard.h: Undo previous change.
6261
6262 * Makefile.in (undo.o): Undo previous change.
6263
6264 * undo.c: Undo previous change.
6265
6266 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
6267
6268 * keyboard.h: extern last_point_position_window.
6269
6270 * undo.c: include keyboard.h.
6271
6272 * Makefile.in (undo.o): Depend on keyboard.h.
6273
6274 2005-12-26 Richard M. Stallman <rms@gnu.org>
6275
6276 * commands.h (last_point_position_window): Declare.
6277
6278 * undo.c: Depend on window.h.
6279 (record_point): Save old point from the correct window.
6280
6281 * keyboard.c (last_point_position_window): New variable.
6282 (command_loop_1): Set last_point_position_window.
6283 (syms_of_keyboard): Init it.
6284
6285 * Makefile.in (undo.o): Depend on window.h.
6286
6287 2005-12-25 Richard M. Stallman <rms@gnu.org>
6288
6289 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
6290 to undo a `provide'.
6291
6292 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
6293
6294 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
6295
6296 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
6297 define for FreeBSD on this platform.
6298
6299 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6300
6301 * macterm.h (TYPE_FILE_NAME): New define.
6302 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
6303
6304 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
6305 Add prototypes. Make static.
6306 (mac_aedesc_to_lisp): Initialize err to noErr.
6307 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
6308 (init_coercion_handler): New functions.
6309 (Fmac_coerce_ae_data): Use coercion of Apple event data for
6310 translation from/to file names.
6311
6312 * macterm.c: Don't include sys/param.h.
6313 (init_coercion_handler): Add extern.
6314 [MAC_OS8] (main): Call init_coercion_handler.
6315 (mac_initialize) [MAC_OSX]: Likewise.
6316 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
6317 Apple event data for translation from/to file names.
6318
6319 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
6320
6321 * image.c [MAC_OS] (find_image_fsspec): Likewise.
6322
6323 2005-12-23 Martin Rudalics <rudalics@gmx.at>
6324
6325 * insdel.c (insert, insert_and_inherit, insert_before_markers)
6326 (insert_before_markers_and_inherit): Make sure FROM is correct
6327 when `after-change-functions' are called.
6328
6329 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6330
6331 * xfns.c (Fx_uses_old_gtk_dialog): New function.
6332
6333 * gtkutil.c (xg_uses_old_file_dialog): New function.
6334 (xg_get_file_name): Use xg_uses_old_file_dialog.
6335
6336 * gtkutil.h: Declare xg_uses_old_file_dialog.
6337
6338 2005-12-22 Richard M. Stallman <rms@gnu.org>
6339
6340 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
6341
6342 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6343
6344 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
6345
6346 * macgui.h (XCharStruct): Remove member `valid_p'.
6347 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
6348 (XCharStructRow): New typedef.
6349 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
6350 New macros.
6351 (struct MacFontStruct): Add member `bounds'. Remove member
6352 `per_char'. All uses for QuichDraw Text fonts are changed to
6353 `bounds.per_char'. ATSUI font bounds are represented as an array
6354 `bounds.rows' of XCharStructRow's, each of which consists of a
6355 bitmap of valid entries and an array of char bounds.
6356
6357 * macterm.c (mac_per_char_metric): Add prototype.
6358 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
6359 (mac_query_char_extents): New function.
6360 (x_per_char_metric): Use it.
6361 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
6362 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
6363 Use mac_per_char_metric instead of x_per_char_metric.
6364 (mac_text_extents_16): New function.
6365 (mac_compute_glyph_string_overhangs): Use it.
6366 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
6367
6368 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6369
6370 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
6371 (Fminibuffer_completion_help): Remove duplicates before display.
6372
6373 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6374
6375 * print.c (print_preprocess): Don't lose print_depth levels while
6376 iterating.
6377
6378 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6379
6380 * macmenu.c (Qmac_apple_event): Add extern.
6381 (set_frame_menubar, mac_menu_show keymp_panes)
6382 (single_keymap_panes, list_of_panes, list_of_item)
6383 (single_menu_item): Add argument types to prototypes.
6384 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
6385 (struct skp): New struct (from xmenu.c).
6386 (single_keymap_panes, single_menu_item, list_of_panes)
6387 (list_of_item): Sync with xmenu.c.
6388 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
6389 POSITION if it is mac-apple-event event.
6390 (menubar_selection_callback): Don't use menu_command_in_progress.
6391 (set_frame_menubar): First parse all submenus, then make
6392 widget_value trees from them. Don't allocate any widget_value
6393 objects until we are done with the parsing.
6394 (parse_single_submenu, digest_single_submenu): New functions.
6395 (single_submenu): Function deleted, replaced by those two.
6396 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
6397 or dispose of EventHandlerUPP. Install hander to all submenus.
6398 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
6399 instead of ENCODE_SYSTEM.
6400 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
6401 integer values.
6402 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
6403 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
6404 format menu item string. Don't use NULL for integer value.
6405
6406 * macterm.h (struct mac_output): Remove unused member
6407 menu_command_in_progress.
6408
6409 2005-12-20 Juri Linkov <juri@jurta.org>
6410
6411 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
6412 position is non-nil, else set it to nil.
6413
6414 * macmenu.c (Fx_popup_menu): Add `else' to set
6415 Vmenu_updating_frame to nil only if position is nil.
6416
6417 * w32menu.c (Fx_popup_menu): Add `else' to set
6418 Vmenu_updating_frame to nil only if position is nil.
6419
6420 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6421
6422 * keyboard.c (make_lispy_event): Drag-and-drop items are now
6423 stored in member `args' of struct input_event.
6424
6425 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
6426
6427 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
6428 stored in member `args' of struct input_event.
6429
6430 * w32term.c (construct_drag_n_drop): Likewise.
6431
6432 * macterm.c (mac_do_receive_drag): Likewise.
6433 (x_use_underline_position_properties): Undo 2005-07-13 change.
6434 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
6435 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
6436 (mac_pass_command_to_system, mac_pass_control_to_system):
6437 New boolean variables renamed from Lisp_Object ones
6438 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
6439 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
6440 All uses changed.
6441 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
6442 Make them user options.
6443 (mac_handle_command_event, mac_store_services_event):
6444 Call create_apple_event_from_event_ref without 5th argument.
6445 (backtranslate_modified_keycode): Mask off modifier keys that are
6446 mapped to some Emacs modifiers before passing it to KeyTranslate.
6447 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
6448 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
6449 Fix docstrings of `mac-*-modifier'.
6450
6451 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
6452 (do_applescript): Change argument types to Lisp_Object.
6453 All uses changed.
6454
6455 * macterm.h (create_apple_event_from_event_ref): Remove 5th
6456 argument from extern.
6457
6458 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6459
6460 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
6461 the answer, return `lambda', not nil.
6462
6463 2005-12-17 Eli Zaretskii <eliz@gnu.org>
6464
6465 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
6466 enclosed in $(ARGQUOTE)s should not be split between two lines, as
6467 that will break with GNU Make >3.80, when sh.exe is used and
6468 arg quoting is with '..'.
6469
6470 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
6471
6472 * print.c (print_preprocess): Just signal an error if print_depth
6473 is exceeded.
6474
6475 2005-12-17 Eli Zaretskii <eliz@gnu.org>
6476
6477 * .gdbinit: Set a breakpoint on w32_abort.
6478
6479 2005-12-16 Juri Linkov <juri@jurta.org>
6480
6481 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
6482 created from minibuffer_completion_contents.
6483 (minibuffer_completion_contents): Remove.
6484 (do_completion, Fminibuffer_complete_word)
6485 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
6486 with Fminibuffer_completion_contents.
6487 (syms_of_minibuf): Add Sminibuffer_completion_contents.
6488 (Fdisplay_completion_list): Doc fix.
6489 (display_completion_list_1): Use `nil' for second arg of
6490 `Fdisplay_completion_list'.
6491
6492 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6493
6494 * xfns.c (compute_tip_xy): Handle negative dx and dy.
6495
6496 * w32fns.c (compute_tip_xy): Ditto.
6497
6498 * macfns.c (compute_tip_xy): Ditto.
6499
6500 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
6501
6502 * print.c (print_preprocess): Go to a deeper print_depth to avoid
6503 print_object loop.
6504
6505 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
6506
6507 * coding.c (code_convert_region_unwind): GCPRO arg.
6508
6509 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6510
6511 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
6512 i.e. dy is offset from top of frame instead of bottom.
6513
6514 * macfns.c (compute_tip_xy): Ditto.
6515
6516 * w32fns.c (compute_tip_xy): Ditto.
6517
6518 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
6519 (xg_get_image_for_pixmap, xg_create_frame_widgets)
6520 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
6521
6522 * xmenu.c (menubar_selection_callback): Do nothing if the callback
6523 is for an unselected radio menu item.
6524
6525 2005-12-11 Richard M. Stallman <rms@gnu.org>
6526
6527 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
6528
6529 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
6530
6531 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
6532 (Flookup_key): Doc fix.
6533 (syms_of_keymap) <function-key-map>: Doc fix.
6534
6535 * fns.c (Frequire): Treat evaluating from a source file
6536 like loading the file.
6537
6538 * floatfns.c (Flog): Doc fix.
6539
6540 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
6541 when we change the buffer.
6542
6543 2005-12-11 Juri Linkov <juri@jurta.org>
6544
6545 * minibuf.c (display_completion_list_1):
6546 Call `minibuffer_completion_contents' instead of using `nil' as
6547 second arg of `Fdisplay_completion_list'.
6548 (keys_of_minibuf): Unbind SPC in
6549 Vminibuffer_local_filename_completion_map (see also related
6550 change on 2005-12-06).
6551
6552 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6553
6554 * emacs.c (main) [MAC_OS8]: Undo previous change.
6555
6556 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
6557 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
6558
6559 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6560
6561 * Makefile.in (macselect.o): Depend on keymap.h.
6562
6563 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
6564 syms_of_macselect.
6565
6566 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
6567 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
6568
6569 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
6570 (syms_of_keyboard) [MAC_OS]: Initialize it.
6571 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
6572
6573 * mac.c (Qundecoded_file_name): New variable.
6574 (syms_of_mac): Initialize it.
6575 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
6576 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
6577 (Fmac_coerce_ae_data): New defun.
6578 (syms_of_mac): Defsubr it.
6579
6580 * macselect.c: Include keymap.h.
6581 (mac_ready_for_apple_events): New variable.
6582 (Vmac_apple_event_map, Qmac_apple_event_class)
6583 (Qmac_apple_event_id): New variables.
6584 (syms_of_macselect): Initialize them.
6585 (Qundefined, mac_store_apple_event): Add externs.
6586 (struct apple_event_binding): New struct.
6587 (find_event_binding_fun, find_event_binding)
6588 (mac_find_apple_event_spec, defer_apple_events)
6589 (mac_handle_apple_event, init_apple_event_handler)
6590 (copy_scrap_flavor_data): New functions.
6591 (Fmac_process_deferred_apple_events): New defun.
6592 (syms_of_macselect): Defsubr it.
6593 (mac_store_services_event): Fix extern.
6594 (mac_handle_service_event): Don't allocate Lisp objects during
6595 asynchronous input processing. Use mac_store_services_event
6596 instead of mac_store_application_menu_event.
6597
6598 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
6599 (Qpreferences): Remove variables.
6600 (syms_of_macterm) : Don't initialize them.
6601 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
6602 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
6603 (init_required_apple_events, do_ae_open_application)
6604 (do_ae_print_documents, do_ae_open_documents)
6605 (do_ae_quit_application): Remove functions and prototypes.
6606 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
6607 (mac_find_apple_event_spec): Add externs.
6608 (mac_store_application_menu_event): Remove function.
6609 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
6610 (mac_handle_command_event): Create Apple event from Carbon event.
6611 Use mac_store_apple_event instead of mac_store_application_menu_event.
6612 [MAC_OSX] (mac_store_services_event): Likewise.
6613 (struct SelectionRange, SelectionRange): Remove struct and typedef.
6614 [MAC_OS8] (main): Call init_apple_event_handler instead of
6615 init_required_apple_events.
6616 (mac_initialize) [MAC_OSX]: Likewise.
6617 [!USE_CARBON_EVENTS] (mac_wait_next_event):
6618 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
6619
6620 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
6621 Add externs.
6622 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
6623 (Fmac_get_preference): Add EXFUN.
6624
6625 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
6626 event.
6627
6628 2005-12-09 Richard M. Stallman <rms@gnu.org>
6629
6630 * xfns.c (Fx_create_frame): Reinstate previous change.
6631
6632 2005-12-09 Eli Zaretskii <eliz@gnu.org>
6633
6634 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
6635 GDB to the abort dialog.
6636
6637 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
6638
6639 * indent.c (Fvertical_motion): Force move if starting on
6640 stretch glyph.
6641
6642 2005-12-08 Richard M. Stallman <rms@gnu.org>
6643
6644 * lread.c (read_escape) <\s>: Don't treat strings specially.
6645
6646 * xfns.c (Fx_create_frame): Comment out previous change.
6647
6648 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6649
6650 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
6651 when needed.
6652
6653 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
6654
6655 * minibuf.c (keys_of_minibuf): Just unbind SPC in
6656 Vminibuffer_local_filename_completion_map rather than forcing it
6657 explicitly to the same binding as the global map.
6658
6659 2005-12-06 Ken Raeburn <raeburn@gnu.org>
6660
6661 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
6662 * bytecode.c (Fbyte_code): Likewise.
6663 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
6664 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
6665 * undo.c (truncate_undo_list): Likewise.
6666
6667 2005-12-05 Richard M. Stallman <rms@gnu.org>
6668
6669 * window.c (enlarge_window): Eliminate arg preserve_before.
6670 Assume it is 0. All callers changed.
6671 (Fenlarge_window, Fshrink_window): Likewise.
6672
6673 2005-12-02 Eli Zaretskii <eliz@gnu.org>
6674
6675 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
6676 fit below.
6677
6678 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6679
6680 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
6681
6682 * xfns.c (x_real_positions): int ign => unsigned int.
6683 (xg_set_icon_from_xpm_data): Remove unused variable err.
6684 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
6685 to remove compiler warning.
6686 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
6687
6688 2005-12-02 David Reitter <david.reitter@gmail.com>
6689
6690 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
6691 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
6692 and Vminibuffer_local_must_match_filename_map keymaps.
6693 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
6694
6695 * keymap.c (Vminibuffer_local_filename_completion_map)
6696 (Vminibuffer_local_must_match_filename_map): New variables.
6697 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
6698 parent to be Vminibuffer_local_completion_map and
6699 Vminibuffer_local_must_match_map, respectively.
6700
6701 * commands.h (Vminibuffer_local_filename_completion_map)
6702 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
6703
6704 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
6705
6706 * window.c (Fset_window_configuration): Don't accidentally copy the
6707 window-point of one window to another.
6708
6709 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6710
6711 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6712
6713 2005-11-30 Kim F. Storm <storm@cua.dk>
6714
6715 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
6716 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
6717 passing it to `emacs_write'.
6718
6719 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
6720
6721 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
6722
6723 2005-11-27 Richard M. Stallman <rms@gnu.org>
6724
6725 * window.c (adjust_window_trailing_edge): New function.
6726 (Fadjust_window_trailing_edge): New function.
6727 (syms_of_window): Defsubr it.
6728 (window_deletion_count): New variable.
6729 (delete_window): Update window_deletion_count.
6730
6731 2005-11-26 Eli Zaretskii <eliz@gnu.org>
6732
6733 * minibuf.c (syms_of_minibuf): Mention the extension of
6734 `completion-auto-help's meaning by complete.el.
6735
6736 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
6737
6738 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
6739 Handle :inherit property as a lisp expression.
6740
6741 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6742
6743 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
6744 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
6745 Qsuper, and Qmodifier_value.
6746 (Vmac_control_modifier, Vmac_option_modifier)
6747 (Vmac_command_modifier, Vmac_function_modifier)
6748 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
6749 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
6750 (Vmac_charset_info_alist): Doc fixes.
6751
6752 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6753
6754 * emacs.c (main) [MAC_OSX]: Change working directory to home
6755 directory if `-psn_*' option is specified.
6756
6757 * mac.c (DECODE_UTF_8): Remove macro.
6758 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
6759 created from cfstring_to_lisp.
6760 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
6761 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
6762
6763 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
6764 Add prototype.
6765
6766 2005-11-21 Ken Raeburn <raeburn@gnu.org>
6767
6768 * keymap.c (shadow_lookup): Use make_number to pass a number to
6769 Fsubstring.
6770
6771 2005-11-21 Juri Linkov <juri@jurta.org>
6772
6773 * puresize.h (BASE_PURESIZE): Increment to 1180000.
6774
6775 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
6776
6777 * xfaces.c (Finternal_set_lisp_face_attribute):
6778 Use :ignore-defface for new frame defaults when `unspecified' is
6779 supplied.
6780 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
6781 (merge_face_vectors): Don't do :ignore-defface overwriting here.
6782 (Finternal_merge_in_global_face): Do it here.
6783
6784 2005-11-20 Juri Linkov <juri@jurta.org>
6785
6786 * charset.c (invalid_character): Use Lisp-readable syntax
6787 for octal and hex. Reorder decimal, octal and hex values.
6788
6789 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
6790
6791 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
6792 this type is recognised when debugging.
6793
6794 2005-11-19 Andreas Schwab <schwab@suse.de>
6795
6796 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
6797 Lisp_Cons and Lisp_Float.
6798
6799 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6800
6801 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
6802 New variable.
6803 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
6804 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
6805 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
6806 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
6807
6808 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
6809
6810 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
6811
6812 * xfaces.c (Qignore_defface): New variable.
6813 (syms_of_xfaces): Provide `:ignore-defface'.
6814 (IGNORE_DEFFACE_P): New macro.
6815 (check_lface_attrs, lface_fully_specified_p)
6816 (Finternal_set_lisp_face_attribute)
6817 (Fface_attribute_relative_p, Fmerge_face_attribute):
6818 Handle Qignore_defface as a possible value.
6819 (merge_face_vectors): The merged face is `unspecified' if the
6820 mergee specifies `:ignore-defface'.
6821
6822 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
6823
6824 * lread.c (readevalloop): Add missing GCPROs.
6825
6826 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
6827
6828 * xfns.c (xg_set_icon_from_xpm_data): New function.
6829
6830 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
6831 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
6832
6833 * xterm.c (x_bitmap_icon): Use the xpm if available.
6834
6835 * image.c (x_create_bitmap_from_xpm_data): New function.
6836 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
6837
6838 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
6839
6840 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
6841
6842 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
6843
6844 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
6845
6846 2005-11-15 Andreas Schwab <schwab@suse.de>
6847
6848 * lisp.h (struct Lisp_Cons): Make cdr a union.
6849 (XCDR_AS_LVALUE): Adjust.
6850 (struct Lisp_Float): Make data a union.
6851 (XFLOAT_DATA): Adjust.
6852
6853 * alloc.c (free_float): Make free list chaining aliasing-safe.
6854 (make_float): Likewise.
6855 (free_cons): Likewise.
6856 (Fcons): Likewise.
6857 (check_cons_list): Likewise.
6858 (Fmake_symbol): Likewise.
6859 (allocate_misc): Likewise.
6860 (free_misc): Likewise.
6861 (gc_sweep): Likewise.
6862
6863 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6864
6865 * mac.c (HASHKEY_QUERY_CACHE): New define.
6866 (xrm_create_database, xrm_q_put_resource): Empty query cache.
6867 (xrm_get_resource): Use query cache.
6868
6869 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
6870 inhibit_window_system is set.
6871
6872 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6873
6874 * macgui.h (USE_CG_TEXT_DRAWING): New define.
6875 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
6876 and cg_glyphs.
6877
6878 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
6879 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
6880 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
6881 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
6882 not used and font substitution never occurs for ASCII and Latin-1
6883 characters.
6884 (XLoadQueryFont): Maximum and minimum metrics are now those among
6885 ASCII characters.
6886 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
6887 height adjustments for Courier, Helvetica, and Times.
6888
6889 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
6890
6891 2005-11-11 David Reitter <david.reitter@gmail.com>
6892
6893 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
6894 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
6895 Vmac_control_modifier / mac-control-modifier,
6896 Vmac_option_modifier / mac-option-modifier,
6897 Vmac_command_modifier / mac-command-modifier.
6898 (mac_to_emacs_modifiers): Use the new style modifier
6899 variables. Return UInt32 (modifiers are longs now.)
6900 (backtranslate_modified_keycode): New function (refactoring).
6901 (XTread_socket): Use new modifier variables and refactored function.
6902 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
6903 no dedicated meta key. Not in use anyway.)
6904 (convert_fn_keycode): Map Fn-keys to their original keycode
6905 using a table (english keyboard only).
6906
6907 2005-11-11 Kim F. Storm <storm@cua.dk>
6908
6909 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
6910 Add post hook to "backtrace" to always dump lisp call stack to
6911 increase chance of people sending it to us when reporting bugs.
6912
6913 * doc.c (Fsubstitute_command_keys): Doc fix.
6914
6915 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
6916
6917 * xdisp.c (handle_stop): Skip overlay string handling if
6918 ignore_overlay_strings_at_pos_p is set.
6919 (set_iterator_to_next): At end of display vector, set
6920 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
6921 string, so we skip those overlay strings at current pos.
6922
6923 2005-11-10 Lars Hansen <larsh@soem.dk>
6924
6925 * fileio.c (file-regular-p): Doc fix.
6926
6927 2005-11-10 Kim F. Storm <storm@cua.dk>
6928
6929 * alloc.c (valid_lisp_object_p): New function to validate that
6930 an object is really a valid Lisp_Object.
6931
6932 * lisp.h (valid_lisp_object_p): Add prototype.
6933
6934 * print.c (safe_debug_print): New function to be called from gdb
6935 to print Lisp objects; use valid_lisp_object_p to avoid crashing
6936 if user tries to print something which is not a Lisp object.
6937
6938 * .gdbinit (pp, pp1): Use safe_debug_print.
6939 (pv, pv1): New commands to print value of a lisp variable.
6940
6941 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
6942
6943 * .gdbinit (pp1): New user-defined function.
6944
6945 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6946
6947 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
6948
6949 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
6950 related variables for dumped executable.
6951
6952 * unexmacosx.c (unexec_write_zero): New function.
6953 (copy_data_segment): Clear uninitialized local variables in
6954 statically linked libraries.
6955
6956 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
6957
6958 2005-11-09 Juri Linkov <juri@jurta.org>
6959
6960 * keymap.c (shadow_lookup): If Flookup_key returns a number,
6961 call it again with a sub-key-sequence, and if its return value
6962 is non-nil (sub-key is bound), return nil.
6963
6964 2005-11-08 Kim F. Storm <storm@cua.dk>
6965
6966 * process.c (Fsignal_process): Recognize signal names with and
6967 without SIG prefix, e.g. SIGHUP and HUP.
6968
6969 * search.c (search_buffer): No need to initialize base_pat.
6970
6971 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
6972
6973 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
6974 Don't abuse the `mini' arg. Use the `obj' arg instead.
6975
6976 2005-11-04 Kim F. Storm <storm@cua.dk>
6977
6978 * xdisp.c (show_mouse_face): Clear mouse face to eol.
6979
6980 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
6981
6982 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
6983 font-lock.elc and jit-lock.elc.
6984
6985 2005-11-03 Richard M. Stallman <rms@gnu.org>
6986
6987 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
6988 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
6989 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
6990
6991 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
6992
6993 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
6994
6995 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6996
6997 * window.c (Fdisplay_buffer): Fix last change to not use
6998 a dedicated window.
6999
7000 2005-11-01 Kim F. Storm <storm@cua.dk>
7001
7002 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
7003 Instead, rotate the bottom angle bitmap 180 degrees to indicate
7004 that the bottom row does not end in a newline.
7005
7006 2005-11-01 Andreas Schwab <schwab@suse.de>
7007
7008 * unexelf.c (unexec): Handle .plt section in BSS segment.
7009
7010 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7011
7012 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
7013
7014 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
7015 determine whether to consider dedicated windows as well.
7016 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
7017 (Fdisplay_buffer): Do consider dedicated windows in those cases where
7018 we will split the window rather than reuse it.
7019 Don't try to use windows on other displays.
7020
7021 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
7022
7023 * puresize.h (BASE_PURESIZE): Increment to 1170000.
7024
7025 2005-10-31 Romain Francoise <romain@orebokech.com>
7026
7027 * macfns.c: Update copyright year.
7028 * m/gould.h: Likewise.
7029
7030 2005-10-30 Kim F. Storm <storm@cua.dk>
7031
7032 * xdisp.c (display_line): Restore it->current_x and call
7033 extend_face_to_end_of_line when last glyph doesn't fit on line.
7034 (set_glyph_string_background_width): Remove specific tests here
7035 to see if face background should extend to end of line. Simplify.
7036
7037 2005-10-30 Richard M. Stallman <rms@gnu.org>
7038
7039 * alloc.c (BYTES_USED): Use uordblks, not arena.
7040 (bytes_used_when_reconsidered): New variable.
7041 (emacs_blocked_free): Set that.
7042
7043 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
7044
7045 * alloc.c (emacs_blocked_free): Fix typo.
7046
7047 2005-10-29 Richard M. Stallman <rms@gnu.org>
7048
7049 * data.c (Fmake_variable_frame_local): Doc fix.
7050
7051 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
7052 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
7053 controls whether to save and restore mode_line_proptrans_alist.
7054 Callers changed.
7055 (unwind_format_mode_line): Work with that feature.
7056 (redisplay_internal): Don't call prepare_menu_bars if memory full.
7057 (move_elt_to_front): New function.
7058 (display_mode_element): Use move_elt_to_front.
7059 Don't bother munging text props on a null string.
7060 Delete obsolete elts from mode_line_proptrans_alist.
7061 (decode_mode_spec): Test Vmemory_full, not spare_memory.
7062 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
7063
7064 * lisp.h (memory_full_cons_threshold): Declare.
7065 (internal_lisp_condition_case): Declare.
7066
7067 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
7068 (Fmemory_full_p): Function deleted.
7069 (syms_of_alloc): Don't defsubr it.
7070 (memory_full_cons_threshold): New variable.
7071 (spare_memory): Now a vector of 7 elts.
7072 (buffer_memory_full): Don't set Vmemory_full here.
7073 (xfree): Don't try to refill here.
7074 (emacs_blocked_free): Record BYTES_USED in local var.
7075 (memory_full): Now free all the slots in spare_memory.
7076 (refill_memory_reserve): Allocate each slot in spare_memory.
7077 (init_alloc_once): Call refill_memory_reserve.
7078
7079 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
7080
7081 * eval.c (internal_lisp_condition_case): New function.
7082 (Fcondition_case): Use internal_lisp_condition_case.
7083 (Feval): Test Vmemory_full and memory_full_cons_threshold.
7084 (Ffuncall): Likewise.
7085
7086 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
7087
7088 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
7089
7090 * syntax.c (Fparse_partial_sexp): Fix docstring.
7091
7092 2005-10-28 Romain Francoise <romain@orebokech.com>
7093
7094 * puresize.h (BASE_PURESIZE): Increment to 1130000.
7095
7096 2005-10-28 Richard M. Stallman <rms@gnu.org>
7097
7098 * xfns.c (syms_of_xfns): Provide `x' as feature.
7099
7100 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
7101
7102 * editfns.c (Fformat): Don't include string padding
7103 between info[n].start and info[n].end.
7104
7105 * alloc.c (spare_memory): No longer static.
7106 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
7107
7108 * puresize.h (BASE_PURESIZE): Increment to 1120000.
7109
7110 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
7111
7112 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
7113
7114 * fringe.c (update_window_fringes): Handle case where buffer ends
7115 with a newline.
7116
7117 2005-10-27 Kenichi Handa <handa@m17n.org>
7118
7119 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
7120
7121 2005-10-24 Kenichi Handa <handa@m17n.org>
7122
7123 * charset.h (charset_mule_unicode_0100_24ff)
7124 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
7125 Extern them.
7126
7127 * charset.c (charset_mule_unicode_0100_24ff)
7128 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
7129 New variables.
7130 (Fsetup_special_charsets): Initialize them.
7131
7132 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7133 supported Unicode characters.
7134
7135 2005-10-25 Jason Rumney <jasonr@gnu.org>
7136
7137 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
7138
7139 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7140
7141 * image.c [MAC_OS] (image_load_qt_1): Check image size.
7142 Use GraphicsImportGetImageDescription instead of
7143 GraphicsImportGetNaturalBounds.
7144 [MAC_OSX] (image_load_quartz2d): Check image size.
7145 [MAC_OS] (xpm_load_image): Likewise.
7146
7147 * macterm.c (last_mouse_glyph_frame): New var.
7148 (note_mouse_movement): Say mouse moved if current frame differs
7149 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
7150 (XTmouse_position): Set last_mouse_glyph_frame.
7151 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
7152 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
7153 Use EndianU16_BtoN.
7154 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
7155 (x_per_char_metric, XLoadQueryFont)
7156 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
7157 glyph bounds.
7158 (mac_to_x_fontname, mac_do_list_fonts)
7159 (mac_initialize_display_info): Change screen resolutions to 72dpi.
7160
7161 2005-10-25 Masatake YAMATO <jet@gyve.org>
7162
7163 * minibuf.c (Fdisplay_completion_list): Small doc fix.
7164
7165 2005-10-24 Kim F. Storm <storm@cua.dk>
7166
7167 * xterm.c: Undo 2005-10-23 change.
7168 (last_mouse_glyph_frame): New var.
7169 (note_mouse_movement): Say mouse moved if current frame differs
7170 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
7171 (XTmouse_position): Set last_mouse_glyph_frame.
7172 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
7173 last_mouse_glyph] on mouse up/down event.
7174
7175 * editfns.c (Fcompare_buffer_substrings): Fix last change.
7176
7177 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7178
7179 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
7180
7181 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7182
7183 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
7184 so tool tips don't interfere with press on tool bar button.
7185
7186 2005-10-23 Richard M. Stallman <rms@gnu.org>
7187
7188 * casetab.c (Fset_case_table): Doc fix.
7189
7190 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
7191 (readevalloop): Compute ENTIRE properly.
7192 (syms_of_lread) <load-history>: Doc fix.
7193
7194 2005-10-21 Richard M. Stallman <rms@gnu.org>
7195
7196 * lread.c (Fload): Simplify gcpro structure.
7197 Gcpro FOUND as well as FILE, but not EFOUND.
7198 Unless preloading, record FOUND instead of FILE in Vload_history.
7199 Rename repeat local FILE to MSG_FILE.
7200 (syms_of_lread) <load-history>: Doc fix.
7201
7202 2005-10-21 Kenichi Handa <handa@m17n.org>
7203
7204 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
7205
7206 2005-10-20 Kim F. Storm <storm@cua.dk>
7207
7208 * buffer.c (clone_per_buffer_values): Remove unused var tem.
7209 (init_buffer): Remove unused vars dotstat, pwdstat.
7210
7211 * ccl.c (check_ccl_update): Remove unused var vp.
7212
7213 * fileio.c (auto_save_error): Call SAFE_FREE.
7214
7215 * fns.c (Fchar_table_range): Remove unused var i.
7216
7217 * minibuf.c (display_completion_list_1): New wrapper function
7218 for Fdisplay_completion_list.
7219 (Fminibuffer_completion_help): Use it.
7220
7221 * term.c (encode_terminal_code): Remove unused var src_start.
7222
7223 * window.c (Fwindow_tree): Remove unused var alist.
7224
7225 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
7226
7227 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
7228
7229 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
7230
7231 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
7232
7233 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
7234
7235 2005-10-20 Andreas Schwab <schwab@suse.de>
7236
7237 * minibuf.c (Fdisplay_completion_list): Doc fix.
7238
7239 2005-10-19 Kim F. Storm <storm@cua.dk>
7240
7241 * image.c (check_image_size): Handle integer Vmax_image_size value
7242 directly as max pixel value. Use default frame size for null frame.
7243 (syms_of_image) <max-image-size>: Describe integer value.
7244
7245 2005-10-19 Romain Francoise <romain@orebokech.com>
7246
7247 * emacs.c (main): Update copyright year.
7248
7249 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
7250
7251 * image.c (Vmax_image_size): New variable.
7252 (check_image_size): New function.
7253 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
7254 (gif_load, gs_load): Use it.
7255 (lookup_image): Try loading again if previous load failed.
7256 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
7257 to display in, NULL if none.
7258 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
7259 argument.
7260
7261 2005-10-18 Richard M. Stallman <rms@gnu.org>
7262
7263 * search.c (Fstring_match): Doc fix.
7264
7265 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7266
7267 * macterm.c (note_mouse_movement): Use PtInRect.
7268 (XTread_socket): Also ignore mouse motion just before a button
7269 release event. Don't process button release event when mouse is
7270 not grabbed.
7271
7272 2005-10-16 Masatake YAMATO <jet@gyve.org>
7273
7274 * minibuf.c (Fdisplay_completion_list): Add new optional
7275 argument COMMON_SUBSTRING. Bind `completion-common-substring'
7276 to the optional argument during running `completion-setup-hook'.
7277
7278 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7279
7280 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
7281 Allow nil as argument.
7282 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
7283 for encoding arguments as UTF-16 in native byte order, no BOM.
7284
7285 * macfns.c (Fx_create_frame): Add debugging code.
7286 (Fx_show_tip): Set frame pixel width and height.
7287
7288 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
7289 (FRAME_NORMAL_GC): New macro.
7290 (mac_draw_line, mac_clear_area, mac_clear_window)
7291 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
7292 (mac_draw_image_string, mac_draw_image_string_16): Rename from
7293 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
7294 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
7295 All uses changed.
7296 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
7297 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
7298 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
7299 (mac_draw_string_16, mac_draw_image_string)
7300 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
7301 (mac_scroll_area): Drawing functions now take frame as destination.
7302 All uses changed.
7303 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
7304 (x_draw_fringe_bitmap): Set clipping area in face->gc.
7305
7306 * macterm.h (mac_clear_area): Add extern.
7307
7308 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7309
7310 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
7311 changes for xterm.c.
7312
7313 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
7314
7315 2005-10-14 Kenichi Handa <handa@m17n.org>
7316
7317 * search.c (search_buffer): Give up BM search on case-fold-search
7318 if one of a target character has a case-equivalence of different
7319 charset even if that target charcter is an ASCII.
7320
7321 * casefiddle.c (casify_object): Fix for the case that case
7322 conversion change the byte length.
7323
7324 2005-10-14 Kim F. Storm <storm@cua.dk>
7325
7326 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
7327 (handle_one_xevent): Only clear help_echo_string; restore it if
7328 note_mouse_movement didn't record any mouse movement.
7329
7330 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
7331 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
7332
7333 * keyboard.c (make_lispy_position): Adjust wx for left margin if
7334 ON_TEXT.
7335 (Fposn_at_x_y): Fix calculation of x coordinate.
7336 (Fposn_at_point): Return nil if point is hscrolled out of view.
7337
7338 2005-10-13 Andreas Schwab <schwab@suse.de>
7339
7340 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
7341 non-interactive mode.
7342
7343 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7344
7345 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
7346
7347 2005-10-12 Kim F. Storm <storm@cua.dk>
7348
7349 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
7350
7351 2005-10-12 Romain Francoise <romain@orebokech.com>
7352
7353 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
7354
7355 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7356
7357 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
7358 get end of text rows. Obtain header-line/mode-line rows directly.
7359
7360 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
7361 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
7362
7363 2005-10-12 Kim F. Storm <storm@cua.dk>
7364
7365 * xdisp.c (remember_mouse_glyph): New generic version based on
7366 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
7367 properly handle all different window areas.
7368
7369 * dispextern.h (remember_mouse_glyph): Add prototype.
7370
7371 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
7372 (note_mouse_movement, XTmouse_position): Use generic
7373 remember_mouse_glyph, add last_mouse_glyph arg.
7374
7375 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
7376 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
7377 (note_mouse_movement, w32_mouse_position): Use generic
7378 remember_mouse_glyph, add last_mouse_glyph arg.
7379
7380 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
7381 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
7382 (XTmouse_position): Adapt to use generic remember_mouse_glyph
7383 instead of pixel_to_glyph_coords.
7384
7385 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
7386 Fix x position for ON_TEXT when left margin width > 0.
7387
7388 2005-10-11 Kim F. Storm <storm@cua.dk>
7389
7390 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
7391
7392 * keyboard.c (make_lispy_position): Fix buffer calculations for
7393 mouse click or movement in right fringe and the margins.
7394
7395 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
7396
7397 * image.c (fn_jpeg_stdio_src): Don't define it.
7398 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
7399 (our_common_init_source): Rename from `our_init_source'.
7400 (our_common_term_source): Rename from `our_term_source'.
7401 (our_memory_fill_input_buffer): Rename from
7402 `our_fill_input_buffer'.
7403 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
7404 (jpeg_memory_src): Use the new names.
7405 (struct jpeg_stdio_mgr): New struct.
7406 (JPEG_STDIO_BUFFER_SIZE): New constant.
7407 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
7408 (jpeg_file_src): New functions.
7409 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
7410
7411 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7412
7413 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
7414 (fm_font_family_alist): New variable.
7415 (syms_of_macterm): Initialize and staticpro it.
7416 (decode_mac_font_name): Replace '-' in family name with '_' if it
7417 occurs just once. Lower family name.
7418 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
7419 All uses changed. Remove argument MF and code conversion for it.
7420 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
7421 to CHARSET. Parse font size. Lower family name. Return integer
7422 value for status of parsing.
7423 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
7424 Don't use Fdowncase because family name is already lowered by
7425 decode_mac_font_name.
7426 (init_font_name_table): Always call decode_mac_font_name.
7427 Add pair of family name and its reference to fm_font_family_alist.
7428 (mac_clear_font_name_table): Clear fm_font_family_alist.
7429 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
7430 Lookup fm_font_family_alist to get font family reference.
7431 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
7432 name is already lowered by parse_x_font_name.
7433
7434 2005-10-11 Kim F. Storm <storm@cua.dk>
7435
7436 * xterm.c (glyph_rect): Return 0 if position is outside text area.
7437
7438 * keyboard.c (make_lispy_position): Fix buffer position calculation for
7439 mouse click or movement in fringe.
7440
7441 2005-10-10 Jason Rumney <jasonr@gnu.org>
7442
7443 * xterm.c (remember_mouse_glyph): New function.
7444 (note_mouse_movement): Use it to remember the current glyph if changed.
7445 (XTmouse_position): Fix calculation of fake glyph under mouse.
7446 Move code to calculate glyph under mouse into remember_mouse_glyph.
7447
7448 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7449
7450 * emacs.c (USAGE3, standard_args): -nb => -nbi.
7451
7452 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
7453
7454 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
7455 (next_frame, prev_frame, set_term_frame_name): Make static.
7456
7457 * window.c (Fwindow_tree): Fix spelling.
7458
7459 2005-10-09 Romain Francoise <romain@orebokech.com>
7460
7461 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
7462
7463 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7464
7465 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
7466 Add options -nb, --no-bitmap-icon.
7467
7468 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
7469
7470 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7471
7472 * macgui.h (MAX_CLIP_RECTS): New define.
7473 (struct _XGC): New member clip_region.
7474 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
7475 clip_rects.
7476
7477 * macterm.c (GC_CLIP_REGION): New macro.
7478 (saved_port_clip_region): New variable.
7479 (mac_begin_clip, mac_end_clip): New functions.
7480 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
7481 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
7482 (mac_copy_area_with_mask, mac_scroll_area): Use them.
7483 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
7484 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
7485 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
7486 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
7487 rectangles stored in gc.
7488 (XFreeGC): Dispose of clipping region.
7489 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
7490 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
7491 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
7492 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
7493 (x_draw_bar_cursor): Use them.
7494 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
7495 get multiple clipping rectangles.
7496
7497 * macterm.h (mac_term_init): Add types to extern.
7498 (struct mac_output): Remove members mWP and pending_menu_activation.
7499 Put members scroll_bar_foreground_pixel and
7500 scroll_bar_background_pixel in #if 0.
7501 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
7502
7503 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
7504 Add debugging code.
7505
7506 2005-10-08 Kim F. Storm <storm@cua.dk>
7507
7508 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
7509
7510 2005-10-07 Kim F. Storm <storm@cua.dk>
7511
7512 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
7513 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
7514 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
7515
7516 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7517
7518 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
7519 to for_overlaps. Now occupy 3 bits.
7520 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
7521 (OVERLAPS_ERASED_CURSOR): New defines.
7522 (struct redisplay_interface): Add new OVERLAPS arg to member
7523 fix_overlapping_area.
7524 (x_fix_overlapping_area): Add new OVERLAPS arg.
7525 (get_glyph_string_clip_rects): Add extern.
7526
7527 * dispnew.c (redraw_overlapping_rows):
7528 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
7529
7530 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
7531 for_overlaps.
7532 (get_glyph_string_clip_rects): New function created from
7533 get_glyph_string_clip_rect. Set clipping rectangles according to the
7534 value of for_overlaps. Enable to store multiple clipping rectangles.
7535 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
7536 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
7537 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
7538 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
7539 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
7540 calculating clipping rectangles later. Call x_fix_overlapping_area
7541 with new OVERLAPS arg to draw only erased cursor area.
7542 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
7543 to draw overlaps in both preceding and succeeding rows.
7544
7545 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
7546 struct glyph_string to for_overlaps.
7547
7548 2005-10-04 Richard M. Stallman <rms@gnu.org>
7549
7550 * alloc.c (refill_memory_reserve): Conditionalize the body,
7551 not the function's existence.
7552
7553 2005-10-04 Kim F. Storm <storm@cua.dk>
7554
7555 * window.c (window_split_tree): New function.
7556 (Fwindow_split_tree): New defun.
7557 (syms_of_window): Defsubr it.
7558
7559 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7560
7561 * macterm.c (mac_invert_rectangle): New function.
7562 (XTflash): Use it.
7563
7564 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
7565
7566 * regex.h (re_char): Don't expose it in the interface.
7567 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
7568
7569 * regex.c (re_char): Move it back here.
7570 (re_set_whitespace_regexp): Change the arg's type to not use it.
7571
7572 * keyboard.c (make_lispy_event): If point has moved between down and up
7573 event, make it a drag, not a click, to mirror what
7574 mouse-drag-region expects.
7575
7576 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7577
7578 * lisp.h (fatal): Undo previous change.
7579 * term.c (fatal): Undo previous change.
7580
7581 2005-10-01 Richard M. Stallman <rms@gnu.org>
7582
7583 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
7584
7585 2005-10-01 Kim F. Storm <storm@cua.dk>
7586
7587 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
7588
7589 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7590
7591 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
7592
7593 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
7594 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
7595 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
7596 Try ATSUI-compatible 12pt Monaco font first.
7597
7598 * macgui.h (struct _XCharStruct): New member valid_p.
7599 (STORE_XCHARSTRUCT): Set valid_p.
7600 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
7601
7602 * macterm.c (mac_draw_string_common, x_per_char_metric)
7603 (mac_compute_glyph_string_overhangs, init_font_name_table)
7604 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
7605 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
7606 (x_draw_glyph_string_background)
7607 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
7608 XDrawImageString. Always draw background and foreground separately.
7609 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
7610 functions for one-byte chars when using ATSUI-compatible fonts.
7611 (atsu_font_id_hash) [USE_ATSUI]: New variable.
7612 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
7613 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
7614 max_char_or_byte2 more in detail.
7615 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
7616
7617 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
7618
7619 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
7620 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
7621
7622 * unexelf.c (fatal): Fix prototype.
7623
7624 * term.c (fatal): Implement using varargs.
7625
7626 * regex.c (re_char): Move typedef ...
7627 * regex.h (re_char): ... here.
7628 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
7629
7630 * emacs.c (malloc_set_state): Fix return type.
7631 (endif): Fix type.
7632
7633 * lisp.h (fatal): Add argument types.
7634
7635 * dispextern.h (fatal): Delete prototype.
7636
7637 * systime.h (make_time): Prototype moved from ...
7638 * editfns.c (make_time): ... here.
7639
7640 * editfns.c: Move systime.h include after lisp.h.
7641 * dired.c:
7642 * xsmfns.c:
7643 * process.c: Likewise.
7644
7645 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
7646 Add parameter types.
7647 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
7648 (emacs_blocked_free): Change definition to match __free_hook.
7649 (emacs_blocked_malloc): Change definition to match __malloc_hook.
7650 (emacs_blocked_realloc): Change definition to match __realloc_hook.
7651
7652 2005-09-30 Romain Francoise <romain@orebokech.com>
7653
7654 * minibuf.c (Fread_buffer): Follow convention for reading from the
7655 minibuffer with a default value. Doc fix.
7656
7657 2005-09-29 Juri Linkov <juri@jurta.org>
7658
7659 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
7660 Rename argument name `string' to `format-string'.
7661 (Fformat): Doc fix.
7662
7663 2005-09-28 Kim F. Storm <storm@cua.dk>
7664
7665 * image.c (gif_load): Fix size of allocated image buffer
7666 for images where a sub-image may be larger than the image's
7667 total height/width specifications.
7668
7669 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7670
7671 * macgui.h (struct _XCharStruct): Each member now takes short value.
7672
7673 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
7674
7675 * xfaces.c (lookup_derived_face): Add parameter type.
7676
7677 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
7678
7679 * marker.c (verify_bytepos): Add parameter type.
7680
7681 * process.c (get_operating_system_release): Move prototype ...
7682
7683 * systime.h (get_operating_system_release): ... here.
7684
7685 * xterm.c (handle_one_xevent): Refer to union field to match the
7686 type required by the function definition.
7687 (set_vertical_scroll_bar): Move prototype ...
7688
7689 * xterm.h: ... here.
7690
7691 * fns.c (internal_equal, seed_random): Fix prototypes.
7692 (internal_equal): Add missing parameter.
7693
7694 2005-09-25 Richard M. Stallman <rms@gnu.org>
7695
7696 * keyboard.c (update_menu_bindings): Variable deleted.
7697 (syms_of_keyboard): Don't defvar it.
7698 (parse_menu_item): Don't test it.
7699
7700 2005-09-23 Richard M. Stallman <rms@gnu.org>
7701
7702 * editfns.c (Fformat): Explicitly test for end of format string
7703 and don't use `index'.
7704
7705 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
7706
7707 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
7708 Define BROKEN_GET_CURRENT_DIR_NAME.
7709
7710 * sysdep.c (get_current_dir_name): Also define if
7711 BROKEN_GET_CURRENT_DIR_NAME.
7712
7713 * m/ibmrs6000.h: Test for USG5, not USG5_4.
7714
7715 2005-09-22 Kim F. Storm <storm@cua.dk>
7716
7717 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
7718 (message2): Fix commentary. Ok to use alloca'ed memory.
7719 Still not ok to use Lisp string data (because of GC).
7720 (set_message): Add comment why GC cannot happen.
7721
7722 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7723
7724 * macterm.c (xlfdpat_block_match_1): Fix assertion.
7725 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
7726 variants for a scalable font multiple times.
7727
7728 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7729
7730 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
7731 Setup slave tty options before forking.
7732
7733 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7734
7735 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
7736 positions have been set for the frame (as is done for frames in
7737 special-display-buffer-names).
7738
7739 2005-09-19 Kim F. Storm <storm@cua.dk>
7740
7741 * editfns.c (Fformat): Don't scan past end of format string that
7742 ends in %. Reported by Johan Bockg\e,Ae\e(Brd.
7743
7744 2005-09-18 Andreas Schwab <schwab@suse.de>
7745
7746 * window.h (struct window): Remove height_fixed_p, no longer set.
7747
7748 * window.c (make_window): Don't initialize height_fixed_p.
7749 (window_fixed_size_p): Don't use it.
7750
7751 2005-09-18 John Paul Wallington <jpw@pobox.com>
7752
7753 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
7754
7755 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7756
7757 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
7758
7759 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7760 New variables.
7761 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
7762 file selection.
7763
7764 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
7765
7766 2005-09-17 Eli Zaretskii <eliz@gnu.org>
7767
7768 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
7769 (obj): Use XMENU_OBJ, not a literal xmenu.o.
7770
7771 2005-09-16 Romain Francoise <romain@orebokech.com>
7772
7773 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
7774
7775 2005-09-15 Richard M. Stallman <rms@gnu.org>
7776
7777 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
7778 (display_mode_element): Instead of `lisp_string' and `this',
7779 record `offset' and increment that.
7780 `last_offset' replaces `last'.
7781
7782 * Makefile.in (XMENU_OBJ): Variable deleted.
7783 (obj): Use xmenu.o unconditionally.
7784 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
7785
7786 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
7787
7788 2005-09-15 Kim F. Storm <storm@cua.dk>
7789
7790 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
7791 (reseat_at_next_visible_line_start): Likewise (in xassert).
7792
7793 2005-09-14 Romain Francoise <romain@orebokech.com>
7794
7795 * fileio.c (write_region_inhibit_fsync): New variable.
7796 (Fwrite_region): Use it to skip call to fsync.
7797 (syms_of_fileio): Initialize it.
7798
7799 2005-09-14 Kenichi Handa <handa@m17n.org>
7800
7801 * coding.c (code_convert_region_unwind): Argument format changed.
7802 (run_pre_post_conversion_on_str): If pre-write-conversion function
7803 changed the current buffer, delete the new buffer.
7804 (run_pre_write_conversin_on_c_str): Likewise.
7805
7806 * fileio.c (Fexpand_file_name): Check multibyteness of
7807 default_directory.
7808
7809 2005-09-13 Kenichi Handa <handa@m17n.org>
7810
7811 * composite.c (compose_chars_in_text): Delete it.
7812
7813 * composite.h (compose_chars_in_text): Delete extern.
7814
7815 2005-09-13 Kim F. Storm <storm@cua.dk>
7816
7817 * print.c (print_error_message): Fix last change.
7818
7819 2005-09-12 Kim F. Storm <storm@cua.dk>
7820
7821 * composite.c (compose_chars_in_text): Fix setup of `pend'.
7822 Unconditionally reload `ptr' and `pend' after eval.
7823
7824 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
7825
7826 * print.c (print_error_message): Pass copy of caller name to
7827 message_dolog.
7828
7829 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
7830
7831 2005-09-12 Kenichi Handa <handa@m17n.org>
7832
7833 * xdisp.c (display_mode_element): Be sure to make variables THIS
7834 and LISP_STRING point into a string data of ELT.
7835
7836 2005-09-12 Kim F. Storm <storm@cua.dk>
7837
7838 * editfns.c (Ftranslate_region_internal): Reload `tt' after
7839 signal_after_change that may have GC'ed.
7840 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
7841
7842 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
7843 after insert while runs signal_after_change.
7844
7845 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
7846 declaration to where it is used.
7847
7848 * w32.c (check_windows_init_file): Fix allocation of error buffer.
7849
7850 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
7851 (x_set_name_internal): Call x_encode_text with new FREEP arg to
7852 know if xfree is needed instead of guessing.
7853
7854 * xterm.h (x_encode_text): Remove prototype.
7855
7856 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
7857
7858 * w32term.c (x_bitmap_icon): Load small icons too.
7859
7860 2005-09-10 Romain Francoise <romain@orebokech.com>
7861
7862 * buffer.c (init_buffer): Grow buffer to add directory separator
7863 and terminal zero. Fix typos.
7864
7865 2005-09-10 Eli Zaretskii <eliz@gnu.org>
7866
7867 * buffer.c (init_buffer): Fix error message for failed call to
7868 get_current_dir_name.
7869 (get_current_dir_name): Remove prototype.
7870
7871 * xsmfns.c (get_current_dir_name): Remove prototype.
7872
7873 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
7874 Add prototype.
7875
7876 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
7877 Don't #undef NULL after including blockinput.h.
7878
7879 * config.in: Regenerated.
7880
7881 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
7882
7883 Remove the MAXPATHLEN limitations:
7884
7885 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
7886 New function.
7887
7888 * buffer.c (init_buffer): Use it.
7889
7890 * xsmfns.c (smc_save_yourself_CB): Ditto.
7891
7892 2005-09-09 Kim F. Storm <storm@cua.dk>
7893
7894 * doc.c (Fsubstitute_command_keys): Lookup key binding for
7895 commands that are remapped from some other command.
7896
7897 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
7898 flag in disabled rows below the window.
7899
7900 * frame.h (struct frame): New member updated_p.
7901
7902 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
7903 member. Remove local `updated' array and associated variables.
7904
7905 2005-09-07 Kim F. Storm <storm@cua.dk>
7906
7907 * xdisp.c (handle_display_prop): Respect overlay window property.
7908
7909 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
7910 Fixes crash reported by YAMAMOTO Mitsuharu.
7911
7912 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7913
7914 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
7915 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
7916 (xlfdpat_block_match_1, xlfdpat_match): New functions.
7917 (xlfdpat_block_match): New macro.
7918 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
7919 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
7920 (add_font_name_table_entry): Increase font_name_table_size more
7921 rapidly.
7922 (mac_c_string_match): Remove function.
7923 (mac_do_list_fonts): Use XLFD pattern match instead of regular
7924 expression match.
7925
7926 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
7927
7928 2005-09-03 Richard M. Stallman <rms@gnu.org>
7929
7930 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
7931 (move_it_in_display_line_to): Stop after last char on line even
7932 on a windowing terminal, if that's the specified stop position.
7933
7934 * fns.c (Fsort): Doc fix.
7935
7936 * editfns.c (Fpropertize): Don't insist that properties be symbols.
7937
7938 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
7939
7940 * dired.c (directory_files_internal_unwind, directory_files_internal)
7941 (file_name_completion): Use a Save_Value object rather than a cons of
7942 two 16bit ints to store the DIR*.
7943 (directory_files_internal, file_name_completion): Handle both EINTR and
7944 EAGAIN consistently after `readdir'.
7945
7946 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
7947
7948 * intervals.c (update_interval): Add position info in error.
7949
7950 * dispnew.c (window_to_frame_hpos, update_window):
7951 Avoid gcc warning about unused variable `f'.
7952
7953 2005-08-31 Jason Rumney <jasonr@gnu.org>
7954
7955 * w32menu.c (add_menu_item): If unicode_append_menu returns an
7956 error, revert to using AppendMenu.
7957
7958 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7959
7960 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
7961 All uses changed.
7962 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
7963 cases.
7964 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
7965 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
7966 Use posix_pathname_to_fsspec.
7967 [MAC_OS] (xpm_load_image): Fill in background_transparent field
7968 while we have mask.
7969
7970 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
7971
7972 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
7973
7974 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7975
7976 * syntax.c (update_syntax_table): Properly reproduce the special +1
7977 setting of e_property at the end of the buffer when bumping into the
7978 INTERVALS_AT_ONCE limit.
7979
7980 2005-08-27 Eli Zaretskii <eliz@gnu.org>
7981
7982 * emacs.c (USAGE1): Fix the description of the -Q option.
7983
7984 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
7985
7986 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
7987
7988 2005-08-26 Kim F. Storm <storm@cua.dk>
7989
7990 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
7991 Don't move PT to new window start.
7992
7993 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7994
7995 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
7996 ICONIFY/DEICONIFY_EVENT.
7997
7998 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
7999 Restore background color.
8000 (mac_handle_visibility_change): New function.
8001 (x_make_frame_invisible, x_iconify_frame)
8002 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
8003 [USE_CARBON_EVENTS] (mac_handle_window_event)
8004 (install_window_handler): Handle visibility change events.
8005 (x_make_frame_visible): Don't reposition window if it is iconified
8006 or asked for visible before. Select and uncollapse window when it
8007 is made visible.
8008 (x_make_frame_invisible): Don't reset x_highlight_frame.
8009 (x_iconify_frame): Likewise. Make invisible frame visible before
8010 it is iconified.
8011 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
8012 (do_window_update): Don't change visibility of invisible frame.
8013
8014 2005-08-22 Juri Linkov <juri@jurta.org>
8015
8016 * term.c (turn_on_face): Check for TS_set_foreground and
8017 TS_set_background depending on standout_mode. Simplify.
8018
8019 2005-08-21 Kim F. Storm <storm@cua.dk>
8020
8021 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
8022 bitmaps on fully visible rows.
8023
8024 * fringe.c (update_window_fringes): Replace FORCE_P arg with
8025 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
8026 and return 0.
8027
8028 * xdisp.c (redisplay_window): Call update_window_fringes with
8029 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
8030
8031 2005-08-20 Richard M. Stallman <rms@gnu.org>
8032
8033 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
8034 (resize_mini_window): Set w->start, and PT, so as to display the tail
8035 end of the buffer, if it doesn't all fit.
8036
8037 2005-08-18 Kim F. Storm <storm@cua.dk>
8038
8039 * xdisp.c (calc_pixel_width_or_height): Use actual display
8040 resolution when available instead of Vdisplay_pixels_per_inch.
8041
8042 2005-08-17 Kim F. Storm <storm@cua.dk>
8043
8044 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
8045
8046 * dispnew.c (buffer_posn_from_coords): Check that target row is
8047 within matrix.
8048
8049 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8050
8051 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
8052 xg_set_frame_icon and call it.
8053
8054 * gtkutil.c (xg_set_frame_icon): New function.
8055
8056 * gtkutil.h (xg_set_frame_icon): Declare it.
8057
8058 2005-08-16 Kim F. Storm <storm@cua.dk>
8059
8060 * dispnew.c (increment_row_positions): Skip non-enabled rows.
8061
8062 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
8063 (Fcurrent_window_configuration): Use VECSIZE macro instead.
8064
8065 2005-08-15 Richard M. Stallman <rms@gnu.org>
8066
8067 * xdisp.c (message3_nolog): Clear echo_message_buffer.
8068
8069 2005-08-15 Kim F. Storm <storm@cua.dk>
8070
8071 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
8072
8073 * process.c (deactivate_process, status_notify, read_process_output)
8074 (update_status, status_convert, decode_status, allocate_pty)
8075 (make_process, remove_process, list_processes_1)
8076 (create_process_1, unwind_request_sigio, read_process_output)
8077 (send_process, keyboard_bit_set): Declare static.
8078 (Fdelete_process): Simplify. Pass process to status_notify, so we
8079 don't try to read output from it.
8080 (status_notify): New arg deleting_process--don't try to read
8081 output from that process.
8082
8083 * lisp.h (deactivate_process, status_notify, read_process_output):
8084 Remove prototypes.
8085
8086 2005-08-14 Richard M. Stallman <rms@gnu.org>
8087
8088 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
8089 define_image_type.
8090
8091 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8092
8093 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
8094 (xg_get_image_for_pixmap): Move some code to
8095 xg_get_pixbuf_from_pix_and_mask, and call it.
8096
8097 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
8098
8099 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
8100 to get an GTK icon and set it with GTK functions to avoid having GTK
8101 override an icon set with just X functions.
8102
8103 2005-08-11 Richard M. Stallman <rms@gnu.org>
8104
8105 * image.c (syms_of_image): Init image_types here, and call
8106 define_image_type.
8107 (init_image): Not here.
8108
8109 2005-08-09 Richard M. Stallman <rms@gnu.org>
8110
8111 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
8112
8113 * lisp.h (QUIT): Throw t to Vthrow_on_input.
8114
8115 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
8116
8117 * floatfns.c (Fexpt): Use floats for negative exponent.
8118
8119 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8120
8121 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
8122 should not be there, causing menu display errors with GTK 2.6.9.
8123
8124 2005-08-07 Richard M. Stallman <rms@gnu.org>
8125
8126 * floatfns.c (Fexpt): Undo previous change.
8127
8128 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
8129 so it can be used with various state vectors.
8130
8131 * emacs.c (endif): Convert -script into -scriptload.
8132 (standard_args): Add -scriptload. Allow -basic-display with one dash.
8133
8134 * fns.c (syms_of_fns): Add `emacs' to features.
8135
8136 * term.c (set_terminal_modes): If no TS_termcap_modes string,
8137 output newlines to scroll the old screen contents off the screen.
8138
8139 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
8140
8141 * floatfns.c (Fexpt): Use floats for negative exponent.
8142 Reported by D Goel.
8143
8144 2005-08-02 Richard M. Stallman <rms@gnu.org>
8145
8146 * frame.c (Fframe_char_width): Doc fix.
8147
8148 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
8149
8150 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
8151 Defvar it.
8152
8153 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
8154
8155 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
8156 (my_create_window, my_create_tip_window): Make static.
8157
8158 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
8159 (my_set_foreground_window, my_destroy_window): Make static.
8160
8161 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
8162
8163 Merge gnulib getopt implementation into Emacs.
8164
8165 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
8166 now part of lib-src.
8167
8168 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
8169
8170 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
8171
8172 2005-07-25 Jason Rumney <jasonr@gnu.org>
8173
8174 * w32menu.c (w32_menu_display_help): Suppress tooltip when
8175 navigating menus with the keyboard.
8176
8177 2005-07-23 Richard M. Stallman <rms@gnu.org>
8178
8179 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
8180
8181 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
8182 gc_relative_threshold, one by one.
8183
8184 * keyboard.c (read_char): Test gc_cons_threshold.
8185 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
8186
8187 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
8188 gc_relative_threshold, one by one.
8189
8190 * alloc.c (gc_cons_threshold): Not static.
8191 (gc_cons_combined_threshold): Var deleted.
8192 (gc_relative_threshold): New variable.
8193 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
8194 instead of gc_cons_combined_threshold.
8195
8196 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
8197 (gc_cons_combined_threshold): Declaration deleted.
8198
8199 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8200
8201 * mac.c: Don't include stdlib.h or string.h.
8202 (Fdo_applescript, Fmac_file_name_to_posix)
8203 (Fmac_file_name_to_posix): Doc fixes.
8204 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
8205 (Fmac_code_convert_string): Likewise.
8206 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
8207 if the executable is not contained in a bundle.
8208
8209 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
8210 (gray_width, gray_height): Remove defines.
8211 (gray_bits, gray_bitmap_width, gray_bitmap_height)
8212 (gray_bitmap_bits): Remove variables.
8213 (lispy_function_keys): Remove extern.
8214 (free_frame_menubar): Add extern.
8215 (x_window_to_frame): Remove function.
8216 (unwind_create_tip_frame): Add declaration.
8217 (x_set_name_internal): New function.
8218 (x_set_name, x_set_title): Use it.
8219 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
8220 (Fx_display_pixel_height, Fx_display_planes)
8221 (Fx_display_color_cells, Fx_server_max_request_size)
8222 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8223 (Fx_display_mm_height, Fx_display_mm_width)
8224 (Fx_display_backing_store, Fx_display_visual_class)
8225 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
8226
8227 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
8228
8229 * macselect.c (Fx_own_selection_internal): Follow error conventions.
8230 (Fx_get_selection_internal, Fx_selection_owner_p)
8231 (Fx_selection_exists_p): Doc fixes.
8232 (syms_of_macselect) <selection-converter-alist>: Likewise.
8233
8234 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
8235
8236 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
8237
8238 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
8239 (Fccl_execute_on_string): Likewise; add usage info.
8240
8241 * composite.c (Fcompose_region_internal)
8242 (Fcompose_string_internal):
8243 Improve argument/docstring consistency.
8244
8245 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
8246 Fix typos in docstrings.
8247
8248 * textprop.c (Fnext_char_property_change)
8249 (Fprevious_char_property_change): Doc fixes.
8250
8251 * window.c (Fset_window_margins, Fset_window_fringes):
8252 Improve argument/docstring consistency.
8253
8254 * xfaces.c (Finternal_lisp_face_p): Doc fix.
8255
8256 2005-07-21 Andreas Schwab <schwab@suse.de>
8257
8258 * eval.c (restore_stack_limits): Return a value.
8259
8260 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
8261
8262 * eval.c (Fdefvar): Doc fix.
8263
8264 2005-07-20 Kim F. Storm <storm@cua.dk>
8265
8266 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
8267 Use make_save_value to unwind protect stream.
8268
8269 * lread.c (Fload, load_unwind):
8270 Use make_save_value to unwind protect stream.
8271
8272 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
8273
8274 * eval.c (Fprog2, Fcalled_interactively_p),
8275 (syms_of_eval) <debug-on-quit>: Doc fixes.
8276 (syms_of_eval) <max-specpdl-size>:
8277 (Finteractive_p): Fix typos in docstrings.
8278
8279 2005-07-19 Kim F. Storm <storm@cua.dk>
8280
8281 * w32fns.c (Vx_hand_shape): Variable removed.
8282 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
8283
8284 2005-07-19 Kenichi Handa <handa@m17n.org>
8285
8286 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
8287
8288 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
8289
8290 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
8291
8292 2005-07-18 Kim F. Storm <storm@cua.dk>
8293
8294 * frame.h (struct frame): New member already_hscrolled_p.
8295
8296 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
8297 to avoid redisplay looping hscrolling back and forth ad infinitum.
8298
8299 2005-07-18 Juri Linkov <juri@jurta.org>
8300
8301 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
8302 * keymap.c (Fminor_mode_key_binding):
8303 * macterm.c (mac-emulate-three-button-mouse):
8304 Delete duplicate duplicate words.
8305
8306 2005-07-18 Ken Raeburn <raeburn@gnu.org>
8307
8308 * minibuf.c (Ftest_completion): Fix odd syntax in test.
8309
8310 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8311
8312 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
8313
8314 * macgui.h (struct _XGC): New struct.
8315 (GC): Use it.
8316 (GCForeground, GCBackground, GCFont): Use X11 mask values.
8317 (XCreateGC, XParseGeometry): Move externs to macterm.h.
8318
8319 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
8320 (XSetFont): Add declaration.
8321 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
8322 Remove functions.
8323 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
8324 New defines.
8325 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
8326 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
8327 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
8328 Use them.
8329 (mac_erase_rectangle): New function.
8330 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
8331 (x_draw_stretch_glyph_string): Use it.
8332 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
8333 (XSetBackground, XSetFont): Adjust for new GC implementation.
8334 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
8335 (XTset_vertical_scroll_bar): Clear area under scroll bar.
8336
8337 * macterm.h (struct mac_display_info): Change types of
8338 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
8339 (XCreateGC, XParseGeometry): Move externs from macgui.h.
8340
8341 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
8342
8343 2005-07-16 Richard M. Stallman <rms@gnu.org>
8344
8345 * buffer.c (Fmake_overlay): Doc fix.
8346
8347 2005-07-16 Eli Zaretskii <eliz@gnu.org>
8348
8349 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
8350 Vw32_valid_locale_ids, and Vw32_valid_codepages.
8351
8352 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8353
8354 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
8355 Use Fstring_as_unibyte instead of string_make_unibyte.
8356
8357 2005-07-15 Richard M. Stallman <rms@gnu.org>
8358
8359 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
8360
8361 2005-07-15 Kim F. Storm <storm@cua.dk>
8362
8363 * xdisp.c: Fix redisplay loop in last change.
8364 (IT_POS_VALID_AFTER_MOVE_P): New macro.
8365 (move_it_vertically_backward, move_it_by_lines): Use it.
8366
8367 2005-07-14 Jason Rumney <jasonr@gnu.org>
8368
8369 * w32.c (init_environment): Default HOME directory to user's
8370 appdata directory if possible.
8371
8372 2005-07-14 Kim F. Storm <storm@cua.dk>
8373
8374 * .gdbinit (pitx): Fix output format. Print string charpos.
8375
8376 * lread.c (syms_of_lread): Initialize seen_list.
8377
8378 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
8379
8380 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
8381 Staticpro re_match_object.
8382
8383 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8384
8385 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
8386 dereference.
8387
8388 * macterm.c (mac_window_to_frame): Remove duplicate define.
8389
8390 2005-07-14 Kenichi Handa <handa@m17n.org>
8391
8392 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
8393 (code_convert_region): Adjust for the above change.
8394 (set_conversion_work_buffer): If the work buffer is already in
8395 use, generate a new buffer and return it. Otherwise return Qnil.
8396 (run_pre_post_conversion_on_str): Adjust for the above change.
8397 (run_pre_write_conversin_on_c_str): Likewise.
8398
8399 2005-07-13 Kim F. Storm <storm@cua.dk>
8400
8401 * xdisp.c (start_display): Don't reseat to next visible line start
8402 if current start position is in a string or image.
8403 (move_it_vertically_backward): Be sure to move out of strings and
8404 images when moving it2 forward.
8405 (move_it_by_lines): When moving forward, move to next buffer
8406 position if we end up in a string or image. When moving backward,
8407 count rows moved over when moving to start of current row in case
8408 row starts in middle of a string or image. Also move further
8409 backward if we end up in a string or image.
8410 (try_cursor_movement): If overlay string spans multiple lines,
8411 move backward to set cursor on start of an overlay string.
8412 (cursor_row_p): Row is ok if cursor is at newline from string, but
8413 string starts on this line (so we always position cursor at start
8414 of string).
8415
8416 * indent.c (Fvertical_motion): If start position is on an image,
8417 don't move back if we move too far (that's almost certain to happen).
8418
8419 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
8420 row in minibuffer windows.
8421 (try_window): Don't check margins in minibuffer windows.
8422
8423 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8424
8425 * macterm.c: Don't include stdlib.h or composite.h.
8426 (x_use_underline_position_properties, last_mouse_press_frame)
8427 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
8428 (syms_of_macterm, mac_initialize): Don't initialize them.
8429 (waiting_for_input, initial_argv, initial_argc)
8430 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
8431 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
8432 (extra_keyboard_modifiers): Fix type in extern.
8433 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
8434 (x_scroll_bar_report_motion): Add argument types to declaration.
8435 (mac_compute_glyph_string_overhangs): Add declaration.
8436 (disable_mouse_highlight): Remove unused variable.
8437 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
8438 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
8439 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
8440 All callers changed.
8441 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
8442 timestamp.
8443 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
8444 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
8445 only when its width is less than the height.
8446 (XTredeem_scroll_bar): Sync with xterm.c.
8447 (font_name_table, font_name_table_size, font_name_count):
8448 Make static.
8449 (drag_and_drop_file_list): Remove variable. Previous use is now
8450 local to function.
8451 (do_ae_open_documents): Move DRAG_N_DROP event construction part
8452 from XTread_socket.
8453 (XTread_socket): Consolidate setting of event timestamp.
8454 Move DRAG_N_DROP event construction part to do_ae_open_documents.
8455 Support extra_keyboard_modifiers.
8456
8457 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
8458 beginning with that for ASCII.
8459
8460 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
8461
8462 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
8463 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
8464 (syms_of_alloc): Declare gc-cons-percentage.
8465
8466 * eval.c (Feval, Ffuncall):
8467 * keyboard.c (read_char):
8468 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
8469
8470 * lisp.h (gc_cons_combined_threshold): Declare.
8471
8472 2005-07-12 Kim F. Storm <storm@cua.dk>
8473
8474 * coding.c (Qprocess_argument):
8475 * coding.h (Qprocess_argument): Remove unused var.
8476
8477 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
8478
8479 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8480
8481 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
8482 Endian.h.
8483 [!MAC_OSX] (fchmod, fchown): New functions.
8484 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
8485 Use SBYTES and EndianU32_BtoN.
8486 (mac_get_object_from_code): Return 4 byte string even if argument
8487 is 0. Use make_unibyte_string and EndianU32_NtoB.
8488 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
8489 (Fmac_set_file_type): Fix documents and argument declarations.
8490 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
8491
8492 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
8493
8494 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
8495
8496 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8497
8498 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
8499 Lucid if X_I18N, font otherwise.
8500
8501 2005-07-10 Steven Tamm <steventamm@mac.com>
8502
8503 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
8504 (Fmac_set_file_type, Fmac_set_file_creator): Add.
8505 (mac_get_object_from_code, mac_get_code_from_arg): Add.
8506
8507 2005-07-10 Richard M. Stallman <rms@gnu.org>
8508
8509 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
8510 (syms_of_lread): Set up eval-buffer-list.
8511 (Feval_buffer, Feval_region): Bind eval-buffer-list.
8512
8513 2005-07-08 Richard M. Stallman <rms@gnu.org>
8514
8515 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
8516
8517 2005-07-08 Kim F. Storm <storm@cua.dk>
8518
8519 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
8520 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
8521
8522 2005-07-07 Kim F. Storm <storm@cua.dk>
8523
8524 * window.c (Frecenter): Fix last change (set iarg before use).
8525
8526 2005-07-06 Richard M. Stallman <rms@gnu.org>
8527
8528 * window.c (Frecenter): When arg is inside the scroll margin,
8529 move it out of the margin.
8530
8531 2005-07-06 Jason Rumney <jasonr@gnu.org>
8532
8533 * w32console.c (initialize_w32_display): Detect when the console
8534 dimensions are insane, and default to 80x25 instead.
8535 (w32_use_full_screen_buffer): Default to nil.
8536
8537 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8538
8539 * macterm.c (mac_draw_vertical_window_border): Use foreground of
8540 VERTICAL_BORDER_FACE_ID for vertical border line.
8541 (mac_encode_char): Call check_ccl_update in advance.
8542 (mac_to_x_fontname, x_font_name_to_mac_font_name)
8543 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
8544 Don't assume that font family length is less than 32.
8545 (x_compute_min_glyph_bounds): Make static.
8546 (x_load_font): Never set fonts_changed_p to zero.
8547
8548 2005-07-04 Lute Kamstra <lute@gnu.org>
8549
8550 * Update FSF's address in GPL notices.
8551
8552 2005-07-03 Richard M. Stallman <rms@gnu.org>
8553
8554 * xdisp.c (try_window): Fix previous change in how it handles
8555 a partially-visible line or one only partly past the margin.
8556
8557 * window.c (window_scroll_pixel_based): Take account
8558 of this_scroll_margin when finding point when scrolling up.
8559
8560 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
8561
8562 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8563 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
8564 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
8565
8566 2005-07-02 Juri Linkov <juri@jurta.org>
8567
8568 * w32term.c (w32_draw_vertical_window_border): Use foreground of
8569 VERTICAL_BORDER_FACE_ID for vertical border line.
8570
8571 2005-07-02 Eli Zaretskii <eliz@gnu.org>
8572
8573 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
8574 fchmod so that chmod doesn't get called on MSDOS before the file
8575 is closed.
8576
8577 2005-07-01 Jason Rumney <jasonr@gnu.org>
8578
8579 * w32term.c (cleartype_active): New flag for enabling sub-pixel
8580 workaround.
8581 (w32_initialize): Initialize it.
8582 (w32_native_per_char_metric): Allow a couple of extra pixels when
8583 Cleartype is active.
8584
8585 * w32term.c (w32_initialize): Move check for screen reader here
8586 from syms_of_w32term.
8587
8588 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8589
8590 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
8591 is not zero.
8592
8593 2005-07-01 Masatake YAMATO <jet@gyve.org>
8594
8595 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
8596
8597 2005-06-30 Juri Linkov <juri@jurta.org>
8598
8599 * xdisp.c (x_draw_vertical_border): If left fringe is not present
8600 decrease x coord of vertical border by 1 pixel to not occupy text
8601 area of the right window.
8602
8603 * xterm.c (x_draw_vertical_window_border): Use foreground of
8604 VERTICAL_BORDER_FACE_ID for vertical border line.
8605
8606 * term.c (turn_on_face): In standout mode apply specified
8607 fg to bg, and specified bg to fg (this makes the logic of
8608 inversion on terminal consistent with X).
8609
8610 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
8611
8612 * eval.c (user_variable_p_eh): New function.
8613 (Fuser_variable_p): Use it. Clarify docstring.
8614 Return t for aliases of user options, nil for alias loops.
8615
8616 2005-06-27 Richard M. Stallman <rms@gnu.org>
8617
8618 * eval.c (Fdefvar): Improve error message.
8619
8620 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8621
8622 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
8623 change.
8624
8625 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
8626
8627 * eval.c (Fdefvar): Don't try to set constant symbols.
8628
8629 2005-06-25 Richard M. Stallman <rms@gnu.org>
8630
8631 * macfns.c (Fx_show_tip): Pass new arg to try_window.
8632
8633 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
8634
8635 * xfns.c (Fx_show_tip): Pass new arg to try_window.
8636
8637 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
8638 (redisplay_window): Handle try_window reporting point in scroll margin.
8639
8640 * dispextern.h (try_window): Declare new arg.
8641
8642 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
8643 Use fchmod to copy the file modes.
8644 (Frename_file): Don't copy UID and GID here;
8645 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
8646
8647 * eval.c (call_debugger): Take full care of extending stack limits
8648 to make space for the debugger, and restore the change afterward.
8649 Bind debug-on-error to nil.
8650 (restore_stack_limits): New subroutine.
8651 (Fsignal): Extend specpdl bound along with eval depth bound,
8652 for calling edebug. Don't do either one, for calling debugger.
8653 (find_handler_clause): Don't bind debug-on-error here.
8654 Don't unbind anything either.
8655 Temporarily advance max_specpdl_size for calling
8656 internal_with_output_to_temp_buffer.
8657 (grow_specpdl): Don't alter max_specpdl_size before signaling
8658 an error.
8659 (syms_of_eval) <max-specpdl-size>: Doc fix.
8660
8661 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
8662
8663 2005-06-24 Eli Zaretskii <eliz@gnu.org>
8664
8665 * fileio.c (Frename_file): Undo last change: no need to ifdef away
8666 chown on DOS_NT platforms.
8667
8668 * w32.c (sys_chown): New function.
8669
8670 * s/ms-w32.h (chown): New; define to sys_chown.
8671
8672 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
8673
8674 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
8675 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
8676
8677 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
8678
8679 2005-06-23 Richard M. Stallman <rms@gnu.org>
8680
8681 * xdisp.c (get_next_display_element): Finish reversing the tests of
8682 Vnobreak_char_display.
8683
8684 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
8685 All uses changed.
8686 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
8687 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
8688
8689 * fileio.c (Frename_file): Preserve owner and group, if possible,
8690 when copying.
8691
8692 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
8693
8694 * abbrev.c (Funexpand_abbrev):
8695 * category.c (Fmake_category_set):
8696 * dispnew.c (Fsleep_for, Fsit_for):
8697 * editfns.c (Fsubst_char_in_region):
8698 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
8699 * frame.c (make_frame_without_minibuffer):
8700 * lread.c (read_vector):
8701 * macfns.c (check_x_frame):
8702 * process.c (Fstop_process, Fcontinue_process):
8703 * search.c (Freplace_match):
8704 * syntax.c (Fstring_to_syntax):
8705 * w32fns.c (check_x_frame, check_x_display_info):
8706 * xfaces.c (x_supports_face_attributes_p):
8707 * xselect.c (Fx_own_selection_internal): Follow error conventions.
8708
8709 * image.c (fn_png_init_io): Don't define it.
8710 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
8711 (png_read_from_file): New function, based on png_read_from_memory.
8712 (png_load): Use it, instead of fn_png_init_io.
8713
8714 2005-06-23 Kim F. Storm <storm@cua.dk>
8715
8716 * search.c (Fmatch_data): Remove evaporate option.
8717 (Fset_match_data): Do not mention evaporate option in doc string.
8718 Add commentary explaining evaporate arg (for internal use only).
8719 (unwind_set_match_data): Add comment on evaporate use.
8720
8721 2005-06-22 Miles Bader <miles@gnu.org>
8722
8723 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
8724 (realize_basic_faces, syms_of_xfaces): Update references to it.
8725 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
8726 to `VERTICAL_BORDER_FACE_ID'.
8727 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
8728
8729 2005-06-21 Juri Linkov <juri@jurta.org>
8730
8731 * dispextern.h: Add extern Qframe_set_background_mode.
8732
8733 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
8734 Qframe_set_background_mode.
8735
8736 * frame.c (Fmodify_frame_parameters):
8737 Call frame-set-background-mode after changing the background color
8738 on non-window non-dos branch.
8739
8740 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
8741
8742 * fns.c (Fchar_table_range):
8743 * process.c (Fmake_network_process): Fix spellings.
8744
8745 2005-06-20 Kim F. Storm <storm@cua.dk>
8746
8747 * fns.c (Fsort): Doc fix.
8748
8749 2005-06-20 Miles Bader <miles@gnu.org>
8750
8751 * xfaces.c (Qvertical_divider): New variable.
8752 (realize_basic_faces): Realize its face.
8753 (syms_of_xfaces): Initialize it.
8754
8755 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
8756
8757 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
8758 window-separator on ttys using `vertical-divider' face by default.
8759
8760 2005-06-17 Richard M. Stallman <rms@gnu.org>
8761
8762 * xdisp.c (get_next_display_element):
8763 Reverse test of Vshow_nonbreak_escape.
8764
8765 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
8766 (Ftty_no_underline): New function.
8767 (syms_of_term): defsubr it.
8768
8769 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
8770
8771 * dispnew.c (spec_glyph_lookup_face): New function.
8772 (build_frame_matrix_from_leaf_window): Use it.
8773
8774 * dispextern.h (spec_glyph_lookup_face): Add declaration.
8775
8776 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
8777
8778 2005-06-12 Richard M. Stallman <rms@gnu.org>
8779
8780 * keyboard.c (read_char): After catching a longjmp,
8781 call restore_getcjmp.
8782
8783 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
8784
8785 * xselect.c (lisp_data_to_selection_data): Fix spelling.
8786
8787 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8788
8789 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
8790 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
8791 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
8792 events.
8793 (XTread_socket): Don't pass keyboard events with the option
8794 modifier to the system when Vmac_command_key_is_meta is nil or
8795 Vmac_option_modifier is non-nil.
8796 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
8797 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
8798 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
8799 handler function.
8800 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
8801 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
8802 handler part to mac_handle_mouse_event.
8803
8804 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
8805
8806 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
8807 NEW-ALIAS and BASE-VARIABLE, respectively.
8808
8809 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8810
8811 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
8812 (get_phys_cursor_geometry, format_mode_line_unwind_data)
8813 (get_line_height_property, x_produce_glyphs): Remove unused vars.
8814
8815 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
8816
8817 2005-06-13 Eli Zaretskii <eliz@gnu.org>
8818
8819 * w32term.c (x_use_underline_position_properties): New variable.
8820 (x_draw_glyph_string): Remind in a comment to change doc string of
8821 x-use-underline-position-properties if/when underline positioning
8822 is implemented.
8823 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
8824 and initialize it to nil.
8825
8826 2005-06-12 Jason Rumney <jasonr@gnu.org>
8827
8828 * w32fns.c (NEWOPENFILENAME): New struct.
8829 (Fx_file_dialog): Use it to trick the system into giving us up to
8830 date dialogs on systems that are documented to support it.
8831 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
8832
8833 2005-06-12 Eli Zaretskii <eliz@gnu.org>
8834
8835 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
8836 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
8837
8838 2005-06-11 Eli Zaretskii <eliz@gnu.org>
8839
8840 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
8841 to CreateDIBSection to avoid a compiler warning.
8842 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
8843 warning.
8844 (png_load): Cast return values of fn_png_create_read_struct and
8845 fn_png_create_info_struct, to avoid compiler warnings on W32.
8846 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
8847 to avoid compiler warnings.
8848 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
8849 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
8850 avoid a compiler warning.
8851 (tiff_load): Cast return values of fn_TIFFOpen and
8852 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
8853 to IMAGE_BACKGROUND to avoid a compiler warning.
8854 (gif_load): Cast return values of fn_DGifOpenFileName and
8855 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
8856 IMAGE_BACKGROUND to avoid a compiler warning.
8857 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
8858 before redefining.
8859
8860 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
8861 the call to CreateDIBSection, to avoid a compiler warning.
8862
8863 2005-06-11 Jason Rumney <jasonr@gnu.org>
8864
8865 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
8866 minibuffer.
8867 * macfns.c (Fx_file_dialog): Likewise.
8868
8869 2005-06-10 Eli Zaretskii <eliz@gnu.org>
8870
8871 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
8872
8873 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
8874
8875 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
8876 * w32fns.c (syms_of_w32fns): Fix spellings.
8877
8878 2005-06-10 Eli Zaretskii <eliz@gnu.org>
8879
8880 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
8881 `verbose'; print diagnostic messages only if it is non-zero.
8882 All callers changed to pass a zero value unless DEBUG_DUMP is defined
8883 in the environment.
8884 (copy_executable_and_dump_data): Print section names with %.8s.
8885
8886 2005-06-10 Masatake YAMATO <jet@gyve.org>
8887
8888 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
8889 when mouse_face is not given.
8890
8891 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
8892
8893 * window.c (Fselect_window): Adapt call to Fselect_frame.
8894
8895 * lisp.h: Update EXFUN of Fselect_frame.
8896
8897 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
8898
8899 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
8900 no_enter.
8901 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
8902 Adapt to above change.
8903
8904 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
8905
8906 * fns.c (Fmemq, Fmaphash): Doc fixes.
8907
8908 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
8909
8910 * xfaces.c (Fdisplay_supports_face_attributes_p):
8911 Fix typo in docstring.
8912
8913 2005-06-08 Steven Tamm <steventamm@mac.com>
8914
8915 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
8916 used by gcc4 on intel mac.
8917
8918 2005-06-09 Kim F. Storm <storm@cua.dk>
8919
8920 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
8921 in REUSE list if non-nil; free them if equal to evaporate.
8922 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
8923 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
8924 (restore_search_regs): Rename from restore_match_data. Uses changed.
8925 (unwind_set_match_data): New function.
8926 (record_unwind_save_match_data): New function like save-match-data.
8927
8928 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
8929 (record_unwind_save_match_data): Add prototype.
8930 (restore_search_regs): Rename from restore_match_data.
8931
8932 * composite.c (compose_chars_in_text):
8933 * eval.c (do_autoload):
8934 * macmenu.c (set_frame_menubar):
8935 * process.c (read_process_output, exec_sentinel):
8936 * xmenu.c (set_frame_menubar):
8937 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
8938 * w32menu.c (set_frame_menubar):
8939 Use record_unwind_save_match_data.
8940
8941 2005-06-08 Richard M. Stallman <rms@gnu.org>
8942
8943 * xdisp.c (get_next_display_element): Alter previous change:
8944 Distinguish Vshow_nonbreak_escape = t or not t.
8945 For t, use escape_glyph once again, as before previous change.
8946 Use space or hyphen for display, instead of the non-ASCII char.
8947 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
8948
8949 * process.c (Fstart_process): Don't touch command_channel_p slot.
8950
8951 * process.h (struct process): Delete command_channel_p.
8952
8953 2005-06-07 Masatake YAMATO <jet@gyve.org>
8954
8955 * xdisp.c (note_mode_line_or_margin_highlight):
8956 Check the overlapping of re-rendering area to avoid flickering.
8957 (note_mouse_highlight): Call clear_mouse_face if PART
8958 is not ON_MODE_LINE nor ON_HEADER_LINE.
8959
8960 2005-06-07 Kim F. Storm <storm@cua.dk>
8961
8962 * process.c: Improve commentary for adaptive read buffering.
8963
8964 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
8965
8966 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
8967 if available.
8968
8969 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8970
8971 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
8972 New functions for popping down menus on C-g.
8973 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
8974
8975 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
8976 non-static.
8977
8978 * config.in: Add HAVE_CANCELMENUTRACKING.
8979
8980 2005-06-06 Eli Zaretskii <eliz@gnu.org>
8981
8982 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
8983
8984 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
8985
8986 * w32proc.c (RVA_TO_PTR): New macro.
8987
8988 * w32heap.c (RVA_TO_PTR): No need to #undef now.
8989
8990 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
8991 Depend on w32heap.h.
8992
8993 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
8994
8995 * keyboard.c (command_loop_1): Update Vthis_original_command.
8996
8997 2005-06-06 Richard M. Stallman <rms@gnu.org>
8998
8999 * xmenu.c (popup_get_selection): Undo previous change.
9000
9001 2005-06-06 Juri Linkov <juri@jurta.org>
9002
9003 * xdisp.c (Qno_break_space): New variable.
9004 (syms_of_xdisp): Initialize it.
9005 (get_next_display_element): Add no-break space and soft hypen
9006 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
9007 Use `no-break-space' face for no-break spaces.
9008
9009 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9010
9011 * window.c (delete_window): Handle the case where a h/vchild has
9012 a h/vchild.
9013
9014 2005-06-05 Eli Zaretskii <eliz@gnu.org>
9015
9016 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
9017 call to pfn_setsockopt, cast optval to `const char *'.
9018
9019 2005-06-04 Eli Zaretskii <eliz@gnu.org>
9020
9021 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
9022 (open_unc_volume): Cast return value of map_w32_filename, to avoid
9023 compiler warnings.
9024
9025 * s/ms-w32.h (fileno): Don't define if already defined.
9026
9027 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
9028
9029 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
9030
9031 2005-06-04 Richard M. Stallman <rms@gnu.org>
9032
9033 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
9034
9035 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9036
9037 * macmenu.c (cleanup_popup_menu): New function.
9038 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
9039 mac_menu_show Quit:s.
9040 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
9041 a dialog).
9042
9043 2005-06-04 Kim F. Storm <storm@cua.dk>
9044
9045 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
9046
9047 * callproc.c (Fcall_process): Don't use alloca to gradually
9048 increase size of buf, as it effectively uses twice the necessary
9049 space on the stack. Instead, pre-allocate buf of full size, and
9050 gradually increase the read size.
9051
9052 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
9053
9054 * eval.c (unbind_to): Preserve value of Vquit_flag.
9055
9056 * xterm.c (handle_one_xevent): Also ignore mouse motion just
9057 before a button release event.
9058
9059 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
9060
9061 * xfaces.c (Finternal_lisp_face_equal_p): Really report
9062 on faces in a frame, if the argument FRAME is non-nil.
9063 Improve argument/docstring consistency.
9064
9065 2005-06-02 Kim F. Storm <storm@cua.dk>
9066
9067 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
9068 (x_consider_frame_title, Fformat_mode_line): Save offset into
9069 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
9070
9071 2005-06-01 Kim F. Storm <storm@cua.dk>
9072
9073 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
9074
9075 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9076
9077 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
9078 resolution fields for scalable fonts to 0.
9079
9080 * xfaces.c (build_scalable_font_name): Round pixel size to the
9081 nearest integer.
9082
9083 2005-06-01 Kim F. Storm <storm@cua.dk>
9084
9085 * xdisp.c (display_mode_line): Support nested calls to redisplay
9086 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
9087
9088 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
9089
9090 * fileio.c (Finsert_file_contents):
9091 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
9092
9093 2005-05-31 Kim F. Storm <storm@cua.dk>
9094
9095 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
9096 (mode_line_noprop_ptr): Rename from frame_title_*.
9097 (store_mode_line_noprop_char): Rename from store_frame_title_char.
9098 (store_mode_line_noprop): Rename from store_frame_title.
9099 (mode_line_target): New enum to specify current output target
9100 for mode line formatting.
9101 (display_mode_element): Test it rather than frame_title_ptr and
9102 mode_line_string_list to determine where output should go.
9103 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
9104 (Vmode_line_unwind_vector): New variable.
9105 (format_mode_line_unwind_data, unwind_format_mode_line):
9106 New functions for unwind protection in mode line formatting.
9107 (x_consider_frame_title): Use them and new local var 'title_start'
9108 to support nested calls to format-mode-line and redisplay.
9109 Set mode_line_target to MODE_LINE_TITLE.
9110 (Fformat_mode_line): Use them and new local var 'string_start' to
9111 support nested calls to format-mode-line and redisplay.
9112 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
9113 Don't trim trailing dashes.
9114 (decode_mode_spec): Don't make infinite number of trailing dashes
9115 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
9116 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
9117 mode_line_string_face_prop, and Vmode_line_unwind_vector.
9118 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
9119 Initialize mode_line_target to MODE_LINE_DISPLAY.
9120
9121 2005-05-29 Richard M. Stallman <rms@gnu.org>
9122
9123 * buffer.c (Fbuffer_local_value): Call indirect_variable.
9124
9125 2005-05-28 Masatake YAMATO <jet@gyve.org>
9126
9127 * xdisp.c (note_mode_line_or_margin_highlight): Change the
9128 pointer to a hand cursor when hoovering over a mouse-face.
9129
9130 2005-05-27 Kenichi Handa <handa@m17n.org>
9131
9132 * xterm.c (x_encode_char): Call check_ccl_update in advance.
9133
9134 * ccl.c: Now an element of Vccl_program_table is a vector of
9135 length 4, not 3.
9136 (ccl_get_compiled_code): New arg idx. Caller changed.
9137 Adjust for the change of Vccl_program_table.
9138 (setup_ccl_program): Adjust for the change of Vccl_program_table.
9139 (check_ccl_update): New function.
9140 (Fregister_ccl_program): Use ASET to set an element of a vector.
9141 Adjusted for the change of Vccl_program_table.
9142
9143 * ccl.h (struct ccl_program): New member idx.
9144 (check_ccl_update): Extern it.
9145
9146 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
9147
9148 * image.c (Vimage_library_alist): Move from image.el.
9149 (syms_of_image): Defvar it.
9150 (lookup_image_type): Use it.
9151
9152 * buffer.c (Fbuffer_local_value): Make argument name match its use
9153 in docstring.
9154
9155 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
9156
9157 * keyboard.c (Frecursive_edit): Fix typo in docstring.
9158 (Fposn_at_x_y): Make argument name match its use in docstring.
9159
9160 2005-05-26 Lute Kamstra <lute@gnu.org>
9161
9162 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
9163
9164 2005-05-24 Masatake YAMATO <jet@gyve.org>
9165
9166 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
9167 as loop sentinels.
9168
9169 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
9170
9171 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
9172 select frame title ("Question"/"Information").
9173 (xdialog_show): Use it.
9174
9175 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
9176
9177 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
9178
9179 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
9180 a third argument (Qnil).
9181
9182 * lisp.h: x-popup-dialog can have three arguments.
9183
9184 * editfns.c (Fmessage_box): Use "Information" for frame title.
9185
9186 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
9187
9188 * termcap.c [VMS]: Include <starlet.h>.
9189
9190 2005-05-23 Masatake YAMATO <jet@gyve.org>
9191
9192 * xdisp.c (note_mode_line_or_margin_highlight): Add code
9193 for mouse-face. Change the type of the first argument from `window'
9194 to `Lisp_Object'.
9195 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
9196 window instead of w.
9197
9198 2005-05-22 Andreas Schwab <schwab@suse.de>
9199
9200 * process.c (send_process): Move misplaced volatile.
9201
9202 2005-05-21 Richard M. Stallman <rms@gnu.org>
9203
9204 * xdisp.c (display_mode_element): If we're processing a list and
9205 padding is specified, put it after the last element.
9206
9207 2005-05-21 Eli Zaretskii <eliz@gnu.org>
9208
9209 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
9210 "superroot" on DOS_NT systems.
9211
9212 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
9213
9214 * process.c (send_process): Restore the SIGPIPE handler if we
9215 catch a SIGPIPE.
9216
9217 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
9218
9219 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
9220 misleading comments).
9221 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
9222
9223 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9224
9225 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
9226 Correct the right value.
9227
9228 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
9229
9230 * keyboard.c (syms_of_keyboard): Remove Lisp variables
9231 post-command-idle-hook and post-command-idle-delay.
9232 (command_loop_1): Don't try to execute post-command-idle-hook.
9233
9234 2005-05-16 Kim F. Storm <storm@cua.dk>
9235
9236 * xdisp.c (handle_display_prop): Handle empty replacement.
9237 (handle_single_display_spec): Return -1 for empty replacement.
9238
9239 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
9240
9241 * .gdbinit (pitx): Print more info about iterator.
9242
9243 2005-05-16 Andreas Schwab <schwab@suse.de>
9244
9245 * unexmacosx.c (unexec_realloc): Move declarations before statements.
9246
9247 2005-05-14 Richard M. Stallman <rms@gnu.org>
9248
9249 * xdisp.c (message3): Call cancel_echoing.
9250
9251 * alloc.c (Fmemory_full_p): New function.
9252 (syms_of_alloc): defsubr it.
9253
9254 * process.c (send_process_trap): Unblock SIGPIPE.
9255 (send_process): Reset SIGPIPE handler before reporting error.
9256
9257 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
9258
9259 * emacs.c (syms_of_emacs): Fix doc string for system-type.
9260
9261 2005-05-13 Richard M. Stallman <rms@gnu.org>
9262
9263 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
9264 (Finsert_file_contents): If we read 0 bytes from a special file,
9265 unlock the visited file if we locked it.
9266 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
9267 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
9268
9269 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9270
9271 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
9272
9273 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
9274 Regard toolkit scroll bar thumb drag events as squeezable and prevent
9275 redisplay from being paused by them.
9276
9277 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
9278 [!MAC_OSX] (target_ticks): Remove variable.
9279 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
9280 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
9281 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
9282 event occurs before timeout, behave as if the function were interrupted.
9283 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
9284 handling using Time Manager routines.
9285 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
9286 New variables.
9287 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
9288 (setitimer): New functions.
9289
9290 * macfns.c, macmenu.c: Don't include signal.h.
9291
9292 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
9293 Rename from get_control_part_bound. All callers changed.
9294 (x_scroll_bar_clear): New function.
9295 (x_clear_frame): Use it.
9296 (XTset_vertical_scroll_bar): Don't call Draw1Control.
9297 (x_scroll_bar_handle_click): Change type of second argument from
9298 int to ControlPartCode.
9299 (check_alarm): Remove declaration.
9300 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
9301 (XTread_socket): Use ControlPartCode instead of SInt16.
9302
9303 2005-05-13 Nozomu Ando <nand@mac.com>
9304
9305 * unexmacosx.c: Include assert.h.
9306 (MACOSX_MALLOC_MULT16): New define.
9307 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
9308 ptr is in unexec regions by checking it is multiple of 16.
9309 (unexec_malloc_header_t): New typedef.
9310 (unexec_malloc, unexec_realloc, unexec_free): Store and use
9311 allocated size information in unexec_malloc_header.
9312
9313 2005-05-10 Richard M. Stallman <rms@gnu.org>
9314
9315 * xterm.c (noinclude): Add #undef.
9316
9317 * image.c, xfns.c, xmenu.c: Don't include signal.h.
9318
9319 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
9320
9321 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
9322 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
9323 Doc fixes.
9324
9325 * dired.c (Ffile_name_completion): Make argument name
9326 match its use in docstring.
9327
9328 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
9329
9330 * eval.c (Fdefvaralias): Remove any pre-existing
9331 variable-documentation property of the alias.
9332
9333 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
9334
9335 * xfns.c (start_hourglass): Do nothing when running on a tty.
9336
9337 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
9338
9339 * fns.c (Fchar_table_range): Fix typos in docstring.
9340
9341 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9342
9343 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
9344
9345 2005-05-06 Eli Zaretskii <eliz@gnu.org>
9346
9347 * lread.c (Flocate_file_internal): Doc fix.
9348
9349 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
9350
9351 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9352
9353 * macselect.c (x_own_selection): Accept Lisp string as result of
9354 selection converter function.
9355 (x_clear_frame_selections): Don't call x-lost-selection-functions
9356 if Emacs is not owner of the selection.
9357 (Vmac_services_selection): Put variable and initialization in
9358 #ifdef MAC_OSX.
9359 (syms_of_macselect) [MAC_OSX]: Set default value of
9360 Vmac_services_selection to PRIMARY.
9361
9362 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
9363 (mac_handle_tool_bar_click): Remove unused function and declaration.
9364 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
9365 (install_scroll_bar_timer, set_scroll_bar_timer)
9366 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
9367 (get_control_part_bound, x_scroll_bar_handle_press)
9368 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
9369 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
9370 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
9371 (scroll_bar_timer_event_posted_p): New variables.
9372 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
9373 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
9374 (x_scroll_bar_create): Set control reference with NewControl.
9375 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
9376 Initialize track_top and track_height to nil.
9377 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
9378 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
9379 (XTset_vertical_scroll_bar): Don't make space between scroll bar
9380 and associated window.
9381 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
9382 from window config.
9383 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9384 Set track_top and track_height to nil when scroll bar size is changed.
9385 Recalculate them if they are nil.
9386 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
9387 clicked control is a scroll bar.
9388 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
9389 event handler functions. Don't add modifiers to scroll bar click
9390 events. Call scroll bar release handler when window is deactivated.
9391 (mac_initialize): Remove unused code for X toolkit.
9392 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
9393 Initialize Vx_toolkit_scroll_bars to nil.
9394
9395 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9396 New members track_top and track_height.
9397
9398 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
9399 init_process when including sys/select.h.
9400
9401 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
9402
9403 * eval.c (Fdefvaralias): Doc fix.
9404
9405 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
9406
9407 2005-05-05 Kim F. Storm <storm@cua.dk>
9408
9409 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
9410 default value.
9411 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
9412 Fix type of cursor-in-non-selected-windows.
9413
9414 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9415
9416 * mac.c: #undef init_process so not to conflict with system headers.
9417
9418 2005-05-02 Richard M. Stallman <rms@gnu.org>
9419
9420 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
9421
9422 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
9423
9424 * xdisp.c (Vcursor_in_non_selected_windows)
9425 (Qcursor_in_non_selected_windows): Vars deleted.
9426 (syms_of_xdisp): Don't initialize them.
9427 (get_window_cursor_type): Use cursor_in_non_selected_windows
9428 buffer slot.
9429
9430 2005-05-02 Kim F. Storm <storm@cua.dk>
9431
9432 * macros.c (executing_kbd_macro_index): Rename from
9433 executing_macro_index. All uses changed.
9434 (executing_kbd_macro_iterations): Rename from
9435 executing_macro_iterations. All uses changed.
9436 (executing_kbd_macro): Rename from executing_macro.
9437 All uses changed.
9438 (syms_of_macros): Rename Lisp var executing-macro-index to
9439 executing-kbd-macro-index.
9440
9441 * xdisp.c (move_it_in_display_line_to): Fix last change.
9442
9443 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
9444
9445 * xmenu.c (Fx_popup_menu): Doc fix.
9446
9447 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
9448
9449 2005-05-02 Jason Rumney <jasonr@gnu.org>
9450
9451 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
9452
9453 2005-05-02 Nozomu Ando <nand@mac.com>
9454
9455 * sysselect.h: Fix typo.
9456
9457 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
9458
9459 * charset.c (Fchars_in_region): Remove as obsolete.
9460
9461 2005-05-01 Kim F. Storm <storm@cua.dk>
9462
9463 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
9464 TO_CHARPOS. This may happen if last glyphs was an image or stretch
9465 glyph.
9466
9467 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
9468
9469 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
9470
9471 2005-05-01 Richard M. Stallman <rms@gnu.org>
9472
9473 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
9474 If user cancels the menu, quit unless FOR_CLICK.
9475
9476 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
9477 All uses changed.
9478 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
9479 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
9480 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
9481 * commands.h (Vexecuting_kbd_macro): Likewise.
9482
9483 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
9484
9485 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
9486
9487 2005-04-30 Richard M. Stallman <rms@gnu.org>
9488
9489 * fileio.c (Ffind_file_name_handler): Handle the `operations'
9490 property of the file name handler.
9491 (Qoperations): New variable.
9492 (syms_of_fileio): Initialize and staticpro it.
9493
9494 * xdisp.c (set_message_1): Delete xassert.
9495
9496 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9497
9498 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
9499
9500 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
9501
9502 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
9503 before/after including Carbon.h if there is a working mktime.
9504
9505 2005-04-28 Kim F. Storm <storm@cua.dk>
9506
9507 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
9508 Fix cyclic alias check. If alias loop is detected, signal
9509 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
9510
9511 2005-04-28 Lute Kamstra <lute@gnu.org>
9512
9513 * eval.c (do_autoload): Record only autoloads in the autoload
9514 property of symbols.
9515
9516 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
9517
9518 * emacs.c (USAGE1): Add --basic-display and --quick options.
9519
9520 2005-04-27 Kim F. Storm <storm@cua.dk>
9521
9522 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
9523
9524 2005-04-26 Richard M. Stallman <rms@gnu.org>
9525
9526 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
9527 (syms_of_window): Doc fixes.
9528
9529 * indent.c (Fvertical_motion): Undo previous change.
9530
9531 2005-04-26 Kenichi Handa <handa@m17n.org>
9532
9533 * fns.c (char_table_range): New function.
9534 (Fchar_table_range): Signal an error if characters in the range
9535 have inconsistent values. Don't check the parent.
9536
9537 2005-04-25 Kenichi Handa <handa@m17n.org>
9538
9539 * fontset.c (fontset_set): Fix previous change.
9540
9541 2005-04-24 Richard M. Stallman <rms@gnu.org>
9542
9543 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
9544
9545 2005-04-24 Eli Zaretskii <eliz@gnu.org>
9546
9547 * regex.c (re_search_2, re_match_2_internal): Convert second arg
9548 of RE_TRANSLATE to int, to shut up GCC warnings.
9549
9550 * fileio.c (Fcopy_file): Doc fix.
9551 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
9552 not needed.
9553
9554 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9555
9556 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
9557 (SOME_MACHINE_OBJECTS): Likewise.
9558 (mac.o): Depend on ccl.h.
9559 (macselect.o): New target.
9560
9561 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
9562 Call syms_of_macselect.
9563
9564 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
9565
9566 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
9567 (QCLIPBOARD): Remove variable.
9568 (syms_of_mac): Don't initialize it.
9569 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
9570 Remove functions.
9571 (syms_of_mac): Don't defsubr them.
9572 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
9573 (QHFS_plus_D, QHFS_plus_C): New variables.
9574 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9575 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
9576 (cfstring_create_normalized): New functions.
9577 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
9578 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9579
9580 * macterm.c (handling_window_update, terminate_flag):
9581 Remove variables.
9582 (do_window_update, do_ae_quit_application, XTread_socket):
9583 Don't use them.
9584 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
9585 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
9586 (init_service_handler): Move to macselect.c. Remove declarations.
9587 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
9588 (Qapplication, Qabout): New variables.
9589 (syms_of_mac): Initialize them.
9590 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
9591 (Qperform): New variables.
9592 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
9593 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
9594 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
9595 (mac_store_application_menu_event, init_menu_bar): New functions.
9596 [USE_CARBON_EVENTS] (mac_handle_command_event)
9597 (init_command_handler): New functions.
9598 (mac_handle_window_event): Return noErr on window update event.
9599 (do_ae_quit_application): Call mac_store_application_menu_event.
9600 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
9601 and init_menu_bar.
9602
9603 * macterm.h (x_clear_frame_selections): Add extern.
9604
9605 * macselect.c: New file for selection processing on Mac OS.
9606
9607 2005-04-23 Richard M. Stallman <rms@gnu.org>
9608
9609 * fileio.c (Fcopy_file): New arg MUSTBENEW.
9610 (Frename_file): Pass new arg to Fcopy_file.
9611
9612 * window.c (window_size_fixed): Variable deleted.
9613 (syms_of_window): Initialize window-size-fixed to nil.
9614 But don't DEFVAR window_size_fixed.
9615
9616 2005-04-23 Andreas Schwab <schwab@suse.de>
9617
9618 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
9619 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
9620 use lib64 instead of lib.
9621 (_LP64) [_ARCH_PPC64]: Define if not defined.
9622
9623 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
9624
9625 * s/ms-w32.h (HAVE_PWD_H): Define.
9626
9627 2005-04-22 Kenichi Handa <handa@m17n.org>
9628
9629 * fns.c (copy_sub_char_table): Explicitly copy the default value
9630 of the sub-chartable.
9631
9632 * fontset.c (fontset_set): When a sub-chartable is created,
9633 explicitly sets the defalt value.
9634
9635 2005-04-22 Kim F. Storm <storm@cua.dk>
9636
9637 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
9638 (Fsafe_plist_get): Rename to Fplist_get.
9639 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
9640 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
9641
9642 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
9643
9644 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
9645 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9646 Use Fplist_get instead of Fsafe_plist_get.
9647
9648 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
9649
9650 2005-04-21 Miles Bader <miles@gnu.org>
9651
9652 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
9653
9654 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
9655
9656 * sysdep.c: Remove reference to defunct vms-pwd.h.
9657 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
9658 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
9659
9660 * config.in: Regenerate.
9661
9662 2005-04-20 Kenichi Handa <handa@m17n.org>
9663
9664 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
9665 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
9666 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
9667
9668 * alloc.c (make_sub_char_table): Argument changed to initial
9669 value of the slots.
9670
9671 * data.c (Faref): Handle special slots used as default values of
9672 ascii, eight-bit-control, eight-bit-control. Don't ignore a
9673 default value set for a group of characters.
9674 (Faset): Signal an error if IDXVAL is not a valid character code.
9675 Make a sub-chartable with correct initial value.
9676
9677 * fns.c (Fset_char_table_range): Don't set slots used as default
9678 values for ascii, eight-bit-control, eight-bit-graphic.
9679 Don't call Faref with charset-id.
9680 (Fset_char_table_default): Document how to treat normal character
9681 argument. Handle special slots used as default values of ascii,
9682 eight-bit-control, eight-bit-control. Make a sub chartable if
9683 necessary.
9684
9685 2005-04-20 Kenichi Handa <handa@m17n.org>
9686
9687 * search.c (boyer_moore): Fix previous change.
9688
9689 2005-04-19 Kim F. Storm <storm@cua.dk>
9690
9691 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
9692 face unless last visible char and first invisible char have the
9693 same face. Also use default face if saved_face_id is undefined.
9694
9695 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9696
9697 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
9698 `full_name'.
9699 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
9700 mac_scriptcode member.
9701
9702 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
9703 (syms_of_mac): Don't initialize them.
9704 (Vmac_charset_info_alist): New variable.
9705 (syms_of_mac): Defvar it.
9706 (create_text_encoding_info_alist): New function.
9707 (decode_mac_font_name, mac_to_x_fontname)
9708 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
9709 code the correspondence among XLFD charsets, Mac script codes, and
9710 Emacs coding systems. Use Vmac_charset_info_alist and result of
9711 create_text_encoding_info_alist instead.
9712 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
9713 routines also on Mac OS Classic.
9714 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
9715 Use add_font_name_table_entry.
9716 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
9717 specified. Derive unspecified scalable fields from specified one.
9718 (x_list_fonts): Consider Valternate_fontname_alist.
9719 (kDefaultFontSize): Change value from 9 to 12.
9720 (XLoadQueryFont): Get decoded font family, font face, and charset
9721 from x_font_name_to_mac_font_name. Set full name of loaded font.
9722 (mac_unload_font): Free `full_name' member.
9723 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
9724 NULL. Copy full_name member of struct MacFontStruct to that of
9725 struct font_info.
9726
9727 2005-04-19 Kim F. Storm <storm@cua.dk>
9728
9729 * xdisp.c (handle_stop): Set saved_face_id to current face if
9730 selective_display_ellipsis_p so ellipsis will be shown in same
9731 face as preceding text.
9732 (setup_for_ellipsis): Don't set saved_face_id here.
9733 (next_element_from_display_vector): Default to saved_face_id.
9734
9735 * fns.c (Fsafe_get): New function.
9736 (syms_of_fns): Defsubr it.
9737
9738 * lisp.h (Fsafe_get): EXFUN it.
9739
9740 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
9741 loops in case of bad face property lists. Limit number of face
9742 alias lookups to 10 (in case of face alias loops).
9743
9744 2005-04-18 Kim F. Storm <storm@cua.dk>
9745
9746 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
9747 It replaces the corresponding member from struct window, as a
9748 window may now show multiple overlay arrows.
9749 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
9750
9751 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
9752 Compare overlay_arrow_bitmap than overlay_arrow_p members.
9753
9754 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
9755 rather than from window.
9756 (update_window_fringes): Compare overlay_arrow_bitmap rather than
9757 overlay_arrow_p members.
9758 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
9759 if not default.
9760
9761 * window.h (struct window): Remove member overlay_arrow_bitmap.
9762
9763 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
9764
9765 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
9766 Calls changed. Don't check for overlay-arrow-bitmap property here.
9767 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
9768 fringe is present, return Lisp integer for bitmap (or -1 for default).
9769 Fix value of overlay-arrow-bitmap property to be a symbol, use
9770 lookup_fringe_bitmap to parse it.
9771 (display_line): Change call to overlay_arrow_at_row. Store integer
9772 return value as overlay bitmap in row rather than window.
9773 Only show overlay arrow if row displays text, or if no other overlay
9774 arrow is seen in window (if overlay marker is at point-max).
9775
9776 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
9777
9778 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
9779
9780 2005-04-18 Lute Kamstra <lute@gnu.org>
9781
9782 * lread.c (Vloads_in_progress): Static.
9783 * fns.c (Vloads_in_progress): Remove extern.
9784 (load_in_progress): Add extern.
9785 (Frequire): Use load_in_progress instead of Vloads_in_progress.
9786
9787 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
9788
9789 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
9790
9791 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9792
9793 * macterm.c (XTread_socket): Don't beep on keyboard input even if
9794 no frame is visible.
9795
9796 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9797
9798 * term.c (struct keys): Add support for shifted keys.
9799
9800 2005-04-16 Richard M. Stallman <rms@gnu.org>
9801
9802 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
9803 (set_message): Call with_echo_area_buffer with WHICH = 0.
9804 (set_message_1): Erase the echo area buffer first thing.
9805 (echo_area_display): Don't clear echo_message_buffer.
9806
9807 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9808
9809 * Makefile.in (mac.o): Depend on charset.h and coding.h.
9810
9811 * mac.c: Include charset.h and coding.h.
9812 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
9813 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
9814 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
9815
9816 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
9817
9818 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
9819
9820 * macterm.c (x_autoselect_window_p): Remove variable.
9821 (last_window): New variable.
9822 (XTreassert_line_highlight, x_change_line_highlight):
9823 Remove declarations.
9824 (mac_focus_changed, x_detect_focus_change): New functions and
9825 declarations.
9826 (XTextExtents16, front_emacs_window): Remove function.
9827 (mac_focus_frame): New function.
9828 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
9829 (mac_check_for_quit_char): Use it instead of front_emacs_window.
9830 (x_scroll_bar_report_motion): Obtain window from control owner.
9831 (x_make_frame_invisible): Set window manager size hint.
9832 (do_mouse_moved): Remove function.
9833 (XTread_socket): Move its contents here. Generate select-window
9834 event on mouse movement if needed. Use x_detect_focus_change on
9835 activate/deactivate events. Don't deiconify frame or invalidate
9836 window rectangle when dnd items are dropped.
9837 Don't activate/deactivate root control.
9838 (frame_highlight, frame_unhighlight): Activate/deactivate root
9839 control here.
9840 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
9841
9842 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
9843 New extern.
9844
9845 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
9846
9847 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
9848 (lisp): Use it.
9849 (SOME_MACHINE_LISP): Add tooltip.
9850
9851 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9852
9853 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
9854 Don't include TextEncodingConverter.h.
9855 (mac_system_script_code, Vmac_system_locale): New variables.
9856 (syms_of_mac): Defvar them.
9857 (mac_get_system_locale): New function.
9858
9859 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
9860 Use ENCODE_SYSTEM to encode title bar string.
9861 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
9862 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
9863 Use CFStringGetSystemEncoding to get system default string encoding.
9864
9865 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
9866 TextEncodingConverter.h.
9867
9868 2005-04-13 Steven Tamm <steventamm@mac.com>
9869
9870 * macterm.c (syms_of_macterm): Remove redundant definition of
9871 mac-pass-control-to-system.
9872
9873 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9874
9875 * window.c (Fset_window_configuration): Be careful when you choose
9876 among several possible points for the new_current_buffer.
9877
9878 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9879
9880 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
9881 poll_for_input_1. Set interrupt_input_pending to 1 instead.
9882 (Qlanguage_change) [MAC_OS]: New variable.
9883 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
9884 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
9885
9886 * macterm.c (mac_keyboard_text_encoding)
9887 (current_mac_keyboard_text_encoding): Remove variables.
9888 (XTread_socket): Store language-change event if keyboard script change
9889 is detected. Don't convert input to `mac_keyboard_text_encoding'.
9890 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
9891
9892 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
9893
9894 2005-04-10 Richard M. Stallman <rms@gnu.org>
9895
9896 * emacs.c (standard_args): Rename --bare-bones to --quick.
9897 Add -D aka --basic-display.
9898
9899 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
9900
9901 2005-04-09 Richard M. Stallman <rms@gnu.org>
9902
9903 * keymap.c (where_is_internal): Convert a string used as event type
9904 into "(any string)".
9905
9906 * lread.c (Vloads_in_progress): Not static.
9907 * fns.c (Vloads_in_progress): Add extern.
9908 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
9909
9910 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
9911
9912 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
9913
9914 2005-04-09 Lute Kamstra <lute@gnu.org>
9915
9916 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
9917 within the accessible part of the buffer.
9918
9919 2005-04-09 Kim F. Storm <storm@cua.dk>
9920
9921 * lread.c (readevalloop): Add args START and END as region in
9922 current buffer to read. Callers changed.
9923 When specified, narrow to this region only when reading,
9924 not during eval. Track next point to read from during eval.
9925 Also restore point to "real" buffer position before eval.
9926 (Feval_region): Don't save excursion and restriction here, and
9927 don't narrow to region. Just pass region to readevalloop.
9928 Note: Point is now preserved even when PRINTFLAG is nil.
9929
9930 2005-04-08 Kim F. Storm <storm@cua.dk>
9931
9932 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
9933
9934 2005-04-06 Kim F. Storm <storm@cua.dk>
9935
9936 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
9937
9938 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9939
9940 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
9941 (Fmac_get_preference): Doc fix.
9942
9943 * macfns.c (Fx_create_frame, x_create_tip_frame):
9944 Add "fontset-mac" to fallback font/fontsets.
9945
9946 2005-04-04 Kim F. Storm <storm@cua.dk>
9947
9948 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
9949
9950 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
9951 Call it again after autoload.
9952
9953 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9954
9955 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
9956 mallopt.
9957
9958 * ralloc.c (r_alloc_init): Ditto.
9959
9960 2005-04-01 Kenichi Handa <handa@m17n.org>
9961
9962 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
9963 (Vascii_eqv_table): Extern them.
9964
9965 * casetab.c (set_case_table): If standard is nonzero, setup
9966 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
9967
9968 * search.c (looking_at_1): Use current_buffer->case_canon_table,
9969 not DOWNCASE_TABLE.
9970 (string_match_1): Likewise.
9971 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
9972 Vascii_downcase_table.
9973 (fast_string_match_ignore_case): Likewise.
9974 (search_buffer): Fix checking of boyer-moore usability.
9975 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
9976 No need of tranlating characters in PAT. Fix calculation of
9977 simple_translate.
9978
9979 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
9980
9981 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
9982 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
9983 Use XtNtopShadowPixel and XtNbottomShadowPixel.
9984 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
9985 really work and that breaks with some versions of Xaw3d.
9986
9987 2005-03-31 Kenichi Handa <handa@m17n.org>
9988
9989 * coding.c (syms_of_coding): Fix previous change.
9990
9991 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
9992
9993 * fileio.c (search_embedded_absfilename): Fix last change.
9994
9995 2005-03-25 Kenichi Handa <handa@m17n.org>
9996
9997 * coding.c (syms_of_coding): Suggest to use set-coding-category in
9998 the docstring of coding-category-list.
9999
10000 2005-03-31 Kim F. Storm <storm@cua.dk>
10001
10002 * keyboard.c (Qmouse_fixup_help_message): New var.
10003 (syms_of_keyboard): Intern and staticpro it.
10004 (show_help_echo): Apply mouse-fixup-help-message to help string.
10005
10006 2005-03-30 Kim F. Storm <storm@cua.dk>
10007
10008 * xdisp.c (display_line): Allow multiple overlay arrows in window.
10009
10010 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10011
10012 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
10013 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
10014 (Ffile_name_absolute_p): Use it.
10015 (search_embedded_absfilename): New fun, extracted from
10016 Fsubstitute_in_file_name. Use file_name_absolute_p.
10017 Free the pw data after use.
10018 (Fsubstitute_in_file_name): Use it.
10019 After cutting a prefix, re-check file-name-handler.
10020
10021 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
10022
10023 * w32term.h (x_output): Add focus_state.
10024
10025 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
10026 (w32_read_socket) <WM_SETFOCUS>: Call w32_detect_focus_change.
10027
10028 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10029
10030 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
10031 Use Fexit_minibuffer.
10032 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
10033
10034 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10035
10036 * dired.c (Ffile_attributes): Add a missing gcpro.
10037
10038 * alloc.c (make_number): The arg can be bigger than `int'.
10039 * lisp.h (make_number): Make prototype more precise.
10040
10041 * process.c, dired.c (Vfile_name_coding_system)
10042 (Vdefault_file_name_coding_system):
10043 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
10044 (Vdefault_file_name_coding_system): Remove unused declarations.
10045
10046 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10047
10048 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
10049 if it failed to pop up (Gnome "show pointer on ctrl" option makes
10050 menus fail to pop up).
10051
10052 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10053
10054 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
10055 Just prepend a backslash without replacing the NBSP by an SPC.
10056
10057 2005-03-22 Kim F. Storm <storm@cua.dk>
10058
10059 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
10060 * dispextern.h (lookup_derived_face): Fix prototype.
10061 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
10062
10063 * xdisp.c (handle_single_display_spec): Derive left-fringe and
10064 right-fringe face from fringe face.
10065
10066 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
10067 Derive face from fringe face.
10068
10069 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10070
10071 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
10072
10073 2005-03-22 David Kastrup <dak@gnu.org>
10074
10075 * textprop.c (Fnext_char_property_change)
10076 (Fprevious_char_property_change): Allow marker as limit.
10077 (Fnext_single_char_property_change)
10078 (Fprevious_single_char_property_change): Check that limit is a
10079 number in strings.
10080 (Fnext_single_char_property_change): Coerce position to integer.
10081 (Fprevious_single_char_property_change): Same here.
10082
10083 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
10084
10085 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
10086
10087 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10088
10089 * frame.c (Fignore_event): Remove.
10090 (syms_of_frame): Don't defsubr it.
10091
10092 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
10093 redundant `ignore-event'.
10094
10095 2005-03-19 Eli Zaretskii <eliz@gnu.org>
10096
10097 * unexec.c (write_segment, unexec): Move these functions to avoid
10098 forward references (which cause errors with "gcc -gcoff").
10099
10100 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10101
10102 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
10103 that it doesn't become "tooltip". The specbind is enough.
10104
10105 * xrdb.c (x_load_resources): Use different char *helv when I18N
10106 is present.
10107
10108 2005-03-17 Kenichi Handa <handa@m17n.org>
10109
10110 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
10111
10112 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10113
10114 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
10115 Use xic_create_fontsetname even for non-Motif menus.
10116 Don't forget to free the fontsetname.
10117
10118 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
10119
10120 2005-03-17 Richard M. Stallman <rms@gnu.org>
10121
10122 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
10123
10124 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
10125 (Fmake_symbolic_link): Use G to read the new file name.
10126
10127 * callint.c (Finteractive): Document G option.
10128 (Fcall_interactively): Implement G option.
10129
10130 * buffer.c (buffer_lisp_local_variables): New function,
10131 broken out from Fbuffer_local_variables.
10132 (clone_per_buffer_values): Use buffer_lisp_local_variables.
10133
10134 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10135
10136 * xfns.c (xic_create_fontsetname): Add `motif' argument.
10137 Always return a freshly allocated string.
10138 (xic_create_xfontset): Adjust call.
10139
10140 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
10141 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
10142 (dump_realized_face): Fix warning.
10143
10144 * emacs.c (Fkill_emacs): YAILOM.
10145
10146 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
10147
10148 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10149
10150 * mac.c (HASHKEY_TERMINAL): Remove.
10151 (HASHKEY_MAX_NID): New macro.
10152 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
10153 argument.
10154 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
10155 (xrm_create_database, xrm_q_put_resource)
10156 (xrm_merge_string_database, xrm_q_get_resource_1)
10157 (xrm_q_get_resource): Change resource database representation so
10158 that it may not use multiple hash tables for a single database.
10159 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
10160
10161 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
10162
10163 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
10164
10165 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
10166 locale-coding-system, as was already done for WINDOWSNT.
10167
10168 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
10169 translation for chars in the 0-255 range.
10170
10171 2005-03-16 Lute Kamstra <lute@gnu.org>
10172
10173 * floatfns.c (Ffloor): Doc fix.
10174
10175 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10176
10177 * mac.c: Include macterm.h instead of directly including Carbon.h.
10178 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
10179 (Qarray, Qdictionary): New variables.
10180 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
10181 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
10182 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
10183 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
10184 in callback for CFDictionaryApplyFunction.
10185 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
10186 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
10187 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
10188 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
10189 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
10190 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
10191 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
10192 (skip_white_space, parse_comment, parse_include_file)
10193 (parse_binding, parse_component, parse_resource_name, parse_value)
10194 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
10195 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
10196 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
10197 New functions.
10198
10199 * macfns.c (mac_get_rdb_resource): Remove function.
10200 (x_get_string_resource): Use xrm_get_resource.
10201
10202 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
10203
10204 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
10205 name_list_element.
10206 (mac_make_rdb): Create resource database from preferences and
10207 argument string.
10208 (mac_term_init): Save resource database to cddr part of
10209 name_list_element.
10210
10211 * macterm.h (xrm_merge_string_database, xrm_get_resource)
10212 (xrm_get_preference_database): Add externs.
10213 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
10214 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
10215 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
10216
10217 * process.c (init_process): Change `#ifdef DARWIN' to `#if
10218 defined (DARWIN) || defined (MAC_OSX)'
10219
10220 * s/darwin.h (DARWIN): Don't define.
10221
10222 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10223
10224 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
10225 Remove unused variables.
10226 (syms_of_macfns): Don't initialize them. Likewise for
10227 Qface_set_after_frame_default. Defvar and initialize
10228 Vx_window_horizontal_drag_shape.
10229 (x_set_mouse_color): Change mouse pointer shape.
10230 (mac_window) [!MAC_OSX]: Create root control.
10231 (Fx_create_frame): Remove initializations of mouse pointer shapes.
10232 (hourglass_started): New function (from xfns.c).
10233 (start_hourglass, cancel_hourglass): Put function body in #ifdef
10234 MAC_OSX.
10235 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
10236 indicator for each non-tooltip frame if needed, and show it.
10237 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
10238
10239 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
10240 Controls.h. Use ThemeCursor instead of CursHandle.
10241
10242 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
10243 Remove functions and declarations.
10244 (mac_set_colors): Take argument for saving background color.
10245 All callers changed.
10246 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
10247 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
10248 background color.
10249 (x_update_end, mac_do_track_drag): Don't reset background color.
10250 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
10251 Use SetThemeCursor.
10252 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
10253 indicator control to the upper-right corner of the window.
10254 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
10255 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
10256 (do_window_update): Update controls after updating content area.
10257 (mac_handle_window_event): Remove unused extern.
10258 (XTread_socket): Check both control handle and control part code
10259 to determine whether a scroll bar is clicked. Activate/deactivate
10260 root control instead of contained scroll bar controls.
10261 (make_mac_terminal_frame): Use ThemeCursor constants.
10262
10263 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
10264 New member hourglass_control.
10265 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
10266 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
10267
10268 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10269
10270 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
10271 coincides with that in Apple X11 except `clear', `enter' on
10272 laptops, and fn + `enter' on laptops.
10273
10274 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10275
10276 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
10277 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
10278 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
10279
10280 * xfns.c (xic_defaut_fontset): New constant.
10281 (xic_create_fontsetname): New function.
10282 Extracted from create_frame_xic. Try to generate a slightly
10283 better fontset.
10284 (xic_create_xfontset): Use it.
10285 (create_frame_xic): Simplify.
10286
10287 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
10288
10289 * fileio.c (Fmake_symbolic_link): Fix last change.
10290
10291 2005-03-11 Richard M. Stallman <rms@gnu.org>
10292
10293 * fileio.c (Frename_file, Fadd_name_to_file)
10294 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
10295 expand the basename of FILE relative to it.
10296
10297 2005-03-11 Kenichi Handa <handa@m17n.org>
10298
10299 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
10300 before calling setup_coding_system so that autoloading of a coding
10301 system work.
10302
10303 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10304
10305 * xfns.c (hourglass_started): New function.
10306
10307 * dispextern.h: Declare hourglass_started.
10308
10309 * keyboard.c (Fexecute_extended_command): Restart hourglass
10310 after call to Fcompleting_read if already started.
10311
10312 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
10313 GTK main loop is entered in xterm.c, thus doing the redraw.
10314
10315 2005-03-10 Kim F. Storm <storm@cua.dk>
10316
10317 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
10318
10319 2005-03-08 Kenichi Handa <handa@m17n.org>
10320
10321 * frame.c (x_set_font): Call set_default_ascii_font if an
10322 available font is found.
10323
10324 * fontset.c (set_default_ascii_font): New function.
10325 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
10326
10327 * fontset.h (set_default_ascii_font): Extern it.
10328
10329 2005-03-07 Kim F. Storm <storm@cua.dk>
10330
10331 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
10332 (clear_image_cache_count): New var.
10333 (redisplay_internal): Don't clear face and image caches in the
10334 middle of redisplay; do it afterwards.
10335
10336 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
10337
10338 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
10339 is valid. If not, clear phys_cursor_on_p and return.
10340
10341 2005-03-07 Andreas Schwab <schwab@suse.de>
10342
10343 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
10344
10345 2005-03-06 Richard M. Stallman <rms@gnu.org>
10346
10347 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
10348
10349 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
10350 (Feval, Ffuncall): Use CHECK_CONS_LIST.
10351
10352 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
10353
10354 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
10355 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
10356
10357 2005-03-05 Juri Linkov <juri@jurta.org>
10358
10359 * emacs.c (USAGE1): Replace Info node name "command arguments"
10360 with "emacs invocation".
10361 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
10362 allow arguments `--color' and `MODE' to be separated by space.
10363 Add --no-blinking-cursor, -nbc.
10364 (standard_args): Add -nbc, --no-blinking-cursor.
10365
10366 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
10367
10368 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
10369 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
10370 * fileio.c (Fexpand_file_name) [VMS]:
10371 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
10372 * doc.c (munge_doc_file_name) [VMS]: Likewise.
10373 (Fsnarf_documentation): Call munge_doc_file_name.
10374
10375 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
10376
10377 * s/vms.h (FILE_SYSTEM_CASE): New macro.
10378 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
10379 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
10380
10381 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10382
10383 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
10384 defined (MAC_OSX) && defined (HAVE_CARBON)'.
10385
10386 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
10387
10388 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
10389 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
10390 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
10391 (mac_clear_font_name_table): Move extern to macterm.h.
10392
10393 * macfns.c (install_window_handler): Move extern to macterm.h.
10394 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
10395 valid. Don't check !NILP (dir) because it is already checked with
10396 CHECK_STRING.
10397 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
10398 specifying the default location and obtaining the selected filename.
10399
10400 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
10401
10402 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
10403 are included via Carbon.h.
10404
10405 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
10406 Define USE_CARBON_EVENTS to 1.
10407 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
10408 (x_free_frame_resources): Call remove_window_handler for
10409 non-tooltip windows.
10410 [TARGET_API_MAC_CARBON]: Don't include headers that are included
10411 via Carbon.h.
10412 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
10413 (mac_do_receive_dragUPP): New variables.
10414 (mac_handle_service_event, init_service_handler): Put declarations
10415 and definitions in #ifdef MAC_OSX.
10416 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
10417 drag-and-drop handler functions and register them.
10418 (remove_window_handler): New function.
10419 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
10420 Use fsspec_to_posix_pathname.
10421 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
10422 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
10423 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
10424 Set default cursors.
10425 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX]: Don't call
10426 init_service_handler or init_quit_char_handler.
10427 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
10428
10429 * macterm.h (install_window_handler, remove_window_handler)
10430 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
10431 (mac_clear_font_name_table): New externs.
10432
10433 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
10434
10435 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
10436 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
10437 (Fexpand_file_name): Likewise.
10438
10439 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
10440
10441 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
10442 no longer special-case VMS. Add bogus return value.
10443
10444 2005-03-02 Kim F. Storm <storm@cua.dk>
10445
10446 * dispextern.h (XASSERTS): Define to 0 if not already defined.
10447 (xassert) [!XASSERTS]: Define dummy version.
10448
10449 2005-03-02 Kim F. Storm <storm@cua.dk>
10450
10451 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
10452 Reported by David Kastrup.
10453
10454 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
10455
10456 * xdisp.c (get_next_display_element): Fix control and escape
10457 glyph from display vector.
10458
10459 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
10460
10461 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
10462
10463 2005-02-27 Richard M. Stallman <rms@gnu.org>
10464
10465 * xdisp.c (fast_find_position): Rename END to BEG.
10466 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
10467
10468 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10469
10470 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
10471 gtk_window_resize and x_wm_set_size_hint.
10472
10473 2005-02-25 Kim F. Storm <storm@cua.dk>
10474
10475 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
10476
10477 * xdisp.c (init_from_display_pos): Don't read past end of
10478 it->overlay_strings array.
10479
10480 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
10481
10482 * buffer.c (syms_of_buffer): Fix typo.
10483
10484 2005-02-23 Lute Kamstra <lute@gnu.org>
10485
10486 * buffer.c (Foverlay_buffer): Doc fix.
10487
10488 2005-02-22 Kim F. Storm <storm@cua.dk>
10489
10490 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
10491 and symbol keys in alists and hash tables.
10492
10493 * xdisp.c (fast_find_position): Fix search for start of overlay.
10494
10495 2005-02-21 Kim F. Storm <storm@cua.dk>
10496
10497 * window.c (window_scroll_pixel_based): When scrolling backwards,
10498 handle partial visible line at end of window even when we hit PT.
10499
10500 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10501
10502 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
10503
10504 2005-02-21 Kim F. Storm <storm@cua.dk>
10505
10506 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
10507 I think those asserts are bogus if buffer contains invisible text
10508 or images.
10509
10510 2005-02-21 David Kastrup <dak@gnu.org>
10511
10512 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
10513
10514 2005-02-20 Kim F. Storm <storm@cua.dk>
10515
10516 * xdisp.c (pos_visible_p): Be sure to move to the specified
10517 position. Always get the full ascent / descent of the
10518 corresponding row, to return reliable rtop and rbot values.
10519 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
10520 Must look one character back, as back_to_previous_line_start
10521 returns position after the newline.
10522 (move_it_vertically_backward): Fix heuristic for when to move further
10523 back in case line_height * 2/3 is larger than window height.
10524 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
10525 as it does not do anything anymore. Add arg current_matrix_p to
10526 use current matrix rather than desired matrix when set.
10527 (try_cursor_movement): Don't scroll to make cursor row fully
10528 visible if cursor didn't move. This avoids unexpected recentering
10529 in case of blinking cursor or accepting process output.
10530 Use current matrix to check cursor row visibility.
10531 (redisplay_window): Fix whether to recenter or move to top in case
10532 cursor line is taller than window height.
10533 (find_first_unchanged_at_end_row): Stop search if we reach a row
10534 which not enabled (instead of abort).
10535
10536 2005-02-18 Kim F. Storm <storm@cua.dk>
10537
10538 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
10539 to be nil in a :box attribute value list; customize prints that
10540 as lisp value when no box color is specified.
10541
10542 * .gdbinit (pitx, pit): Pretty print display iterator.
10543 (prowx, prow): Pretty print glyph row.
10544 (pcursorx, pcursor): Pretty print a window cursor.
10545 (pwinx, pwin): Pretty print struct window.
10546
10547 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10548
10549 * alloc.c (BLOCK_BYTES): Harmless typo.
10550
10551 2005-02-17 Andreas Schwab <schwab@suse.de>
10552
10553 * xfns.c (hack_wm_protocols): Use correct type for last parameter
10554 of XGetWindowProperty to avoid aliasing issues.
10555 (Fx_window_property): Likewise.
10556
10557 * xselect.c (Fx_disown_selection_internal): Use union of struct
10558 input_event and struct selection_input_event to avoid aliasing issues.
10559
10560 * xterm.c (handle_one_xevent): Use union of struct input_event and
10561 struct selection_input_event to avoid aliasing issues.
10562 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
10563
10564 2005-02-17 Kim F. Storm <storm@cua.dk>
10565
10566 * dispextern.h (enum it_method): New enum.
10567 (GET_FROM_*): Its members.
10568 (struct it): Change member method from function pointer to enum.
10569
10570 * xdisp.c (check_it, init_from_display_pos, handle_stop)
10571 (setup_for_ellipsis, handle_single_display_spec)
10572 (handle_composition_prop, next_overlay_string)
10573 (get_overlay_strings, reseat_1, reseat_to_string)
10574 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
10575 (in_display_vector_p, display_line, get_next_display_element):
10576 Change it->method from function pointer to enum.
10577 (get_next_element): New array to map it->method to function.
10578 (get_next_display_element): Use it.
10579 (set_iterator_to_next): Use switch instead of if/else chain.
10580
10581 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10582
10583 * w32select.c: Summary: Thorough rework to implement Unicode
10584 clipboard operations and delayed rendering.
10585
10586 Drop last_clipboard_text and related code, keep track of
10587 ownership via clipboard_owner instead. Drop old #if0 sections.
10588
10589 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
10590 (clipboard_owner, modifying_clipboard, cfg_coding_system)
10591 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
10592 (current_coding_system, current_requires_encoding)
10593 (current_num_nls, current_clipboard_type, current_lcid):
10594 New static variables.
10595
10596 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
10597 (render, render_all, run_protected, lisp_error_handler)
10598 (owner_callback, create_owner, setup_config)
10599 (enum_locale_callback, cp_from_locale, coding_from_cp):
10600 New local functions.
10601
10602 (term_w32select, globals_of_w32select): New global functions.
10603
10604 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
10605 clipboard_owner instead. Use delayed rendering and provide
10606 all text formats. Provide CF_LOCALE if necessary.
10607
10608 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
10609 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
10610 available. Force DOS line-ends for decoding.
10611
10612 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
10613
10614 (syms_of_w32select): Init and register new variables.
10615
10616 * w32.h: Add prototypes for globals_of_w32select and
10617 term_w32select. Make the neighboring K&R declarations into
10618 prototypes, too.
10619
10620 * emacs.c: Include w32.h to get function prototypes.
10621 (main): Call globals_of_w32select.
10622
10623 * w32.c (term_ntproc): Call term_w32select.
10624
10625 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
10626
10627 2005-02-16 Kim F. Storm <storm@cua.dk>
10628
10629 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
10630 at end of display vector.
10631
10632 2005-02-15 Richard M. Stallman <rms@gnu.org>
10633
10634 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
10635 for mode and header lines.
10636
10637 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
10638
10639 * keymap.h (describe_map_tree): Change decl.
10640
10641 * keyboard.c (command_loop_1): Always use safe_run_hooks
10642 to run Qdeferred_action_function.
10643
10644 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
10645 (describe_map, describe_vector): Likewise. When it's 1,
10646 don't omit shadowed bindings, instead mark them as shadowed.
10647
10648 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
10649 for describe_map_tree. Pass 1 for MENTION_SHADOW.
10650
10651 * data.c (Fsetq_default): Allow no arg case.
10652
10653 2005-02-14 Kenichi Handa <handa@m17n.org>
10654
10655 * coding.c (encode_coding_string): Always return a unibyte string.
10656 If NOCOPY is nonzero and there's no need of encoding, make STR
10657 unibyte directly.
10658
10659 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
10660 multibyte string, signal an error instead of aborting.
10661
10662 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
10663
10664 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
10665
10666 2005-02-12 Kim F. Storm <storm@cua.dk>
10667
10668 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
10669
10670 2005-02-10 Kim F. Storm <storm@cua.dk>
10671
10672 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
10673 if it moves outside window or it doesn't display text.
10674
10675 2005-02-09 Kim F. Storm <storm@cua.dk>
10676
10677 * undo.c (Fprimitive_undo): Check that undo function does not
10678 switch buffer.
10679
10680 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10681
10682 * xselect.c (selection_data_to_lisp_data): For the special case
10683 type == XA_ATOM, data contains array of int, not array of Atom.
10684 (x_property_data_to_lisp, selection_data_to_lisp_data):
10685 Comment update: data must be array of int for format == 32.
10686
10687 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10688
10689 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
10690
10691 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10692
10693 * xfns.c (Fx_change_window_property): Use long array when format is 32.
10694 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
10695 convert long array returned from XGetWindowProperty to an int array.
10696 (x_set_tool_bar_lines): Check that width and height is greater than
10697 zero before clearing area.
10698
10699 * xselect.c (x_reply_selection_request): Pass long array to
10700 XChangeProperty so that 64 bit longs are handeled correctly.
10701 (x_get_window_property): If format is 32 and long is bigger than 32
10702 bits convert data from XGetWindowProperty from long array to int array.
10703 (lisp_data_to_selection_data): When the input is a vector and the
10704 format is 32, allocate a long array even if long is bigger than 32 bits.
10705 (x_fill_property_data): Use char, short and long as the man page
10706 for XChangeProperty specifies. This way the data returned is OK for
10707 both 32 and 64 bit machines.
10708 (x_handle_dnd_message): Calculate size correctly even for 64 bit
10709 machines.
10710 (Fx_send_client_event): Undo change from 2005-02-05,
10711 x_fill_property_data now handles that case.
10712
10713 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
10714 reason for the approach in the code.
10715
10716 2005-02-07 Kim F. Storm <storm@cua.dk>
10717
10718 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
10719
10720 2005-02-06 Richard M. Stallman <rms@gnu.org>
10721
10722 * eval.c (Frun_hook_with_args)
10723 (Frun_hook_with_args_until_success)
10724 (Frun_hook_with_args_until_failure): Doc fixes.
10725
10726 2005-02-05 Andreas Schwab <schwab@suse.de>
10727
10728 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
10729
10730 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10731
10732 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
10733 the longs in a XClientMessageEvent correctly when long is 64 bits.
10734
10735 2005-02-05 Eli Zaretskii <eliz@gnu.org>
10736
10737 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
10738 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
10739
10740 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10741
10742 * xmenu.c (menubar_selection_callback): Force out GTK buffered
10743 events so the menu event comes after them. This is to prevent sit-for
10744 from exiting on buffered events directly after a menu selection,
10745 lisp code for Help => About Emacs uses sit-for.
10746
10747 * gtkutil.c (create_menus): Connect selection-done event instead of
10748 the deactivate event to deactivate_cb. This will make the last
10749 leave event come before the call to deactivate_cb, so the leave
10750 event does not make sit-for exit after a menu selection.
10751
10752 2005-02-03 Kim F. Storm <storm@cua.dk>
10753
10754 * dispnew.c (build_frame_matrix_from_leaf_window)
10755 [!GLYPH_DEBUG]: Fix xassert.
10756
10757 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
10758
10759 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10760
10761 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10762
10763 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
10764 the compiling OS version.
10765
10766 * macfns.c (x_create_tip_frame): Likewise.
10767
10768 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
10769
10770 2005-02-03 Richard M. Stallman <rms@gnu.org>
10771
10772 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
10773
10774 * xdisp.c (echo_area_display): Clear echo_message_buffer.
10775
10776 * buffer.c (Fbury_buffer): Doc fix.
10777
10778 2005-02-02 Steven Tamm <steventamm@mac.com>
10779
10780 * macfns.c (unwind_create_frame): Fix compile error due to
10781 xassert being uncondition, but predicate is.
10782 * dispnew.c (update_window): Fix compile error due to
10783 xassert being uncondition, but predicate is.
10784
10785 2005-02-02 Miles Bader <miles@gnu.org>
10786
10787 * dispextern.h (xassert): Enable unconditionally.
10788
10789 2005-02-02 Kim F. Storm <storm@cua.dk>
10790
10791 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
10792
10793 2005-02-02 Kenichi Handa <handa@m17n.org>
10794
10795 * casefiddle.c (casify_object): Enable changing characters of
10796 different byte length.
10797 (casify_region): Fix loop condition, args to replace_range_2, and
10798 update opoint_byte.
10799
10800 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
10801
10802 2005-02-01 Kim F. Storm <storm@cua.dk>
10803
10804 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
10805 stack before calling handle_display_prop.
10806
10807 2005-01-31 Kim F. Storm <storm@cua.dk>
10808
10809 * undo.c (Qapply): New lisp var.
10810 (syms_of_undo): Intern and staticpro it.
10811 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
10812 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
10813
10814 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10815
10816 2005-01-30 Jesper Harder <harder@phys.au.dk>
10817
10818 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
10819 <mac-emulate-three-button-mouse>: Fix docstring indentation.
10820
10821 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
10822
10823 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
10824 Increase value to 3 Meg.
10825
10826 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10827
10828 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
10829 button events are not received otherwise.
10830
10831 2005-01-29 Richard M. Stallman <rms@gnu.org>
10832
10833 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
10834
10835 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
10836
10837 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10838
10839 * keymap.c (access_keymap): YAILOM.
10840
10841 2005-01-27 Kim F. Storm <storm@cua.dk>
10842
10843 * xdisp.c (get_phys_cursor_geometry): New function to calculate
10844 phys cursor position and size for hollow cursor. Position is
10845 aligned with get_glyph_string_clip_rect and ensures that a hollow
10846 cursor is shown, even when the actual glyph is not visible.
10847
10848 * dispextern.h (get_phys_cursor_geometry): Add prototype.
10849
10850 * xterm.c (x_clip_to_row): Ensure y >= 0.
10851 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10852
10853 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10854
10855 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
10856
10857 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
10858
10859 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
10860
10861 2005-01-27 Kim F. Storm <storm@cua.dk>
10862
10863 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
10864 glyph, even when row is only partially visible and actual cursor
10865 position is not visible.
10866
10867 2005-01-24 Richard M. Stallman <rms@gnu.org>
10868
10869 * xterm.c (x_error_quitter): No longer static, and moved after
10870 x_error_handler.
10871
10872 2005-01-24 Kim F. Storm <storm@cua.dk>
10873
10874 * xdisp.c (move_it_by_lines): If we move forward after going too
10875 far back, cancel move if end position is same as start position.
10876
10877 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10878
10879 * dispextern.h (struct glyph_string): New members clip_head and
10880 clip_tail.
10881
10882 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
10883 region to the area between clip_head and clip_tail.
10884 (draw_glyphs): Record the area that need to be actually redrawn to
10885 the new variables clip_head and clip_tail when there are
10886 overhangs. Set values of these variables to the corresponding
10887 members in struct glyph_string. Refine x coordinates for
10888 notice_overwritten_cursor using clip_head and clip_tail.
10889
10890 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
10891
10892 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
10893 QDTextBounds.
10894 (x_draw_glyph_string): Don't fill the background of the successor
10895 of a glyph with a right overhang if the successor will draw a cursor.
10896 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
10897 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
10898
10899 2005-01-24 Kim F. Storm <storm@cua.dk>
10900
10901 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
10902 direction if window height was smaller than next-screen-context-lines.
10903 Now always scroll at least one line in the requested direction.
10904 Ensure that we actually do scroll backwards when requested to do so.
10905
10906 * xdisp.c (redisplay_window): Only try to make cursor line fully
10907 visible once (to avoid redisplay loop).
10908
10909 2005-01-23 Kim F. Storm <storm@cua.dk>
10910
10911 * window.c (Fpos_visible_in_window_p): Simplify return value for
10912 partially visible rows.
10913 (window_scroll_pixel_based): Adapt to that change.
10914
10915 * window.c (window_scroll_pixel_based): Force moving to next line
10916 if scrolling doesn't move start point, e.g. if looking at tall image.
10917
10918 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
10919 Clear last_height before calling line_bottom_y to get real height.
10920 Fix calculation of y.
10921
10922 2005-01-22 Steven Tamm <steventamm@mac.com>
10923
10924 * s/darwin.h: Removed PTY_ITERATION from here.
10925 (DARWIN): Define.
10926
10927 * process.c (init_process): Default process-connection-type to
10928 nil on darwin 6 or less, t if it is 7 or higher. This way the
10929 broken pty behavior is still allowed on darwin 6 for interactive
10930 processes for people that know what they are doing.
10931
10932 2005-01-22 Kim F. Storm <storm@cua.dk>
10933
10934 * window.c (auto_window_vscroll_p): New boolean.
10935 (syms_of_window): DEFVAR_BOOL it.
10936 (Fpos_visible_in_window_p): Extend return value to include RTOP
10937 and RBOT values if FULLY is nil.
10938 (window_scroll_pixel_based): Adjust vscroll for partially visible
10939 rows if auto_window_vscroll_p is set.
10940 (Fset_window_vscroll): Do nothing if vscroll is not modified.
10941
10942 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
10943 to return number of partially invisible pixels at top and bottom
10944 of the dislay row at POS.
10945
10946 * lisp.h (pos_visible_p): Fix prototype.
10947
10948 2005-01-21 Richard M. Stallman <rms@gnu.org>
10949
10950 * fileio.c (Fcopy_file): Doc fix.
10951
10952 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10953
10954 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
10955 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
10956 start of function for older compilers.
10957
10958 2005-01-20 Richard M. Stallman <rms@gnu.org>
10959
10960 * editfns.c (Fmessage): If arg is "", return "" (as before).
10961
10962 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
10963
10964 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
10965 variable.
10966
10967 2005-01-20 Steven Tamm <steventamm@mac.com>
10968
10969 * editfns.c (Voperating_system_release): Add.
10970 (init_editfns): Assign new variable operating-system-release
10971 based on call to uname if available.
10972 (get_operating_system_release): Add function to
10973 allow c-level access to operating system release.
10974
10975 * config.h: Regenerated.
10976
10977 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
10978 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
10979 using ptys as '7'.
10980
10981 2005-01-20 Kim F. Storm <storm@cua.dk>
10982
10983 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
10984
10985 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
10986 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
10987
10988 * macterm.c (x_draw_glyph_string_box): Likewise.
10989
10990 * w32term.c (x_draw_glyph_string_box): Likewise.
10991
10992 * indent.c (Fvertical_motion): Temporarily disable selective display.
10993
10994 2005-01-19 Kim F. Storm <storm@cua.dk>
10995
10996 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
10997 image property.
10998
10999 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
11000
11001 2005-01-18 Kim F. Storm <storm@cua.dk>
11002
11003 * xdisp.c (fast_find_position): Backtrack to find first row if
11004 charpos is inside a display overlay that spans multiple lines.
11005
11006 2005-01-18 Kenichi Handa <handa@m17n.org>
11007
11008 * coding.c (decode_coding_iso2022): Translate invalid codes if
11009 translation-table is specified.
11010
11011 2005-01-18 Kim F. Storm <storm@cua.dk>
11012
11013 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
11014 change. If handle_display_prop indicates newline is replaced by
11015 image or text, move back to start of relevant overlay or interval
11016 and continue scan from there. Simplify.
11017
11018 2005-01-17 Kim F. Storm <storm@cua.dk>
11019
11020 * dispnew.c (mode_line_string, marginal_area_string):
11021 Fix off-by-one error in search for glyph.
11022
11023 2005-01-16 Kim F. Storm <storm@cua.dk>
11024
11025 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
11026
11027 2005-01-16 Steven Tamm <steventamm@mac.com>
11028
11029 * macterm.c (mac_to_x_fontname): Remove spurious argument.
11030
11031 2005-01-16 Andreas Schwab <schwab@suse.de>
11032
11033 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
11034
11035 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11036
11037 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
11038 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
11039
11040 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11041
11042 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
11043 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
11044 New flags for readable_events.
11045 (get_filtered_input_pending, readable_filtered_events): Remove.
11046 (tracking_off): Call readable_events and get_input_pending with
11047 flag READABLE_EVENTS_DO_TIMERS_NOW.
11048 (readable_events): Move code from old readable_filtered_events here,
11049 but check new READABLE_EVENTS_* in argument flags instead of previous
11050 two boolean arguments do_timers_now and filter_events.
11051 If we are doing mouse tracking and the mouse moved, return only if
11052 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
11053 (swallow_events): Call get_input_pending with flag
11054 READABLE_EVENTS_DO_TIMERS_NOW.
11055 (get_input_pending): Move code from old get_filtered_input_pending
11056 here. Replace boolean arguments do_timers_now, filter_events with
11057 flags, and pass flags to readable_events. Document new
11058 READABLE_EVENTS_* flags.
11059 (detect_input_pending_ignore_squeezables): New function.
11060 (detect_input_pending_run_timers): Call get_input_pending with flag
11061 READABLE_EVENTS_DO_TIMERS_NOW.
11062 (Finput_pending_p): Call get_input_pending with flags
11063 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
11064
11065 * dispnew.c (update_window, update_frame_1): Replace calls to
11066 detect_input_pending with detect_input_pending_ignore_squeezables
11067 so that redisplay is not paused if the event queue contains only
11068 mouse movements.
11069
11070 * lisp.h: Declare detect_input_pending_ignore_squeezables.
11071
11072 2005-01-15 Steven Tamm <steventamm@mac.com>
11073
11074 * macterm.c (Vmac_use_core_graphics): Declare variable for
11075 mac-allow-anti-aliasing.
11076 (syms_of_macterm): DEFVAR_LISP and initialize it.
11077 (mac_draw_string_common): Use core graphics text rendering if
11078 mac-allow-anti-aliasing is enabled.
11079
11080 * macfns.c (Fx_file_dialog): Save As dialog includes only the
11081 file name in the text box.
11082
11083 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11084
11085 * macfns.c (x_set_foreground_color, x_set_background_color):
11086 Sync with xfns.c.
11087 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
11088 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
11089 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
11090
11091 2005-01-14 Kim F. Storm <storm@cua.dk>
11092
11093 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
11094
11095 2005-01-13 Richard M. Stallman <rms@gnu.org>
11096
11097 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
11098 if Voverriding_terminal_local_map is non-nil.
11099
11100 * keyboard.c (syms_of_keyboard): Doc fix.
11101
11102 2005-01-13 Kim F. Storm <storm@cua.dk>
11103
11104 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
11105 (specify 0 for FACE instead). Reorder arg list. Doc fix.
11106
11107 2005-01-12 Richard M. Stallman <rms@gnu.org>
11108
11109 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
11110 face property for characters that don't specify one.
11111
11112 * fns.c (Frequire): Record in load-history unconditionally.
11113
11114 2005-01-10 Kim F. Storm <storm@cua.dk>
11115
11116 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
11117
11118 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
11119 Callers changed.
11120 Add support to merge with lisp face id too (if face_name is t).
11121
11122 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11123 Don't lookup lface_id from display table glyphs here; instead use
11124 merge_faces to merge the lisp face id into current face.
11125
11126 2005-01-09 Kim F. Storm <storm@cua.dk>
11127
11128 * dispextern.h (struct it): New member dpvec_face_id.
11129 (merge_into_realized_face): Add prototype.
11130
11131 * xfaces.c (merge_into_realized_face): New function. Used to
11132 merge escape-glyph face or face from display table into current face.
11133
11134 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
11135 (syms_of_xdisp): DEFVAR_LISP it.
11136 (escape_glyph_face): Remove var.
11137 (redisplay_window): Don't initialize it.
11138 (setup_for_ellipsis, get_next_display_element):
11139 Set it->dpvec_face_id to -1.
11140 (get_next_display_element): Test Vshow_nonbreak_escape.
11141 Do not setup escape_glyph_face.
11142 Properly merge escape-glyph face or face from display table with
11143 current face for escape and control characters.
11144 Set it->dpvec_face_id to relevant face id instead of adding it to each
11145 element of display vector.
11146 (next_element_from_display_vector): If it->dpvec_face_id is set,
11147 use that instead of lface_id from glyph itself.
11148
11149 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11150
11151 * xterm.h (struct x_output): New member, toolbar_detached.
11152
11153 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
11154 38.
11155 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
11156 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
11157 (xg_create_tool_bar): Initialize toolbar_detached.
11158 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
11159 toolbar_detached is zero.
11160
11161 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11162
11163 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
11164 gtk_menu_popup if not for_click, so callbacks for the menu are called.
11165
11166 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
11167 (xg_tool_bar_callback, xg_tool_bar_help_callback)
11168 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
11169
11170 * xselect.c (x_get_foreign_selection, x_fill_property_data)
11171 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
11172 XFLOAT_DATA to get extract number from Lisp object.
11173
11174 2005-01-07 Kim F. Storm <storm@cua.dk>
11175
11176 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
11177 Set stop_charpos to current charpos instead of 0.
11178
11179 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
11180
11181 * xdisp.c (Fformat_mode_line): First arg now required.
11182
11183 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11184
11185 * macterm.c (XLoadQueryFont): Correctly handle 0 size
11186 font widths that are returned from some Japanese fonts.
11187
11188 2005-01-06 Kim F. Storm <storm@cua.dk>
11189
11190 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
11191 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
11192 (destroy_fringe_bitmap): Set fringe_faces element to nil.
11193 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
11194 fringe_faces array and init elements to nil.
11195 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
11196 non-persistent face id.
11197 (mark_fringe_data): New function for GC.
11198
11199 * alloc.c (mark_fringe_data): Declare extern.
11200 (Fgarbage_collect): Call mark_fringe_data.
11201
11202 * alloc.c (overrun_check_free): Invalidate freed memory if
11203 XMALLOC_CLEAR_FREE_MEMORY is defined.
11204
11205 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11206
11207 * macfns.c: Include sys/param.h.
11208 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
11209 and function.
11210 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
11211 of filename string. Set event callback function when creating
11212 dialog boxes. Add code conversions for filenames. Don't dispose
11213 of apple event descriptor record if failed to create it.
11214
11215 * macterm.c: Include sys/param.h.
11216 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
11217 kEventWindowUpdate.
11218 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
11219 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
11220 of FSSpec from apple event descriptor record.
11221 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
11222 size of filename string.
11223 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
11224 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
11225 file dialog is in action.
11226 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
11227 Reject only when there are no filename items. Set background color
11228 before (un)highlighting the window below the dragged items.
11229 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
11230
11231 2005-01-05 Romain Francoise <romain@orebokech.com>
11232
11233 * term.c (encode_terminal_code): Fix buffer size computation.
11234
11235 2005-01-04 Richard M. Stallman <rms@gnu.org>
11236
11237 * xdisp.c (Fformat_mode_line): Doc fix.
11238
11239 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11240
11241 * alloc.c (refill_memory_reserve): Move.
11242 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
11243 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
11244
11245 2005-01-03 Richard M. Stallman <rms@gnu.org>
11246
11247 * window.c (window_scroll_pixel_based): Don't correct preserve_y
11248 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
11249
11250 2005-01-03 Jason Rumney <jasonr@gnu.org>
11251
11252 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
11253 fontp->space_width to FONT_WIDTH so they are valid.
11254
11255 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
11256 average width. Set fontp->average_width and fontp->space_width to
11257 their appropriate values.
11258
11259 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
11260 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
11261 fontp->space_width.
11262
11263 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11264
11265 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
11266 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
11267 metrics for max and min bounds.
11268 (x_load_font): Correctly calculate average font width metrics.
11269
11270 2005-01-02 Richard M. Stallman <rms@gnu.org>
11271
11272 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
11273
11274 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11275
11276 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
11277
11278 2004-12-31 Richard M. Stallman <rms@gnu.org>
11279
11280 * xdisp.c (setup_for_ellipsis, get_next_display_element):
11281 Set it->ellipsis_p to 1 or 0.
11282 (display_line): Record whether row ends in mid-ellipsis.
11283 (set_cursor_from_row): If ends in ellipsis, find start of it.
11284 (cursor_row_p): If PT's at the end of the ellipsis the row
11285 ends within, don't display cursor on this row.
11286
11287 * dispextern.h (struct it): New element ellipsis_p.
11288 (struct glyph_row): New element ends_in_ellipsis_p.
11289
11290 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
11291 position if we're reading from something other than the buffer.
11292
11293 * window.c (window_scroll_pixel_based): Only look at
11294 Vscroll_preserve_screen_position if the old PT can't be kept.
11295 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
11296
11297 2004-12-30 Kim F. Storm <storm@cua.dk>
11298
11299 * xdisp.c (get_line_height_property): New function extracted from
11300 original calc_line_height_property.
11301 (calc_line_height_property): Rework. Handle t and (nil . ratio).
11302 (x_produce_glyphs): Use them to handle line-height and
11303 line-spacing according to new height spec.
11304 (Qtotal): Remove.
11305 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
11306
11307 2004-12-30 Kenichi Handa <handa@m17n.org>
11308
11309 * fileio.c (Finsert_file_contents): Don't use
11310 current_buffer->buffer_file_coding_system even if REPLACE is
11311 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
11312
11313 * fontset.h (struct font_info): New members space_width and
11314 average_width.
11315
11316 * frame.h (struct frame): New member space_width.
11317 (FRAME_SPACE_WIDTH): New macro.
11318
11319 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
11320
11321 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
11322 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
11323 fontp->space_width.
11324 (x_load_font): Calculate fontp->space_width and fontp->average_width.
11325 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
11326
11327 * xdisp.c (x_produce_glyphs): Calculate tab width by
11328 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
11329
11330 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
11331
11332 * macterm.c (SelectionRange): Add Xcode position apple event struct.
11333 (do_ae_open_documents): Handle Xcode-style file position open events.
11334
11335 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
11336
11337 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
11338
11339 2004-12-29 Richard M. Stallman <rms@gnu.org>
11340
11341 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
11342
11343 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11344
11345 * macfns.c (install_window_handler): Modify extern to return OSErr
11346 value.
11347 (mac_window): Handle return value of install_window_handler.
11348
11349 * macterm.c (reflect_byte): Remove function.
11350 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
11351 Lookup table instead.
11352 (mac_do_font_lists): Simplify calculation of the longest
11353 nonspecial string.
11354 (init_mac_drag_n_drop): Remove function and declaration.
11355 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
11356 init_mac_drag_n_drop.
11357 (mac_do_track_drag): New function and declaration.
11358 (install_window_handler): Return OSErr value.
11359 (install_window_handler) [TARGET_API_MAC_CARBON]:
11360 Register handlers for tracking/receiving drag-and-drop items.
11361 (do_ae_open_documents): Generate unibyte strings for filenames.
11362 (mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise.
11363 Reject only non-filename items. Set event modifiers, and return value.
11364
11365 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11366
11367 * coding.c (decode_coding): Fix previous change.
11368
11369 2004-12-28 Richard M. Stallman <rms@gnu.org>
11370
11371 * xdisp.c (back_to_previous_visible_line_start):
11372 Don't call handle_display_prop.
11373
11374 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11375
11376 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
11377 (decode_coding_emacs_mule, encode_coding_emacs_mule)
11378 (decode_coding_iso2022, encode_designation_at_bol)
11379 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
11380 (decode_coding): Constify arguments and local vars.
11381
11382 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11383
11384 * xmenu.c (popup_get_selection): Only pop down dialogs
11385 on C-g and Escape.
11386 (popup_get_selection): Remove parameter down_on_keypress.
11387 (create_and_show_popup_menu, create_and_show_dialog):
11388 Remove parameter down_on_keypress to popup_get_selection.
11389
11390 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11391
11392 * dispextern.h: Change HAVE_CARBON to MAC_OS.
11393 (struct glyph_string): Likewise.
11394
11395 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
11396 mac_initialize.
11397
11398 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
11399 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
11400
11401 * fns.c (vector): Change MAC_OSX to MAC_OS.
11402
11403 * frame.c (x_set_frame_parameters, x_report_frame_params)
11404 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
11405 (x_set_border_width, Vdefault_frame_scroll_bars):
11406 Change HAVE_CARBON to MAC_OS.
11407
11408 * image.c [MAC_OS]: Include sys/stat.h.
11409 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
11410 QuickTimeComponents.h.
11411
11412 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
11413 [!MAC_OSX] (select): Use mac_wait_next_event.
11414 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
11415 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
11416 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11417 (mac_clear_font_name_table): Add extern.
11418 (Fmac_clear_font_name_table): New defun.
11419 (syms_of_mac): Defsubr it.
11420 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
11421 [MAC_OSX] (select_and_poll_event): New function.
11422 [MAC_OSX] (sys_select): Use it.
11423 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
11424 [MAC_OSX && SELECT_USE_CFSOCKET]
11425 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
11426 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
11427 RunLoop for simultaneously monitoring two kinds of inputs, window
11428 events and process outputs, without periodically polling.
11429
11430 * macfns.c (mac_initialized): Remove extern.
11431 (stricmp): Put in #if 0. All callers changed to use xstricmp in
11432 xfaces.c.
11433 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
11434 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
11435 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
11436 (mac_get_rdb_resource): New function (from w32reg.c).
11437 (x_get_string_resource): Use it.
11438 (install_window_handler): Add extern.
11439 (mac_window): New function.
11440 (Fx_create_frame): Use it instead of make_mac_frame.
11441 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
11442 (Fx_open_connection, Fx_close_connection): New defuns.
11443 (syms_of_macfns): Defsubr them.
11444 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
11445 Add kWindowNoUpdatesAttribute to the window attribute.
11446 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
11447 (x_create_tip_frame): Don't call ShowWindow.
11448 (Fx_show_tip): Call ShowWindow.
11449 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
11450 TARGET_API_MAC_CARBON'.
11451 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
11452 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
11453
11454 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
11455 (Window): Typedef to WindowPtr and move outside `#if
11456 TARGET_API_MAC_CARBON'.
11457 (XSizeHints): New struct.
11458
11459 * macterm.c (x_update_begin, x_update_end)
11460 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
11461 frame.
11462 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11463 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
11464 (construct_mouse_click): Put in #if 0.
11465 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
11466 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
11467 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11468 (activate_scroll_bars, deactivate_scroll_bars)
11469 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
11470 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
11471 if the position is neither user-specified nor program-specified.
11472 (x_free_frame_resources): Free size_hints.
11473 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
11474 (mac_clear_font_name_table): New function.
11475 (mac_do_list_fonts): Initialize font_name_table if needed.
11476 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
11477 around mac_do_list_fonts.
11478 (mac_unload_font): New function.
11479 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
11480 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
11481 and definitions with #if TARGET_API_MAC_CARBON.
11482 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
11483 (install_window_handler): Add decl.
11484 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
11485 window. Use UpdateControls. Get the rectangle that should be
11486 updated and restrict the target of expose_frame to it.
11487 (do_grow_window): Set minimum height/width according to size_hints.
11488 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
11489 (do_zoom_window): Don't use x_set_window_size.
11490 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
11491 (install_window_handler): New function.
11492 [!USE_CARBON_EVENTS] (mouse_region): New variable.
11493 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
11494 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
11495 GetEventDispatcherTarget inside BLOCK_INPUT.
11496 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
11497 Update mouse_region when mouse is moved.
11498 (make_mac_frame): Remove.
11499 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
11500 Initialize mouse pointer shapes. Change values of f->left_pos and
11501 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
11502 Don't call ShowWindow.
11503 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
11504 Vinvocation_name and Vsystem_name.
11505 (mac_make_rdb): New function (from w32term.c).
11506 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
11507 already been opened. Don't pass argument to
11508 mac_initialize_display_info. Don't set dpyinfo->height/width.
11509 Add entries to x_display_list and x_display_name_list.
11510 (x_delete_display): New function.
11511 (mac_initialize): Don't call mac_initialize_display_info.
11512 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
11513
11514 * macterm.h (check_mac): Add extern.
11515 (struct mac_output): New member size_hints.
11516 (FRAME_SIZE_HINTS): New macro.
11517 (mac_unload_font): Add extern.
11518
11519 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
11520
11521 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
11522
11523 2004-12-27 Richard M. Stallman <rms@gnu.org>
11524
11525 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
11526 (syms_of_buffer): Don't defsubr it.
11527
11528 * process.c (list_processes_1): Set undo_list instead
11529 of calling Fbuffer_disable_undo.
11530
11531 * xdisp.c (single_display_spec_string_p): Rename from
11532 single_display_prop_string_p.
11533 (single_display_spec_intangible_p): Rename from
11534 single_display_prop_intangible_p.
11535 (handle_single_display_spec): Rename from handle_single_display_prop.
11536 Rewritten to be easier to understand.
11537
11538 Change in load-history format. Functions now get (defun . NAME),
11539 and variables get just NAME.
11540
11541 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11542
11543 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
11544 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
11545 (Qdefvar): Var deleted.
11546 (syms_of_eval): Don't initialze it.
11547
11548 * lread.c (syms_of_lread) <load-history>: Doc fix.
11549
11550 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11551
11552 * xmenu.c (popup_get_selection): Pop down on C-g.
11553 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
11554 pops down menu on C-g.
11555 (xdialog_show): If dialog popped down and no button in the dialog was
11556 pushed, call Fsignal to quit.
11557 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
11558 Fsignal to quit.
11559
11560 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
11561
11562 * gtkutil.c (xg_initialize): Install bindings for C-g so that
11563 dialogs and menus pop down.
11564
11565 2004-12-27 Kenichi Handa <handa@m17n.org>
11566
11567 * coding.c (code_convert_region): Fix calculation of `ratio'.
11568
11569 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11570
11571 * gtkutil.c (update_frame_tool_bar): Make the value of
11572 tool-bar-button-margin control margins of images in tool bar.
11573
11574 * alloc.c (check_depth): New variable.
11575 (overrun_check_malloc, overrun_check_realloc): Only add
11576 overhead and write check pattern if check_depth is 1 (to handle
11577 recursive calls). Increase/decrease check_depth in entry/exit.
11578 (overrun_check_free): Only check for overhead if check_depth is 1.
11579 Increase/decrease check_depth in entry/exit.
11580
11581 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11582
11583 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
11584 before touching input_available_clear_time, to avoid accessing it
11585 from multiple threads.
11586
11587 2004-12-23 Jason Rumney <jasonr@gnu.org>
11588
11589 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
11590 of JPEG library.
11591
11592 2004-12-22 Richard M. Stallman <rms@gnu.org>
11593
11594 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
11595
11596 * lisp.h (Vundo_outer_limit): Fix decl.
11597
11598 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
11599 Uses changed.
11600 (syms_of_undo): Initialize appropriately.
11601 (truncate_undo_list): If it's nil, there's no limit.
11602
11603 2004-12-22 Kenichi Handa <handa@m17n.org>
11604
11605 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
11606
11607 2004-12-21 Richard M. Stallman <rms@gnu.org>
11608
11609 * eval.c (unwind_to_catch): Clear immediate_quit.
11610
11611 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
11612 specially as `\ ' and `\-'.
11613
11614 * keyboard.c (kbd_buffer_store_event_hold):
11615 In the code for while-no-input, handle immediate_quit.
11616
11617 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
11618 Call that at the very start.
11619 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
11620 (syms_of_alloc): Don't define undo-limit,
11621 undo-strong-limit and undo-outer-limit here.
11622
11623 * undo.c (truncate_undo_list): Return void.
11624 Take just one argument, the buffer.
11625 Make it current, and inhibit recursive GC.
11626 Access and update the undo list directly; return void.
11627 Refer to the undo...limit variables directly.
11628 Test undo_outer_limit only after counting the whole current command.
11629 When it's exceeded, call the function in undo-outer-limit-function.
11630 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
11631 (Vundo_outer_limit_function): New variable.
11632 (syms_of_undo): Define undo-limit, undo-strong-limit
11633 and undo-outer-limit here, and undo-outer-limit-function.
11634 Doc fixes.
11635
11636 * lisp.h (truncate_undo_list): Update decl.
11637
11638 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
11639
11640 * fileio.c (Fread_file_name): Delete duplicates in
11641 file-name-history when history_delete_duplicates is true.
11642
11643 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11644
11645 * macterm.c (mac_do_list_fonts): Fix memory leak
11646
11647 2004-12-20 Richard M. Stallman <rms@gnu.org>
11648
11649 * regex.c (re_match_2_internal) <symend, wordend>:
11650 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
11651
11652 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11653
11654 * macterm.c (endif, x_font_name_to_mac_font_name):
11655 Use maccentraleurroman instead of maccentraleuropean
11656 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
11657 quickly finding a specific font without needing regexps.
11658
11659 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11660
11661 * syssignal.h: Declare main_thread.
11662 (SIGNAL_THREAD_CHECK): New macro.
11663
11664 * keyboard.c (input_available_signal): Move thread checking code
11665 to macro SIGNAL_THREAD_CHECK and call that macro.
11666 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
11667
11668 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
11669
11670 * emacs.c: Define main_thread.
11671 (main): Initialize main_thread.
11672 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
11673 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
11674
11675 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
11676
11677 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
11678
11679 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
11680
11681 * process.c (send_process_trap, sigchld_handler):
11682 Call SIGNAL_THREAD_CHECK.
11683
11684 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
11685
11686 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
11687
11688 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
11689 returning when xg_ignore_gtk_scrollbar is true.
11690
11691 2004-12-14 Kim F. Storm <storm@cua.dk>
11692
11693 * keyboard.c (read_char): Save and restore echo_string when
11694 handling input method.
11695
11696 2004-12-13 Richard M. Stallman <rms@gnu.org>
11697
11698 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
11699
11700 * keyboard.c (Vthrow_on_input): New variable.
11701 (syms_of_keyboard): Defvar and initialize it.
11702 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
11703
11704 * lisp.h (QUIT): Check for Vthrow_on_input.
11705 (Vthrow_on_input): Declare it.
11706
11707 2004-12-13 Kim F. Storm <storm@cua.dk>
11708
11709 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
11710 vector.
11711
11712 2004-12-12 Richard M. Stallman <rms@gnu.org>
11713
11714 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
11715
11716 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
11717 (Ftry_completion): Really use outer `zero'; eliminate inner one.
11718
11719 2004-12-12 Kenichi Handa <handa@m17n.org>
11720
11721 * term.c (encode_terminal_code): Fix previous change.
11722
11723 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
11724
11725 * keyboard.c (handle_async_input): Remove pthread mutex handling.
11726 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
11727
11728 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
11729 in macro arguments.
11730
11731 * minibuf.c (Ftry_completion, Fall_completions): Don't use
11732 XFASTINT blindly.
11733
11734 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
11735
11736 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11737
11738 * w32term.c (x_calc_absolute_position): Remove calculation of
11739 difference between inner and outer window. Don't subtract difference
11740 for left and top calculations.
11741
11742 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
11743 for left and top calculations. Remove call to x_real_positions.
11744 [Bug report by Drew Adams in November.]
11745 (x_check_expected_move): Do not set change_gravity to 1 when calling
11746 x_set_offset.
11747
11748 2004-12-08 Richard M. Stallman <rms@gnu.org>
11749
11750 * xdisp.c (get_next_display_element): Use `escape-glyph' for
11751 control chars and escaped octal codes.
11752 (Qescape_glyph): New variable.
11753 (syms_of_xdisp): Initialize it.
11754 (escape_glyph_face): New variable.
11755 (redisplay_window): Initialize it.
11756
11757 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
11758
11759 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
11760 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
11761
11762 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11763
11764 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
11765 reset_malloc_hooks.
11766
11767 * keyboard.c (handle_async_input, input_available_signal):
11768 Add ! defined (SYSTEM_MALLOC) around thread code.
11769
11770 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
11771
11772 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
11773
11774 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
11775
11776 * config.in: Regenerate.
11777
11778 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11779
11780 * xmenu.c (Fx_popup_menu): Correct documentation about position.
11781 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
11782 if not given by a mouse click to correspond with x-popup-menu
11783 documentation.
11784
11785 * config.in: Regenerate.
11786
11787 * gtkutil.c: Include signal.h and syssignal.h.
11788 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
11789
11790 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
11791 new variables main_thread and alloc_mutex,
11792 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
11793 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
11794 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
11795 as (UN)BLOCK_INPUT.
11796 (emacs_blocked_free, emacs_blocked_malloc)
11797 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
11798 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
11799 (reset_malloc_hooks): New function.
11800
11801 * lisp.h: Declare reset_malloc_hooks.
11802
11803 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
11804
11805 * keyboard.c: Conditionally include pthread.h.
11806 (handle_async_input, input_available_signalt): If not in the main
11807 thread, block signal, send signal to main thread and return.
11808
11809 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
11810 Set current folder in file chooser if default_filename is a directory.
11811
11812 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
11813
11814 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
11815 Remove redundant correctness checks.
11816 (regex_compile): Fix up error codes for \{..\} expressions.
11817
11818 2004-12-05 Richard M. Stallman <rms@gnu.org>
11819
11820 * regex.c (regex_compile): Fix end-of-pattern case for space.
11821
11822 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11823
11824 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
11825 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
11826 crashes with invalid characters.
11827 * macmenu.c (add_menu_item): Use it.
11828 * image.c (image_load_quartz2d): Likewise.
11829 * macfns.c (x_set_name, x_set_title): Likewise.
11830 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
11831 creating them each time for labels.
11832
11833 2004-12-02 Richard M. Stallman <rms@gnu.org>
11834
11835 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
11836 don't use it here.
11837
11838 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
11839 (interactive_p): Skip Scalled_interactively_p frames
11840 like Sinteractive_p frames.
11841 (unwind_to_catch): Clear handling_signal.
11842
11843 * data.c (Fmake_variable_buffer_local): Doc fix.
11844 (Fmake_local_variable): Doc fix.
11845
11846 * insdel.c (insert_from_string_before_markers)
11847 (insert_from_string): Don't modify buffer on empty insertion.
11848
11849 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
11850
11851 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11852
11853 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
11854 menu text as UTF8 fails.
11855
11856 2004-12-01 Kim F. Storm <storm@cua.dk>
11857
11858 * alloc.c: Add commentary for last change.
11859 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
11860 sizeof(size_t) != 4.
11861 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
11862 Use them. Also clear header and trailer of freed memory.
11863 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
11864 (string_overrun_cookie): Rename from string_overrun_pattern.
11865 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
11866
11867 2004-12-01 Andreas Schwab <schwab@suse.de>
11868
11869 * lisp.h: Declare string_to_multibyte.
11870
11871 2004-12-01 Kenichi Handa <handa@m17n.org>
11872
11873 * w32console.c (w32con_write_glyphs): Decide coding here.
11874 Adjusted for the change of encode_terminal_code.
11875
11876 * term.c (encode_terminal_code): Don't make it "static".
11877
11878 2004-11-30 Kenichi Handa <handa@m17n.org>
11879
11880 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
11881 (encode_terminal_code): Argument changed. Encode all
11882 characters at once, and return a pointer to the result of encoding.
11883 (write_glyphs): Decide coding here. Adjusted for the above change.
11884 (insert_glyphs): Likewise.
11885 (term_init): Initialize encode_terminal_bufsize to 0.
11886
11887 * coding.c (Vcode_conversion_workbuf_name): New variable.
11888 (syms_of_coding): Initialize and staticpro it.
11889 (set_conversion_work_buffer): New function.
11890 (run_pre_post_conversion_on_str): Use it.
11891 (run_pre_write_conversin_on_c_str): New function.
11892
11893 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
11894
11895 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11896
11897 * keyboard.c: Don't undef SIGIO
11898 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
11899 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
11900 (macfns.o): Don't depend on ccl.h.
11901 * macfns.c (mac_frame_parm_handlers): Set handlers for
11902 Qleft_fringe and Qright_fringe.
11903 * macterm.c (mac_fill_rectangle_to_pixmap)
11904 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
11905 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
11906 Put in #if 0.
11907 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
11908 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
11909 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
11910 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11911 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
11912 XDrawImageString. Always draw background and foreground separately.
11913 (x_draw_image_foreground): Use clipping instead of computing the
11914 intersection rectangle.
11915 (x_draw_image_glyph_string): Don't draw an image with mask to a
11916 pixmap.
11917 (x_redisplay_interface): Set flush_display_optional member to 0.
11918 (XTread_socket): Correctly reset the TEConverter
11919 object.
11920
11921 2004-11-30 Kim F. Storm <storm@cua.dk>
11922
11923 * lisp.h: New defines to enable buffer overrun checking.
11924 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
11925 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
11926
11927 * alloc.c: Add more checks for buffer overruns.
11928 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
11929 xmalloc_overrun_check_trailer, overrun_check_malloc)
11930 overrun_check_realloc, overrun_check_free): Add.
11931 (GC_STRING_EXTRA, string_overrun_pattern): Add.
11932 (check_sblock, allocate_string_data, compact_small_strings):
11933 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
11934 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
11935 (check_string_free_list): Add.
11936 (allocate_string, sweep_strings): Call check_string_free_list.
11937
11938 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
11939 XMALLOC_OVERRUN_CHECK to avoid crash during load.
11940
11941 2004-11-29 Kim F. Storm <storm@cua.dk>
11942
11943 * fns.c (concat): Use SAFE_ALLOCA.
11944
11945 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
11946
11947 * sysdep.c (emacs_write): Don't use QUIT.
11948
11949 2004-11-29 Kenichi Handa <handa@m17n.org>
11950
11951 * buffer.c (init_buffer): Set current_buffer->directory to a
11952 multibyte string made by string_to_multibyte.
11953
11954 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
11955
11956 2004-11-27 Andreas Schwab <schwab@suse.de>
11957
11958 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
11959
11960 * s/gnu-linux.h: Enable no-op gcpros on ia64.
11961 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
11962
11963 * filelock.c (lock_file_1): Call get_boot_time early.
11964 Increase buffer size.
11965
11966 2004-11-27 Eli Zaretskii <eliz@gnu.org>
11967
11968 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
11969 is not defined.
11970
11971 2004-11-27 Kim F. Storm <storm@cua.dk>
11972
11973 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
11974 marker out of doc string.
11975
11976 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
11977
11978 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
11979 which was not mentioned in the log.
11980
11981 2004-11-26 Kim F. Storm <storm@cua.dk>
11982
11983 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
11984 angle bitmaps at top/bottom line.
11985
11986 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
11987 set it when it->method is set to next_element_from_display_vector.
11988 (setup_for_ellipsis): Add LEN argument. Callers changed.
11989 Set it->saved_face_id.
11990 (get_next_display_element): Use loop instead of recursion.
11991 Set it->saved_face_id. Combine duplicate code for ctr chars.
11992 (next_element_from_display_vector): Do not set it->saved_face_id.
11993 (next_element_from_ellipsis): Use setup_for_ellipsis.
11994
11995 2004-11-26 Eli Zaretskii <eliz@gnu.org>
11996
11997 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
11998 prevent compiler warnings.
11999
12000 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
12001
12002 * keyboard.c (command_loop_1): Print a message describing the key
12003 the user just pressed when this key has no binding.
12004
12005 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
12006 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
12007
12008 * lread.c (readchar): Check QUIT when `getc' is interrupted.
12009
12010 2004-11-24 Richard M. Stallman <rms@gnu.org>
12011
12012 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
12013
12014 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
12015
12016 2004-11-24 Kim F. Storm <storm@cua.dk>
12017
12018 * xdisp.c (move_it_in_display_line_to, display_line):
12019 Restore saved_face_id also when truncate-lines or hscrolled.
12020
12021 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12022
12023 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
12024 x-use-old-gtk-file-dialog.
12025
12026 * xfns.c: Define x_use_old_gtk_file_dialog.
12027 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
12028 outside ifdef USE_GTK.
12029
12030 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
12031
12032 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
12033 Don't use XFASTINT blindly.
12034
12035 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
12036
12037 * indent.c (skip_invisible): Avoid non-idempotent side-effects
12038 in macro arguments.
12039
12040 * keymap.c (Flookup_key): Check INTEGERP before XINT.
12041
12042 * lread.c (oblookup): Don't use XFASTINT blindly.
12043
12044 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
12045 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
12046
12047 2004-11-23 Kim F. Storm <storm@cua.dk>
12048
12049 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
12050 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
12051
12052 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
12053 signal_p is zero and face name is unknown.
12054 (Fx_list_fonts): Don't signal error in lookup_named_face.
12055 (Fface_font): Signal error in lookup_named_face.
12056 (ascii_face_of_lisp_face): Likewise.
12057
12058 * dispextern.h (lookup_named_face): Fix prototype.
12059
12060 * xdisp.c (handle_single_display_prop): Don't signal error in
12061 lookup_named_face for unknown fringe face name.
12062 (highlight_trailing_whitespace): Don't signal error in
12063 lookup_named_face if trailing-whitespace face unknown.
12064 (calc_line_height_property): Don't signal error in
12065 lookup_named_face if specified face name is unknown.
12066
12067 * fringe.c (update_window_fringes): Show top row indicator if
12068 window has header-line. Don't show arrow at bob and eob
12069 if the boundary indicators are not used.
12070 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
12071
12072 * window.c (set_window_buffer): Clear display_error_modiff.
12073
12074 2004-11-22 Kim F. Storm <storm@cua.dk>
12075
12076 * fringe.c (update_window_fringes): Provide sensible fall-back
12077 value for non-nil indicate-buffer-boundaries setting.
12078
12079 2004-11-22 Markus Rost <rost@ias.edu>
12080
12081 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
12082
12083 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
12084
12085 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
12086
12087 2004-11-21 Kim F. Storm <storm@cua.dk>
12088
12089 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
12090
12091 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
12092 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12093
12094 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
12095 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12096
12097 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
12098 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12099
12100 * xdisp.c (move_it_in_display_line_to, display_line):
12101 Restore saved_face_id if overflow-newline-into-fringe is enabled and
12102 line is continued before or in middle of element from display vector.
12103
12104 * indent.c (Fvertical_motion): Fix last change. Use another
12105 method to detect if iterator moved too far ahead after reseat.
12106
12107 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
12108 expand matrix width for overflow in zero-width area.
12109 (append_glyph, append_composite_glyph, produce_image_glyph)
12110 (append_stretch_glyph): Use it to avoid loop in redisplay.
12111 (note_mode_line_or_margin_highlight): Don't let help-echo from
12112 string override help-echo from image map.
12113
12114 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
12115
12116 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
12117 * callint.c (Fcall_interactively): Ditto.
12118
12119 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
12120
12121 * minibuf.c (Fminibuffer_complete_and_exit):
12122 Fixup the case of the completed value, for case-indep completion.
12123
12124 2004-11-20 Richard M. Stallman <rms@gnu.org>
12125
12126 * lisp.h (Fread_from_minibuffer): Add arg in decl.
12127
12128 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
12129 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
12130
12131 * search.c (Vsearch_spaces_regexp):
12132 Rename from Vsearch_whitespace_regexp. All uses changed.
12133
12134 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
12135
12136 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
12137
12138 2004-11-19 Richard M. Stallman <rms@gnu.org>
12139
12140 * search.c (Vsearch_whitespace_regexp): New variable.
12141 (syms_of_search): Defvar it.
12142 (compile_pattern_1): Call re_set_whitespace_regexp with it.
12143 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
12144 is non-nil.
12145 (struct regexp_cache): New element whitespace_regexp.
12146 (syms_of_search): Initialize whitespace_regexp elements.
12147 (compile_pattern): Compare whitespace_regexp elements.
12148 (compile_pattern_1): Set whitespace_regexp elements.
12149
12150 * regex.c (regex_compile): Substitute whitespace_regexp
12151 for spaces, if it is nonzero.
12152 (whitespace_regexp): New variable.
12153 (re_set_whitespace_regexp): New function.
12154
12155 2004-11-19 Kim F. Storm <storm@cua.dk>
12156
12157 * indent.c (Fvertical_motion): Fix last change.
12158
12159 2004-11-18 Kim F. Storm <storm@cua.dk>
12160
12161 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
12162 Instead, move back again if reseating moves too far ahead.
12163
12164 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
12165
12166 * xdisp.c (message3): Call clear_message.
12167
12168 2004-11-17 Kim F. Storm <storm@cua.dk>
12169
12170 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
12171
12172 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12173
12174 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
12175
12176 * xmenu.c (x_menu_in_use): Remove.
12177 (x_menu_set_in_use): Also set popup_activated_flag.
12178
12179 * xfns.c (Fx_file_dialog): Call popup_activated instead of
12180 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
12181
12182 * xterm.h (x_menu_in_use): Remove.
12183
12184 2004-11-16 Richard M. Stallman <rms@gnu.org>
12185
12186 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
12187 Use map-keymap-internal to implement that.
12188
12189 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
12190
12191 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
12192
12193 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
12194 a window before using XWINDOW.
12195
12196 * window.c (make_window, Fselect_window, make_dummy_parent)
12197 (save_window_save):
12198 * frame.c (make_frame):
12199 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
12200
12201 * lisp.h (NILP): Use EQ rather than XFASTINT.
12202
12203 2004-11-16 Kim F. Storm <storm@cua.dk>
12204
12205 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
12206
12207 * indent.c (Fvertical_motion): Fix last change. Only reseat when
12208 moving backwards.
12209
12210 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
12211
12212 * dispextern.h: Extern reseat_at_previous_visible_line_start.
12213
12214 2004-11-16 Kenichi Handa <handa@m17n.org>
12215
12216 * xdisp.c (display_mode_element): Fix previous change (calculate
12217 end position of substring to display correctly).
12218
12219 2004-11-16 Kim F. Storm <storm@cua.dk>
12220
12221 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
12222 Reported by Andrew M. Scott.
12223
12224 2004-11-15 Kim F. Storm <storm@cua.dk>
12225
12226 * fns.c (Fsafe_plist_get): New defun.
12227 (syms_of_fns): Defsubr it.
12228
12229 * lisp.h (Fsafe_plist_get): Add EXFUN.
12230
12231 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
12232 Use Fsafe_plist_get.
12233 (note_mode_line_or_margin_highlight, note_mouse_highlight):
12234 Fix image map element parsing. Use Fsafe_plist_get.
12235
12236 2004-11-15 Richard M. Stallman <rms@gnu.org>
12237
12238 * xdisp.c (get_next_display_element): Fix previous change.
12239
12240 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12241
12242 * window.c (shrink_windows): Handle special case of one window left
12243 when trying to shrink the final reminder. Grow windows if
12244 total_removed is less than total_shrink.
12245
12246 * xmenu.c (pop_down_menu): Remove global variable current_menu,
12247 extract pointer from arg with XSAVE_VALUE.
12248 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
12249 Construct arg to record_unwind_protect with make_save_value.
12250
12251 2004-11-13 Richard M. Stallman <rms@gnu.org>
12252
12253 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
12254 (get_next_display_element): Fix previous change to apply only to \n.
12255
12256 * indent.c (Fvertical_motion): Scan to PT from start of line to
12257 make iterator consistent.
12258
12259 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
12260
12261 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12262
12263 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
12264
12265 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
12266 Record unwind with clean_up_file_dialog.
12267
12268 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
12269 Declare.
12270
12271 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
12272
12273 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12274
12275 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
12276 (xg_file_sel_destroy): Remove.
12277 (xg_file_response_cb, pop_down_file_dialog)
12278 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
12279 New functions.
12280 (xg_get_file_with_chooser, xg_get_file_with_selection):
12281 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
12282 Move common code to xg_get_file_name. Return widget created.
12283 (xg_get_file_name): Set name, transient for, modal and destroy
12284 with parent here. Connect response signal to xg_file_response_cb,
12285 connect delete-event to gtk_true. Record pop_down_file_dialog
12286 for unwind. Do event loop and call x_menu_wait_for_event in loop.
12287 (xg_create_widget): Make dialogs modal.
12288
12289 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
12290 Lisp_Object.
12291 (popup_get_selection): Move unwind protect ...
12292 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
12293 Move destroy of widget to pop_down_menu.
12294 (popup_widget_loop): Move unwind protect ...
12295 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
12296 Move destroy of widget to pop_down_menu.
12297 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
12298 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
12299 x_mouse_leave and grabbed = 0 to pop_down_menu.
12300
12301 2004-11-13 Kim F. Storm <storm@cua.dk>
12302
12303 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
12304 (syms_of_xdisp): DEFVAR_BOOL it.
12305 (make_cursor_line_fully_visible, try_cursor_movement)
12306 (try_window_id): Use it.
12307
12308 2004-11-12 Kim F. Storm <storm@cua.dk>
12309
12310 * dispextern.h (struct glyph_row): New member extra_line_spacing.
12311 (struct it): New member max_extra_line_spacing.
12312 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
12313 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
12314 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
12315 part of last line is only extra line spacing (so the text on the
12316 line is fully visible). Use helper macros.
12317 Add W arg (to use them). All callers changed.
12318 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
12319 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
12320
12321 * window.c (window_scroll_pixel_based, Frecenter):
12322 Use move_it_vertically_backward directly.
12323 (Frecenter): Fix calculation of new start pos for negative arg.
12324 Before, the new start pos was sometimes chosen too far back, so
12325 the last line became only partially visible, and thus would be
12326 either only semi-visible or automatically scrolled to the middle
12327 of the window by redisplay.
12328
12329 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
12330 (move_it_vertically_backward): Don't recure to move further back.
12331 (move_it_vertically): Remove superfluous condition.
12332 (move_it_by_lines): Clear last_height when moved 0 lines.
12333 (resize_mini_window): Use it.max_extra_line_spacing.
12334 (display_tool_bar_line): Clear row->extra_line_spacing.
12335 (try_scrolling): Use move_it_vertically_backward directly.
12336 (redisplay_window): Likewise.
12337 (compute_line_metrics): Set row->extra_line_spacing.
12338 (display_line, display_string): Likewise.
12339 (x_produce_glyphs): Update it->max_extra_line_spacing.
12340
12341 * xmenu.c (pop_down_menu): Return nil.
12342
12343 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12344
12345 * xmenu.c (x_menu_wait_for_event): New function.
12346 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
12347 to handle timers.
12348 (popup_widget_loop): Add argument do_timers.
12349 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
12350 do_timers to popup_widget_loop.
12351 (xmenu_show): Call XMenuActivateSetWaitFunction so that
12352 x_menu_wait_for_event is called by XMenuActivate.
12353 (create_and_show_popup_menu): Pass 1 for do_timers to
12354 popup_get_selection.
12355 (pop_down_menu): New function.
12356 (popup_get_selection, popup_widget_loop): Unwind protect to
12357 pop_down_menu.
12358 (popup_widget_loop): Add argument widget.
12359 (create_and_show_popup_menu, create_and_show_dialog): Pass new
12360 argument widget to popup_widget_loop.
12361
12362 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
12365
12366 2004-11-09 Kim F. Storm <storm@cua.dk>
12367
12368 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
12369 Fix various comments referring to XEvents instead of input events.
12370 (x_queue_event): Fix format strings.
12371 (x_stop_queuing_selection_requests): Likewise.
12372
12373 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
12374 (pint2hrstr): Add extra braces to silence compiler.
12375
12376 * print.c (print_object): Fix format string.
12377
12378 * lread.c (read1): Fix next_char matching.
12379
12380 * lisp.h (Fdelete): Add EXFUN.
12381 (replace_range_2): Add prototype.
12382
12383 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
12384
12385 * intervals.h (NULL_INTERVAL_P): Add separate version when
12386 ENABLE_CHECKING is not defined to silence compiler.
12387 (compare_string_intervals): Add prototype.
12388
12389 * fringe.c (destroy_fringe_bitmap): Fix return type.
12390 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
12391
12392 * emacs.c (Fdump_emacs): Fix format string.
12393
12394 * doc.c: Include <ctype.h>.
12395 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
12396
12397 * data.c (store_symval_forwarding): Remove unused variables.
12398
12399 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
12400
12401 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12402
12403 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
12404 to ${OLDXMENU}.
12405
12406 2004-11-09 Kim F. Storm <storm@cua.dk>
12407
12408 * process.c (Fmake_network_process): Remove kludge for interrupted
12409 connects on BSD. If connect is interrupted, just close socket and
12410 start over rather than sleeping and retry with same socket.
12411
12412 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12413
12414 * .cvsignore: Add buildobj.lst.
12415
12416 * doc.c: New variable Vbuild_files.
12417 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
12418 file names from buildobj.lst. Only attach docstrings from files
12419 that are in Vbuild_files.
12420 (syms_of_doc): Defvar Vbuild_files.
12421
12422 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
12423 and w32*.o.
12424 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
12425 (mostlyclean): Rm buildobj.lst
12426
12427 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
12428 is linked.
12429
12430 2004-11-09 Kim F. Storm <storm@cua.dk>
12431
12432 * fringe.c (update_window_fringes): Update fringe bitmaps if
12433 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
12434 also update previous row to get rid of misc. artifacts.
12435
12436 2004-11-08 Kim F. Storm <storm@cua.dk>
12437
12438 * xdisp.c (fast_find_position): Fix start pos if header line present.
12439 (note_mouse_highlight): Clear mouse face if we move out of text area.
12440
12441 2004-11-08 Eli Zaretskii <eliz@gnu.org>
12442
12443 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
12444 Don't include <sys/time.h> explicitly.
12445 Include <stdio.h> unconditionally, not just on MacOS.
12446
12447 2004-11-08 Kenichi Handa <handa@m17n.org>
12448
12449 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
12450 don't pay attention to '\' before '*'.
12451 (fontset_pattern_regexp): Change the meaning of the second arg.
12452 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
12453 (check_fontset_name): Try NAME as literal at first, and if it
12454 failes, try NAME as pattern.
12455
12456 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12457
12458 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
12459
12460 2004-11-07 Andreas Schwab <schwab@suse.de>
12461
12462 * lisp.h (Fmsdos_downcase_filename): Declare.
12463 * dired.c (Fmsdos_downcase_filename): Don't declare here.
12464 * fileio.c: Likewise.
12465
12466 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12467
12468 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
12469 comparisons with integers instead of Lisp_Object address.
12470 (Fmsdos_set_keyboard): Declare argument allkeys.
12471
12472 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
12473
12474 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
12475 int/Lisp_Object mixup.
12476
12477 * fileio.c: Ditto.
12478
12479 2004-11-06 Steven Tamm <steventamm@mac.com>
12480
12481 * editfns.c: Need to include sys/time.h before resource.h on darwin.
12482
12483 2004-11-06 Richard M. Stallman <rms@gnu.org>
12484
12485 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
12486
12487 * xfaces.c (merge_named_face): GCPRO the face_name in the
12488 named_merge_point struct that we make.
12489 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
12490
12491 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
12492 before deciding whether to inactivate mark.
12493
12494 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
12495
12496 * config.in: Regenerate (add HAVE_GETRUSAGE).
12497 * editfns.c (Fget_internal_run_time): New function.
12498 (syms_of_data): Defsubr it.
12499 * fns.c (sxhash): As far as possible, merge calculation of
12500 hash code for symbols and strings.
12501
12502 2004-11-06 Eli Zaretskii <eliz@gnu.org>
12503
12504 * frame.c (syms_of_frame): Fix the example in the doc string.
12505
12506 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12507
12508 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
12509
12510 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
12511 (create_and_show_dialog): Revert change from 2004-10-31.
12512
12513 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
12514
12515 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
12516
12517 2004-11-05 Kim F. Storm <storm@cua.dk>
12518
12519 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
12520
12521 * fileio.c (Ffile_modes): Doc fix.
12522 (auto_save_1): Check for Ffile_modes nil value.
12523
12524 2004-11-05 Kim F. Storm <storm@cua.dk>
12525
12526 * xselect.c (struct selection_event_queue, selection_queue)
12527 (x_queue_selection_requests, x_queue_event)
12528 (x_start_queuing_selection_requests)
12529 (x_stop_queuing_selection_requests): Add new queue for selection
12530 input events to replace previous XEvent queue in xterm.c.
12531 (queue_selection_requests_unwind): Adapt to new queue.
12532 (x_reply_selection_request): Adapt to new queue.
12533 Unexpect wait_object in case of x errors (memory leak).
12534 (x_handle_selection_request, x_handle_selection_clear): Make static.
12535 (x_handle_selection_event): New function. May queue selection events.
12536 (wait_for_property_change_unwind): Use save_value instead of cons.
12537 Clear property_change_reply_object.
12538 (wait_for_property_change): Abort if already waiting.
12539 Use save_value instead of cons for unwind data.
12540 (x_handle_property_notify): Skip events already arrived, but don't
12541 free them, as "arrived" field is checked by wait_for_property_change,
12542 and it will be freed by unwind or explicit unexpect_property_change.
12543 (x_get_foreign_selection): Add to new queue.
12544 (receive_incremental_selection): Don't unexpect wait_object when done
12545 as it has already been freed by previous wait_for_property_change.
12546
12547 * xterm.h (x_start_queuing_selection_requests)
12548 (x_stop_queuing_selection_requests, x_handle_selection_request)
12549 (x_handle_selection_clear): Remove prototypes.
12550 (x_handle_selection_event): Add prototype.
12551
12552 * xterm.c (handle_one_xevent): Don't queue X selection events
12553 here, it may be too late if we start queuing after we have already
12554 stored some selection events into the kbd buffer.
12555 (struct selection_event_queue, queue, x_queue_selection_requests)
12556 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
12557 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
12558 (x_catch_errors_unwind): Block input around final XSync.
12559
12560 * keyboard.h (kbd_buffer_unget_event): Add prototype.
12561
12562 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
12563 (kbd_buffer_unget_event): New function.
12564 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
12565 and use x_handle_selection_event.
12566 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
12567
12568 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12569
12570 * xselect.c (TRACE3): New debug macro.
12571 (x_reply_selection_request): Use it.
12572 (receive_incremental_selection): In call to TRACE0, the name of
12573 a symbol is in xname.
12574
12575 2004-11-05 Kim F. Storm <storm@cua.dk>
12576
12577 * fontset.c (fontset_pattern_regexp): Use unsigned char.
12578
12579 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12580
12581 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
12582
12583 * gtkutil.h (use_old_gtk_file_dialog): Declare.
12584
12585 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
12586 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
12587 * xfns.c (syms_of_xfns): ... to here.
12588
12589 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
12590 it doesn't start with /.
12591
12592 2004-11-04 Kenichi Handa <handa@m17n.org>
12593
12594 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
12595 treat it as a literal character.
12596
12597 2004-11-03 Kim F. Storm <storm@cua.dk>
12598
12599 * .gdbinit (ppt): New function.
12600
12601 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12602
12603 * xterm.c (x_window_to_scroll_bar): Only call
12604 xg_get_scroll_id_for_window if toolkit scroll bars are used.
12605
12606 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
12607 of save.
12608
12609 2004-11-02 Andreas Schwab <schwab@suse.de>
12610
12611 * window.c (Fscroll_right): Fix last change.
12612
12613 2004-11-02 Kim F. Storm <storm@cua.dk>
12614
12615 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
12616
12617 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12618
12619 * callproc.c (Fcall_process): Block input around vfork.
12620
12621 2004-11-02 Kim F. Storm <storm@cua.dk>
12622
12623 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
12624 (syms_of_eval): Defsubr it.
12625
12626 2004-11-02 Richard M. Stallman <rms@gnu.org>
12627
12628 * insdel.c (replace_range_2): New function.
12629
12630 * casefiddle.c (casify_region): Handle changes in byte-length
12631 using replace_range_2.
12632
12633 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
12634
12635 * xdisp.c (back_to_previous_visible_line_start):
12636 Subtract 1 from pos when checking previous newline for invisibility.
12637
12638 * window.c (window_scroll_pixel_based): Update preserve_y
12639 for header line if any.
12640 (Fscroll_left, Fscroll_right): Don't call interactive_p;
12641 use a new second argument instead.
12642
12643 * eval.c (Fcall_interactive_p): New function.
12644 (interactive_p): Don't test INTERACTIVE here.
12645 (Finteractive_p): Doc fix.
12646
12647 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
12648
12649 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12650
12651 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
12652 comparing font names.
12653
12654 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12655
12656 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
12657 Fx_file_dialog if only directories should be read.
12658
12659 * lisp.h: Fx_file_dialog takes 5 parameters.
12660
12661 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
12662 Add parameter only_dir_p.
12663 In Motif version, don't put DEFAULT_FILENAME in filter part of the
12664 dialog, just text field part. Do not add DEFAULT_FILENAME
12665 to list of files if it isn't there.
12666 In GTK version, pass only_dir_p parameter to xg_get_file_name.
12667
12668 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
12669 Check only_dir_p instead of comparing prompt to "Dired". When using
12670 a save dialog, add option kNavDontConfirmReplacement, change title
12671 to "Enter name", change text for save button to "Ok".
12672
12673 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
12674 Check only_dir_p instead of comparing prompt to "Dired".
12675
12676 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
12677 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
12678 and HAVE_GTK_FILE_SELECTION_NEW respectively.
12679 (xg_get_file_name): Add parameter only_dir_p.
12680 Call xg_get_file_with_chooser or xg_get_file_with_selection
12681 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
12682 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
12683
12684 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
12685
12686 * config.in: Rebuild (added HAVE_GTK_FILE_*).
12687
12688 2004-11-01 Kim F. Storm <storm@cua.dk>
12689
12690 * process.c (connect_wait_mask, num_pending_connects):
12691 Only declare and use them if NON_BLOCKING_CONNECT is defined.
12692 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
12693 (IF_NON_BLOCKING_CONNECT): New helper macro.
12694 (wait_reading_process_output): Only declare and use local vars
12695 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
12696
12697 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
12698
12699 * w32term.c (x_scroll_run): Delete region objects after use.
12700
12701 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12702
12703 * xmenu.c: Add prototypes for forward function declarations.
12704 (popup_get_selection): Remove parameter do_timers, remove call to
12705 timer_check.
12706 (create_and_show_popup_menu, create_and_show_dialog):
12707 Remove parameter do_timers from call to popup_get_selection.
12708
12709 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
12710 tool_bar_items and assign the result to f->tool_bar_items if
12711 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
12712 tool_bar_items to assignment of result.
12713
12714 * atimer.c (alarm_signal_handler): Do not call set_alarm if
12715 pending_atimers is non-zero.
12716
12717 2004-10-31 Kim F. Storm <storm@cua.dk>
12718
12719 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
12720
12721 2004-10-28 Will <will@glozer.net>
12722
12723 * macterm.c: Allow user to assign key modifiers to the Mac Option
12724 key via a 'mac-option-modifier' variable.
12725
12726 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
12729 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
12730 (x_handle_selection_request, x_handle_selection_clear)
12731 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
12732
12733 2004-10-28 Richard M. Stallman <rms@gnu.org>
12734
12735 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12736
12737 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
12738
12739 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
12740
12741 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
12742 comment-starter over a 1-char one.
12743
12744 2004-10-27 Richard M. Stallman <rms@gnu.org>
12745
12746 * xdisp.c (get_next_display_element): In mode lines,
12747 treat newline and tab like other control characters.
12748
12749 * editfns.c (Fmessage): Doc fix.
12750
12751 * indent.c (vmotion): When moving up, check the newline before.
12752 Make prevline an int, not a Lisp_Object.
12753
12754 2004-10-27 Kim F. Storm <storm@cua.dk>
12755
12756 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
12757 Only allocate info and discarded tables once.
12758
12759 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
12760 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
12761 (SAFE_FREE): Test it to determine if we need to unwind to free.
12762 Remove size arg. All users changed.
12763 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
12764
12765 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12766
12767 * gtkutil.c: Put empty line between comment and function body.
12768 (xg_destroy_widgets): Rename from remove_from_container.
12769 Just destroy all widgets in list. Argument wcont removed.
12770 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
12771 instead of remove_from_container.
12772 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
12773 (free_frame_tool_bar): Add comment.
12774
12775 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
12776 is not NULL before strcmp.
12777
12778 2004-10-26 Kim F. Storm <storm@cua.dk>
12779
12780 * callint.c (Fcall_interactively): Add 'U' code to get the
12781 up-event discarded by a previous 'k' or 'K' argument.
12782
12783 2004-10-26 David Kastrup <dak@gnu.org>
12784
12785 * buffer.c (syms_of_buffer): Fix a few typos.
12786
12787 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12788
12789 * xsmfns.c: Put empty line between comment and function body.
12790 Use two spaces before comment end.
12791
12792 2004-10-25 Kenichi Handa <handa@m17n.org>
12793
12794 * fontset.c (fontset_pattern_regexp): Optimize for the case that
12795 PATTERN is full XLFD.
12796
12797 2004-10-24 Kenichi Handa <handa@m17n.org>
12798
12799 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
12800
12801 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
12802 (regex_compile): Return REG_ERANGEX if appropriate.
12803
12804 2004-10-22 Kenichi Handa <handa@m17n.org>
12805
12806 * editfns.c (Ftranslate_region_internal): New function.
12807 (syms_of_editfns): Defsubr it.
12808
12809 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12810
12811 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
12812
12813 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
12814
12815 * xterm.h (x_output): New member `xic_base_fontname'.
12816 (FRAME_XIC_BASE_FONTNAME): New macro.
12817 (xic_free_xfontset): Declare.
12818
12819 * xfns.c (xic_create_xfontset): Share fontsets between frames
12820 based on base_fontname.
12821 (xic_free_xfontset): New function.
12822 (free_frame_xic): Use it.
12823 (xic_set_xfontset): Ditto.
12824
12825 * xterm.c (xim_destroy_callback): Ditto.
12826
12827 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
12828
12829 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
12830
12831 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12832
12833 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
12834 XSync.
12835
12836 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
12837 New variables and constant.
12838 (main): Calculate heap_bss_diff. If we are dumping and the
12839 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
12840 and exec ourself again.
12841 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
12842 print a warning.
12843
12844 * lastfile.c: Make my_endbss and my_endbss_static available on all
12845 platforms.
12846
12847 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
12848 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
12849
12850 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
12851
12852 * data.c (Flocal_variable_if_set_p): Doc fix.
12853
12854 2004-10-19 Jason Rumney <jasonr@gnu.org>
12855
12856 * w32.c (init_environment): Set emacs_dir correctly when running
12857 emacs from the build directory.
12858
12859 2004-10-19 Richard M. Stallman <rms@gnu.org>
12860
12861 * editfns.c (Fdelete_and_extract_region):
12862 If region is empty, return null string.
12863
12864 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12865
12866 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
12867 and canon_width.
12868 (xg_frame_cleared): Remove.
12869
12870 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
12871 (xg_find_top_left_in_fixed): Remove.
12872 (xg_create_scroll_bar): Put an event box widget between
12873 the scroll bar widget and the edit widget.
12874 (xg_show_scroll_bar): Show the parent widget (the event box).
12875 (xg_remove_scroll_bar): Destroy parent (the event box) also.
12876 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
12877 Move the parent (the event box) widget inside the fixed widget.
12878 Move window clear to xterm.c.
12879
12880 * gtkutil.h (xg_frame_cleared): Remove.
12881
12882 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
12883 (x_scroll_bar_create, XTset_vertical_scroll_bar):
12884 Remove arguments left and width to xg_update_scrollbar_pos.
12885 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
12886
12887 2004-10-19 Kenichi Handa <handa@m17n.org>
12888
12889 * xdisp.c (display_mode_element): Fix display of wide chars.
12890
12891 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12892
12893 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
12894 gdk_window_clear and move gdk_window_process_all_updates after
12895 clear so events are sent to the X server in correct order.
12896
12897 2004-10-18 Kenichi Handa <handa@m17n.org>
12898
12899 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
12900 comparing font names.
12901 (fs_query_fontset): Use fast_string_match for comparing fontset names.
12902 (list_fontsets): Likewise.
12903
12904 * search.c (fast_string_match_ignore_case): New function.
12905
12906 * lisp.h (fast_string_match_ignore_case): Extern it.
12907
12908 2004-10-17 Kim F. Storm <storm@cua.dk>
12909
12910 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
12911 than bitmap if there is not left fringe.
12912 (get_overlay_arrow_glyph_row): Also used on windows system.
12913 (display_line): Display overlay string if no left fringe.
12914
12915 2004-10-16 Jason Rumney <jasonr@gnu.org>
12916
12917 * w32fns.c (w32_font_match): Encode font name being matched.
12918
12919 2004-10-16 Richard M. Stallman <rms@gnu.org>
12920
12921 * window.c (Fspecial_display_p): Doc fix.
12922
12923 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
12924
12925 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
12926 Don't ignore menus, because where-is-internal already does it for us.
12927
12928 2004-10-15 Kim F. Storm <storm@cua.dk>
12929
12930 * xdisp.c (redisplay_window): Only update fringes and vertical
12931 border on window frames.
12932
12933 2004-10-14 Andreas Schwab <schwab@suse.de>
12934
12935 * m/ia64.h (DATA_SEG_BITS): Don't define.
12936
12937 2004-10-14 Kim F. Storm <storm@cua.dk>
12938
12939 * xterm.h: Include Xutil.h after keysym.h to work around bug
12940 in some X versions.
12941
12942 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
12943
12944 * fns.c (map_char_table): Add missing gcpros.
12945
12946 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
12947
12948 * keymap.c (get_keymap): An autoload form is not a keymap.
12949
12950 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
12951
12952 2004-10-13 Kim F. Storm <storm@cua.dk>
12953
12954 * callproc.c (Fcall_process): Simplify handling of display arg.
12955 Resume `display_on_the_fly' once a coding system is determined.
12956
12957 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
12958
12959 2004-10-12 Kim F. Storm <storm@cua.dk>
12960
12961 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
12962 caller, such as call-process, is not going to poll for input.
12963 (calc_line_height_property): Handle case where it->object is nil.
12964
12965 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
12966
12967 2004-10-12 Kenichi Handa <handa@m17n.org>
12968
12969 * xdisp.c (get_next_display_element):
12970 If unibyte_display_via_language_environment is zero, display 8-bit
12971 chars in octal in unibyte buffer.
12972
12973 2004-10-12 Kim F. Storm <storm@cua.dk>
12974
12975 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
12976 are no ordinary bindings.
12977
12978 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12979
12980 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
12981
12982 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12983
12984 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
12985 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
12986 (make_mac_frame): Add BLOCK_INPUT around the making of a
12987 terminal frame.
12988 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
12989 * macgui.h (mktime): Use emacs_mktime.
12990 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
12991 Make a cancel file-open dialog be like C-g.
12992 * mac.c (mktime): Use emacs_mktime.
12993 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
12994 (Fmac_paste_function): Add better error handling for carbon cut/paste.
12995
12996 2004-10-10 Kim F. Storm <storm@cua.dk>
12997
12998 * keyboard.c (timer_resume_idle): New function to resume idle
12999 timer without resetting timers on the idle list.
13000 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
13001 (timer_start_idle, timer_stop_idle): Declare static.
13002 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
13003
13004 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
13005
13006 2004-10-08 Steven Tamm <steventamm@mac.com>
13007
13008 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
13009 * macterm.c (mac_check_for_quit_char): Remove warning for using
13010 NULL where 0 should be used.
13011 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
13012 objc/malloc.h
13013 * mac.c: Include time.h for Tiger compatibility.
13014
13015 2004-10-07 Kim F. Storm <storm@cua.dk>
13016
13017 * xdisp.c (redisplay_window): Fix flicker on vertical line between
13018 windows. Update vertical line after drawing window fringes, but
13019 only if actually drawing any bitmaps--or there is no fringe.
13020
13021 * xterm.c (x_update_window_end): Likewise.
13022 * macterm.c (x_update_window_end): Likewise.
13023 * w32term.c (x_update_window_end): Likewise.
13024
13025 * fringe.c (draw_window_fringes): Return value now indicates if
13026 any fringe bitmaps were redrawn (or there are no fringes).
13027
13028 * dispextern.h (draw_window_fringes): Update prototype.
13029
13030 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13031
13032 * macfns.c (mac_get_window_bounds): Add extern.
13033 (x_real_positions): Use mac_get_window_bounds.
13034
13035 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
13036 xmenu.c (YAILOM).
13037
13038 * macterm.c [!MAC_OSX]: Include Windows.h.
13039 (front_emacs_window): Rename from mac_front_window. All uses
13040 changed. Return the frontmost non-tooltip emacs window.
13041 (mac_get_window_bounds): New function.
13042 (x_calc_absolute_position): Use the difference of width and height
13043 between the inner and outer window.
13044 (x_set_offset): Specify window position by the coordinae of the
13045 outer window. Adjust the position if the title bar is completely
13046 outside the screen.
13047 (app_is_suspended, app_sleep_time): Remove unused variables.
13048 (do_app_resume, do_app_suspend): Remove their contents because
13049 window-activate/deactivate events will do the job.
13050 (do_zoom_window): Remove unused variables. Make compliant to the
13051 standard way of zooming. Set f->left_pos and f->top_pos.
13052 (XTread_socket): Don't use argument `expected'. Don't use
13053 FrontWindow to determine the clicked window. Exclude unprocessed
13054 mouseUp cases in the early stage. Add parentheses to fix operator
13055 precedence.
13056 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
13057
13058 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13059
13060 * config.in: Regenerate.
13061
13062 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
13063 HAVE_EXECSHIELD.
13064
13065 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13066
13067 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
13068 a row if Alt or Meta has been found for that row. Also stop scanning
13069 for Keysyms for that row.
13070
13071 2004-10-04 Kim F. Storm <storm@cua.dk>
13072
13073 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
13074 to list. Include overlay arrow bitmap in return value.
13075
13076 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
13077 bars with fractional column width. If scroll bar separates two
13078 windows, move it towards the window it belongs to. Only update
13079 the padding area below the scroll bar widget when necessary,
13080 i.e. when scroll bar widget is created, moved, or resized.
13081
13082 * xdisp.c (define_frame_cursor1): Do not change frame cursor
13083 while tracking/dragging mouse.
13084 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
13085
13086 * window.c (coordinates_in_window): Relax check for cursor
13087 on vertial border between mode lines.
13088 (Fset_window_fringes): Do not allow negative widths.
13089 (Fset_window_scroll_bars): Likewise.
13090
13091 * .gdbinit (pp): Shorthand for p ARG + pr.
13092 (ff): New command: flush frame updates (X only).
13093
13094 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
13095
13096 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
13097
13098 2004-09-30 Kenichi Handa <handa@m17n.org>
13099
13100 * process.c (send_process): Free composition data.
13101
13102 * fileio.c (Finsert_file_contents): Free composition data.
13103
13104 * coding.c (code_convert_region): Don't skip ASCIIs if there are
13105 compositions to encode.
13106 (encode_coding_string): Likewise. Free composition data.
13107
13108 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
13109
13110 * coding.c (code_convert_region): Free composition data.
13111
13112 2004-09-29 Kim F. Storm <storm@cua.dk>
13113
13114 * fringe.c: Remove limit on number of bitmaps.
13115 (fringe_bitmaps, fringe_faces): Change to pointers.
13116 (max_fringe_bitmaps): New var.
13117 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
13118 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
13119
13120 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
13121 (struct glyph_row): Reorder fringe_bitmap related fields.
13122 (struct it): Likewise.
13123
13124 * w32term.c (fringe_bmp): Change to pointer.
13125 (max_fringe_bmp): New var.
13126 (w32_define_fringe_bitmap): Expand fringe_bmp.
13127 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
13128 (w32_destroy_fringe_bitmap): Likewise.
13129
13130 2004-09-29 Kim F. Storm <storm@cua.dk>
13131
13132 * fringe.c: Simplify last change.
13133 (lookup_fringe_bitmap): New function.
13134 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
13135 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
13136 Keep standard bitmaps in Vfringe_bitmaps.
13137 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
13138 (Fset_fringe_bitmap_face): Likewise.
13139
13140 * dispextern.h (lookup_fringe_bitmap): Add prototype.
13141 (valid_fringe_bitmap_p): Remove prototype.
13142
13143 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
13144
13145 2004-09-29 Kim F. Storm <storm@cua.dk>
13146
13147 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
13148 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
13149
13150 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
13151
13152 * fringe.c (Vfringe_bitmaps): New variable.
13153 (syms_of_fringe): DEFVAR_LISP it.
13154 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
13155 Change arg to Lisp_Object and fail if not an integer.
13156 (get_fringe_bitmap_name, resolve_fringe_bitmap)
13157 (destroy_fringe_bitmap): New functions.
13158 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
13159 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
13160 clear its fringe property.
13161 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
13162 Fdestroy_fringe_bitmap.
13163 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
13164 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
13165 and set fringe property. Signal error if no free slots.
13166 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
13167 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
13168
13169 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
13170 symbols with a fringe property.
13171
13172 2004-09-27 Kim F. Storm <storm@cua.dk>
13173
13174 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
13175 Doc fix. Format may now be a symbol or alist, not a cons.
13176
13177 * fringe.c (update_window_fringes): Handle new formats of
13178 indicate-buffer-boundaries (symbol or alist). No longer
13179 allow a simple cons.
13180 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
13181
13182 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13183
13184 * config.in: Rebuild.
13185
13186 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13187
13188 * config.in: Rebuild.
13189
13190 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
13191
13192 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
13193
13194 * xterm.c (x_term_init): Work around a bug in some X servers.
13195
13196 2004-09-18 Richard M. Stallman <rms@gnu.org>
13197
13198 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
13199
13200 * xdisp.c (try_window_reusing_current_matrix):
13201 Handle the case where we reach the old displayed text,
13202 out of sync with the old line boundary.
13203
13204 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
13205
13206 * fileio.c (Finsert_file_contents): Fix case of replacement in a
13207 narrowed buffer.
13208
13209 2004-09-14 Kim F. Storm <storm@cua.dk>
13210
13211 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
13212
13213 * xfaces.c (Qface_no_inherit): New var.
13214 (syms_of_xfaces): Intern and staticpro it.
13215 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
13216 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
13217 Don't increment face_change_count when face has non-nil
13218 face-no-inherit property.
13219
13220 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
13221
13222 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
13223 (Fbyte_code): Remove dead code after `wrong_type_argument'.
13224
13225 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
13226 before doing the mark_stack_check_gcpros since they're not on the stack.
13227
13228 2004-09-12 Kim F. Storm <storm@cua.dk>
13229
13230 * editfns.c (Fformat): Handle format strings with multiple text
13231 properties. Reverse text property list from the format string,
13232 so the positions are in increasing order.
13233
13234 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13235
13236 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
13237 x_uncatch_errors so that possible protocol errors are delivered.
13238
13239 2004-09-10 Eli Zaretskii <eliz@gnu.org>
13240
13241 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
13242 blockinput.h.
13243 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
13244 charset.h, and coding.h
13245 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
13246 (term.o): Depend on window.h and keymap.h.
13247 (abbrev.o): Depend on syntax.h.
13248 (callint.o): Depend on keymap.h.
13249 (casefiddle.o): Depend on charset.h and keymap.h.
13250 (category.o): Depend on keymap.h.
13251 (coding.o): Depend on dispextern.h.
13252 (cmds.o): Depend on keyboard.h and keymap.h.
13253 (dispnew.o): Depend on indent.h and intervals.h.
13254 (doc.o): Depend on keymap.h.
13255 (editfns.o): Depend on frame.h.
13256 (emacs.o): Depend on dispextern.h.
13257 (fileio.o): Don't depend on ccl.h.
13258 (filelock.o): Depend on charset.h and coding.h.
13259 (frame.o): Depend on w32term.h and macterm.h.
13260 (insdel.o): Depend on region-cache.h.
13261 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
13262 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
13263 (search.o): Depend on $(INTERVALS_SRC).
13264 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
13265 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
13266 xterm.h, w32term.h, and macterm.h.
13267 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
13268 w32term.h, and macterm.h.
13269 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
13270 region-cache.h, xterm.h, w32term.h, and macterm.h.
13271 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
13272 (data.o): Depend on frame.h.
13273 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
13274 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
13275 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
13276 (intervals.o): Depend on keymap.h.
13277
13278 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
13279 Add debugging print-out to termscript.
13280
13281 2004-09-09 Richard M. Stallman <rms@gnu.org>
13282
13283 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
13284
13285 2004-09-08 Richard M. Stallman <rms@gnu.org>
13286
13287 * window.c (Fset_window_buffer): Doc fix.
13288
13289 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
13290
13291 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
13292
13293 * minibuf.c (history_delete_duplicates): New variable.
13294 (read_minibuf): Use it.
13295 (syms_of_minibuf): Create the corresponding lisp variable.
13296
13297 2004-09-08 Kim F. Storm <storm@cua.dk>
13298
13299 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
13300 overlay just before point.
13301
13302 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
13303
13304 * buffer.h (struct buffer): Add auto_save_file_format field.
13305 * buffer.c (reset_buffer, init_buffer_once):
13306 Handle auto_save_file_format field.
13307 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
13308 `buffer-auto-save-file-format'.
13309 * fileio.c: Delete declaration for removed Vauto_save_file_format.
13310 (build_annotations): Adapt to replacement of
13311 `auto-save-file-format' with the new buffer-local variable
13312 `buffer-auto-save-file-format'.
13313 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
13314
13315 2004-09-07 Jason Rumney <jasonr@gnu.org>
13316
13317 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
13318
13319 * w32fns.c (w32_wnd_proc) <WM_MEASUREITEM, WM_DRAWITEM>:
13320 Handle Unicode menu titles.
13321
13322 2004-09-07 Kim F. Storm <storm@cua.dk>
13323
13324 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
13325 property from text property or overlay strings at point.
13326
13327 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13328
13329 * xmenu.c (update_submenu_strings): YAILOM.
13330 (set_frame_menubar): Make sure last_i is initialized.
13331
13332 2004-09-03 Jason Rumney <jasonr@gnu.org>
13333
13334 * w32menu.c (_widget_value): Add lname and lkey.
13335 (digest_single_submenu): Set lname and lkey in widget_value
13336 instead of name and key.
13337 (update_submenu_strings): New function.
13338 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13339 call update_submenu_strings.
13340
13341 * w32menu.c (globals_of_w32menu): Check for Unicode API.
13342 (digest_single_submenu, w32_menu_show): Encode menu strings as
13343 UTF-8 if Unicode API is available.
13344 (utf8to16): New function.
13345 (add_menu_item): Use it when calling Unicode API.
13346
13347 2004-09-03 Kim F. Storm <storm@cua.dk>
13348
13349 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
13350 in overlay or text-property strings; set cursor on corresponding
13351 glyph rather than at end of the string.
13352
13353 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13354
13355 * macfns.c (x_real_positions): Save the current window port and
13356 set a new one before obtaining the global coordinate.
13357 Use FRAME_MAC_WINDOW.
13358 (x_set_name, x_set_title): Encode title to UTF8.
13359 Use SetWindowTitleWithCFString.
13360 (Fx_server_version): Get correct OS version.
13361
13362 * macmenu.c (add_menu_item): Remove unused variable `i'.
13363 Don't let separator items destroy refence constants of other menu items.
13364
13365 * macterm.c (x_update_end): Move SetPortWindowPort to inside
13366 BLOCK_INPUT.
13367 (x_set_offset): Use FRAME_MAC_WINDOW.
13368
13369 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
13370 nontext_cursor if it is on a scroll bar.
13371
13372 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
13373 Carbon support.
13374 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
13375 Use LIBS_CARBON.
13376
13377 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13378
13379 * xfns.c (x_set_name_internal): New function. Check if we shall call
13380 xfree before ENCODE_UTF_8.
13381 (x_set_name, x_set_title): Call x_set_name_internal.
13382
13383 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
13384
13385 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
13386 reload it.
13387
13388 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13389
13390 * macmenu.c (_widget_value): Add lname and lkey.
13391 (single_submenu): Set lname and lkey in widget_value
13392 instead of name and key.
13393 (update_submenu_strings): New function.
13394 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13395 call update_submenu_strings.
13396
13397 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
13398 instead of name and key.
13399 (update_submenu_strings): New function.
13400 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13401 call update_submenu_strings.
13402
13403 * gtkutil.h (_widget_value): Added lname and lkey.
13404
13405 2004-08-30 Steven Tamm <steventamm@mac.com>
13406
13407 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
13408 by using different names for inner loop variables.
13409
13410 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13411
13412 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
13413 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
13414
13415 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
13416 tool bar items is 0.
13417
13418 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13419
13420 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
13421 strings in menu items.
13422 (single_submenu): Use ENCODE_MENU_STRING
13423 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
13424 button release isn't passed to event loop
13425 (add_menu_item): Use SetMenuItemWithCFString
13426
13427 2004-08-26 Steven Tamm <steventamm@mac.com>
13428
13429 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
13430 tool-bar/menu click.
13431 * macfns.c (Fx_file_dialog): Implement using NavServices.
13432
13433 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13434
13435 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
13436
13437 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13438 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13439 (x_top_window_to_frame): Return 0 if wdesc is None.
13440
13441 2004-08-22 Richard M. Stallman <rms@gnu.org>
13442
13443 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
13444 HAVE_TERMIOS]: If there's no char for this signal, drop through
13445 and use system calls.
13446
13447 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
13448
13449 2004-08-20 Kim F. Storm <storm@cua.dk>
13450
13451 * process.c (wait_reading_process_output): Rename from
13452 wait_reading_process_input. All uses changed.
13453 (wait_reading_process_output_1): Rename from
13454 wait_reading_process_input_1. All uses changed.
13455
13456 * dispnew.c (Fsleep_for): Remove obsolete code.
13457
13458 2004-08-20 Kenichi Handa <handa@m17n.org>
13459
13460 * syntax.c (skip_chars): Fix for unibyte case.
13461
13462 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13463
13464 * syntax.c (char_quoted): Mixup byte/char pos.
13465 (back_comment): Fixup globals in all cases.
13466
13467 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13468
13469 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
13470 passing it to gtk_window_set_title.
13471
13472 2004-08-19 Kim F. Storm <storm@cua.dk>
13473
13474 * process.c (wait_reading_process_input): Clean up.
13475 Add wait_for_cell, wait_proc, and just_wait_proc args
13476 to avoid overloading `read_kbd' and `do_display' args.
13477 Change read_kbd arg to int. All callers changed.
13478
13479 * process.c (process_send_signal): Use CDISABLE.
13480
13481 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
13482
13483 2004-08-18 Kim F. Storm <storm@cua.dk>
13484
13485 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
13486 forward to wait_reading_process_input via DO_DISPLAY arg.
13487 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
13488 object, only process output from that process; also inhibit
13489 running timers if DO_DISPLAY==-2.
13490
13491 2004-08-17 Kim F. Storm <storm@cua.dk>
13492
13493 * process.c (process_send_signal): Fix last change--use
13494 _POSIX_VDISABLE instead of CVDISABLE when available.
13495
13496 2004-08-16 Richard M. Stallman <rms@gnu.org>
13497
13498 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
13499 Set VQUIT and VINTR chars to the standard ones if they are unset.
13500 [AIX]: Don't do that here. And don't force VINTR to standard
13501 when SIGNALS_VIA_CHARACTERS.
13502
13503 * process.c (process_send_signal)
13504 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
13505 Do nothing if the character is CVDISABLE.
13506
13507 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
13508
13509 * intervals.c (move_if_not_intangible):
13510 Force POSITION to be between BEGV and ZV.
13511
13512 2004-08-14 John Paul Wallington <jpw@gnu.org>
13513
13514 * buffer.c (Frestore_buffer_modified_p): Doc fix.
13515
13516 * fileio.c (Fread_file_name): Doc fix.
13517
13518 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
13519
13520 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
13521
13522 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
13523
13524 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
13525
13526 * keyboard.c: Declare Qdisabled_command_function instead of
13527 Qdisabled_command_hook.
13528 (Fcommand_execute): Use Qdisabled_command_function instead of
13529 Qdisabled_command_hook.
13530 (syms_of_keyboard): Ditto.
13531
13532 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
13533
13534 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
13535 (syms_of_keymap) <key-translation-map>: Doc fixes.
13536
13537 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
13538
13539 * window.c (window_list_1): YAILOM.
13540
13541 * fileio.c (make_temp_name): Handle multibyte prefixes.
13542
13543 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
13544
13545 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
13546 Doc fix.
13547
13548 2004-08-03 Kenichi Handa <handa@m17n.org>
13549
13550 * coding.c (decode_coding_string): Adjust coding->consumed, and
13551 etc. with shrinked_bytes.
13552
13553 2004-08-03 Kim F. Storm <storm@cua.dk>
13554
13555 * indent.c (compute_motion): Fix check for full width window
13556 in non-window case. Do not count left truncation glyph on
13557 window systems.
13558
13559 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
13560
13561 * data.c (Finteractive_form): Doc fix.
13562
13563 2004-08-02 Kim F. Storm <storm@cua.dk>
13564
13565 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
13566 properly accounting for continuation glyph on non-window systems.
13567 (Fcompute_motion): Use actual window width if WIDTH is nil, and
13568 actual window width/height if TOPOS is nil, properly accounting for
13569 continuation glyphs on non-window systems, and optional header lines.
13570 (vmotion): Let compute_motion calculate actual window width.
13571
13572 * window.c (window_scroll_line_based): Let compute_motion
13573 calculate actual window width.
13574
13575 2004-08-02 Kim F. Storm <storm@cua.dk>
13576
13577 * process.c (read_process_output): Use whole read buffer.
13578 Don't trigger adaptive read buffering on errors.
13579
13580 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
13581
13582 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
13583
13584 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
13585
13586 * callint.c (Fcall_interactively): Doc fix.
13587
13588 2004-07-30 Richard M. Stallman <rms@gnu.org>
13589
13590 * abbrev.c (Fexpand_abbrev): Undo previous change.
13591
13592 2004-07-30 Kim F. Storm <storm@cua.dk>
13593
13594 * editfns.c (Fformat): Allocate extra (dummy) element in info.
13595
13596 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
13597
13598 * eval.c (Fdefvar, Fdefconst): Doc fixes.
13599
13600 2004-07-27 Kim F. Storm <storm@cua.dk>
13601
13602 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
13603 we have ensured that the glyph fits on the current line (or returned
13604 MOVE_LINE_CONTINUED otherwise).
13605
13606 2004-07-26 Kim F. Storm <storm@cua.dk>
13607
13608 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
13609 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
13610 if target position is at end of display line but char is not a newline.
13611
13612 2004-07-25 Richard M. Stallman <rms@gnu.org>
13613
13614 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
13615 instead of ON_VERTICAL_BORDER, when on scroll bar.
13616 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
13617
13618 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
13619
13620 * window.c (Fcoordinates_in_window_p):
13621 Take account of FRAME_INTERNAL_BORDER_WIDTH.
13622
13623 * alloc.c (check_cons_list): New function (contents commented out).
13624
13625 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
13626
13627 * xfaces.c (Fcolor_supported_p): Doc fix.
13628
13629 * frame.c (Fselect_frame, Fset_frame_selected_window)
13630 (Fframe_visible_p, Fraise_frame): Doc fixes.
13631
13632 2004-07-24 Richard M. Stallman <rms@gnu.org>
13633
13634 * keyboard.h (not_single_kboard_state): Declare.
13635
13636 * fileio.c (Fwrite_region): Doc fix.
13637
13638 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
13639
13640 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
13641 only when a real abbrev is present.
13642
13643 * xfns.c (x_icon_verify): New function.
13644 (Fx_create_frame): Use it.
13645
13646 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
13647
13648 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
13649
13650 2004-07-21 Kim F. Storm <storm@cua.dk>
13651
13652 * window.h (struct glyph_matrix): New members nrows_scale_factor
13653 and ncols_scale_factor.
13654
13655 * window.c (make_window): Initialize nrows_scale_factor and
13656 ncols_scale_factor members.
13657
13658 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
13659 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
13660 (required_matrix_height): Apply nrows_scale_factor.
13661 (required_matrix_width): Apply ncols_scale_factor.
13662
13663 * xdisp.c (display_line): Increment nrows_scale_factor and set
13664 fonts_changed_p if past last allocated row.
13665 (append_glyph, append_composite_glyph, produce_image_glyph)
13666 (append_stretch_glyph): Increment ncols_scale_factor and set
13667 fonts_changed_p if current area is full.
13668
13669 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13670
13671 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
13672
13673 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
13674
13675 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
13676 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
13677 (Fset_window_start, Fscroll_up, Fscroll_down)
13678 (Fother_window_for_scrolling, Fscroll_other_window)
13679 (Fsave_window_excursion, Fset_window_vscroll)
13680 (syms_of_window) <window-size-fixed>: Doc fixes.
13681
13682 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13683
13684 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
13685 ENCODE_SYSTEM for filenames.
13686
13687 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13688
13689 * mac.c (sys_select): Block input around call to
13690 ReceiveNextEvent to prevent breakage. Correctly handle
13691 blocking on event queue only by calling ReceiveNextEvent
13692 instead of select (since GUI events aren't on an fd).
13693 (sys_read): Remove function
13694 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
13695
13696 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13697
13698 * mac.c (sys_select): Redo sys_select to use alarm-based
13699 polling instead of 1 sec timeouts (like solaris).
13700
13701 * macterm.c (x_make_frame_visible): Comment in polling on
13702 frame creation.
13703
13704 * keyboard.c: Undef SIGIO on Carbon
13705
13706 * atimer.c (alarm_signal_handler): Call alarm handlers after
13707 scheduling.
13708
13709 * eval.c (Feval): Remove quit_char test
13710
13711 * process.c (wait_reading_process_input): Remove clearing
13712 stdin for select call on process input.
13713
13714 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
13715
13716 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
13717 capitalization error in docstring.
13718
13719 2004-07-17 Juanma Barranquero <lektu@terra.es>
13720
13721 * keyboard.c (not_single_kboard_state): Do nothing unless
13722 MULTI_KBOARD is defined.
13723
13724 2004-07-17 Richard M. Stallman <rms@gnu.org>
13725
13726 * window.c (coordinates_in_window): Inside the window but outside
13727 its box to the L or R, return ON_VERTICAL_BORDER.
13728 (window_list_1): Rotate the list to start with WINDOW.
13729
13730 * print.c (print_preprocess): Test for print_depth at limit
13731 before entering in being_printed.
13732
13733 * keyboard.c (not_single_kboard_state): New function.
13734 (stuff_buffered_input): Now no-op only if no SIGTSTP.
13735
13736 * frame.c (Fdelete_frame): If we're in single_bboard_state on
13737 this kboard, and we delete its last frame, go to any_kboard_state.
13738
13739 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
13740
13741 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13742
13743 * w32fns.c (Fx_file_dialog): Encode strings in system coding
13744 system before passing them to OS functions for display.
13745
13746 2004-07-15 David Kastrup <dak@gnu.org>
13747
13748 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
13749 Apparently fixes an abort condition.
13750
13751 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
13752
13753 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
13754 instead of a cons.
13755
13756 2004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
13757
13758 * keyboard.c (echo_dash): Do nothing if there already is a dash
13759 at the end of the echo string.
13760
13761 2004-07-12 Kim F. Storm <storm@cua.dk>
13762
13763 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
13764 if GC_MARK_STACK.
13765
13766 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
13767
13768 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
13769
13770 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
13771 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
13772 (Freplace_buffer_in_windows, Fset_window_buffer)
13773 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
13774 (syms_of_window): Expand docstring of `display-buffer-function'.
13775
13776 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
13777
13778 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
13779 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
13780 that time values of the type (HIGH . LOW) are considered obsolete.
13781
13782 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
13783
13784 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
13785 docstring.
13786
13787 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
13788
13789 2004-07-06 John Paul Wallington <jpw@gnu.org>
13790
13791 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
13792
13793 * fns.c (Fclear_string): Signal an error if STRING is not a string.
13794
13795 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13796
13797 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
13798 instead of CGMainDisplayID (only in OSX 10.2 and later).
13799
13800 2004-07-04 John Paul Wallington <jpw@gnu.org>
13801
13802 * fileio.c (read_file_name_completion_ignore_case): New variable.
13803 (syms_of_fileio): Declare and initialise it.
13804 (Fread_file_name): Bind `completion-ignore-case' to respect it.
13805
13806 2004-07-03 Eli Zaretskii <eliz@gnu.org>
13807
13808 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
13809 for event.x and event.y.
13810
13811 2004-07-01 Kenichi Handa <handa@m17n.org>
13812
13813 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
13814 after getting a new string by pre-write-conversion.
13815
13816 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
13817
13818 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
13819 (x_calc_absolute_position): Remove unused var `child'.
13820
13821 * xfaces.c (x_supports_face_attributes_p)
13822 (Fdisplay_supports_face_attributes_p): YAILOM.
13823 (tty_supports_face_attributes_p): Remove unused var `i'.
13824
13825 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
13826 back_unibyte_ok.
13827
13828 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
13829
13830 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
13831 `registry'.
13832
13833 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
13834
13835 2004-06-30 Andreas Schwab <schwab@suse.de>
13836
13837 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
13838 (Finit_image_library): Pass LIBRARIES through to
13839 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
13840 (lookup_image_type): Pass Qnil as second argument to
13841 Finit_image_library.
13842
13843 * lisp.h (Finit_image_library): Declare.
13844
13845 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13846
13847 * macterm.c (do_window_activate, do_window_deactivate): Remove.
13848 (XTread_socket): Send mouse button events to the toolbox
13849 dispatcher even when the mouse is grabbed. Don't process window
13850 activate events for non-Emacs windows. Replace function calls to
13851 do_window_activate and do_window_deactivate with their contents.
13852 Reset mouse grabbing status when a window is deactivated.
13853
13854 2004-06-29 Steven Tamm <steventamm@mac.com>
13855
13856 * macterm.c (mac_get_emulated_btn)
13857 (mac_event_to_emacs_modifiers): Fix emulated mouse button
13858 support to correctly mask out modifiers.
13859
13860 2004-06-29 David Kastrup <dak@gnu.org>
13861
13862 * search.c (Fset_match_data): Allow buffer before end of list
13863 which can happen if set-match-data is using a pre-consed list.
13864
13865 2004-06-28 Steven Tamm <steventamm@mac.com>
13866
13867 * macterm.c (XTread_socket): Correctly set the frame position
13868 after the window is moved.
13869
13870 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13871
13872 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
13873 gpix and gmask just before return to avoid memory leak.
13874 (xg_get_image_for_pixmap): Add workaround for monochrome displays
13875 so insensitive and activated icons look ok.
13876
13877 2004-06-27 Jason Rumney <jasonr@gnu.org>
13878
13879 * w32fns.c (file_dialog_callback): Disable edit control if set
13880 to directories only on CDN_INITDONE message.
13881 (Fx_file_dialog): Default to directories only when prompt starts
13882 with "Dired".
13883
13884 2004-06-25 Kim F. Storm <storm@cua.dk>
13885
13886 * alloc.c (allocate_misc): Update total_free_markers.
13887 (free_misc): New function.
13888 (safe_alloca_unwind, free_marker): Use it.
13889
13890 * lisp.h (free_misc): Add prototype.
13891
13892 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
13893
13894 2004-06-24 Richard M. Stallman <rms@gnu.org>
13895
13896 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
13897 (syms_of_emacs): Lisp variables deleted.
13898
13899 2004-06-23 David Kastrup <dak@gnu.org>
13900
13901 * search.c (Freplace_match): Adjust the match-data more thoroughly
13902 when replacing strings in the buffer.
13903 (Fmatch_data): When INTEGERS is non-nil and the last match was in
13904 a buffer, add the buffer as last element to the match data.
13905 (Fset_match_data): If an additional element of the match-data is a
13906 buffer, restore it to last_thing_searched.
13907 (save_search_regs): Save last_thing_searched as part of the match data.
13908 (restore_match_data): Restore it again.
13909
13910 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
13911
13912 * keymap.c (Ftext_char_description): Doc fix.
13913 * doc.c (Fsnarf_documentation): Doc fix.
13914
13915 2004-06-22 Kim F. Storm <storm@cua.dk>
13916
13917 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
13918
13919 * lisp.h (struct Lisp_Save_Value): New member dogc.
13920 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
13921 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
13922 (SAFE_FREE_LISP): New macro.
13923
13924 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
13925 (make_save_value): Init new dogc member.
13926 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
13927
13928 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
13929 SAFE_FREE_LISP macros.
13930
13931 2004-06-22 Kim F. Storm <storm@cua.dk>
13932
13933 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
13934 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
13935 in that memory area are unknown to GC. Add comments.
13936
13937 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
13938
13939 2004-06-21 Kim F. Storm <storm@cua.dk>
13940
13941 * lisp.h (MAX_ALLOCA): Define here.
13942 (safe_alloca_unwind): Add prototype.
13943 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
13944
13945 * alloc.c (safe_alloca_unwind): New function.
13946
13947 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
13948
13949 * charset.c (Fstring): Use SAFE_ALLOCA.
13950
13951 * coding.c (MAX_ALLOCA): Remove define.
13952
13953 * data.c (MAX_ALLOCA): Remove define.
13954 (Faset): Use SAFE_ALLOCA.
13955
13956 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
13957
13958 * fns.c (string_make_multibyte, string_to_multibyte)
13959 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
13960 (MAX_ALLOCA): Remove define.
13961 (Fbase64_encode_region, Fbase64_encode_string)
13962 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
13963 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
13964 memory leak if encoding fails.
13965
13966 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
13967
13968 2004-06-21 Eli Zaretskii <eliz@gnu.org>
13969
13970 * print.c (Fwith_output_to_temp_buffer): Doc fix.
13971
13972 2004-06-20 Richard M. Stallman <rms@gnu.org>
13973
13974 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
13975
13976 * search.c (match_limit): Cleaner err msg when no match data available.
13977
13978 * window.c (syms_of_window): Doc fix.
13979
13980 * keyboard.c (command_loop_1): Handle values `only' and `identity'
13981 for Vtransient_mark_mode.
13982
13983 * buffer.c (syms_of_buffer): Doc fix.
13984
13985 2004-06-21 David Kastrup <dak@gnu.org>
13986
13987 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
13988 and unbinding of `case-fold-search' according to
13989 `completion-ignore-case' around calls of string-match and
13990 predicates, respectively. Should give satisfactory performance
13991 in all relevant cases.
13992
13993 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13994
13995 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
13996 clip_x/y_origin.
13997
13998 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
13999
14000 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
14001
14002 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
14003 on Mac OSX.
14004
14005 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
14006
14007 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
14008
14009 2004-06-16 Kim F. Storm <storm@cua.dk>
14010
14011 * dispextern.h (Vimage_types): Remove extern.
14012
14013 2004-06-16 Miles Bader <miles@gnu.org>
14014
14015 * image.c (lookup_image_type): Initialize image type if necessary.
14016
14017 2004-06-15 Kim F. Storm <storm@cua.dk>
14018
14019 * xdisp.c (try_cursor_movement): Exclude header line from scroll
14020 margin at top of window.
14021 (try_window_reusing_current_matrix): Calculate proper cursor position
14022 after scrolling up with non-zero scroll margin, as the old cursor
14023 position corresponds to value of PT before executing this command.
14024 (try_window_id): Consider scroll margin at bottom of window too;
14025 otherwise we fail to scroll when hl-line-mode is enabled.
14026
14027 * syntax.c (skip_chars): Only recognize [:class:] when it has the
14028 proper format and class is a lower-case word.
14029
14030 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14031
14032 * gtkutil.c (xg_get_image_for_pixmap): New function.
14033 (xg_get_gdk_pixmap_and_mask): Remove.
14034 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
14035 xg_get_gdk_pixmap_and_mask.
14036
14037 * xterm.h (struct x_display_info): Typo in comment fixed.
14038
14039 2004-06-14 Juanma Barranquero <lektu@terra.es>
14040
14041 * dispextern.h (Vimage_types): Make it conditional on
14042 HAVE_WINDOW_SYSTEM.
14043
14044 * image.c (Vimage_types): Move from xdisp.c.
14045 (Vimage_type_cache): New variable.
14046 (define_image_type): New argument indicating whether an image
14047 library was loaded; cache loaded status and return t on success,
14048 nil otherwise.
14049 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
14050 (w32_delayed_load): New function to load an image library from a
14051 list of possible filenames.
14052 (init_xpm_functions, init_png_functions, init_jpeg_functions)
14053 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
14054 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
14055 (Finit_image_library): New function, extracted from `init_image'.
14056 Try to initialize an image library on demand and cache whether we
14057 were successful or not.
14058 (syms_of_image): Initialize `Vimage_types' and
14059 `Vimage_type_cache'. Add recognized image types to Vimage_types.
14060 Export `init-image-library'.
14061 (init_image): Remove initialization of all image types, except xbm
14062 and pbm.
14063
14064 * xdisp.c (Vimage_types): Delete (moved to image.c).
14065
14066 2004-06-14 Andreas Schwab <schwab@suse.de>
14067
14068 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
14069 Avoid calling specbind when completion-regexp-list is empty.
14070
14071 2004-06-13 Richard M. Stallman <rms@gnu.org>
14072
14073 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
14074 (re_wctype, re_iswctype, re_wctype_to_bit):
14075 Non-function definitions moved here from regex.c.
14076
14077 * regex.c (re_wctype, re_iswctype): Function defs longer static.
14078 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
14079 (re_wctype, re_iswctype, re_wctype_to_bit):
14080 Non-function definitions moved to regex.h.
14081
14082 * window.c (Fselect_window): Doc fix.
14083
14084 * syntax.c: Include regex.h.
14085 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
14086 If requested, make a list of classes, then check the scanned
14087 chars for membership in them.
14088 (in_classes): New function.
14089 Doc fix.
14090
14091 * keyboard.c (cmd_error): Don't call any_kboard_state
14092 if inside a recursive edit level.
14093
14094 2004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
14095
14096 * keyboard.c (command_loop): Call any_kboard_state before
14097 command_loop_2 when at top level.
14098
14099 2004-06-13 Andreas Schwab <schwab@suse.de>
14100
14101 * print.c (print_object): Always use %ld for printing EMACS_INT.
14102
14103 * keyboard.c (cancel_hourglass_unwind): Return a value.
14104 (modify_event_symbol): Always use %ld for printing EMACS_INT.
14105 (Fexecute_extended_command): Likewise.
14106
14107 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
14108 avoid clashes.
14109 (SYNTAX): Likewise.
14110 (SYNTAX_WITH_FLAGS): Likewise.
14111 (SYNTAX_MATCH): Likewise.
14112
14113 * syntax.c (char_quoted): Avoid warning about undefined operation.
14114 (find_defun_start): Likewise.
14115 (scan_lists): Likewise.
14116 (INC_FROM): Likewise.
14117 (scan_sexps_forward): Likewise.
14118
14119 * image.c: Include <ctype.h>.
14120
14121 * xfaces.c (face_attr_equal_p): Declare parameters.
14122
14123 2004-06-13 Kenichi Handa <handa@m17n.org>
14124
14125 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
14126
14127 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
14128
14129 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
14130
14131 2004-06-12 Kenichi Handa <handa@m17n.org>
14132
14133 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
14134 ccl_prog_stack_struct and update it.
14135 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
14136 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
14137 ccl->eof_ic on EOF.
14138 (ccl_debug_hook): New function.
14139 (struct ccl_prog_stack): New member eof_ic.
14140 (ccl_driver): Handle EOF in subrountine call correctly.
14141
14142 2004-06-11 Kenichi Handa <handa@m17n.org>
14143
14144 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
14145
14146 2004-06-11 Kim F. Storm <storm@cua.dk>
14147
14148 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
14149
14150 2004-06-11 Juanma Barranquero <lektu@terra.es>
14151
14152 * keyboard.c (Fposn_at_point): Doc fix.
14153
14154 2004-06-11 David Kastrup <dak@gnu.org>
14155
14156 * search.c (match_limit): Don't flag an error if match-data
14157 exceeding the allocated search_regs.num_regs gets requested, just
14158 return Qnil.
14159
14160 2004-06-08 Miles Bader <miles@gnu.org>
14161
14162 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
14163
14164 2004-06-07 Juanma Barranquero <lektu@terra.es>
14165
14166 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
14167 (Fcurrent_time_string, Fcurrent_time_zone)
14168 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
14169
14170 2004-06-07 Miles Bader <miles@gnu.org>
14171
14172 * xfaces.c (struct named_merge_point): New type.
14173 (push_named_merge_point): New function.
14174 (merge_named_face): New function.
14175 (merge_face_ref, face_at_buffer_position, face_at_string_position):
14176 Use `merge_named_face'.
14177 (merge_face_inheritance): Function removed.
14178 (merge_face_ref): Rename from `merge_face_vector_with_property'.
14179 Add new `err_msgs' and `named_merge_points' args. Return error
14180 status. Only print error messages if ERR_MSGS is true. Don't try to
14181 do :inherit attribute validation.
14182 (merge_face_heights): Handle `unspecified' in both directions.
14183 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
14184 Call `merge_face_ref' instead of `merge_face_inheritance'.
14185 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
14186 (compute_char_face, face_at_buffer_position)
14187 (face_at_string_position): Call `merge_face_ref' instead of
14188 `merge_face_vector_with_property'.
14189
14190 2004-06-07 Kenichi Handa <handa@m17n.org>
14191
14192 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
14193 the necessary places.
14194
14195 2004-06-07 Kim F. Storm <storm@cua.dk>
14196
14197 * process.c (Fdelete_process): Undo 2004-05-28 change.
14198 Instead, call status_notify also for network process.
14199 (status_message): Use process instead of status as arg.
14200 Give messages "deleted" or "connection broken by remote peer" for
14201 an exited network process.
14202 (status_notify): Change call to status_message.
14203 (read_process_output): Increase readmax to 4096. Do not increase
14204 buffer size for datagram channels (default is now large enough).
14205
14206 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
14207
14208 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
14209 problem due to newly defined variable.
14210
14211 2004-06-06 Miles Bader <miles@gnu.org>
14212
14213 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
14214 immediately if non-interactive or not initialized.
14215
14216 2004-06-05 Richard M. Stallman <rms@gnu.org>
14217
14218 * minibuf.c (Fcompleting_read): Doc fix.
14219
14220 2004-06-05 Andreas Schwab <schwab@suse.de>
14221
14222 * macfns.c (x_create_tip_frame): Fix declaration after statement.
14223
14224 2004-06-05 Juanma Barranquero <lektu@terra.es>
14225
14226 * keymap.c (Fdescribe_vector): Fix docstring.
14227 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
14228
14229 2004-06-05 Miles Bader <miles@gnu.org>
14230
14231 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
14232 attributes have different values than the default face.
14233
14234 2004-06-04 Eli Zaretskii <eliz@gnu.org>
14235
14236 * xfaces.c (x_supports_face_attributes_p): Make this function
14237 conditional on HAVE_WINDOW_SYSTEM.
14238 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
14239 Don't call x_supports_face_attributes_p if it was not compiled in.
14240
14241 2004-06-04 Miles Bader <miles@gnu.org>
14242
14243 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
14244 from Ftty_supports_face_attributes_p.
14245 (x_supports_face_attributes_p): New function.
14246 (Ftty_supports_face_attributes_p): Function deleted.
14247 (Fdisplay_supports_face_attributes_p): New function.
14248 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
14249 (face_attr_equal_p): New function.
14250 (lface_equal_p): Use it.
14251
14252 2004-06-03 Juanma Barranquero <lektu@terra.es>
14253
14254 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
14255 (Vw32_color_map): Fix typo in docstring.
14256 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
14257 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
14258 Make argument names match their use in docstring.
14259
14260 2004-06-02 Juanma Barranquero <lektu@terra.es>
14261
14262 Work around bugs/problems with MinGW builds of graphics libraries
14263 called from MSVC builds of Emacs.
14264
14265 * image.c (lookup_image): Make pointer to img static.
14266 (png_read_from_memory): Disable "global" optimization.
14267
14268 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
14269
14270 * eval.c (Fcondition_case): Fix usage. Simplify.
14271
14272 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
14273
14274 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14275
14276 * macfns.c: Don't include ccl.h.
14277 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
14278 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
14279 TextUtils.h.
14280 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
14281 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
14282 display height/width.
14283 (compute_tip_xy, Vx_max_tooltip_size): Declare.
14284 (unwind_create_tip_frame, compute_tip_xy): New functions.
14285 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
14286 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
14287 and last_show_tip_args.
14288
14289 * macgui.h [!MAC_OSX]: Include Gestalt.h.
14290 (Cursor, No_Cursor): New defines.
14291 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
14292 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
14293
14294 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
14295
14296 * macterm.c: Don't include Gestalt.h.
14297 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
14298 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
14299 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
14300 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
14301 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
14302 (construct_mouse_click, XTmouse_position)
14303 (x_scroll_bar_report_motion, x_calc_absolute_position)
14304 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
14305 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
14306 (note_mouse_movement): Clear the mouse face and reset the pointer
14307 shape when the pointer goes outside the frame without grabbing.
14308 (mac_front_window): New function.
14309 (mac_window_to_frame): New macro.
14310 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
14311 (do_window_activate, do_window_deactivate, do_app_resume)
14312 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
14313 (do_zoom_window, mac_do_receive_drag, XTread_socket)
14314 (mac_check_for_quit_char): Use mac_front_window and/or
14315 mac_window_to_frame.
14316 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
14317 scroll-bar click event.
14318 (mac_define_frame_cursor): Change the pointer shape.
14319 (x_free_frame_resources): Reset tip_window to NULL when it is
14320 disposed of.
14321 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
14322 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
14323 (do_window_update): Don't do anything if the updated window is the
14324 tooltip window.
14325 (do_mouse_moved): Handle mouse movement events here (previously in
14326 XTread_socket). Clear the mouse face if
14327 dpyinfo->mouse_face_hidden is set.
14328 (do_os_event, do_events): Remove (now in XTread_socket).
14329 (XTread_socket): Immediately return if interrupt_input_blocked.
14330 Loop until all the events in the queue are processed.
14331 Rearrange codes for mouse grabbing. Add tooltip support. Include the
14332 contents of do_os_event and do_events. Remove mouse movement
14333 handling (now in do_mouse_moved). Add the case where
14334 Vmouse_highlight has an integer value.
14335 (NewMacWindow): Remove.
14336 (make_mac_frame): Do what NewMacWindow previously did. Don't do
14337 excess initializations.
14338 (make_mac_terminal_frame): Previous initializations in
14339 make_mac_frame are moved here.
14340 (mac_initialize_display_info):
14341 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
14342
14343 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
14344 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
14345
14346 2004-05-29 Richard M. Stallman <rms@gnu.org>
14347
14348 * lisp.h (truncate_undo_list): Update decl.
14349
14350 * alloc.c (undo_outer_limit): New variable.
14351 (syms_of_alloc): Defvar it.
14352 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
14353
14354 * undo.c (truncate_undo_list): New arg LIMITSIZE.
14355
14356 * alloc.c (lisp_align_malloc): Check for base == 0
14357 regardless of HAVE_POSIX_MEMALIGN.
14358 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
14359
14360 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14361
14362 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
14363 (marker_blocks_pending_free): Remove.
14364 (Fgarbage_collect): Sweep after cleaning up undo-lists.
14365 Mark the undo lists after claning them up.
14366 Don't free block in marker_blocks_pending_free.
14367 (mark_buffer): Don't mark undo_list.
14368 (gc_sweep): Sweep hash-tables and strings first.
14369 Do free marker blocks that are empty.
14370
14371 2004-05-28 Jim Blandy <jimb@redhat.com>
14372
14373 * regex.c (print_partial_compiled_pattern): Add missing 'break'
14374 after 'case wordend'. For symbeg and symend, print to stderr,
14375 like the other cases.
14376
14377 2004-05-28 Noah Friedman <friedman@splode.com>
14378
14379 * process.c (Fdelete_process): Do not call remove_process.
14380
14381 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14382
14383 * alloc.c (struct backtrace): Remove.
14384 (Fgarbage_collect): Use the new mark_backtrace.
14385
14386 * eval.c (mark_backtrace): New function.
14387
14388 * minibuf.c (run_exit_minibuf_hook): New function.
14389 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
14390 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
14391
14392 2004-05-27 Kim F. Storm <storm@cua.dk>
14393
14394 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
14395 over display properties, e.g. images, that replace buffer text.
14396
14397 2004-05-25 Kim F. Storm <storm@cua.dk>
14398
14399 * alloc.c (marker_blocks_pending_free): New var.
14400 (gc_sweep): Store free marker blocks on that list.
14401 (Fgarbage_collect): Free them after undo-list cleanup.
14402
14403 * process.c (wait_reading_process_input): Check connect_wait_mask
14404 before actually accepting connection in case it has already been
14405 accepted due to recursion.
14406
14407 2004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
14408
14409 * coding.c (Fset_safe_terminal_coding_system_internal):
14410 Set suppress_error in safe_terminal_coding, not terminal_coding.
14411
14412 2004-05-22 Richard M. Stallman <rms@gnu.org>
14413
14414 * alloc.c (Fmake_string): Doc fix.
14415
14416 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
14417 and the alist pairs too.
14418
14419 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
14420
14421 * emacs.c (main): Update copyright year.
14422
14423 * fileio.c (Fread_file_name): Expand DIR if not absolute.
14424
14425 * insdel.c (del_range_2, replace_range): Don't write an anchor
14426 if the gap is empty.
14427
14428 * xdisp.c (try_scrolling): If scroll-up-aggressively or
14429 scroll-down-aggressively is small but positive, put point
14430 near the screen edge.
14431
14432 2004-05-22 Juanma Barranquero <lektu@terra.es>
14433
14434 * keymap.c (Fdefine_key): Doc fix.
14435
14436 2004-05-22 Kim F. Storm <storm@cua.dk>
14437
14438 * alloc.c (struct backtrace): Add debug_on_exit member.
14439 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
14440 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
14441 the removed cons cells.
14442 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
14443 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
14444 any cons cells pointing to unallocated stings.
14445 Do not lisp_free any marker blocks, as there may still be pointers
14446 to them from buffer undo lists at this stage of GC.
14447
14448 * keyboard.c (struct backtrace): Add debug_on_exit member.
14449 (Fcommand_execute): Clear it.
14450
14451 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
14452
14453 * intervals.c (lookup_char_property): Do not prematurely return nil.
14454
14455 2004-05-19 Jim Blandy <jimb@redhat.com>
14456
14457 Add support for new '\_<' and '\_>' regexp operators, matching the
14458 beginning and end of symbols.
14459
14460 * regex.c (enum syntaxcode): Add Ssymbol.
14461 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
14462 (re_opcode_t): New opcodes `symbeg' and `symend'.
14463 (print_partial_compiled_pattern): Print the new opcodes properly.
14464 (regex_compile): Parse the new operators.
14465 (analyse_first): Skip sym(beg|end) (they match only the empty string).
14466 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
14467 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
14468 (re_match_2_internal): Match symbeg and symend.
14469
14470 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
14471
14472 2004-05-19 Kim F. Storm <storm@cua.dk>
14473
14474 * .gdbinit (xsymbol): Fix last change.
14475
14476 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
14477
14478 * .gdbinit (xprintstr): New fun.
14479 (xstring, xprintsym): Use it.
14480
14481 * w32proc.c (create_child): Use INTMASK.
14482
14483 * alloc.c (Fgarbage_collect): Do all the marking before flushing
14484 unmarked elements of the undo list.
14485
14486 2004-05-18 David Ponce <david@dponce.com>
14487
14488 * print.c (print): Reset print_depth before to call print_object.
14489
14490 2004-05-18 Jason Rumney <jasonr@gnu.org>
14491
14492 * w32console.c: Prefix RIF functions with w32con_ to avoid
14493 namespace clash with functions in term.c and w32term.c.
14494
14495 * w32menu.c (add_menu_item, w32_menu_display_help)
14496 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
14497
14498 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
14499
14500 2004-05-18 Eli Zaretskii <eliz@gnu.org>
14501
14502 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
14503
14504 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
14505 with make_number.
14506 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
14507 with XINT.
14508
14509 2004-05-18 Kim F. Storm <storm@cua.dk>
14510
14511 * blockinput.h (INPUT_BLOCKED_P): New macros.
14512
14513 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
14514 (Ftop_level): Unblock input if blocked.
14515
14516 * buffer.h (GET_OVERLAYS_AT): New macro.
14517 * msdos.c (IT_note_mouse_highlight): Use it.
14518 * textprop.c (get_char_property_and_overlay): Use it.
14519 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
14520 * xfaces.c (face_at_buffer_position): Use it.
14521
14522 * print.c (print_object): Increase buf size.
14523
14524 2004-05-17 Jason Rumney <jasonr@gnu.org>
14525
14526 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
14527 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
14528 Lisp_Object using i member.
14529 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
14530 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
14531 consistently.
14532
14533 * w32proc.c (create_child): Use make_number instead of masking pid.
14534
14535 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
14536 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
14537 Use EQ to compare Lisp_Objects.
14538 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
14539
14540 * w32term.c (w32_num_mouse_buttons): Rename from
14541 Vw32_num_mouse_buttons and make it an int.
14542
14543 * w32.c (init_environment): Use it.
14544
14545 * w32fns.c (w32_wnd_proc): Likewise.
14546
14547 * w32proc.c (w32_pipe_read_delay): Rename from
14548 Vw32_pipe_read_delay and make it an int.
14549
14550 * w32.c (_sys_read_ahead): Use it.
14551
14552 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
14553
14554 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
14555
14556 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
14557 (key_event): Don't mix Lisp_Object and int.
14558
14559 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
14560
14561 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
14562 modifiers in language change event.
14563
14564 2004-05-17 Kim F. Storm <storm@cua.dk>
14565
14566 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
14567 Such objects may be freed markers which still exist on an undo list.
14568
14569 2004-05-16 Juanma Barranquero <lektu@terra.es>
14570
14571 * data.c (Fset_default): Make argument names match their use in
14572 docstring.
14573
14574 2004-05-15 Andreas Schwab <schwab@suse.de>
14575
14576 * emacs.c (gdb_array_mark_flag): Define.
14577 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
14578
14579 2004-05-15 Eli Zaretskii <eliz@gnu.org>
14580
14581 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
14582 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
14583 defined for the MS-DOS build.
14584
14585 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
14586
14587 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
14588
14589 2004-05-14 Kenichi Handa <handa@m17n.org>
14590
14591 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
14592
14593 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14594
14595 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
14596 section to frame.c section.
14597 (Fxw_display_color_p, Fx_file_dialog): Declare if
14598 HAVE_WINDOW_SYSTEM defined.
14599
14600 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
14601
14602 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
14603
14604 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
14605 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
14606 (XTread_socket): Fix int/Lisp_Object mixup.
14607 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
14608
14609 * macterm.h (struct frame, struct face, struct image)
14610 (display_x_get_resource, Fx_display_color_p)
14611 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
14612 Add prototypes.
14613
14614 2004-05-14 Kim F. Storm <storm@cua.dk>
14615
14616 * process.c (wait_reading_process_input): Make reentrant.
14617 Make Available and Connecting non-static. Save and restore value
14618 of waiting_for_user_input_p.
14619
14620 2004-05-13 Kim F. Storm <storm@cua.dk>
14621
14622 * keyboard.c (mark_kboards): Don't mark x and y members
14623 that are overloaded in selection request events.
14624
14625 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
14626
14627 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
14628
14629 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
14630
14631 * window.c (Fdisplay_buffer, Fsplit_window)
14632 (split-height-threshold): Doc fix.
14633
14634 2004-05-13 Juanma Barranquero <lektu@terra.es>
14635
14636 * xfaces.c (Ftty_supports_face_attributes_p)
14637 (Finternal_copy_lisp_face): Fix typo in docstring.
14638 (Finternal_get_lisp_face_attribute): Fix docstring.
14639
14640 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14641
14642 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
14643
14644 2004-05-11 Steven Tamm <steventamm@mac.com>
14645
14646 * macfns.c (Fx_create_frame): Default to using tool-bar by
14647 setting tool-bar-lines to 1 in default-frame-alist.
14648
14649 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14650
14651 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
14652 (xpm_get_color_table_v, xpm_make_color_table_h)
14653 (xpm_put_color_table_h, xpm_get_color_table_h)
14654 (xpm_str_to_color_key, xpm_load_image, xpm_load)
14655 (syms_of_image): Support XPM on Carbon Emacs. Does not
14656 depend on libXpm, but only supports XPM version 3 without extensions.
14657
14658 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14659
14660 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
14661 instead of FRAME_X_P
14662
14663 2004-05-11 Kim F. Storm <storm@cua.dk>
14664
14665 * process.c (read_process_output): Grow decoding_buf when needed;
14666 this could cause a crash in allocate_string and compact_small_strings.
14667
14668 2004-04-29 Jim Blandy <jimb@redhat.com>
14669
14670 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
14671 against proper opcode.
14672
14673 2004-05-10 Juanma Barranquero <lektu@terra.es>
14674
14675 * process.c (Fstart_process): Fix docstring.
14676
14677 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
14678 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
14679 (Fsplit_char, Fchar_charset): Make argument names match their use
14680 in docstring.
14681
14682 2004-05-10 Richard M. Stallman <rms@gnu.org>
14683
14684 * print.c (print_preprocess): Use being_printed, loop_count and
14685 halftail to detect overdeep nesting and cyclic cdr chains.
14686
14687 2004-05-10 Andreas Schwab <schwab@suse.de>
14688
14689 * lisp.h (Fmake_symbolic_link): Declare.
14690
14691 * fileio.c (Frename_file): Remove extra argument in call to
14692 Fmake_symbolic_link.
14693
14694 2004-05-10 Kim F. Storm <storm@cua.dk>
14695
14696 * xdisp.c (calc_line_height_property): Use string position when
14697 object is a string.
14698
14699 2004-05-10 Kenichi Handa <handa@m17n.org>
14700
14701 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
14702 inhibit-modification-hooks to t temporarily before calling
14703 Ferase_buffer.
14704
14705 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
14706 inhibit-modification-hooks to t temporarily before calling
14707 Ferase_buffer.
14708
14709 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
14710 inhibit-modification-hooks to t temporarily before calling
14711 Ferase_buffer.
14712
14713 * fns.c (count_combining): Delete it.
14714 (concat): Don't check combining bytes.
14715
14716 2004-05-09 Jason Rumney <jasonr@gnu.org>
14717
14718 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
14719 (globals_of_w32fns): Set it.
14720
14721 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
14722
14723 * data.c (Fquo): Simplify.
14724
14725 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
14726
14727 * data.c (Fquo): If any argument is float, do the computation in
14728 floating point.
14729
14730 2004-05-08 Juanma Barranquero <lektu@terra.es>
14731
14732 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
14733 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
14734 Fix spelling of Emacs on docstring.
14735 (Fset_process_coding_system, Fprocess_coding_system)
14736 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
14737 Make argument names match their use in docstring.
14738 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
14739 Fix docstring.
14740
14741 * editfns.c (Finsert_buffer_substring): Make argument names match their
14742 use in docstring.
14743
14744 * syntax.c (Fmodify_syntax_entry): Fix docstring.
14745
14746 2004-05-07 Steven Tamm <steventamm@mac.com>
14747
14748 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
14749 around call to ReceiveEvent to avoid certain crashes.
14750
14751 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14752
14753 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
14754 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
14755 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
14756 Save/restore the current graphics port and device handle when
14757 drawing into an offscreen graphics world.
14758
14759 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
14760 (gif_load): Likewise.
14761
14762 2004-05-07 Juanma Barranquero <lektu@terra.es>
14763
14764 * window.c (Fset_window_buffer): Fix docstring.
14765
14766 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
14767
14768 * emacs.c (main) [VMS]: Fix var ref.
14769
14770 2004-05-06 Romain Francoise <romain@orebokech.com>
14771
14772 * data.c (Fsetq_default): Fix docstring.
14773
14774 2004-05-06 Jason Rumney <jasonr@gnu.org>
14775
14776 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
14777 to avoid name clash.
14778
14779 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14780
14781 * fileio.c (barf_or_query_if_file_exists): Use lstat.
14782 (Frename_file): Handle renaming of symlinks across file systems.
14783 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
14784
14785 2004-05-04 Kim F. Storm <storm@cua.dk>
14786
14787 * xdisp.c (Qtotal): New var.
14788 (syms_of_xdisp): Intern and staticpro it.
14789 (calc_line_height_property): New arg total. Set it if
14790 line-spacing property has format (total . VALUE).
14791 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
14792 Handle total line-spacing property.
14793
14794 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14795
14796 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
14797 "under" scroll bar when size/position changes.
14798
14799 2004-05-03 Jason Rumney <jasonr@gnu.org>
14800
14801 * makefile.nt: Remove.
14802
14803 2004-05-02 Eli Zaretskii <eliz@gnu.org>
14804
14805 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
14806 Avoid compiler warnings.
14807
14808 * Makefile.in (region-cache.o): Depend on config.h.
14809
14810 2004-05-02 Romain Francoise <romain@orebokech.com>
14811
14812 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
14813 with continuation lines, too.
14814
14815 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
14816
14817 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
14818
14819 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
14820
14821 * xdisp.c (calc_line_height_property): YAILOM (yet another
14822 int/Lisp_Object mixup).
14823
14824 2004-05-01 Eli Zaretskii <eliz@gnu.org>
14825
14826 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
14827 undo bad effect of pack(4) in some versions of system headers.
14828
14829 2004-05-01 Jason Rumney <jasonr@gnu.org>
14830
14831 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
14832
14833 2004-04-30 Kim F. Storm <storm@cua.dk>
14834
14835 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
14836 (syms_of_buffer) <cursor-type>: Doc fix.
14837
14838 * dispextern.h (struct it): Remove member use_default_face.
14839 Add members override_ascent, override_descent, override_boff.
14840
14841 * xdisp.c (init_iterator): Handle line-spacing float value.
14842 Initialize override_ascent member.
14843 (append_space_for_newline): Reset override_ascent.
14844 Remove use_default_face.
14845 (calc_line_height_property): New function to calculate value of
14846 line-height and line-spacing properties. Look at overlays, too.
14847 Set override_ascent, override_descent, override_boff members when
14848 using another face than the current face. Float values are now
14849 relative to the frame default font, by default; accept a cons
14850 of ratio and face name to specify value relative to a specific face.
14851 (x_produce_glyphs): Use calc_line_height_property.
14852 Use override_ascent etc. when set to handle different face heights.
14853 A negative line-spacing property value is interpreted as a total
14854 line height, rather than inter-line spacing.
14855 (note_mouse_highlight): Allocate room for 40 overlays initially.
14856
14857 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
14858
14859 * data.c (Fsubr_name): New fun.
14860 (syms_of_data): Defsubr it.
14861
14862 2004-04-29 Kim F. Storm <storm@cua.dk>
14863
14864 * xdisp.c (null_glyph_slice): New var.
14865 (append_glyph, append_composite_glyph, append_stretch_glyph):
14866 Use it to initialize glyph slice.
14867
14868 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
14869
14870 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
14871 (on_hot_spot_p): Make sure we always return a value.
14872 (Flookup_image_map): Remove unused var ix and iy.
14873 (note_mode_line_or_margin_highlight): Remove unused var `image'.
14874
14875 2004-04-27 Eli Zaretskii <eliz@gnu.org>
14876
14877 * msdos.c (init_environment): If one of the TMP... environment
14878 variables is set to a drive letter without a trailing slash,
14879 append a slash.
14880
14881 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
14882
14883 * editfns.c (lisp_time_argument): Provide externally.
14884
14885 * fileio.c (Fset_file_times): New function.
14886 (syms_of_fileio): Intern and staticpro it.
14887
14888 2004-04-27 Kim F. Storm <storm@cua.dk>
14889
14890 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
14891 header line strings.
14892
14893 * dispextern.h (struct it): New member use_default_face.
14894
14895 * xdisp.c (Qline_height): New variable.
14896 (syms_of_xdisp): Intern and staticpro it.
14897 (append_space_for_newline): Partially undo 2004-04-25 change;
14898 add default_face_p arg, and restore callers.
14899 Clear it->use_default_face after use.
14900 (x_produce_glyphs): Set default font for ascii char if
14901 it->use_default_font is set. Change line-spacing property to set
14902 just extra line spacing. Handle new line-height property.
14903
14904 2004-04-26 Andreas Schwab <schwab@suse.de>
14905
14906 * print.c (print_object): Print non-ascii characters in bool
14907 vector representation as octal escapes.
14908
14909 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
14910 * print.c (print_object): Use it instead of BITS_PER_CHAR for
14911 bool vectors.
14912 * lread.c (read1): Likewise.
14913 * alloc.c (Fmake_bool_vector): Likewise.
14914 * data.c (Faref, Faset): Likewise.
14915 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
14916 (mapcar1): Likewise.
14917
14918 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
14919
14920 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
14921
14922 2004-04-26 Miles Bader <miles@gnu.org>
14923
14924 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
14925
14926 2004-04-26 Juanma Barranquero <lektu@terra.es>
14927
14928 * buffer.c (Fpop_to_buffer): Fix docstring.
14929
14930 2004-04-26 Steven Tamm <steventamm@mac.com>
14931
14932 * lread.c (init_lread): Don't display missing lisp directory
14933 warnings with Carbon Emacs because self-contained bundled Emacs
14934 may be built without correct installation path.
14935
14936 2004-04-25 Kim F. Storm <storm@cua.dk>
14937
14938 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
14939
14940 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
14941
14942 * xdisp.c (append_space_for_newline): Rename from append_space.
14943 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
14944 (x_produce_glyphs): Handle line-spacing property on newline char.
14945 If value is t, adjust ascent and descent to fit current row height.
14946 If value is an integer or float, set extra_line_spacing to integer
14947 value, or to float value x current line height.
14948
14949 2004-04-23 Kenichi Handa <handa@m17n.org>
14950
14951 * fontset.c (Finternal_char_font): If POSITION is nil, return
14952 font for displaying CH with the default face.
14953
14954 2004-04-23 Juanma Barranquero <lektu@terra.es>
14955
14956 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
14957
14958 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14959
14960 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
14961 Don't make assumptions about the relative place of i and val.
14962 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
14963
14964 2004-04-21 Kim F. Storm <storm@cua.dk>
14965
14966 * dispextern.h (struct glyph_slice): New struct.
14967 (struct glyph): New member slice.
14968 (GLYPH_SLICE_EQUAL_P): New macro.
14969 (GLYPH_EQUAL_P): Use it.
14970 (struct glyph_string): New member slice.
14971 (struct it_slice): New struct.
14972 (struct it): New member slice, add member to stack too.
14973 New member constrain_row_ascent_descent_p.
14974 (image_ascent): Add prototype.
14975
14976 * dispnew.c (buffer_posn_from_coords): Return full image width
14977 and height even for image slices (posn is relative to full image).
14978 (marginal_area_string): Adjust x0,y0 for image slice.
14979
14980 * image.c (image_ascent): Add slice arg; calculate ascent for
14981 image slice (or full image).
14982
14983 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
14984 (syms_of_keyboard): Defsubr them.
14985
14986 * lisp.h (pos_visible_p): Fix prototype.
14987
14988 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
14989 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14990 (x_draw_image_foreground, x_draw_image_relief)
14991 (x_draw_image_foreground_1, x_draw_image_glyph_string):
14992 Draw sliced images.
14993
14994 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
14995 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
14996 (x_draw_image_foreground, x_draw_image_relief)
14997 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
14998 Draw sliced images.
14999
15000 * w32term.h (image_ascent): Remove prototype.
15001
15002 * window.c (Fpos_visible_in_window_p): Return pixel position if
15003 PARTIALLY arg is non-nil. Simplify. Doc fix.
15004 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
15005 to return/set vscroll in pixels.
15006
15007 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
15008
15009 * xdisp.c (Qslice): New variable.
15010 (syms_of_xdisp): Intern and staticpro it.
15011 (pos_visible_p): Return pixel position in new x and y args.
15012 (init_iterator): Reset it->slice info.
15013 (handle_display_prop): Parse (slice ...) property.
15014 (push_it, pop_it): Save/restore slice info.
15015 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
15016 force repositioning of tall row if window is vscrolled, as that
15017 would reset vscroll.
15018 (append_space): Set it->constrain_row_ascent_descent_p to avoid
15019 increasing row height if row is non-empty.
15020 (fill_image_glyph_string): Copy slice info.
15021 (take_vertical_position_into_account): Simplify.
15022 (produce_image_glyph): Handle iterator slice info, setup glyph
15023 slice info. Do not force minimum line height.
15024 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
15025 do not increase height (ascent/descent) of non-empty row when
15026 adding normal character glyph; instead reduce glyph ascent/descent
15027 appropriately; if row is higher than current glyph, adjust glyph
15028 descent/ascent to reposition glyph within the existing row.
15029 Likewise, when char is newline, only set ascent/descent if row is
15030 currently empty.
15031 (note_mouse_highlight): Handle hotspots with sliced image.
15032
15033 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
15034 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
15035 (x_draw_image_foreground, x_draw_image_relief)
15036 (x_draw_image_foreground_1, x_draw_image_glyph_string):
15037 Draw sliced images.
15038
15039 * xterm.h (image_ascent): Remove prototype.
15040
15041 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
15042
15043 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
15044
15045 2004-04-20 John Paul Wallington <jpw@gnu.org>
15046
15047 * fns.c (Fassoc, Feql): Fix indentation.
15048
15049 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
15050
15051 2004-04-19 John Paul Wallington <jpw@gnu.org>
15052
15053 * fns.c (Feql): New function.
15054 (syms_of_fns): Defsubr it.
15055
15056 2004-04-18 Jason Rumney <jasonr@gnu.org>
15057
15058 * w32select.c (Fw32_set_clipboard_data): Get sequence number
15059 after closing the clipboard.
15060
15061 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
15062
15063 * buffer.c (Fbuffer_base_buffer): Doc fix.
15064
15065 2004-04-17 Kim F. Storm <storm@cua.dk>
15066
15067 * keymap.c (Fkey_description): Add optional PREFIX arg.
15068 Combine prefix with KEYS to make up the full key sequence to describe.
15069 Correlate meta_prefix_char and following (simple) key to describe
15070 as meta modifier. All callers changed.
15071 (describe_map): Rename arg `keys' to `prefix'. Remove local
15072 `elt_prefix' var. Use Fkey_description with prefix instead of
15073 elt_prefix combined with Fsingle_key_description.
15074 (describe_vector): Declare static. Replace arg `elt_prefix' with
15075 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
15076 if !KEYMAP_P. Use Fkey_description with prefix instead of
15077 Fsingle_key_description.
15078
15079 * keymap.h (Fkey_description): Fix prototype.
15080 (describe_vector): Remove prototype.
15081
15082 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
15083
15084 * image.c (PNG_BG_COLOR_SHIFT): Remove.
15085 (png_load): Fix calculation of transparent background color on X
15086 and W32 platforms.
15087
15088 2004-04-16 Juanma Barranquero <lektu@terra.es>
15089
15090 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
15091 not too large before computing how much to scroll.
15092
15093 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
15094
15095 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
15096
15097 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
15098
15099 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
15100 Add hyperlink to Elisp manual to the docstring.
15101
15102 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
15103
15104 * callint.c (fix_command): Use XDCR.
15105
15106 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
15107
15108 * window.c (Fget_lru_window): Doc fix.
15109
15110 2004-04-14 Kim F. Storm <storm@cua.dk>
15111
15112 * editfns.c (Fformat): Fix allocation size of precision array.
15113
15114 * dispnew.c (update_window): Only set changed_p if
15115 scrolling_window actually did scroll.
15116 (scrolling_window): Only return 1 if we actually did scroll.
15117
15118 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
15119 height to glyph height when cursor row is not fully visible.
15120 (make_cursor_line_fully_visible): Add FORCE_P arg to return
15121 failure in case row is higher than window. Callers changed.
15122 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
15123 Try to scroll partially visible, higher-than-window cursor row.
15124 (redisplay_window): Always try to scroll partially visible,
15125 higher-than-window cursor row - both initially and again with
15126 centering_position = 0.
15127 Clear desired matrix before retrying with centering_position = 0.
15128
15129 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
15130
15131 * syntax.c (scan_lists): Simplify backward string scan.
15132 Fix off-by-one boundary check for string and comment fences.
15133
15134 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
15135
15136 * sheap.c, unexcw.c: New files.
15137
15138 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
15139
15140 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
15141 base buffer has been killed. Correct the error message if the
15142 base buffer does not exist.
15143
15144 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
15145
15146 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
15147 Cygwin itself. Add support for Xaw3d scrollbars.
15148
15149 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
15150
15151 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
15152
15153 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
15154 before Cygwin unexec.
15155
15156 * Makefile.in: Link changes for Cygwin unexec() support.
15157
15158 2004-04-12 Andreas Schwab <schwab@suse.de>
15159
15160 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
15161
15162 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
15163
15164 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
15165 IGNORE argument equals NAME. Doc fix.
15166
15167 2004-04-11 Masatake YAMATO <jet@gyve.org>
15168
15169 * buffer.c (fix_start_end_in_overlays): Make overlays
15170 empty if they are backwards.
15171
15172 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15173
15174 * xfaces.c (face_color_supported_p): Fix compilation without X11.
15175
15176 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
15177
15178 * doc.c (Fsnarf_documentation): Ignore new file name entries.
15179
15180 2004-04-06 Kim F. Storm <storm@cua.dk>
15181
15182 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
15183 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
15184
15185 * w32term.c (w32_read_socket): Set mouse_face_hidden after
15186 clearing highlight.
15187
15188 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
15189
15190 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
15191 clearing highlight.
15192
15193 * indent.c (vmotion): Do not reserve one column for continuation
15194 marks on window frames.
15195
15196 2004-04-04 Eli Zaretskii <eliz@gnu.org>
15197
15198 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
15199 from GCC.
15200
15201 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15202
15203 * .gdbinit-union: Remove.
15204
15205 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
15206 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
15207 ($nonvalbits): Remove.
15208 ($valmask): Set it by calling xreload to avoid redundancy.
15209
15210 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
15211 (gdb_emacs_intbits): Remove.
15212
15213 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15214
15215 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
15216
15217 2004-03-30 Kenichi Handa <handa@m17n.org>
15218
15219 * editfns.c (Fformat): Fix initialization of the array info.
15220
15221 2004-03-30 Kim F. Storm <storm@cua.dk>
15222
15223 * xterm.c (x_mouse_click_focus_ignore_position): New var.
15224 (syms_of_xterm): DEFVAR_BOOL it.
15225 (ignore_next_mouse_click_timeout): New var.
15226 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
15227 Use it to filter mouse clicks following focus event.
15228
15229 2004-03-29 David Ponce <david@dponce.com>
15230
15231 * callint.c (Fcall_interactively): Fix last change.
15232
15233 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
15234
15235 * eval.c (Fcommandp): Simplify.
15236
15237 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
15238 Extend to handle all kinds of functions.
15239
15240 * lisp.h (Finteractive_form): Declare.
15241
15242 * callint.c (Fcall_interactively): Use it.
15243
15244 2004-03-26 Kim F. Storm <storm@cua.dk>
15245
15246 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
15247 to catch errors in calc_pixel_width_or_height during redisplay.
15248
15249 2004-03-26 Masatake YAMATO <jet@gyve.org>
15250
15251 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
15252
15253 * lisp.h (fix_start_end_in_overlays): Likewise.
15254
15255 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
15256
15257 * editfns.c (Ftranspose_regions): Likewise.
15258
15259 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15260
15261 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
15262
15263 2004-03-19 Richard M. Stallman <rms@gnu.org>
15264
15265 * s/sol2-6.h: Delete previous change.
15266
15267 2004-03-19 Kim F. Storm <storm@cua.dk>
15268
15269 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
15270 to_charpos corresponds to newline in right fringe. Use local
15271 BUFFER_POS_REACHED_P macro.
15272
15273 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15274
15275 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
15276 to compile on non-window system.
15277
15278 2004-03-19 Kim F. Storm <storm@cua.dk>
15279
15280 * dispextern.h (calc_pixel_width_or_height): Add prototype.
15281
15282 * image.c (Qcenter): Move to xdisp.c.
15283
15284 * xdisp.c (Qcenter): Declare here.
15285 (syms_of_xdisp): Intern and staticpro it.
15286 (handle_single_display_prop): Allow space display property on all
15287 platforms.
15288 (display_mode_line): Set mode_line_p before displaying line.
15289 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
15290 handling. Remove complex cases for fringes and scroll-bars.
15291 Add left, right, and center alignment positions. Add text (area)
15292 width/height. Return width or height for image specs.
15293 (produce_stretch_glyph): Improve handling of :align-to. Is now
15294 relative to left of text area by default, but other base offsets
15295 can be specified -- also for text lines.
15296
15297 * term.c (produce_glyphs): Handle IT_STRETCH.
15298 (produce_stretch_glyph): New function to handle space width and
15299 align-to display properties on non-window systems.
15300
15301 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15302
15303 * fileio.c (Fread_file_name): Set completion-ignore-case for
15304 case-insensitive systems.
15305
15306 2004-03-14 Masatake YAMATO <jet@gyve.org>
15307
15308 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
15309 when keymap and cursor are setup.
15310
15311 2004-03-14 Steven Tamm <steventamm@mac.com>
15312
15313 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
15314
15315 2004-03-14 Kim F. Storm <storm@cua.dk>
15316
15317 * dispextern.h (x_find_image_file): Add prototype.
15318
15319 * image.c (x_find_image_file): Make extern.
15320
15321 * xfns.c (x_find_image_file): Remove prototype.
15322
15323 2004-03-13 Eli Zaretskii <eliz@gnu.org>
15324
15325 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
15326
15327 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
15328
15329 2004-03-12 Richard M. Stallman <rms@gnu.org>
15330
15331 * fns.c (internal_equal): New arg PROPS controls comparing
15332 text properties. All callers changed.
15333 (Fequal_including_properties): New function.
15334 (syms_of_fns): defsubr it.
15335
15336 2004-03-12 Kim F. Storm <storm@cua.dk>
15337
15338 Fix image support on MAC. From YAMAMOTO Mitsuharu.
15339
15340 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
15341 (image_background, image_background_transparent): Fix prototypes.
15342
15343 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
15344
15345 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
15346 (x_query_font, x_find_ccl_program, x_set_window_size)
15347 (x_make_frame_visible, mac_initialize, XCreatePixmap)
15348 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
15349 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
15350
15351 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
15352 (x_query_font, x_find_ccl_program, x_set_window_size)
15353 (x_make_frame_visible, mac_initialize, XCreatePixmap)
15354 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
15355 (mac_draw_line_to_pixmap): Add prototypes.
15356
15357 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15358
15359 * macterm.c (XTread_socket): Fix mouse click on tool bar.
15360
15361 2004-03-11 Kim F. Storm <storm@cua.dk>
15362
15363 * dispextern.h: Move image related prototypes from xfns.c section
15364 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
15365 HAVE_X_WINDOWS.
15366
15367 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
15368 Move gtkutil.o to new GTK_OBJ list.
15369 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
15370 (GTK_OBJ) [USE_GTK]: New declaration.
15371 (obj): Add $(GTK_OBJ) to list.
15372
15373 2004-03-11 Steven Tamm <steventamm@mac.com>
15374
15375 * image.c [MAC_OSX]: Include sys/stat.h.
15376
15377 * macfns.c (syms_of_macfns): Remove definitions of things now
15378 defined in image.c.
15379
15380 2004-03-11 Kim F. Storm <storm@cua.dk>
15381
15382 The following changes consolidates the identical/similar image
15383 support code previously found in xfns.c, w32fns.c, and macfns.c
15384 into a new file image.c.
15385
15386 * makefile.w32-in (OBJ1): Add image.o.
15387 ($(BLD)/image.$(O)): Add dependencies.
15388
15389 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
15390 (image.o): Add dependencies.
15391
15392 * image.c: New file with consolidated image support code.
15393 (COLOR_TABLE_SUPPORT): New define to control whether
15394 color table support is available (X only).
15395 (Bitmap_Record): Common name for x_bitmap_record,
15396 w32_bitmap_record, and mac_bitmap_record.
15397 (XImagePtr): Common name for pointer to XImage or equivalent.
15398 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
15399 to XImagePtr on X+MAC, and to HDC on W32.
15400 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
15401 (NO_PIXMAP): Common name for "None" or equivalent.
15402 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
15403 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
15404 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
15405 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
15406 Define with suitable equivalents on W32 and MAC for code sharing.
15407 (XDrawLine): Define on MAC for code sharing.
15408 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
15409 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
15410 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15411 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15412 (x_reference_bitmap, x_create_bitmap_from_data)
15413 (x_create_bitmap_from_file, x_destroy_bitmap)
15414 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15415 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15416 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15417 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15418 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15419 (define_image_type, lookup_image_type, valid_image_p)
15420 (image_error, enum image_value_type, struct image_keyword)
15421 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15422 (make_image, free_image, prepare_image_for_display, image_ascent)
15423 (four_corners_best, image_background, image_background_transparent)
15424 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15425 (make_image_cache, free_image_cache, clear_image_cache)
15426 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15427 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15428 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15429 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
15430 (init_image_func_pointer, image_load_quartz2d)
15431 (struct ct_color, init_color_table, free_color_table)
15432 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15433 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15434 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15435 (x_disable_image, x_build_heuristic_mask)
15436 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15437 (TIFF support, GIF support, Ghostscript support): Consolidate image
15438 code from xfns.c, w32fns.c, and macfns.c.
15439 (syms_of_image): Consolidate image related symbol setup here.
15440 (init_image): Consolidate image related initializations here.
15441
15442 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
15443 and init_image. Remove call to init_xfns.
15444
15445 * macterm.h (struct mac_bitmap_record): Add file member.
15446 Not currently used, but simplifies code sharing.
15447
15448 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15449 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15450 (x_reference_bitmap, x_create_bitmap_from_data)
15451 (x_create_bitmap_from_file, x_destroy_bitmap)
15452 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15453 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15454 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15455 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15456 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15457 (define_image_type, lookup_image_type, valid_image_p)
15458 (image_error, enum image_value_type, struct image_keyword)
15459 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15460 (make_image, free_image, prepare_image_for_display, image_ascent)
15461 (four_corners_best, image_background, image_background_transparent)
15462 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15463 (make_image_cache, free_image_cache, clear_image_cache)
15464 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15465 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15466 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15467 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
15468 (init_image_func_pointer, image_load_quartz2d)
15469 (struct ct_color, init_color_table, free_color_table)
15470 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15471 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15472 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15473 (x_disable_image, x_build_heuristic_mask)
15474 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15475 (TIFF support, GIF support, Ghostscript support): Merge with image
15476 code from xfns.c and macfns.c into image.c.
15477 (syms_of_xfns): Move image related symbols to image.c.
15478 (init_external_image_libraries, init_xfns): Remove; initialization
15479 moved to init_image in image.c.
15480
15481 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15482 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15483 (x_reference_bitmap, x_create_bitmap_from_data)
15484 (x_create_bitmap_from_file, x_destroy_bitmap)
15485 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15486 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15487 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15488 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15489 (define_image_type, lookup_image_type, valid_image_p)
15490 (image_error, enum image_value_type, struct image_keyword)
15491 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15492 (make_image, free_image, prepare_image_for_display, image_ascent)
15493 (four_corners_best, image_background, image_background_transparent)
15494 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15495 (make_image_cache, free_image_cache, clear_image_cache)
15496 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15497 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15498 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15499 (struct ct_color, init_color_table, free_color_table)
15500 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15501 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15502 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15503 (x_disable_image, x_build_heuristic_mask)
15504 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15505 (TIFF support, GIF support, Ghostscript support): Merge with image
15506 code from xfns.c and macfns.c into image.c.
15507 (syms_of_xfns): Move image related symbols to image.c.
15508 (init_external_image_libraries, init_xfns): Remove; initialization
15509 moved to init_image in image.c.
15510
15511 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15512 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15513 (x_reference_bitmap, x_create_bitmap_from_data)
15514 (x_create_bitmap_from_file, x_destroy_bitmap)
15515 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15516 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15517 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15518 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15519 (define_image_type, lookup_image_type, valid_image_p)
15520 (image_error, enum image_value_type, struct image_keyword)
15521 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15522 (make_image, free_image, prepare_image_for_display, image_ascent)
15523 (four_corners_best, image_background, image_background_transparent)
15524 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15525 (make_image_cache, free_image_cache, clear_image_cache)
15526 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15527 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15528 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15529 (struct ct_color, init_color_table, free_color_table)
15530 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15531 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15532 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15533 (x_disable_image, x_build_heuristic_mask)
15534 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15535 (TIFF support, GIF support, Ghostscript support): Merge with
15536 w32fns.c and macfns.c image code into image.c.
15537 (syms_of_xfns): Move image related symbols to image.c.
15538 (init_xfns): Remove; initialization moved to init_image in image.c.
15539
15540 * lisp.h (syms_of_image, init_image): Add protoypes.
15541 (init_xfns): Remove prototype.
15542
15543 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15544 (x_reference_bitmap, x_create_bitmap_from_data)
15545 (x_create_bitmap_from_file, x_destroy_bitmap)
15546 (x_create_bitmap_mask): Move prototypes from dispextern.h.
15547 (gamma_correct) [MAC_OS]: Add prototype.
15548
15549 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15550 (x_reference_bitmap, x_create_bitmap_from_data)
15551 (x_create_bitmap_from_file, x_destroy_bitmap)
15552 (x_create_bitmap_mask): Move prototypes to dispextern.h.
15553
15554 2004-03-09 Kenichi Handa <handa@etlken2>
15555
15556 * coding.c (decode_coding_emacs_mule): Handle insufficent source
15557 correctly.
15558
15559 2004-03-04 Richard M. Stallman <rms@gnu.org>
15560
15561 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
15562
15563 * window.c (Fdisplay_buffer): Doc fix.
15564
15565 * buffer.c (Fpop_to_buffer): Doc fix.
15566
15567 2004-03-03 Kim F. Storm <storm@cua.dk>
15568
15569 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
15570
15571 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
15572
15573 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
15574
15575 2004-03-02 Richard M. Stallman <rms@gnu.org>
15576
15577 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
15578
15579 2004-03-02 Kenichi Handa <handa@m17n.org>
15580
15581 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
15582
15583 2004-03-02 Kim F. Storm <storm@cua.dk>
15584
15585 * window.h (struct window): New member overlay_arrow_bitmap.
15586
15587 * window.c (make_window): Initialize overlay_arrow_bitmap.
15588
15589 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
15590 implement and integrate multiple overlay arrows with redisplay.
15591 (syms_of_xdisp): DEFVAR_LISP and initialize it.
15592 (last_arrow_position, last_arrow_string): Replace by properties.
15593 (Qlast_arrow_position, Qlast_arrow_string)
15594 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
15595 (syms_of_xdisp): Intern and staticpro them.
15596 (overlay_arrow_string_or_property, update_overlay_arrows)
15597 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
15598 (overlay_arrow_at_row): New functions for multiple overlay arrows.
15599 (redisplay_internal): Use them instead of directly accessing
15600 Voverlay_arrow_position etc. for multiple overlay arrows.
15601 (mark_window_display_accurate): Use update_overlay_arrows.
15602 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
15603 (try_window_id): Use overlay_arrows_changed_p.
15604 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
15605 (display_line): Use overlay_arrow_at_row to check multiple
15606 overlay arrows, and get relevant overlay-arrow-string and
15607 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
15608 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
15609 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
15610
15611 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
15612 (update_window_fringes): Remove unused code.
15613
15614 2004-03-01 Jason Rumney <jasonr@gnu.org>
15615
15616 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
15617
15618 2004-03-01 Juanma Barranquero <lektu@terra.es>
15619
15620 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
15621
15622 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
15623
15624 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15625
15626 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
15627 how many colors can be displayed.
15628
15629 2004-03-01 Kenichi Handa <handa@m17n.org>
15630
15631 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
15632 correctly.
15633
15634 2004-02-28 Kim F. Storm <storm@cua.dk>
15635
15636 * dispnew.c (update_window): Update header line also if there are
15637 no other changes in window (move code after set_cursor label).
15638
15639 * lisp.h (mark_window_display_accurate): Remove prototype.
15640
15641 * window.c (window_loop, Fforce_window_update): Force mode line
15642 updates by setting prevent_redisplay_optimizations_p and
15643 update_mode_lines.
15644
15645 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15646
15647 * xfns.c (x_window): Fix indentation.
15648
15649 * xterm.c (x_calc_absolute_position): Call x_real_positions
15650 to get WM window sizes and use those to calculate position.
15651 (x_set_offset): Remove code commented out.
15652
15653 2004-02-28 Miles Bader <miles@gnu.org>
15654
15655 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
15656
15657 2004-02-28 Kim F. Storm <storm@cua.dk>
15658
15659 * keyboard.c (kbd_buffer_store_event_hold): New function to store
15660 an event into kbd fifo, but with special handling of quit event;
15661 a quit event is saved for later, and further events are discarded
15662 until the saved quit event has been processed.
15663 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
15664 (gen_help_event): Store help event in kbd fifo.
15665 (NREAD_INPUT_EVENTS): Remove.
15666 (read_avail_input): Adapt to new read_socket_hook interface.
15667 Remove allocation and initialization of local input_event buffer,
15668 as read_socket_hook stores events directly in fifo. Allocate and
15669 initialize local hold_quit event to handle postponed quit event
15670 (and store it if set by kbd_buffer_store_event_hold).
15671
15672 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
15673 (gen_help_event): Fix prototype.
15674
15675 * macterm.c (XTread_socket): Remove bufp_r and
15676 numcharsp args. Add hold_quit arg.
15677 Rework to use just one, local, inev input_event. Store inev
15678 directly in fifo using kbd_buffer_store_event_hold.
15679
15680 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
15681 (read_input_waiting): Adapt to new read_socket_hook interface.
15682 Remove allocation and initialization of local input_event buffer,
15683 as read_socket_hook stores events directly in fifo. Allocate and
15684 initialize local hold_quit event to handle postponed quit event
15685 (and store it if set by kbd_buffer_store_event_hold).
15686
15687 * term.c (read_socket_hook): Fix arg list.
15688
15689 * termhooks.h (read_socket_hook): Fix prototype.
15690
15691 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
15692 numcharsp args. Add hold_quit arg.
15693 Rework to use just one, local, inev input_event. Store inev
15694 directly in fifo using kbd_buffer_store_event_hold.
15695
15696 * w32inevt.h (w32_console_mouse_position): Fix prototype.
15697
15698 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
15699 Add hold_quit arg. Rework to use just one, local, inev
15700 input_event. Store inev directly in fifo using
15701 kbd_buffer_store_event_hold. Update count in one place.
15702 Postpone call to gen_help_event until inev is stored; use new
15703 local do_help for this.
15704 Remove local emacs_event in handing of ButtonPress event; just use
15705 inev instead (so no reason to copy it later).
15706
15707 * xsmfns.c (x_session_check_input): Remove numchars arg.
15708
15709 * xterm.c (x_focus_changed, x_detect_focus_change):
15710 Remove numchars arg. Always store event into bufp arg.
15711 Return nothing. Callers changed accordingly.
15712 (glyph_rect): Simplify.
15713 (STORE_KEYSYM_FOR_DEBUG): New macro.
15714 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
15715 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
15716 (current_hold_quit) [USE_GTK]: Add.
15717 (event_handler_gdk): Adapt to new handle_one_xevent.
15718 (handle_one_xevent): Remove bufp_r and numcharsp args.
15719 Add hold_quit arg. Rework to use just one, local, inev
15720 input_event. Store inev directly in fifo using
15721 kbd_buffer_store_event_hold. Update count in one place.
15722 Postpone call to gen_help_event until inev is stored; use new
15723 local do_help for this.
15724 Simplify handling of keysyms (consolidate common code). Fix bug
15725 where count was updated with nchars instead of nbytes.
15726 Remove local emacs_event in handing of ButtonPress event; just use
15727 inev instead (so no reason to copy it later).
15728 Remove `out' label. Rename label `ret' to `done'; add various
15729 `goto done' to clarify code flow in deeply nested blocks.
15730 (x_dispatch_event): Simplify as handle_one_xevent now calls
15731 kbd_buffer_store_event itself.
15732 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
15733 arg. Call handle_one_xevent with new arglist. Store event from
15734 x_session_check_input in fifo.
15735 [USE_GTK]: Setup current_hold_quit.
15736 Decrement handling_signal before unblocking input.
15737 (x_initialize) [USE_GTK]: Initialize current_count.
15738
15739 * xterm.h (x_session_check_input): Fix prototype.
15740
15741 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15742
15743 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
15744
15745 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
15746 macgui.h).
15747
15748 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
15749
15750 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
15751 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
15752 (init_process) [MAC_OSX]: Avoid conflicts with Carbon/Carbon.h.
15753 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
15754 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
15755 (Bitmap): Remove typedef.
15756 (Pixmap): Change int to GWorldPtr.
15757
15758 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15759
15760 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15761 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
15762 New #define to extract 16-bit depth color components from unsigned
15763 long representation.
15764 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
15765 colors used for masks.
15766 (struct mac_display_info): Add color_p. Remove n_cbits.
15767
15768 * macfns.c: Include sys/types.h and sys/stat.h.
15769 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
15770 Include QuickTime/QuickTime.h.
15771 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15772 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
15773 functions defined in macterm.c.
15774 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
15775 (ZPixmap): New #define for compatibility with xfns.c.
15776 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15777 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15778 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
15779 New functions.
15780 (four_corners_best, x_create_x_image_and_pixmap)
15781 (x_destroy_x_image, unwind_create_frame, x_disable_image)
15782 (x_edge_detection, init_color_table, colors_in_color_table)
15783 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
15784 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
15785 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
15786 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
15787 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
15788 long mixup.
15789 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
15790 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
15791 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
15792 (x_set_cursor_type, Fxw_color_values, valid_image_p)
15793 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
15794 (x_alloc_image_color, clear_image_cache, lookup_image)
15795 (x_find_image_file, xbm_read_bitmap_file_data)
15796 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
15797 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
15798 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
15799 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
15800 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
15801 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
15802 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
15803 #if 0.
15804 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
15805 #if 0. Free white_relief.gc and black_relief.gc.
15806 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
15807 New functions (from xfns.c).
15808 (Fx_create_frame): Record unwind_create_frame.
15809 (Fxw_display_color_p): Use dpyinfo->color_p.
15810 (Fx_display_grayscale_p, Fx_display_planes): Don't use
15811 dpyinfo->n_cbits.
15812 (Fx_display_color_cells): Use dpyinfo->n_planes;
15813 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
15814 (Qheuristic, cross_disabled_images, emboss_matrix)
15815 (laplace_matrix): New variables (from xfns.c).
15816 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
15817 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
15818 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
15819 (image_background_transparent): New function (from xfns.c).
15820 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15821 (image_load_quicktime): Add declaration.
15822 [MAC_OSX] (image_load_quartz2d): Likewise.
15823 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
15824 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
15825 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
15826 (xbm_load_image_from_file, x_laplace_read_row)
15827 (x_laplace_write_row, pbm_read_file): Remove functions.
15828 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
15829 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
15830 (colors_in_color_table): Sync with xfns.c (although not used).
15831 (lookup_rgb_color): Don't lookup color table. Just do gamma
15832 correction.
15833 (COLOR_INTENSITY): New #define (from xfns.c).
15834 (x_disable_image): New function (from xfns.c).
15835 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15836 (x_build_heuristic_mask): Sync with xfns.c.
15837 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15838 (HAVE_PBM): Remove #ifdef.
15839 (pbm_load): Sync with xfns.c. Set img->width and img->height
15840 before IMAGE_BACKGROUND.
15841 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
15842 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
15843 Don't enclose with #if HAVE_PNG.
15844 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
15845 symbol _CGImageCreateWithPNGDataProvider is defined.
15846 Otherwise use image_load_quicktime.
15847 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
15848 [HAVE_PNG] (png_load): Sync with xfns.c.
15849 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
15850 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
15851 HAVE_JPEG.
15852 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
15853 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
15854 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
15855 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
15856 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
15857 (tiff_image_p, tiff_load): Don't enclose declarations with #if
15858 HAVE_TIFF.
15859 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
15860 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
15861 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
15862 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
15863 New functions (from xfns.c).
15864 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
15865 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
15866 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
15867 Don't enclose with #if HAVE_GIF.
15868 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
15869 animated gif. Otherwise use image_load_quicktime.
15870 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
15871 gif_DrawText to avoid conflict with QuickdrawText.h.
15872 [HAVE_GIF] (gif_load): Sync with xfns.c.
15873 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
15874 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
15875 Ghostscript is not supported yet).
15876 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
15877 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
15878 cross_disabled_images (from xfns.c). Remove #if 0 for supported
15879 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
15880 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
15881 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
15882 HAVE_PNG. Call EnterMovies to support animated gifs.
15883 Call init_image_func_pointer to bind a symbol
15884 _CGImageCreateWithPNGDataProvider if it is defined.
15885
15886 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
15887 (x_draw_bar_cursor): Sync declaration with xterm.c.
15888 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
15889 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
15890 graphics).
15891 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
15892 (mac_draw_line_to_pixmap, XCreatePixmap)
15893 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
15894 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
15895 New functions.
15896 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
15897 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
15898 Cast bits to char *.
15899 (reflect_byte): New function (from w32fns.c).
15900 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
15901 due to byte alignment.
15902 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
15903 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
15904 (XSetForeground): Remove static (now used in macfns.c).
15905 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
15906 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
15907 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
15908 (x_draw_glyph_string_box, x_draw_image_foreground)
15909 (x_draw_image_foreground_1, x_draw_image_glyph_string)
15910 (x_draw_stretch_glyph_string, x_draw_glyph_string)
15911 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
15912 Sync with xterm.c.
15913 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
15914 than the xterm.c version when a strictly horizontal or vertical
15915 line is drawn.
15916 (XTset_terminal_window): Add static.
15917 (x_make_frame_visible): Add UNBLOCK_INPUT.
15918 (x_free_frame_resources): New funcion (from xterm.c).
15919 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
15920 occurs in tool bar area.
15921 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
15922 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
15923 Initialize image cache.
15924 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
15925 Enclose unused functions with #if 0.
15926 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
15927 (decode_mac_font_name): New function to apply code conversions
15928 from a mac font name to an XLFD font name according to its script code.
15929 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
15930 font name to a mac font name according to REGISTRY and ENCODING fields.
15931 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
15932 whose name starts with `.'.
15933 (init_font_name_table): Use decode_mac_font_name. Add both
15934 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
15935 of a font is smJapanese.
15936 (mac_do_list_fonts): New function to list fonts that match a given
15937 pattern.
15938 (x_list_fonts, XLoadQueryFont): Use it.
15939 (XLoadQueryFont): Set rbearing field for each variable width
15940 character to avoid needless redraw.
15941 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
15942
15943 2004-02-26 Kim F. Storm <storm@cua.dk>
15944
15945 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
15946 as read_socket_hook handler on X aborts if buffer is too small
15947 and W32 handler doesn't always check buffer limit.
15948
15949 * xdisp.c (handle_single_display_prop): Handle left-fringe and
15950 right-fringe similar to a display margin image. Specifically,
15951 the characters having the fringe prop are no longer shown, and
15952 we use IT_IMAGE/next_element_from_image with image_id = -1 to
15953 do this. Set fringe bitmap face_id in it->face_id.
15954 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
15955 still realize it->face (i.e. the fringe bitmap face).
15956
15957 2004-02-25 Miles Bader <miles@gnu.org>
15958
15959 * xdisp.c (check_it): Check string/string_pos consistency.
15960 (init_iterator): Initialize string-related fields properly.
15961
15962 2004-02-11 Miles Bader <miles@gnu.org>
15963
15964 * xdisp.c (produce_image_glyph): Force negative descents to zero.
15965
15966 2004-02-10 Miles Bader <miles@gnu.org>
15967
15968 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
15969 BLOCK_INPUT can be nested, so it doesn't make much sense.
15970
15971 2004-02-24 Michael Mauger <mmaug@yahoo.com>
15972
15973 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
15974 (xbm_read_bitmap_data): Use unsigned char for image data.
15975
15976 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
15977
15978 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
15979
15980 2004-02-22 Jason Rumney <jasonr@gnu.org>
15981
15982 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
15983 correctly over other bitmaps.
15984
15985 2004-02-21 Eli Zaretskii <eliz@gnu.org>
15986
15987 * emacs.c (USAGE1): Split into two halves.
15988 (USAGE2): Second half of the old USAGE1.
15989 (USAGE3): Rename from USAGE2.
15990 (USAGE4): Rename from USAGE3.
15991
15992 2004-02-21 Juri Linkov <juri@jurta.org>
15993
15994 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
15995 Fix --multibyte. Move --help, --version to USAGE2. Add alias
15996 --file. Fix -f, -l. Sort options. Untabify.
15997 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
15998
15999 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
16000
16001 * category.c (Fdefine_category, Fcategory_docstring)
16002 (Fget_unused_category, Fset_category_table)
16003 (Fcategory_set_mnemonics): Doc fixes.
16004
16005 2004-02-20 Kim F. Storm <storm@cua.dk>
16006
16007 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
16008 The following changes are relative to the 2004-01-21 revision.
16009 (NREAD_INPUT_EVENTS): Define as max number of input events to read
16010 in one call to read_socket_hook. Value is 8.
16011 (read_avail_input): Separate and rework handling of read_socket_hook
16012 and non-read_socket_hook cases. Use smaller input_event buffer
16013 in read_socket_hook case, and repeat if full buffer is read.
16014 Use new local variable 'discard' to skip input after C-g.
16015 In non-read_socket_hook case, just use a single input_event, and
16016 call kbd_buffer_store_event on the fly for each character.
16017
16018 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16019
16020 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
16021 Remove unused `gu' alternative.
16022
16023 2004-02-19 Andreas Schwab <schwab@suse.de>
16024
16025 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
16026 warning.
16027
16028 2004-02-18 Kim F. Storm <storm@cua.dk>
16029
16030 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
16031 Fix last change.
16032
16033 2004-02-17 Kim F. Storm <storm@cua.dk>
16034
16035 * xdisp.c (fast_find_position): Fix return value of new version;
16036 it was inverted compared to the 21.1 version.
16037 (get_window_cursor_type): Don't look at glyph if NULL.
16038 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
16039
16040 * keyboard.c: Rework previous change; it didn't consider that the
16041 buf array was allocated on the stack.
16042 (prev_read): Remove variable.
16043 (read_avail_input_buf): New static event buffer array.
16044 (in_read_avail_input): New static variable to handle re-entrancy.
16045 (read_avail_input): Change buf to pinter to read_avail_input_buf.
16046 Use in_read_avail_input to handle re-entrance; when re-entered,
16047 fully initialize and use tmp_buf array instead of read_avail_input_buf.
16048 Do not initialize read_avail_input_buf in full here; instead assume it
16049 is always cleared on entry. To ensure that, we clear (just) the
16050 entries that were used before we return.
16051 (init_keyboard): Initialize read_avail_input_buf here.
16052
16053 2004-02-16 Jesper Harder <harder@ifa.au.dk>
16054
16055 * cmds.c (Fend_of_line): Doc fix.
16056
16057 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
16058
16059 * keyboard.c (prev_read): New static variable.
16060 (read_avail_input): Use it to zero out only those slots in buf[]
16061 that were used last time we were called.
16062
16063 2004-02-16 Eli Zaretskii <eliz@gnu.org>
16064
16065 * Makefile.in (obj): Move fringe.o from here...
16066 (XOBJ, MAC_OBJ): ...to here.
16067
16068 2004-02-16 Stephen Eglen <stephen@gnu.org>
16069
16070 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
16071
16072 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
16073
16074 * data.c (Fbyteorder):
16075 * fringe.c (Fdefine_fringe_bitmap):
16076 * xdisp.c (handle_single_display_prop):
16077 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
16078
16079 2004-02-16 Jason Rumney <jasonr@gnu.org>
16080
16081 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
16082
16083 2004-02-15 Steven Tamm <steventamm@mac.com>
16084
16085 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
16086 controlling emulation of a three button mouse with option and
16087 command keys.
16088 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
16089 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
16090
16091 2004-02-15 Kim F. Storm <storm@cua.dk>
16092
16093 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
16094
16095 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
16096 Perform byte-swapping.
16097
16098 2004-02-14 Kim F. Storm <storm@cua.dk>
16099
16100 * dispextern.h (struct draw_fringe_bitmap_params): Change member
16101 bits from char to short to facilitate wider bitmaps.
16102 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
16103 member.
16104
16105 * fringe.c (struct fringe_bitmap): Change member bits from char to
16106 short to facilitate 16 bits wide bitmaps. Modify all standard
16107 bitmaps accordingly.
16108 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
16109 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
16110 (draw_fringe_bitmap): Ditto.
16111 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
16112 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
16113 handle up to 16 bits wide bitmaps.
16114 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
16115 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
16116
16117 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
16118 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
16119 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
16120
16121 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
16122 so it is no longer necessary to expand them here.
16123
16124 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
16125
16126 2004-02-12 Kim F. Storm <storm@cua.dk>
16127
16128 * window.c (Fwindow_fringes): Doc fix.
16129
16130 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16131
16132 * xselect.c (x_get_foreign_selection): Add new optional parameter
16133 time_stamp.
16134 (Fx_get_selection_internal): Ditto, pass time_stamp to
16135 x_get_foreign_selection.
16136
16137 * data.c (Fbyteorder): New function.
16138
16139 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16140
16141 * atimer.c: Move include stdio.h to same place as in other files.
16142
16143 * region-cache.c: Ditto.
16144
16145 * sysdep.c: Ditto.
16146
16147 * xfaces.c: Ditto.
16148
16149 2004-02-09 Sam Steingold <sds@gnu.org>
16150
16151 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
16152
16153 2004-02-09 Kim F. Storm <storm@cua.dk>
16154
16155 * fringe.c: New file. Move original fringe related declarations
16156 and code from dispextern.h and xdisp.c here.
16157 Rework code to support user defined fringe bitmaps, redefining
16158 standard bitmaps, ability to overlay user defined bitmap with
16159 overlay arrow bitmap, and add faces to bitmaps.
16160 (Voverflow_newline_into_fringe): Declare here.
16161 (enum fringe_bitmap_align): New enum.
16162 (..._bits): All bitmaps are now defined without bitswapping; that
16163 is now done in init_fringe_once (if necessary).
16164 (standard_bitmaps): New array with specifications for the
16165 standard fringe bitmaps.
16166 (fringe_faces): New array.
16167 (valid_fringe_bitmap_id_p): New function.
16168 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
16169 (draw_fringe_bitmap): New function which draws fringe bitmap,
16170 possibly overlaying bitmap with cursor in right fringe or the
16171 overlay arrow in the left fringe.
16172 (update_window_fringes): Do not handle overlay arrow here.
16173 Compare and copy fringe bitmap faces.
16174 (init_fringe_bitmap): New function.
16175 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
16176 define and destroy user defined fringe bitmaps.
16177 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
16178 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
16179 (syms_of_fringe): New function. Defsubr new DEFUNs.
16180 DEFVAR_LISP Voverflow_newline_into_fringe.
16181 (init_fringe_once, init_fringe): New functions.
16182 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
16183
16184 * Makefile.in (obj): Add fringe.o.
16185 (fringe.o): New dependencies.
16186
16187 * dispextern.h (FRINGE_ID_BITS): New definition for number of
16188 bits allocated to hold a fringe number. Increase number of bits
16189 from 4 to 8 to allow user defined fringe bitmaps.
16190 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
16191 left_user_fringe_face_id, right_user_fringe_bitmap,
16192 right_user_fringe_face_id.
16193 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
16194 Move to new file fringe.c.
16195 (MAX_FRINGE_BITMAPS): Define here.
16196 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
16197 and overlay_p. Change member which to int.
16198 (struct redisplay_interface): New members define_fringe_bitmap
16199 and destroy_fringe_bitmap.
16200 (valid_fringe_bitmap_id_p): Add prototype.
16201 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
16202
16203 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
16204 arrows.
16205 (update_frame): Do flush_display if force_flush_display_p to
16206 ensure display (specifically fringes) are updated in a timely
16207 manner when resizing the frame by dragging the mouse.
16208 (update_window_line): Update row if overlay arrow changed.
16209 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
16210 or overlay arrow changed.
16211
16212 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
16213 syms_of_fringe, and init_fringe.
16214
16215 * frame.h (struct frame): New member force_flush_display_p.
16216
16217 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
16218 Add prototypes.
16219
16220 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
16221 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
16222 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
16223 Use cursor color for displaying cursor in fringe.
16224 (x_redisplay_interface): Add null handlers for
16225 define_fringe_bitmap and destroy_fringe_bitmap functions.
16226
16227 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
16228 xterm.c to handle overlayed fringe bitmaps and to use cursor color
16229 for displaying cursor in fringe.
16230 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
16231 specific functions to define and destroy fringe bitmaps in fringe_bmp.
16232 (w32_redisplay_interface): Add them to redisplay_interface.
16233 (w32_term_init): Call w32_init_fringe instead of explicitly
16234 defining fringe bitmaps in fringe_bmp array.
16235 (x_delete_display): Call w32_reset_fringes instead of explicitly
16236 destroying fringe bitmaps in fringe_bmp array.
16237
16238 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
16239 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
16240 (continued_bits, continuation_bits, ov_bits, first_line_bits)
16241 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
16242 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
16243 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
16244 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
16245 Move fringe handling vars and code to new file fringe.c.
16246 (handle_display_prop): Handle left-fringe and right-fringe
16247 display properties; store user fringe bitmaps in iterator.
16248 (move_it_in_display_line_to): Handle cursor in fringe at eob.
16249 (clear_garbaged_frames): Set force_flush_display_p if resized.
16250 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
16251 (display_line): Handle cursor in fringe at eob.
16252 (display_line): Set row user fringe bitmaps from iterator.
16253
16254 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
16255 Use cursor color for displaying cursor in fringe.
16256 (x_redisplay_interface): Add null handlers for
16257 define_fringe_bitmap and destroy_fringe_bitmap functions.
16258
16259 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16260
16261 * macfns.c (Fx_change_window_property): Make doc string and
16262 parameters same as for X version.
16263
16264 * w32fns.c (Fx_change_window_property): Ditto.
16265
16266 2004-02-07 Kim F. Storm <storm@cua.dk>
16267
16268 * xdisp.c (hscroll_window_tree): Position cursor near to right
16269 margin in hscrolled window when jumping to end of line (rather
16270 than centering cursor).
16271
16272 * process.c (wait_reading_process_input): Don't do adaptive read
16273 buffering if waiting for a specific process.
16274
16275 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
16276
16277 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
16278 (Fread_minibuffer, Feval_minibuffer)
16279 (Fread_string, Fread_no_blanks_input)
16280 (Fcompleting_read): Doc fixes.
16281 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
16282 completion-regexp-list. Define Qcase_fold_search and staticpro it.
16283 (read_minibuf): Fix initial comment.
16284 (Ftry_completion, Fall_completions, Ftest_completion): Bind
16285 case-fold-search to the value of completion-ignore-case when
16286 checking completion-regexp-list.
16287 (Fdisplay_completion_list): Make it handle arguments that are
16288 symbols. Doc fix.
16289
16290 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16291
16292 * xterm.h: Add declaration of free_frame_menubar.
16293
16294 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
16295 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
16296 (Fx_change_window_property): Add declaration of parameters type and
16297 format. Remove unused variable cons.
16298
16299 * xselect.c: Include stdio.h.
16300
16301 2004-02-05 Kenichi Handa <handa@m17n.org>
16302
16303 * fns.c (Fset_char_table_range): Fix previous change.
16304
16305 * buffer.c (Fset_buffer_multibyte): Fix docstring.
16306
16307 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
16308
16309 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
16310
16311 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
16312
16313 * keymap.c (Vmouse_events): Rename from Vmenu_events.
16314 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
16315
16316 2004-02-04 Kenichi Handa <handa@m17n.org>
16317
16318 * fns.c (Fset_char_table_range): Handle charsets ascii,
16319 eight-bit-control, and eight-bit-graphic correctly.
16320
16321 2004-02-03 Jason Rumney <jasonr@gnu.org>
16322
16323 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
16324
16325 * w32fns.c (x_to_w32_font): Likewise.
16326
16327 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16328
16329 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
16330 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
16331
16332 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
16333 ClientMessages.
16334
16335 * xselect.c: Include termhooks.h and X11/Xproto.h.
16336 (x_check_property_data, x_fill_property_data)
16337 (x_property_data_to_lisp, mouse_position_for_drop)
16338 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
16339 (Fx_send_client_event): Move here from xfns.c.
16340 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
16341
16342 * xfns.c (x-send-client-message): Move to xselect.c.
16343 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
16344 OUTER_P.
16345 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
16346 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
16347 if vector_ret_p is true.
16348 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
16349
16350 2004-02-02 Eli Zaretskii <eliz@gnu.org>
16351
16352 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
16353 basename of FILE relative to it, not FILE itself.
16354
16355 2004-02-02 Kenichi Handa <handa@m17n.org>
16356
16357 * coding.c (coding_restore_composition): Check invalid
16358 composition data more rigidly.
16359
16360 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
16361
16362 * fileio.c (Fread_file_name_internal): Correctly handle the case
16363 where insert-default-directory is nil.
16364 (Fread_file_name): Always return an empty string if the user exits
16365 with an empty minibuffer. Adapt the docstring accordingly.
16366 (syms_of_fileio): Adapt the docstring of insert-default-directory
16367 to the change in Fread_file_name.
16368
16369 2004-01-29 Eli Zaretskii <eliz@gnu.org>
16370
16371 * alloca.c [!alloca]: Fix the prototype for xfree.
16372
16373 2004-01-29 Kenichi Handa <handa@m17n.org>
16374
16375 * fns.c (string_char_to_byte): Optimize for ASCII only string.
16376 (string_byte_to_char): Likewise.
16377
16378 2004-01-28 Peter Runestig <peter@runestig.com>
16379
16380 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
16381
16382 2004-01-27 Steven Tamm <steventamm@mac.com>
16383
16384 * unexmacosx.c (unexec_copy): Do not copy more than was
16385 requested to prevent overwriting during unexec.
16386
16387 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16388
16389 * process.c (sigchld_handler): Add comment about not calling malloc.
16390
16391 * process.h: Add extern to synch_process_termsig.
16392
16393 2004-01-27 Steven Tamm <steventamm@mac.com>
16394
16395 * macterm.c (make_mac_frame, make_mac_terminal_frame):
16396 Move setting of scroll bars from make_mac_frame to
16397 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
16398
16399 2004-01-26 Richard M. Stallman <rms@gnu.org>
16400
16401 * search.c (Freplace_match): Handle nonexistent
16402 back-references properly.
16403
16404 2004-01-03 Richard M. Stallman <rms@gnu.org>
16405
16406 * window.c (decode_any_window): New function.
16407 (Fwindow_height, Fwindow_width, Fwindow_edges)
16408 (Fwindow_pixel_edges, Fwindow_inside_edges)
16409 (Fwindow_inside_pixel_edges): Use decode_any_window.
16410
16411 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16412
16413 * process.h: synch_process_termsig new variable.
16414
16415 * callproc.c: Define synch_process_termsig.
16416 (Fcall_process): Initiate synch_process_termsig to zero and
16417 check if non-zero and get signal name after subprocess has ended.
16418
16419 * process.c (sigchld_handler): Set synch_process_termsig
16420 if terminated by a signal. synch_process_death setting removed.
16421
16422 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
16423
16424 2004-01-26 Andreas Schwab <schwab@suse.de>
16425
16426 * print.c (print_preprocess): Declare size as EMACS_INT to not
16427 lose bits.
16428 (print_object): Likewise.
16429 * alloc.c (Fpurecopy): Likewise.
16430
16431 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
16432
16433 * window.c (Fwindow_minibuffer_p): Doc fix.
16434
16435 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
16436
16437 * editfns.c (Fformat): Make both passes accept the same set of flags.
16438
16439 2004-01-23 Kenichi Handa <handa@m17n.org>
16440
16441 * fns.c (Fmd5): If OBJECT is a buffer different from the current
16442 one, set buffer to OBJECT temporarily.
16443
16444 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
16445
16446 * keyboard.c (kbd_buffer_gcpro): Remove.
16447 (kbd_buffer_store_event, clear_event, Fdiscard_input)
16448 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
16449 Don't initialize and/or maintain the variable any more. It was made
16450 redundant by my commit of 2003-06-15.
16451
16452 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
16453
16454 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16455
16456 * lisp.h: Add undef DECL_ALIGN.
16457
16458 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
16459
16460 * process.c (wait_reading_process_input) [SYNC_INPUT]:
16461 Check interrupt_input_pending explicitly.
16462
16463 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
16464
16465 * keyboard.c (handle_async_input): New fun,
16466 extracted from input_available_signal.
16467 (input_available_signal, reinvoke_input_signal): Use it.
16468
16469 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
16470
16471 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
16472
16473 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
16474 manipulation macros for when tags are in the lower bits.
16475 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
16476 (DECL_ALIGN): New macro.
16477 (DEFUN): Use it.
16478
16479 * lisp.h [ENABLE_CHECKING]: Don't force union type.
16480
16481 * s/darwin.h (__attribute__): Remove outdated workaround.
16482
16483 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
16484
16485 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
16486 Don't check range of malloc address.
16487 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
16488
16489 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
16490
16491 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
16492
16493 2004-01-19 Kenichi Handa <handa@m17n.org>
16494
16495 * fontset.c (fontset_font_pattern): Fix previous change.
16496
16497 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
16498
16499 * xdisp.c (Voverflow_newline_into_fringe)
16500 (move_it_in_display_line_to, redisplay_internal)
16501 (update_window_fringes, redisplay_window, display_line, window):
16502 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
16503 that it compiles without a window-system.
16504 * dispnew.c (direct_output_for_insert, update_window): Likewise.
16505
16506 2004-01-16 Kim F. Storm <storm@cua.dk>
16507
16508 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
16509
16510 * buffer.c (init_buffer_once): Set buffer_defaults and
16511 buffer_local_flags for indicate_buffer_boundaries.
16512 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
16513 default- variable for it.
16514
16515 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
16516 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
16517 New members exact_window_width_line_p and cursor_in_fringe_p for
16518 overflowing newlines into right fringe.
16519 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
16520 and indicate_bottom_line_p for buffer boundaries and scrolling.
16521 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
16522 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
16523 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
16524 and HOLLOW_SQUARE_BITMAP.
16525 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
16526 Add prototypes.
16527
16528 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
16529 instead of related indicator fields.
16530 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
16531 (direct_output_for_insert): Handle exact width lines like
16532 contined lines. Call update_window_fringes.
16533 (update_window): Call update_window_fringes.
16534 (scrolling_window): Don't skip desired rows with changed bitmaps.
16535 Check if fringe bitmaps changes when assigning scrolled rows.
16536
16537 * xdisp.c (Voverflow_newline_into_fringe): New variable.
16538 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
16539 (move_it_in_display_line_to): Overflow newline into fringe for
16540 rows that are exactly as wide as the window.
16541 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
16542 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
16543 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
16544 (fringe_bitmaps): Add new bitmaps.
16545 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
16546 Select proper bitmap for cursor in fringe when appropriate.
16547 Handle alignment of bitmap to top or bottom of row.
16548 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
16549 done by update_window_fringes.
16550 (update_window_fringes, draw_window_fringes): New functions.
16551 (redisplay_internal): Call update_window_fringes in case only
16552 cursor row is updated.
16553 (redisplay_window): Call update_window_fringes.
16554 Explicitly call draw_window_fringes if redisplay was done using
16555 the current matrix or the overlay arrow is in the window.
16556 (try_window_reusing_current_matrix): Mark scrolled rows for
16557 fringe update (to update buffer-boundaries / scrolling icons).
16558 (find_last_unchanged_at_beg_row): Handle exact width lines line
16559 continued lines.
16560 (display_line): Overflow newline into fringe for rows that are
16561 exactly as wide as the window. Don't append space for newline
16562 in this case.
16563 (notice_overwritten_cursor): Explicitly clear cursor bitmap
16564 in fringe as if it had been overwritten.
16565 (erase_phys_cursor): Erase cursor bitmap in fringe.
16566 (syms_of_xdisp): Mark show-trailing-whitespace and
16567 void-text-area-pointer as user options.
16568 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
16569
16570 * xterm.c (x_update_window_end): Call draw_window_fringes.
16571 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16572 in row instead of actually drawing fringe bitmaps.
16573 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16574 (x_draw_window_cursor): Draw cursor in fringe.
16575
16576 * w32term.c (x_update_window_end): Call draw_window_fringes.
16577 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16578 in row instead of actually drawing fringe bitmaps.
16579 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16580 (w32_draw_window_cursor): Draw cursor in fringe.
16581
16582 * macterm.c (x_update_window_end): Call draw_window_fringes.
16583 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
16584 in row instead of actually drawing fringe bitmaps.
16585 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
16586 (mac_draw_window_cursor): Draw cursor in fringe.
16587
16588 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16589
16590 * xterm.c (handle_one_xevent): Don't handle characters that are part
16591 of an old style (XLookupString) compose sequence.
16592
16593 2004-01-15 Kenichi Handa <handa@m17n.org>
16594
16595 * search.c (Freplace_match): Use make_multibyte_string or
16596 make_unibyte_string according to the buffer multibyteness.
16597
16598 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
16599
16600 * alloc.c (struct interval_block, struct string_block)
16601 (struct symbol_block, struct marker_block, live_string_p)
16602 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
16603 Better preserve alignment for objects in blocks.
16604 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
16605
16606 * lread.c (defvar_per_buffer): Remove dead declaration.
16607
16608 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
16609 space size.
16610
16611 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16612
16613 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
16614 if a key press should pop down. Only pop down if a key is pressed
16615 outside the menu/dialog.
16616 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
16617 popup_get_selection.
16618 (create_and_show_dialog): Pass 1 for down_on_keypress to
16619 popup_get_selection.
16620
16621 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16622
16623 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
16624 BLOCK/UNBLOCK_INPUT.
16625
16626 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16627
16628 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
16629 specified.
16630
16631 2004-01-08 Kenichi Handa <handa@m17n.org>
16632
16633 * editfns.c (Fformat): Fix '&' to '&&'.
16634
16635 2004-01-08 Andreas Schwab <schwab@suse.de>
16636
16637 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
16638 size if PSEUDOVECTOR_FLAG is set.
16639
16640 2004-01-07 Kenichi Handa <handa@m17n.org>
16641
16642 * charset.c (Fdeclare_equiv_charset): Fix docstring.
16643
16644 * fontset.c (fontset_ref_via_base): Fix previous change.
16645
16646 2004-01-07 Kim F. Storm <storm@cua.dk>
16647
16648 * process.c (read_process_output): Only activate adaptive
16649 buffering if we read less than 256 bytes at a time.
16650
16651 2004-01-06 Kim F. Storm <storm@cua.dk>
16652
16653 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
16654 object and image object. Return glyph width and height.
16655 (mode_line_string, marginal_area_string): Ditto.
16656
16657 * dispextern.h (buffer_posn_from_coords, mode_line_string)
16658 (marginal_area_string): Fix prototypes.
16659
16660 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
16661 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
16662 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
16663
16664 * keyboard.c (make_lispy_position): Use modified mode_line_string,
16665 buffer_posn_from_coords, and marginal_area_string functions to
16666 include both string object and image object in the lispy position.
16667 Also add actual glyph width and height to position.
16668 (read_key_sequence): Use real buffer position from mouse
16669 event to find keymap property even when click is in marginal area.
16670
16671 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
16672 mode_line_string and marginal_area_string functions to handle
16673 both string object and image object properties.
16674
16675 2004-01-06 Andreas Schwab <schwab@suse.de>
16676
16677 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
16678 character.
16679
16680 2004-01-02 Andreas Schwab <schwab@suse.de>
16681
16682 * macterm.c (emacs_options, x_initialized, same_x_server):
16683 Remove unused (and duplicated) definitions.
16684
16685 2004-01-02 Kim F. Storm <storm@cua.dk>
16686
16687 * process.h (struct Lisp_Process): New members for adaptive read
16688 buffering: adaptive_read_buffering, read_output_delay, and
16689 read_output_skip.
16690
16691 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
16692 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
16693 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
16694 (process_output_delay_count, process_output_skip): New vars.
16695 (Vprocess_adaptive_read_buffering): New variable.
16696 (make_process): Initialize adaptive read buffering members.
16697 (Fstart_process): Set adaptive_read_buffering member.
16698 (deactivate_process): Cleanup adaptive read buffering.
16699 (wait_reading_process_input): Temporarily omit delayed
16700 subprocesses from the set of file descriptors to read from;
16701 adjust the select timeout if we skipped any subprocesses.
16702 (read_process_output): Increase adaptive read buffering delay if
16703 we read less than a full buffer; reduce delay when we read a
16704 full buffer.
16705 (send_process): Simplify using local Lisp_Process var.
16706 Reset adaptive read buffering delay after write.
16707 (init_process): Initialize process_output_delay_count and
16708 process_output_skip.
16709 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
16710
16711 2004-01-01 Jason Rumney <jasonr@gnu.org>
16712
16713 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
16714
16715 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
16716
16717 * print.c (Ferror_message_string): Add hyperlink in the docstring
16718 to the definition of `signal' in the Elisp manual.
16719 * eval.c (Fsignal): Ditto.
16720
16721 2003-12-29 James Clark <jjc@jclark.com>
16722
16723 * fns.c (internal_equal): Return t for two NaN arguments.
16724
16725 2003-12-29 Richard M. Stallman <rms@gnu.org>
16726
16727 * data.c (store_symval_forwarding): Handle setting
16728 default-fill-column, etc., by changing the value in
16729 buffers that use the default.
16730
16731 * minibuf.c (Fset_minibuffer_window): Doc fix.
16732
16733 * fileio.c (choose_write_coding_system): Ignore auto_saving
16734 if using the visited file for auto saves.
16735 (Fwrite_region): Don't update SAVE_MODIFF
16736 if auto-saving in visited file.
16737
16738 2003-12-29 Kenichi Handa <handa@m17n.org>
16739
16740 * dispextern.h (face_font_available_p): Extern it.
16741
16742 * fontset.c (Voverriding_fontspec_alist): New variable.
16743 (lookup_overriding_fontspec): New function.
16744 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
16745 (fontset_font_pattern): Likewise.
16746 (regulalize_fontname): New function.
16747 (Fset_fontset_font): Call regulalize_fontname.
16748 (Fset_overriding_fontspec_internal): New function.
16749 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
16750 Defsubr Sset_overriding_fontspec_internal.
16751
16752 * xfaces.c (face_font_available_p): New function.
16753
16754 2003-12-28 Richard M. Stallman <rms@gnu.org>
16755
16756 * buffer.c (Fother_buffer): Don't crash if BUF is nil
16757 or if its name is nil.
16758
16759 * buffer.c (Fkill_buffer): Don't delete auto-save file
16760 if it's the same as the visited file.
16761
16762 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
16763
16764 * coding.c (Fcheck_coding_system): Doc fix.
16765
16766 2003-12-28 Kim F. Storm <storm@cua.dk>
16767
16768 * Makefile.in (eval.o): Depend on dispextern.h.
16769
16770 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
16771 image glyph using image's ascent.
16772 (mode_line_string): Return image glyph as object clicked on.
16773 Adjust y0 for image glyph using image's ascent.
16774
16775 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
16776 (struct glyph): New members, ascent and descent. Used to save
16777 this glyph's ascent and descent, instead of having.
16778 (struct glyph): Declare member face_id using FACE_ID_BITS.
16779 (find_hot_spot): Add prototype.
16780
16781 * keyboard.c (Qimage): Remove extern (now in lisp.h).
16782 (QCmap): Declare extern.
16783 (make_lispy_position): When position is inside image hot-spot,
16784 use hot-spot element's id as posn element.
16785
16786 * lisp.h (IMAGEP): New macro to test for image object type.
16787 (Qimage): Declare extern.
16788
16789 * macfns.c (Qimage): Remove extern (now in lisp.h).
16790 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16791
16792 * macterm.c (Qface, Qmouse_face): Remove unused externs.
16793
16794 * w32fns.c (Qimage): Remove extern (now in lisp.h).
16795 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16796
16797 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
16798
16799 * w32term.c (Qface, Qmouse_face): Remove unused externs.
16800
16801 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
16802 pointer types.
16803 (Qrelative_width, Qalign_to): Remove unused variables.
16804 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
16805 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
16806 maps.
16807 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
16808 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
16809 code accordingly.
16810 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
16811 than row's ascent and height, to get sensible height on tall rows.
16812 (build_desired_tool_bar_string): Remove Qimage extern.
16813 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
16814 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
16815 image glyph is alone on the last line.
16816 (append_glyph, append_composite_glyph, produce_image_glyph)
16817 (append_stretch_glyph): Set glyph's ascent and descent.
16818 (on_hot_spot_p): New function to check if position is inside an
16819 rectangular, circular, or polygon-shaped image hot-spot,
16820 (find_hot_spot): New function to search for image hot-spot.
16821 (Flookup_image_map): New defun to search for image hot-spot.
16822 (define_frame_cursor1): New aux function to determine frame
16823 pointer.
16824 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
16825 `pointer' text property and :pointer image property to control
16826 frame pointer shape. Detect image hot-spots for pointer and
16827 help_echo properties. Use define_frame_cursor1.
16828 (note_mouse_highlight): Use Vvoid_text_area_pointer.
16829 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
16830 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
16831 Vshow_text_cursor_in_void.
16832
16833 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
16834
16835 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
16836 (Qimage): Remove extern (now in lisp.h).
16837 (valid_image_p, parse_image_spec): Use IMAGEP macro.
16838
16839 * xmenu.c (show_help_event): Remove unused code.
16840
16841 * xterm.c (Qface, Qmouse_face): Remove unused externs.
16842 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
16843 row's ascent and descent, to get a sensible height on tall rows.
16844
16845 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
16846
16847 * minibuf.c (Fcompleting_read): Undo previous change.
16848
16849 2003-12-25 Lars Hansen <larsh@math.ku.dk>
16850
16851 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
16852 Arguments GCPRO'ed in call to file name handler.
16853
16854 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
16855
16856 * termcap.c (tgetst1): Scan for "%pN"; if all
16857 N are continuous in [1,9], remove all "%pN".
16858
16859 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16860
16861 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
16862
16863 * xfaces.c (lface_fully_specified_p): Take into account that
16864 MAC OS always have unspecified stipple.
16865
16866 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
16867
16868 * tparam.c (tparam1): Add handling for `%pN', which
16869 means use param N for the next substitution.
16870
16871 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
16872
16873 * xfaces.c (Fcolor_gray_p): Fix omission bug:
16874 In case `frame' is nil, consult the selected frame.
16875 (Fcolor_supported_p): Likewise.
16876
16877 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
16878
16879 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
16880 Doc fixes.
16881
16882 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
16883 and an integer. Adapt the introductory comment accordingly.
16884 (Fread_from_minibuffer): Delete code moved into read_minibuf.
16885 Doc fix.
16886 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
16887 read_minibuf.
16888 (Fcompleting_read): Delete code moved into read_minibuf.
16889 (Ftest_completion): Make it handle obarrays and hash tables correctly.
16890
16891 2003-12-03 Kenichi Handa <handa@m17n.org>
16892
16893 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
16894 encoding sequence.
16895
16896 2003-12-01 Kenichi Handa <handa@m17n.org>
16897
16898 * composite.c (syms_of_composite): Don't make the compostion hash
16899 table week.
16900
16901 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
16902
16903 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
16904 * textprop.c (Fget_char_property_and_overlay): New function.
16905 (syms_of_textprop): Defsubr it.
16906
16907 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16908
16909 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
16910 to compile on terminal configuration.
16911
16912 * fileio.c (Fread_file_name): Check use_file_dialog also before
16913 calling Fx_file_dialog.
16914
16915 * fns.c (use_file_dialog): New variable.
16916 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
16917
16918 2003-11-29 Kim F. Storm <storm@cua.dk>
16919
16920 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
16921 (syms_of_msdos): Don't intern and staticpro them.
16922
16923 2003-11-27 Kim F. Storm <storm@cua.dk>
16924
16925 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
16926 coordinates relative to glyph at posn. If glyph is an image,
16927 return that as object at posn. Callers changed.
16928 (mode_line_string, marginal_area_string): Calculate and return
16929 pixel coordinates relative to glyph. Callers changed.
16930
16931 * dispextern.h (buffer_posn_from_coords, mode_line_string)
16932 (marginal_area_string): Fix prototypes.
16933 (window_box_left_offset, window_box_right_offset): Add prototypes.
16934
16935 * frame.h (get_specified_cursor_type, get_window_cursor_type):
16936 Remove prototypes.
16937
16938 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
16939
16940 * keyboard.c (make_lispy_position): Add x and y coordinates
16941 relative to the current glyph as 7th element of position.
16942 If glyph is an image, return it in the object element.
16943 (read_key_sequence): Skip checks for keymap property in cases
16944 where POSN_STRING is not a string (e.g. an image).
16945
16946 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
16947 (Vshow_text_cursor_in_void): New variable.
16948 (glyph_to_pixel_coords): Don't use negative hpos.
16949 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
16950 (append_stretch_glyph): Change ascent arg to be actual value
16951 in pixels rather than ratio to height. Callers changed.
16952 (calc_pixel_width_or_height): New aux function, implementing
16953 pixel based artihmetic for glyph widths and heights.
16954 (produce_stretch_glyph): Use calc_pixel_width_or_height for
16955 :width, :height, :align-to, and :ascent, thus allowing these to
16956 be specified in pixels as well as multiples of characters.
16957 Don't produce stretch glyphs with zero width or height.
16958 (get_specified_cursor_type): Declare static.
16959 (get_window_cursor_type): Declare static. Add glyph arg to be
16960 able to know when cursor is on an image; always substitute
16961 hollow-box cursor for filled-box cursor on images, to avoid
16962 negative images and flicker when blinking the cursor.
16963 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
16964 (note_mode_line_or_margin_highlight): Use non-text cursor rather
16965 than vertical scroll-bar cursor in display margins.
16966 (note_mouse_highlight): Use non-text cursor rather than text
16967 cursor in fringes and over images in the text area.
16968 Use non-text cursor when mouse pointer is outside editable text,
16969 i.e. in the void after end-of-line or end-of-buffer; this was
16970 already done for W32, but is now standard for all systems --
16971 user can toggle show-text-cursor-in-void to get old behaviour.
16972 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
16973 Vdisplay_pixels_per_inch.
16974
16975 2003-11-25 Andreas Schwab <schwab@suse.de>
16976
16977 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
16978 EMACS_INT to not lose bits.
16979 (Ffillarray): Don't set bits beyond the size of a bool vector.
16980
16981 2003-11-25 Kim F. Storm <storm@cua.dk>
16982
16983 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
16984 define this defun on systems that cannot use stderr as lvalue.
16985
16986 2003-11-24 Gerd Moellmann <gerd@gnu.org>
16987
16988 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
16989 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
16990 ld's default is incompatible with unexec.
16991
16992 2003-11-23 Kim F. Storm <storm@cua.dk>
16993
16994 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
16995 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
16996 (Fforce_window_update): New defun.
16997 (syms_of_window): Defsubr it.
16998 (Fset_window_margins, Fset_window_fringes): Doc fix.
16999
17000 * print.c (Fredirect_debugging_output): New defun.
17001 (syms_of_print): Defsubr it.
17002
17003 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
17004
17005 * fns.c (Fset_char_table_parent): Doc fix.
17006
17007 2003-11-22 Kim F. Storm <storm@cua.dk>
17008
17009 * dispnew.c (buffer_posn_from_coords): Return actual row/column
17010 for glyph clicked on, rather than (unused) pixel positions.
17011 (mode_line_string, marginal_area_string): Change X and Y args to
17012 pointers for returning actual row/column for glyph clicked on.
17013 Simplify and optimize loops.
17014
17015 * dispextern.h (mode_line_string, marginal_area_string):
17016 Update prototypes.
17017
17018 * keyboard.c (make_lispy_position): New function for generating
17019 mouse click positions from frame and pixel coordinates.
17020 Enhanced to return buffer position and actual row/column for
17021 events outside the text area using updated mode_line_string and
17022 marginal_area_string functions.
17023 Return left-fringe and right-fringe clicks as such, rather than
17024 clicks in text area.
17025 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
17026 pixel_to_glyph_coords, as we never use the results.
17027 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
17028 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
17029 Eliminate unused code in WHEEL_EVENT handling.
17030 (make_lispy_movement): Use make_lispy_position.
17031
17032 * window.c (coordinates_in_window): Remove redundant tests.
17033 Fix returned X pixel value for left-margin.
17034
17035 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
17036 mode_line_string and marginal_area_string parameters.
17037
17038 2003-11-22 Lars Hansen <larsh@math.ku.dk>
17039
17040 * w32.c (struct the_group, getgrgid): Add.
17041 * mac.c (struct my_group, getgrgid): Add.
17042
17043 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
17044
17045 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
17046
17047 2003-11-21 Lars Hansen <larsh@math.ku.dk>
17048
17049 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
17050 include in call to file name handler. Optionally translate numeric
17051 UID and GID to strings. Update docstring.
17052 (directory_files_internal): Add parameter ID-FORMAT.
17053 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
17054 include in call to file name handler and call to
17055 directory_files_internal. Update Docstring.
17056 (Fdirectory_files): Add dummy parameter in call to
17057 directory_files_internal.
17058 * lisp.h (Qinteger): Add.
17059 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
17060 (Ffile_attributes): Add parameter.
17061 * data.c (Qinteger): Export.
17062
17063 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
17064
17065 * fns.c (Freverse, Fnreverse): Doc fixes.
17066
17067 2003-11-19 Kim F. Storm <storm@cua.dk>
17068
17069 * xdisp.c (init_iterator): Initialize it->start to position
17070 before reseating (in case start position is invisible).
17071 (init_to_row_start): Set it->start to row-start.
17072 (redisplay_window): Accept optional_new_start if start position
17073 is invisible (in which case IT_CHARPOS overshoots PT).
17074 (display_line): Setup row->start from it->start (rather than
17075 it->current which is wrong if first char on line is invisible).
17076 When done, reseat it->start to it->current (= start of next row).
17077 (expose_area): Fix exposure of text area when first char (e.g. TAB)
17078 is only partially visible.
17079
17080 * dispextern.h (struct it): New member start.
17081
17082 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
17083
17084 * alloc.c (make_float, Fcons): Clear the markbit at init time.
17085 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
17086 of block_index outside of the macro call.
17087 (Fgarbage_collect): Remove null code.
17088
17089 * m/amdx86-64.h: Don't redefine XPNTR.
17090
17091 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
17092 of VALMASK.
17093
17094 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
17095 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
17096 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
17097
17098 * lisp.h (VALMASK): Only define for non-union type.
17099 (MARKBIT): Remove.
17100 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
17101 (XTYPE): Define unconditionally.
17102 (XSETTYPE): Remove one more remnant.
17103 (EQ): Define differently for the union and non-union cases.
17104 (INTMASK): New bit mask.
17105 (struct Lisp_Marker): Move down to prepare for upcoming patch.
17106 (GC_EQ): Delegate to EQ.
17107
17108 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
17109
17110 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17111
17112 * xterm.c (x_window_to_scroll_bar): Move check of display to
17113 where window_id is compared.
17114
17115 2003-11-17 Kim F. Storm <storm@cua.dk>
17116
17117 * dispextern.h (struct it): New member first_vpos.
17118
17119 * xdisp.c (start_display): Set it->first_vpos.
17120 (try_window_id): Use first_vpos to start display in first _text_
17121 line if no reusable lines at start of window with header line.
17122
17123 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17124
17125 * w32fns.c (XPutPixel):
17126 * w32bdf.c (w32_init_bdf_font):
17127 * sunfns.c (sel_read):
17128 * process.c (Fmake_network_process):
17129 * frame.c (store_frame_param):
17130 * fontset.c (Fset_fontset_font):
17131 * emacs.c (shut_down_emacs):
17132 * ccl.c (ccl_driver): Remove period at end of error message.
17133
17134 * config.in: Regenerate.
17135
17136 * xfns.c (x_window_to_frame, x_any_window_to_frame)
17137 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
17138 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
17139 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
17140 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
17141
17142 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
17143
17144 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
17145 (XTmouse_position, handle_one_xevent): Pass Display* to
17146 x_window_to_scroll_bar.
17147 (x_window_to_scroll_bar): Take a Display* argument.
17148 Check that display for frame is equal to Display* argument.
17149 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
17150 x_display_info_for_display instead. Use Display in xev instead
17151 of GDK_DISPLAY.
17152 (x_dispatch_event): Call x_display_info_for_display.
17153 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
17154 (x_connection_closed): Call xg_display_close for GTK.
17155 (x_term_init): Call xg_display_open for additional displays.
17156 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
17157 for GTK.
17158
17159 * xmenu.c (single_menu_item, mouse_position_for_popup)
17160 (x_activate_menubar): Formatting adjustments.
17161
17162 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
17163 adjustments.
17164
17165 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
17166 (xg_display_close, xg_create_default_cursor)
17167 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
17168 handling.
17169 (xg_left_ptr_cursor): Remove.
17170 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
17171 cursor here.
17172 (xg_win_to_widget): Take Display* argument, call
17173 gdk_xid_table_lookup_for_display.
17174 (xg_create_frame_widgets, xg_get_file_name, create_menus)
17175 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
17176 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
17177 in FRAME_X_DISPLAY_INFO.
17178 (xg_get_scroll_id_for_window): Take Display* argument.
17179 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
17180 (xg_initialize): Remove xg_left_ptr_cursor.
17181
17182 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
17183 Display* argument.
17184 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
17185
17186 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17187
17188 * xterm.c (x_detect_focus_change): Do not change focus frame for
17189 Enter/LeaveNotify if the current focus frame has explicit focus.
17190
17191 2003-11-14 Kim F. Storm <storm@cua.dk>
17192
17193 * dispnew.c (update_text_area): Fix redisplay error when hscroll
17194 is active and first glyph is only partially visible.
17195
17196 2003-11-13 Kenichi Handa <handa@m17n.org>
17197
17198 * xdisp.c (select_frame_for_redisplay): New function.
17199 (redisplay_internal): Record also selected_frame for
17200 unwind_redisplay. Call select_frame_for_redisplay before
17201 redrawing each frame.
17202 (unwind_redisplay): Argument changed to a cons.
17203
17204 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
17205
17206 * fns.c (Fstring_to_multibyte): Doc fix.
17207
17208 2003-11-11 Kenichi Handa <handa@m17n.org>
17209
17210 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17211
17212 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17213
17214 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
17215 program specified positions.
17216
17217 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17218
17219 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
17220
17221 2003-11-08 Kenichi Handa <handa@m17n.org>
17222
17223 * Makefile.in (lisp): Add kannada.el.
17224 (shortlisp): Likewise.
17225
17226 2003-11-07 Kenichi Handa <handa@m17n.org>
17227
17228 * coding.c (coding_allocate_composition_data):
17229 Reset coding->composing to COMPOSITION_NO.
17230 (coding_restore_composition): Detect invalid composition data.
17231 Give Fstring and Fvector a Lispy integer, not C int.
17232
17233 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
17234
17235 * floatfns.c (Flogb): Don't use VALMASK.
17236
17237 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
17238 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
17239
17240 * lisp.h (XINT): Move the cast to clarify what is going on.
17241 (GCTYPEMASK, XSETTYPE): Remove.
17242 (XGCTYPE): Make it an alias of XTYPE.
17243
17244 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17245
17246 * xterm.c (x_term_init): Fix formatting.
17247
17248 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17249
17250 * gtkutil.h (xg_have_tear_offs): Declare.
17251 (xg_keep_popup, xg_did_tearoff): Remove.
17252
17253 * gtkutil.c: Remove variable xg_did_tearoff.
17254 (xg_have_tear_offs): New function.
17255 (tearoff_remove): Just decrease xg_detached_menus.
17256 (tearoff_activate): Increase xg_detached_menus and call
17257 tearoff_remove when tearoff is removed.
17258 (xg_keep_popup): Remove function.
17259 (create_menus): Give add_tearoff_p as argument to recursive
17260 call to create_menus.
17261 (xg_create_widget): Use variables instead of multiple
17262 strcmp. Tell create_menus to create tear off only for
17263 menu bar menus.
17264 (xg_update_menubar): Change title for a detached menu also.
17265 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
17266 of deep_p.
17267 (xg_initialize): Initialize xg_detached_menus, remove
17268 initialization of xg_did_tearoff.
17269
17270 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
17271 xg_have_tear_offs returns non-zero.
17272 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
17273 call to xg_keep_popup.
17274
17275 2003-11-01 Andrew Choi <akochoi@shaw.ca>
17276
17277 * macterm.c (XTread_socket): Handle menubar selection and grow
17278 window only for mouseDown events.
17279
17280 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17281
17282 * xterm.c (x_term_init): For GTK part, increase x_initialized
17283 to check for more than one display. Use error instead of return 0.
17284
17285 2003-10-31 Andrew Choi <akochoi@shaw.ca>
17286
17287 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
17288 (copy_dysymtab): Call it.
17289
17290 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
17291
17292 * eval.c (Fdefvaralias): Doc fix.
17293
17294 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
17295
17296 * data.c (Fsetplist): Doc fix.
17297
17298 2003-10-14 Lute Kamstra <lute@gnu.org>
17299
17300 * window.c (Fset_window_fringes): Clarify docstring.
17301
17302 2003-10-14 Kim F. Storm <storm@cua.dk>
17303
17304 * window.c (Fset_window_margins): Simplify arg checking.
17305
17306 2003-10-13 Richard M. Stallman <rms@gnu.org>
17307
17308 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
17309 (print_partial_compiled_pattern): Replace assert with a printout.
17310 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
17311
17312 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
17313
17314 * window.c (Fset_window_margins): Allow only integers as args.
17315 (syms_of_window) <special-display-buffer-names,
17316 special-display-regexps>: Doc fixes.
17317
17318 2003-10-13 Lute Kamstra <lute@gnu.org>
17319
17320 * window.c (Fset_window_fringes): Elaborate docstring.
17321
17322 2003-10-12 Andrew Choi <akochoi@shaw.ca>
17323
17324 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
17325
17326 * s/darwin.h (GC_MARK_STACK): Define.
17327
17328 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17329
17330 * window.c (shrink_windows): New function.
17331 (size_window): Call shrink_windows to calculate window sizes when
17332 shrinking frame with more than one window.
17333
17334 2003-10-12 Kim F. Storm <storm@cua.dk>
17335
17336 * xdisp.c (compute_fringe_widths): Doc fix.
17337
17338 2003-10-08 Kenichi Handa <handa@m17n.org>
17339
17340 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
17341
17342 2003-10-07 Kenichi Handa <handa@m17n.org>
17343
17344 * coding.c (Qcoding_system_define_form): New variable.
17345 (syms_of_coding): Intern and staticpro it.
17346 (Fcheck_coding_system): Try to autoload the definition of
17347 CODING-SYSTEM.
17348
17349 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
17350
17351 * fns.c (Frequire): Doc fix.
17352
17353 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17354
17355 * xfns.c (Fx_send_client_event): New function as a base for
17356 manipulating extended window manager hints.
17357 (Fx_send_client_event): Remove unused variable s.
17358
17359 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
17360 that function is removed.
17361
17362 * xterm.c (x_set_offset): Use move_offset_left/top instead of
17363 x/y_pixels_outer_diff.
17364 (x_check_expected_move): Calculate move_offset_left/top.
17365
17366 * xterm.h (struct x_output): New members: move_offset_top/left.
17367
17368 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
17369 call x_set_offset directly.
17370
17371 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
17372
17373 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
17374
17375 * xterm.c (x_delete_display): Free font names and font_encoder
17376 in dpyinfo->font_table.
17377
17378 * xfns.c (Fx_close_connection): Only call XFreeFont here.
17379 Move xfree of font names to x_delete_display.
17380
17381 * xterm.h (struct x_display_info): New member, wm_type.
17382 (struct x_output): New members, expected_top/left and
17383 check_expected_move.
17384
17385 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
17386 is received.
17387 (handle_one_xevent): Rename x_check_expected_move from
17388 x_check_fullscreen_move.
17389 (x_set_offset): Only add WM decoration sizes to modified_top/left
17390 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
17391 (x_check_expected_move): Rename from x_check_fullscreen_move.
17392 Removed fullscreen specific code. Use check_expected_move,
17393 expected_left/top instead. Also, set wm_type.
17394 (x_term_init): Initialize wm_type to unknown.
17395
17396 * frame.c (x_fullscreen_move): Remove addition of WM decoration
17397 sizes to move_x/y.
17398
17399 2003-10-03 Kenichi Handa <handa@m17n.org>
17400
17401 * macterm.c (x_load_font): Clear all members of FONTP before start
17402 filling them.
17403
17404 2003-10-02 Kenichi Handa <handa@m17n.org>
17405
17406 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
17407 before calling find_ccl_program_func. Call find_ccl_program_func
17408 only when fontp->font_encoder is not NULL.
17409
17410 * xterm.c (x_load_font): Clear all members of FONTP before start
17411 filling them.
17412
17413 2003-10-03 John Paul Wallington <jpw@gnu.org>
17414
17415 * keymap.c (map_keymap): Don't abort when binding is a vector.
17416
17417 2003-10-02 Jason Rumney <jasonr@gnu.org>
17418
17419 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
17420 Sync dependencies with Makefile.in.
17421 (alloca.o): Remove.
17422
17423 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
17424 filling them.
17425
17426 * w32bdf.c (w32_load_bdf_font): Likewise.
17427
17428 2003-09-30 Richard M. Stallman <rms@gnu.org>
17429
17430 * term.c (set_tty_color_mode): Calculate current_mode_spec
17431 regardless of value of VAL.
17432
17433 * intervals.c (graft_intervals_into_buffer):
17434 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
17435 Handle over_used when splitting UNDER.
17436
17437 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17438
17439 * regex.c (regex_compile): Free the stack when returning from function.
17440
17441 2003-09-28 Kenichi Handa <handa@m17n.org>
17442
17443 * fontset.c (Finternal_char_font): Change return value to
17444 cons (FONT-NAME . GLYPH-CODE).
17445
17446 2003-09-28 Eli Zaretskii <eliz@gnu.org>
17447
17448 * term.c (tty_setup_colors): Treat any negative argument as -1.
17449
17450 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
17451
17452 * process.c (send_process): Delete unused temp_buf.
17453
17454 2003-09-26 Dave Love <fx@gnu.org>
17455
17456 * xterm.c (x_bitmap_mask): Declare.
17457
17458 2003-09-25 Dave Love <fx@gnu.org>
17459
17460 * Makefile.in (fns.o): Depend on md5.h.
17461
17462 2003-09-25 Kim F. Storm <storm@cua.dk>
17463
17464 * window.c (set_window_buffer): Fix redisplay problems when
17465 switching between buffers with different display margin widths.
17466
17467 2003-09-23 Kim F. Storm <storm@cua.dk>
17468
17469 * process.c (set_socket_option): Fix :bindtodevice option.
17470 (Fset_network_process_option): Update process contact list when
17471 setting option succeeds.
17472 (Fmake_network_process): Doc fix.
17473
17474 2003-09-23 Dave Love <fx@gnu.org>
17475
17476 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
17477
17478 2003-09-22 Eli Zaretskii <eliz@gnu.org>
17479
17480 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
17481 color mode is an integer number (it could be -1).
17482
17483 2003-09-22 Richard M. Stallman <rms@gnu.org>
17484
17485 * intervals.c (graft_intervals_into_buffer): Correct the main loop
17486 in the case where OVER is longer than UNDER.
17487
17488 2003-09-22 Masatake YAMATO <jet@gyve.org>
17489
17490 * window.c (Fset_window_scroll_bars): Validate the value of
17491 `vertical_type'.
17492
17493 2003-09-21 Kim F. Storm <storm@cua.dk>
17494
17495 * frame.c (Vdefault_frame_scroll_bars): New variable.
17496 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
17497 (syms_of_frame): DEFVAR_LISP it, and initialize according to
17498 window-system default scroll bar position.
17499
17500 * window.c (Fwindow_scroll_bars): Doc fix.
17501
17502 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17503
17504 * xterm.c (x_set_offset): Take window manager decorations into account.
17505
17506 2003-09-19 Richard M. Stallman <rms@gnu.org>
17507
17508 * atimer.h: Don't include lisp.h.
17509 (P_): Define it here (as well as elsewhere).
17510
17511 * print.c (Fprin1_to_string): Move the PRINTPREPARE
17512 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
17513
17514 * data.c (Fvariable_binding_locus): New function.
17515 (syms_of_data): defsubr it.
17516 (Flocal_variable_p): Delete duplicate call to indirect_variable.
17517
17518 2003-09-18 Dave Love <fx@gnu.org>
17519
17520 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
17521
17522 * process.c (Fnetwork_interface_info): Fix type error.
17523 (Fnetwork_interface_list): Doc fix.
17524 (read_process_output, read_process_output): Delete unused var.
17525
17526 2003-09-17 Kim F. Storm <storm@cua.dk>
17527
17528 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
17529 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
17530 (Fnetwork_interface_info): Check that ifreq struct has required
17531 fields before accessing them; this requires that those fields are
17532 defined as macros, which may be too restrictive on some platforms,
17533 but it is better than failing on other platforms.
17534 (syms_of_process): Only defsubr above fns when included.
17535
17536 2003-09-17 Dave Love <fx@gnu.org>
17537
17538 * unexalpha.c: Don't include varargs.h.
17539
17540 2003-09-17 Kim F. Storm <storm@cua.dk>
17541
17542 * process.c (Fset_process_sentinel): Add sentinel to childp plist
17543 for network process.
17544 (socket_options): Add `:' prefix to option names. Add optbit field.
17545 (set_socket_option): Remove no_error arg and special handling of s < 0.
17546 Return 1<<optbit for known option, 0 for unknown.
17547 Do not interpret 0 as false for boolean option (only nil).
17548 Pass failed option and value to report_file_error.
17549 (Fset_network_process_options): Replace by Fset_network_process_option.
17550 (Fset_network_process_option): New function to set just one option.
17551 (Fmake_network_process): Allow :coding arg to be a cons.
17552 Allow :server arg to be an integer specifying backlog size.
17553 Remove :options arg, and allow options to be specified directly
17554 as :KEY, VALUE pairs. Parse these options before binding socket.
17555 As before, :reuseaddr t is default for a server process, but this
17556 can now be disabled by specifying :reuseaddr nil.
17557 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
17558 (init_process): Availability of network options is now checked with
17559 simpler syntax (featurep 'make-network-process :OPTION); use loop to
17560 setup features.
17561 (syms_of_process): Fix defsubr's for the replaced functions.
17562
17563 2003-09-16 Dave Love <fx@gnu.org>
17564
17565 * Makefile.in: Depend on coding.h.
17566
17567 2003-09-14 Kim F. Storm <storm@cua.dk>
17568
17569 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
17570 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
17571 (syms_of_process): Defsubr them.
17572
17573 * config.in: Regenerate.
17574
17575 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
17576
17577 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
17578 * m/news-r6.h (XUNMARK): Remove.
17579 * m/mips.h (XUNMARK): Remove.
17580 * m/mips-siemens.h (XUNMARK): Remove.
17581 * m/iris4d.h (XUNMARK): Remove.
17582 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
17583
17584 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17585
17586 * lisp.h (VALBITS): Don't remove 1 for the markbit.
17587 (union Lisp_Object): Use unsigned int for types. Remove markbit.
17588 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
17589 (XTYPE): Use unsigned right-shift.
17590 (XMARKBIT, XMARK, XUNMARK): Remove.
17591
17592 * alloc.c (init_intervals, init_symbol, init_marker):
17593 Don't preallocate anything.
17594 (Fgarbage_collect, mark_object): Ignore the markbit.
17595
17596 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
17597
17598 2003-09-08 Lute Kamstra <lute@gnu.org>
17599
17600 * xdisp.c (pint2hrstr): New function.
17601 (decode_mode_spec): Add `%i' and `%I' specs.
17602 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
17603 for `mode-line-format'.
17604
17605 2003-09-07 Andreas Schwab <schwab@suse.de>
17606
17607 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
17608 avoid warning.
17609
17610 2003-09-07 Eli Zaretskii <eliz@gnu.org>
17611
17612 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
17613
17614 2003-09-03 Kim F. Storm <storm@cua.dk>
17615
17616 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
17617 change (superseded by 2002-08-30 change); the default blink-off
17618 cursor is now again "no cursor".
17619
17620 2003-09-01 Jason Rumney <jasonr@gnu.org>
17621
17622 * makefile.w32-in (alloca.o): Remove.
17623 (coding.o): Depend on intervals.h
17624 (emacs.o, bytecode.o): Depend on window.h
17625
17626 2003-09-01 Dave Love <fx@gnu.org>
17627
17628 * Makefile.in (alloca.o): Remove commands.
17629 (coding.o): Depend on intervals.h composite.h window.h.
17630 (emacs.o): Depend on window.h keyboard.h keymap.h.
17631 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
17632 (bytecode.o): Depend on window.h.
17633
17634 2003-08-31 Jason Rumney <jasonr@gnu.org>
17635
17636 * w32term.c (w32_per_char_metric): Allow cached metrics to be
17637 returned even when font_type is unknown.
17638
17639 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
17640
17641 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17642
17643 * xterm.c (x_term_init): Initialize new fields in x_display_info.
17644
17645 * xterm.h (struct x_display_info): Add red/green/blue_bits and
17646 *_offset.
17647
17648 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
17649 calculate pixel value.
17650
17651 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
17652
17653 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
17654 Don't tell redisplay display is accurate when it's actually been
17655 paused for pending input.
17656
17657 2003-08-29 Richard M. Stallman <rms@gnu.org>
17658
17659 * dispnew.c (adjust_glyph_matrix): Call window_box
17660 whenever W is nonzero.
17661
17662 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17663 (Fkill_local_variable, Fmake_variable_frame_local)
17664 (Flocal_variable_p, Flocal_variable_if_set_p):
17665 Use indirect_variable to trace thru variable aliases.
17666
17667 * config.in: Updated.
17668
17669 * callint.c (Fcall_interactively): Save and restore
17670 Vthis_command, Vthis_original_command, real_this_command,
17671 and current_kboard->Vlast_command.
17672
17673 * abbrev.c (Fexpand_abbrev): Insert before deleting.
17674
17675 2003-08-29 Gerd Moellmann <gerd@gnu.org>
17676
17677 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
17678
17679 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
17680
17681 * coding.c (decode_coding_iso2022): Initialize local variable c2.
17682 (decode_coding_sjis_big5): Likewise.
17683
17684 2003-08-27 Jason Rumney <jasonr@gnu.org>
17685
17686 * w32.c (sys_pipe): Protect against file descriptor overflow.
17687
17688 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
17689
17690 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
17691
17692 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
17693
17694 * xfns.c (Vgtk_version_string): New variable.
17695 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
17696
17697 2003-08-24 Eli Zaretskii <eliz@gnu.org>
17698
17699 * term.c (term_init): Remove `const' from buffer_size's declaration.
17700
17701 * Makefile.in (msdos.o): Depend on intervals.h.
17702
17703 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
17704
17705 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17706
17707 * xterm.h (struct x_display_info): New fields: client_leader_window
17708 and Xatom_wm_client_leader.
17709
17710 * xterm.c (x_initialize): Move call to x_session_initialize to ...
17711 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
17712
17713 * xsmfns.c (create_client_leader_window): New function.
17714 (x_session_initialize): Call create_client_leader_window, take
17715 dpyinfo as argument.
17716
17717 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
17718
17719 * Makefile.in (xsmfns.o): Add more depenedencies.
17720
17721 2003-08-21 Dave Love <fx@gnu.org>
17722
17723 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
17724
17725 2003-08-21 Kenichi Handa <handa@m17n.org>
17726
17727 * term.c (term_init): Fix previous change; don't rely on the
17728 length of `buffer' if TERMINFO is defined.
17729
17730 2003-08-20 Dave Love <fx@gnu.org>
17731
17732 * atimer.h: Include lisp.h.
17733
17734 * lisp.h (EMACS_LISP_H): New.
17735 (popup_activated_flag): Don't declare.
17736
17737 * alloca.c: Some merging with gnulib. Change logic and doc
17738 concerning (x)malloc/(x)free -- no longer Emacs-specific.
17739 [DO_BLOCK_INPUT]: Don't include lisp.h.
17740 (xmalloc, xfree): Declare.
17741 (malloc): Don't declare.
17742
17743 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
17744 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
17745 atimer.h, blockinput.h.
17746
17747 * alloc.c (lisp_align_malloc): Change type of `aligned'.
17748
17749 * alloca.s: Remove.
17750
17751 2003-08-19 Gerd Moellmann <gerd@gnu.org>
17752
17753 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
17754 use -lncurses.
17755
17756 * term.c (term_init): Use a buffer of size 4096 for tgetent since
17757 FreeBSD returns something longer than 2044. Abort if the end of
17758 the buffer is overwritten.
17759
17760 2003-08-19 Miles Bader <miles@gnu.org>
17761
17762 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
17763
17764 2003-08-19 Gerd Moellmann <gerd@gnu.org>
17765
17766 * alloc.c (lisp_align_malloc): Check for memory full when
17767 allocating ablocks, which also avoids freeing a pointer into an
17768 ablocks structure.
17769
17770 * puresize.h (BASE_PURESIZE): Increase to 1100000.
17771
17772 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
17773
17774 2003-08-16 Richard M. Stallman <rms@gnu.org>
17775
17776 * editfns.c (Fencode_time): Doc fix.
17777
17778 2003-08-16 David Ponce <david@dponce.com>
17779
17780 * fileio.c (Fwrite_region): Fix conditional expression to issue
17781 the right message.
17782
17783 2003-08-16 Juri Linkov <juri@jurta.org>
17784
17785 * syntax.c (Fforward_word): Argument changed to optional.
17786 Set default value to 1.
17787
17788 2003-08-15 Kenichi Handa <handa@m17n.org>
17789
17790 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
17791 what autoscaled.
17792 (best_matching_font): Once we find a better scalable font, set
17793 non_scalable_has_exact_height_p to 1.
17794 (try_font_list): Call try_alternative_families to try any family
17795 with the given registry.
17796
17797 2003-08-09 Andreas Schwab <schwab@suse.de>
17798
17799 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
17800
17801 * print.c (print_string): Fix printing of multibyte string with
17802 nontrivial printcharfun.
17803
17804 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17805
17806 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
17807
17808 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
17809
17810 2003-07-31 Kenichi Handa <handa@m17n.org>
17811
17812 * process.c (read_process_output): Return the actually read bytes
17813 instead of the result of decoding.
17814
17815 2003-07-31 Kenichi Handa <handa@m17n.org>
17816
17817 * xterm.h (struct x_bitmap_record): New member have_mask.
17818
17819 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
17820 to 0.
17821 (x_create_bitmap_from_file): Likewise.
17822 (x_destroy_bitmap): Check have_mask member before freeing a mask.
17823 (x_destroy_all_bitmaps): Likewise.
17824 (x_create_bitmap_mask): Set have_mask member to 1.
17825
17826 2003-07-30 Richard M. Stallman <rms@gnu.org>
17827
17828 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
17829
17830 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17831
17832 * gtkutil.c (xg_mark_data): Update calls to mark_object.
17833
17834 2003-07-29 Richard M. Stallman <rms@gnu.org>
17835
17836 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
17837 Conditionalize XIM code on HAVE_XIM.
17838
17839 * fns.c (Fclear_string): New function.
17840 (syms_of_fns): defsubr it.
17841
17842 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17843
17844 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17845
17846 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
17847
17848 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
17849
17850 * buffer.c (delete_all_overlays): New function.
17851 * buffer.h (delete_all_overlays): Declare.
17852 * coding.c (run_pre_post_conversion_on_str):
17853 * print.c (temp_output_buffer_setup):
17854 * fileio.c (Finsert_file_contents):
17855 * minibuf.c (get_minibuffer): Use it.
17856
17857 2003-07-22 Andrew Choi <akochoi@shaw.ca>
17858
17859 * unexmacosx.c (unexec_regions_sort_compare):
17860 (unexec_regions_merge): New functions. Sort and merge unexec
17861 regions before dumping them.
17862
17863 2003-07-22 Dave Love <fx@gnu.org>
17864
17865 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
17866
17867 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
17868
17869 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
17870 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
17871 MARKBIT as the gcmarkbit for strings.
17872
17873 2003-07-21 Richard M. Stallman <rms@gnu.org>
17874
17875 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
17876
17877 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
17878 (syms_of_fns): Corresponding change.
17879
17880 * alloc.c (syms_of_alloc): Doc fixes.
17881
17882 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
17883
17884 * s/netbsd.h: Use -Wl syntax.
17885
17886 2003-07-17 Richard M. Stallman <rms@gnu.org>
17887
17888 * xterm.c (xim_initialize): Redo 6/24 change.
17889
17890 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
17891
17892 * buffer.c (copy_overlays): Use EMACS_INT for positions.
17893 (Fswitch_to_buffer): Don't signal an error when switching to the same
17894 buffer in a dedicated window.
17895
17896 * alloc.c: Use bitmaps for cons, as was done for floats.
17897 (init_float, init_cons): Let the normal code allocate the first block.
17898 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
17899 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
17900 New macros.
17901 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
17902 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
17903 (live_cons_p): Check the pointer is not past the `conses' array.
17904 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
17905 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
17906 (survives_gc_p): Use CONS_MARKED_P and simplify.
17907 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
17908
17909 2003-07-13 Paul Eggert <eggert@twinsun.com>
17910
17911 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
17912 puts it into BSS instead, at least on Solaris 8 and 9.
17913 This is a valid optimization, and it may occur on other platforms,
17914 so Emacs should not assume that initializing a static variable to
17915 zero puts it into data.
17916 * alloc.c (pure, staticvec):
17917 Initialize these arrays to nonzero, so that they're not
17918 put into BSS by that optimization.
17919
17920 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
17921
17922 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
17923 (lisp_align_malloc): Use posix_memalign is available.
17924 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
17925 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
17926 for consistency. Update users.
17927
17928 2003-07-13 Richard M. Stallman <rms@gnu.org>
17929
17930 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
17931
17932 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
17933
17934 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
17935 and use the Gtk+ function gtk_window_icon_from_file if available.
17936
17937 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
17938 handle mask of bitmaps.
17939 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
17940 mask property.
17941 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
17942
17943 * xterm.h (xg_set_icon): New function.
17944
17945 2003-07-12 Paul Eggert <eggert@twinsun.com>
17946
17947 * unexelf.c (unexec): Consider a section to precede the .bss
17948 section if its addresses overlap that of .bss.
17949
17950 2003-07-12 Richard M. Stallman <rms@gnu.org>
17951
17952 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
17953
17954 * config.in (HAVE_CRTIN): Add #undef.
17955 (INLINE): Really inline only if OPTIMIZE is defined.
17956
17957 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
17958 END_FILES_1.
17959 (START_FILES_1, END_FILES_1): New macros (conditional).
17960 (LD_SWITCH_SYSTEM_TEMACS): Define.
17961
17962 * s/openbsd.h: Don't include bsd4-3.h.
17963 (TERMINFO): Define.
17964 (LIBS_TERMCAP): Define.
17965 (LD_SWITCH_SYSTEM): Define (two definitions).
17966
17967 * xfns.c: Include libpng/png.h instead of png.h.
17968
17969 2003-07-11 Andreas Schwab <schwab@suse.de>
17970
17971 * buffer.c (modify_overlay): Update prototype.
17972 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
17973 Likewise.
17974
17975 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17976
17977 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
17978 (struct interval): Move to intervals.h.
17979 (struct Lisp_Marker): Use EMACS_INT for position info.
17980 (forward_point): Remove prototype of defunct function.
17981 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
17982 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
17983 (syms_of_textprop, set_text_properties): Remove prototypes that are
17984 already in intervals.h.
17985
17986 * intervals.h (struct interval): Move from lisp.h.
17987 Use EMACS_INT for position and size info.
17988
17989 * coding.c: Include intervals.h for Fset_text_properties.
17990
17991 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17992 position and length information.
17993
17994 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
17995
17996 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
17997 position and length information.
17998
17999 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
18000
18001 Change overlays_after and overlays_before so the overlays themselves
18002 are linked into lists, rather than using cons cells. After all each
18003 Lisp_Misc already occupies 5 words, so we can add a `next' field to
18004 Lisp_Overlay for free and save up one cons cell per overlay (not
18005 to mention one indirection when traversing the list of overlay).
18006
18007 * lisp.h (struct Lisp_Overlay): New field `next'.
18008
18009 * buffer.h (struct buffer): Change overlays_before and overlays_after
18010 from Lisp lists of overlays to pointers to overlays.
18011
18012 * buffer.c (overlay_strings, recenter_overlay_lists):
18013 Fix typo in eassert in last commit.
18014 (unchain_overlay): New function.
18015 (add_overlay_mod_hooklist): Use AREF.
18016 (copy_overlays, reset_buffer, overlays_at, overlays_in)
18017 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
18018 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
18019 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
18020 (report_overlay_modification, evaporate_overlays, init_buffer_once):
18021 Adjust to new type of overlays_(before|after).
18022
18023 * alloc.c (mark_object): Mark the new `next' field of overlays.
18024 (mark_buffer): Manually mark the overlays_(after|before) fields.
18025
18026 * coding.c (run_pre_post_conversion_on_str):
18027 * editfns.c (overlays_around):
18028 * xdisp.c (load_overlay_strings):
18029 * fileio.c (Finsert_file_contents):
18030 * indent.c (current_column):
18031 * insdel.c (signal_before_change, signal_after_change):
18032 * intervals.c (set_point_both):
18033 * print.c (temp_output_buffer_setup): Use new type for
18034 overlays_(before|after).
18035
18036 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
18037
18038 * buffer.c (report_overlay_modification): Don't run hooks while
18039 traversing the list of overlays.
18040
18041 * buffer.h (struct buffer): Use an int for overlay_center.
18042 (overlays_at, evaporate_overlays, recenter_overlay_lists)
18043 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
18044
18045 * buffer.c (reset_buffer, recenter_overlay_lists)
18046 (adjust_overlays_for_insert, adjust_overlays_for_delete)
18047 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
18048 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
18049 (overlays_at, evaporate_overlays, recenter_overlay_lists)
18050 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
18051
18052 * xdisp.c (fast_find_position): Remove unused var.
18053
18054 * cmds.c (Qexpand_abbrev): New sym.
18055 (syms_of_cmds): Initialize it.
18056 (internal_self_insert): Use it to call expand-abbrev.
18057
18058 2003-07-09 Kim F. Storm <storm@cua.dk>
18059
18060 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
18061 was configured with --without-xim.
18062 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
18063
18064 2003-07-07 Richard M. Stallman <rms@gnu.org>
18065
18066 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
18067
18068 * alloc.c (Fgarbage_collect): Doc fix.
18069
18070 2003-07-07 Nozomu Ando <nand@mac.com>
18071
18072 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
18073
18074 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
18075
18076 * minibuf.c (read_minibuf): UNGCPRO before returning.
18077 (Ftry_completion, Fall_completions): Doc fix.
18078
18079 * alloc.c (live_float_p): Check that p is not past the `floats' array,
18080 now that `floats' is not the last element of the struct any more.
18081
18082 2003-07-06 Jason Rumney <jasonr@gnu.org>
18083
18084 * w32term.h (ClipboardSequence_Proc): New type.
18085
18086 * w32fns.c (clipboard_sequence_fn): New variable.
18087 (globals_of_w32fns): Initialize it.
18088
18089 * w32select.c (last_clipboard_sequence_number): New variable.
18090 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
18091 number if possible.
18092
18093 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
18094
18095 * m/amdx86-64.h (MARKBIT):
18096 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
18097 MARKBIT and ARRAY_MARK_FLAG any more.
18098
18099 * m/hp800.h (XSETMARKBIT):
18100 * m/sr2k.h (XSETMARKBIT):
18101 * lisp.h (XSETMARKBIT): Remove unused macro.
18102
18103 * lisp.h (mark_object): Change prototype.
18104
18105 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
18106 (last_marked): Change accordingly.
18107 (mark_interval, mark_maybe_object, mark_maybe_pointer)
18108 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
18109 (mark_buffer): Update calls to mark_object.
18110
18111 * bytecode.c (mark_byte_stack):
18112 * fns.c (sweep_weak_table):
18113 * keyboard.c (mark_kboards): Update calls to mark_object.
18114
18115 2003-07-06 Jason Rumney <jasonr@gnu.org>
18116
18117 * alloc.c (struct ablock): Only include padding when there is some.
18118
18119 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
18120
18121 * alloc.c (ALIGN): Add casts to simplify usage.
18122 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
18123 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
18124 (struct ablock, struct ablocks): New types.
18125 (free_ablock): New global var.
18126 (lisp_align_malloc, lisp_align_free): New functions.
18127 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
18128 (struct float_block): Reorder and add gcmarkbits.
18129 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
18130 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
18131 (init_float, make_float): Use lisp_align_malloc.
18132 (free_float, live_float_p): Don't use `type' any more.
18133 (make_float): Use FLOAT_UNMARK to access to mark bit.
18134 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
18135 Use FLOAT_MARKED_P to access the mark bit.
18136 (pure_alloc): Simplify use of ALIGN.
18137 (mark_object): Use FLOAT_MARK to access the mark bit.
18138 (gc_sweep): Use new macros to access the float's mark bit.
18139 (init_alloc_once): Init free_ablock.
18140
18141 * lisp.h (struct Lisp_Float): Remove unused field `type'.
18142
18143 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
18144
18145 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
18146 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
18147 (allocate_buffer): Move.
18148 (string_bytes): Don't mask markbit of `size_byte'.
18149 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
18150 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
18151 Use the `size' field of buffers (rather than the `name' field) for
18152 the mark bit, as is done for all other vectorlike objects.
18153 Use the new macros to access the mark bit of vectorlike objects.
18154
18155 2003-06-26 Richard M. Stallman <rms@gnu.org>
18156
18157 * puresize.h (BASE_PURESIZE): Increment base size.
18158
18159 * xdisp.c (fast_find_position): Enable Gerd's new definition.
18160
18161 * xterm.c (xim_initialize): Undo previous change.
18162
18163 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
18164
18165 * alloc.c (survives_gc_p): Simplify.
18166
18167 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
18168
18169 * window.c (Fset_window_dedicated_p): Simplify.
18170 (display_buffer_1): Don't raise the win from which minibuf was entered.
18171 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
18172 (Fminibuffer_selected_window): Simplify.
18173
18174 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
18175
18176 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
18177 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
18178
18179 * insdel.c (check_markers, adjust_markers_for_delete)
18180 (adjust_markers_for_insert, adjust_markers_for_replace)
18181 (prepare_to_modify_buffer, RESTORE_VALUE):
18182 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
18183 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
18184 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
18185 * alloc.c (Fmake_marker, free_marker, gc_sweep):
18186 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
18187 * editfns.c (save_excursion_restore, transpose_markers):
18188 * window.c (delete_window):
18189 * xdisp.c (message_dolog): Update for new types.
18190
18191 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18192
18193 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
18194 (realize_default_face): Use default_face_done_p for the force_p
18195 argument to set_lface_from_font_name. Set default_face_done_p to one.
18196
18197 * frame.c (make_frame): Initialize default_face_done_p.
18198
18199 * frame.h (struct frame): Add default_face_done_p.
18200
18201 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
18202 will be defined.
18203
18204 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
18205
18206 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
18207 Initialize the new field `gcmarkbit'.
18208 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
18209 (mark_interval_tree): Don't mark the tree separately from the nodes.
18210 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
18211 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
18212 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
18213
18214 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
18215 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
18216 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
18217 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
18218 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
18219
18220 2003-06-24 Dave Love <fx@gnu.org>
18221
18222 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
18223
18224 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
18225 from gnulib.
18226
18227 2003-06-21 Richard M. Stallman <rms@gnu.org>
18228
18229 * fileio.c (Fwrite_region): Alternate messages
18230 for append and partial write.
18231
18232 * keyboard.c (read_key_sequence): When converting upcase fn key to
18233 downcase, update fkey and keytran so `backspace' gets translated.
18234
18235 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
18236
18237 * process.c (wait_reading_process_input): Don't signal SIGIO
18238 in batch mode.
18239
18240 2003-06-17 Kenichi Handa <handa@m17n.org>
18241
18242 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
18243 composite.h.
18244
18245 * xselect.c: Don't include charset.h, coding.h, composite.h.
18246 (Qforeign_selection): New variable.
18247 (syms_of_xselect): Intern and static it.
18248 (selection_data_to_lisp_data): Return a unibyte string made from
18249 data with `foreign-selection' text property.
18250
18251 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
18252
18253 * termhooks.h (EVENT_INIT): New macro.
18254
18255 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
18256
18257 * alloc.c (mark_kboards): Move to keyboard.c.
18258
18259 * keyboard.c (record_asynch_buffer_change, read_avail_input):
18260 * xterm.c (x_dispatch_event):
18261 * xmenu.c (find_and_call_menu_selection):
18262 * xdisp.c (handle_tool_bar_click):
18263 * w32menu.c (menubar_selection_callback):
18264 * sysdep.c (kbd_input_ast, read_input_waiting):
18265 * msdos.c (dos_rawgetc):
18266 * macterm.c (mac_check_for_quit_char):
18267 * macmenu.c (menubar_selection_callback):
18268 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
18269 data to kbd_buffer_store_event.
18270
18271 2003-06-15 Kim F. Storm <storm@cua.dk>
18272
18273 * xdisp.c (x_fix_overlapping_area): Always use area relative X
18274 to fix redisplay problem with tall characters (such as \e,AC\e(B).
18275
18276 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
18277
18278 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
18279
18280 2003-06-12 Kenichi Handa <handa@m17n.org>
18281
18282 * fileio.c (Fwrite_region): Save and restore restriction.
18283
18284 2003-06-12 Dave Love <fx@gnu.org>
18285
18286 * alloca.c (alloca): Declare arg as size_t.
18287
18288 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
18289 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
18290
18291 2003-06-11 Dave Love <fx@gnu.org>
18292
18293 * search.c (shrink_regexp_cache): Use xrealloc.
18294 (syms_of_search): Use xmalloc.
18295
18296 2003-06-10 Kim F. Storm <storm@cua.dk>
18297
18298 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
18299 Adjust phys_cursor.x to be relative to window box, rather than
18300 text area before checking -- to ensure cursor is redrawn when
18301 exposing window.
18302 Note: This also fixes a similar (older) bug if display margins
18303 are present.
18304
18305 2003-06-06 Kenichi Handa <handa@m17n.org>
18306
18307 * coding.c (encoding_buffer_size): If coding->type is
18308 coding_type_ccl, double magnification on CRLF encoding.
18309
18310 2003-06-06 Jason Rumney <jasonr@gnu.org>
18311
18312 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
18313 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
18314
18315 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
18316 Mac too.
18317
18318 2003-06-05 Dave Love <fx@gnu.org>
18319
18320 * strftime.c: Merge changes from gnulib.
18321
18322 * mktime.c (__mktime_internal): Merge changes from gnulib
18323 involving year 69 and dst2.
18324
18325 Changes to merge with gnulib version and be consistent with the
18326 autoconf test:
18327
18328 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
18329 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
18330 [HAVE_LOCALE_H]: Include locale.h.
18331 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
18332
18333 2003-06-05 Kim F. Storm <storm@cua.dk>
18334
18335 * window.c (coordinates_in_window): Convert X and Y to window
18336 relative coordinates inside mode-line and header-line parts.
18337 Convert X and Y to margin area relative coordinates inside left
18338 and right display margin parts.
18339
18340 2003-06-05 Jason Rumney <jasonr@gnu.org>
18341
18342 * w32fns.c (add_system_logical_colors_to_map): New function.
18343 (Fx_open_connection): Use it.
18344
18345 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
18346
18347 * process.c (allocate_pty): Revert part of the previous patch.
18348 (Faccept_process_output): Simplify.
18349
18350 2003-06-04 Jason Rumney <jasonr@gnu.org>
18351
18352 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
18353
18354 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
18355 (lispy_mouse_wheel_names): Remove.
18356 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
18357 Always define drag_and_drop_syms.
18358
18359 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
18360 WHEEL_EVENT events.
18361
18362 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
18363
18364 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
18365
18366 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
18367
18368 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18369
18370 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
18371 menu item label.
18372
18373 2003-06-03 Richard M. Stallman <rms@gnu.org>
18374
18375 * window.c (Fwindow_edges): Doc fix.
18376 (Fwindow_pixel_edges, Fwindow_inside_edges)
18377 (Fwindow_inside_pixel_edges): New functions.
18378 (syms_of_window): defsubr them.
18379
18380 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
18381 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
18382
18383 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
18384
18385 * dispnew.c (Fsit_for): Don't lie about the number of args.
18386
18387 2003-06-02 Dave Love <fx@gnu.org>
18388
18389 * callproc.c: Use HAVE_FCNTL_H, not USG5.
18390 (syms_of_callproc) <process-environment>: Doc fix.
18391
18392 * doc.c: Use HAVE_FCNTL_H, not USG5.
18393
18394 * xfaces.c (font_rescale_ratio): Fix for K&R.
18395
18396 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
18397
18398 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
18399
18400 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
18401
18402 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
18403 (xg_create_frame_widgets): Use ENCODE_UTF_8.
18404
18405 * xterm.c (Qutf_8): Move to coding.c
18406
18407 * xmenu.c (ENCODE_MENU_STRING): New.
18408 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
18409 Use it.
18410
18411 * coding.h (ENCODE_UTF_8): New.
18412 (Qutf_8): Declare.
18413
18414 * coding.c (Qutf_8): New.
18415 (syms_of_coding): Intern it.
18416
18417 * fns.c: Doc fixes.
18418
18419 2003-06-02 Kenichi Handa <handa@m17n.org>
18420
18421 * buffer.c (Fset_buffer_multibyte): Fix previous change.
18422
18423 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
18424
18425 * lread.c (openp): Make sure STR is a string.
18426
18427 2003-06-01 David Ponce <david@dponce.com>
18428
18429 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
18430 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
18431
18432 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
18433 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
18434 (discard_mouse_events): Discard WHEEL_EVENT events too.
18435 (lispy_wheel_names, wheel_syms): New.
18436 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
18437 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
18438 (make_lispy_event): Add WHEEL_EVENT handler.
18439
18440 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
18441 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
18442 WHEEL_EVENT events.
18443
18444 2003-05-31 John Paul Wallington <jpw@gnu.org>
18445
18446 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
18447 timer are in lisp/emacs-lisp.
18448
18449 2003-05-31 Kenichi Handa <handa@m17n.org>
18450
18451 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
18452 region when a buffer is changed to unibyte.
18453
18454 * charset.h (VALID_LEADING_CODE_P): New macro.
18455 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
18456
18457 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
18458 is nonzero, accept multibyte form of eight-bit-control chars.
18459 (decode_composition_emacs_mule): Likewise.
18460 (decode_coding_emacs_mule): Likewise.
18461 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
18462 multibyte form of eight-bit-control chars.
18463
18464 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
18465 (Finsert_file_contents): If coding-system-for-read is bound to
18466 Qauto_save_coding, use the coding system emacs-mule with special
18467 setting for recovering a file.
18468 (choose_write_coding_system): On auto saving, use the coding
18469 system emacs-mule with special setting for auto saving.
18470 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
18471
18472 2003-05-30 Kenichi Handa <handa@m17n.org>
18473
18474 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
18475 properly before calling ccl_driver.
18476
18477 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
18478
18479 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
18480 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
18481 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
18482
18483 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
18484
18485 * xfaces.c (realize_default_face): Do not abort if lface is
18486 non-existent - reverts change from 2003-05-19.
18487
18488 2003-05-29 Kenichi Handa <handa@m17n.org>
18489
18490 * coding.c (decode_coding_iso2022): Pay attention to the byte
18491 sequence of CTEXT extended segment, and retain those bytes as is.
18492
18493 2003-05-28 Kenichi Handa <handa@m17n.org>
18494
18495 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
18496 of CODING_REPLACEMENT_CHARACTER.
18497 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
18498 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
18499 check this flag on encoding.
18500 (encode_coding_sjis_big5):
18501 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
18502 (Fset_terminal_coding_system_internal):
18503 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
18504 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
18505
18506 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
18507 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18508 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
18509
18510 2003-05-28 Richard M. Stallman <rms@gnu.org>
18511
18512 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
18513
18514 * eval.c (unbind_to): Move init of this_binding to separate statement.
18515
18516 2003-05-28 Kim F. Storm <storm@cua.dk>
18517
18518 * xdisp.c (expose_window): Fix error in calculation of
18519 window relative coordinates of area to redisplay.
18520
18521 2003-05-27 Jason Rumney <jasonr@gnu.org>
18522
18523 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
18524
18525 2003-05-27 David Ponce <david@dponce.com>
18526
18527 Handle W32 mouse wheel events as mouse click events, like in X.
18528
18529 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
18530 MOUSE_WHEEL_EVENT anymore.
18531
18532 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
18533 Scrolling down/up the mouse wheel is respectively mapped to mouse
18534 button 4 and 5.
18535 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
18536 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
18537 WM_MOUSEWHEEL events.
18538
18539 2003-05-27 Andreas Schwab <schwab@suse.de>
18540
18541 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
18542
18543 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
18544 partially visible line.
18545
18546 * alloc.c (Fgarbage_collect): Fix last change.
18547
18548 2003-05-26 John Paul Wallington <jpw@gnu.org>
18549
18550 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
18551
18552 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
18553
18554 * window.c (Fset_window_buffer): Add type of `keep_margins'.
18555 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
18556
18557 * window.h (window_box_text_cols): Declare.
18558
18559 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
18560 (x_draw_vertical_border): Remove unused var `f'.
18561
18562 * xfaces.c (build_scalable_font_name): Remove `unused var
18563 pixel_size' warning.
18564
18565 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
18566
18567 * unexelf.c (unexec): Remove `unused var n' warning.
18568
18569 * strftime.c (my_strftime_localtime_r): Remove `defined but
18570 unused' warning.
18571
18572 * process.c (allocate_pty): Remove `unused var stb' and
18573 `cp might be used uninitialized' warnings.
18574
18575 * dispnew.c (mode_line_string): Remove unused var `f'.
18576
18577 * coding.c (find_safe_codings): Remove unused var `i'.
18578
18579 * bytecode.c (Fbyte_code): Remove `unused val' warning.
18580
18581 * buffer.c (Fkill_buffer): Remove unused var `list'.
18582
18583 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
18584
18585 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18586
18587 * frame.c (make_frame): Condition want_fullscreen with
18588 HAVE_WINDOW_SYSTEM.
18589
18590 2003-05-25 Juanma Barranquero <lektu@terra.es>
18591
18592 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
18593 (Fwindow_scroll_bars): Fix typo in docstring.
18594
18595 2003-05-24 Kim F. Storm <storm@cua.dk>
18596
18597 The following changes serve several purposes:
18598
18599 1) Swap the position of fringes and display margins in windows, i.e.
18600 the fringes are now displayed between the margins and the text area
18601 (by default).
18602
18603 2) Allow fringe and scroll bar parameters to be set per-buffer and
18604 per-window (like display margins). Such settings are now stored
18605 in window configurations, preserved when frames are resized, and
18606 copied when windows are split vertically or horizontally.
18607 Several bugs related to display margins have been fixed.
18608
18609 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
18610
18611 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
18612 rather than FRAME_WIDTH (FRAME_FONT (f)).
18613
18614 5) Introduce a consistent naming of variables, members and macros
18615 depending on whether their value is measured in pixels or in
18616 canonical columns/lines. Pixel dimensions are named *_width and
18617 *_height, while canonical columns/lines are named *_cols and
18618 *_lines. Pixel positions are named *_x and *_y, while column/line
18619 positions are named *_col and *_line.
18620
18621 6) Consolidate more of the X, W32, and MAC gui code by moving
18622 common data into struct frame, and generalize it for the non-gui
18623 case by using suitable defaults.
18624
18625 7) Cleanup and consolidate the macros controlling frame and window
18626 layout into frame.h and window.h, and generalize the use of the
18627 various window_box_* functions (enhanced to handle the new fringe
18628 position and the per-window fringe and scroll bar settings).
18629
18630 * frame.h (struct frame): Rename members height to text_lines,
18631 width to text_cols, window_height to total_lines, window_width to
18632 total_cols, new_height to new_text_lines, new_width to
18633 new_text_cols. All uses changed.
18634 (struct frame): New members which consolidate common members of
18635 x_output, w32_output, and mac_output structures: left_pos,
18636 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
18637 win_gravity, size_hint_flags, border_width, internal_border_width,
18638 line_height, fringe_cols, left_fringe_width, right_fringe_width,
18639 want_fullscreen. All uses changed.
18640 (struct frame): New member column_width contaning the canonical
18641 column width, analogue to line_height. All uses changed.
18642 (struct frame): Rename members scroll_bar_pixel_width to
18643 config_scroll_bar_width, and scroll_bar_cols to
18644 config_scroll_bar_cols. All uses changed.
18645 (struct frame): New member scroll_bar_actual_width which
18646 consolidates and renames the vertical_scroll_bar_extra member of
18647 x_output, w32_output, and mac_output structures. All uses changed.
18648 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
18649 from x/w32/macterm.h files. All uses changed. Also change code
18650 which referred to f->output_data...->pixel_height.
18651 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
18652 from x/w32/macterm.h files. All uses changed. Also change code
18653 which referred to f->output_data...->pixel_width.
18654 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
18655 Also change code which referred to f->height.
18656 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
18657 Also change code which referred to f->width.
18658 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
18659 to update new_text_lines and new_text_cols members directly.
18660 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
18661 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
18662 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
18663 FRAME_SCROLL_BAR_COLS. All uses changed.
18664 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
18665 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
18666 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
18667 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
18668 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
18669 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
18670 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
18671 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
18672 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
18673 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
18674 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
18675 Unconditionally return line_height member (it now has proper value
18676 also for non-window frames).
18677 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
18678 return new column_width member (rather than the default font width).
18679 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
18680 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
18681 from x/w32/macterm.h files. Unconditionally return corresponding
18682 member of frame structure (they now have proper values also for
18683 non-window frames).
18684 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
18685 Calculate return value from left and right widths.
18686 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
18687 internal_border_width member (has proper value for non-window frame).
18688 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
18689 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
18690 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
18691 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
18692 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
18693 consolidated from xterm.h, macterm.h, and w32term.h.
18694 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
18695 consolidated from xterm.h, macterm.h, and w32term.h.
18696 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
18697 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
18698 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
18699 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
18700 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
18701 consolidated from x/mac/w32term.h.
18702 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
18703 consolidated from x/mac/w32term.h.
18704 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
18705 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
18706 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
18707 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
18708
18709 * window.h (struct window): Rename members left to left_col,
18710 top to top_line, height to total_lines, width to total_cols,
18711 left_margin_width to left_margin_cols, right_margin_width to
18712 right_margin_cols, orig_height to orig_total_lines, orig_top to
18713 orig_top_line. All uses changed.
18714 (struct window): New members left_fringe_width, right_fringe_width,
18715 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
18716 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
18717 New macros primarily used to simplify other macros.
18718 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
18719 referred to XINT (w->width).
18720 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
18721 referred to XINT (w->height).
18722 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
18723 referred to XINT (w->width) * canon_x_unit.
18724 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
18725 referred to XINT (w->height) * canon_y_unit.
18726 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
18727 referred to XINT (w->left).
18728 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
18729 all uses and code that referred to XINT (w->left) + XINT (w->width).
18730 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
18731 referred to XINT (w->top).
18732 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
18733 referred to XINT (w->top) + XINT (w->height).
18734 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
18735 referred to XINT (w->left) * canon_x_unit.
18736 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
18737 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
18738 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
18739 referred to XINT (w->top) * canon_y_unit.
18740 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
18741 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
18742 (WINDOW_LEFTMOST_P): New macro.
18743 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
18744 All uses changed.
18745 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
18746 All uses changed.
18747 (WINDOW_BOX_LEFT_EDGE_X): Rename from
18748 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
18749 Do not exclude left fringe width.
18750 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
18751 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
18752 Do not exclude fringe widths.
18753 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
18754 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
18755 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
18756 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
18757 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
18758 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
18759 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
18760 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
18761 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
18762 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
18763 New macros. Change code which referenced corresponding
18764 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
18765 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
18766 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
18767 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
18768 allow per-window scroll-bar settings.
18769 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
18770 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
18771 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
18772 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
18773 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
18774 FRAME_SCROLL_BAR_WIDTH.
18775 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
18776 (WINDOW_SCROLL_BAR_AREA_X): New macros.
18777 (WINDOW_HEADER_LINE_HEIGHT): Rename from
18778 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
18779 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
18780 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
18781 (WINDOW_BOX_TEXT_HEIGHT): Rename from
18782 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
18783 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
18784 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
18785 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
18786 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
18787 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
18788 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
18789 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
18790 (window_from_coordinates): Update prototype.
18791 (Fset_window_buffer): Update EXFUN.
18792 (set_window_buffer): Update prototype.
18793
18794 * dispextern.h (struct glyph_matrix): Rename members window_left_x
18795 to window_left_col, window_top_y to window_top_line. All uses
18796 changed.
18797 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
18798 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
18799 internal_border_width is now set to 0 for non-window frames.
18800 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
18801 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
18802 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
18803 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
18804 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
18805 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
18806 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
18807 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
18808 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
18809 Move to window.h and renamed [see window.h changes].
18810 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
18811 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
18812 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
18813 Use WINDOW_TOTAL_LINES.
18814 (frame_update_line_height): Remove prototype.
18815
18816 * buffer.h (struct buffer): Rename members measured in columns:
18817 left_margin_width to left_margin_cols, right_margin_width to
18818 right_margin_cols. All uses changed.
18819 New members left_fringe_width, right_fringe_width,
18820 fringes_outside_margins for per-buffer fringe settings.
18821 New members scroll_bar_width and vertical_scroll_bar_type for
18822 per-buffer scroll bar settings.
18823
18824 * buffer.c (init_buffer_once): Set buffer_defaults and
18825 buffer_local_flags for new buffer-local variables
18826 left_fringe_width, right_fringe_width, fringes_outside_margins,
18827 scroll_bar_width, and vertical_scroll_bar_type.
18828 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
18829 default-* variables for them.
18830
18831 * dispnew.c: Make (many) trivial substitutions for renamed and
18832 new macros in dispextern.h, frame.h and window.h.
18833 (mode_line_string): No need to adjust width for mode lines, as it
18834 is already adjusted by the caller.
18835 (marginal_area_string): Handle fringes inside/outside margins.
18836
18837 * frame.c: Make (many) trivial substitutions for renamed and
18838 new macros in dispextern.h, frame.h and window.h.
18839 (make_frame): Initialize left_fringe_width, right_fringe_width,
18840 fringe_cols, scroll_bar_actual_width, border_width,
18841 internal_border_width, column_width, line_height, x_pixels_diff,
18842 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
18843 members with values suitable for a non-window frames.
18844
18845 * gtkutil.c: Make (many) trivial substitutions for renamed and
18846 new macros in dispextern.h, frame.h and window.h.
18847
18848 * indent.c: Make (few) trivial substitutions for renamed and
18849 new macros in dispextern.h, frame.h and window.h.
18850
18851 * keyboard.c: Make (many) trivial substitutions for renamed and
18852 new macros in dispextern.h, frame.h and window.h.
18853 (make_lispy_event): Use window positions returned from
18854 window_from_coordinates when constructing the lisp event for
18855 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
18856 (incorrect) values locally.
18857 (make_lispy_movement): Use window positions returned from
18858 window_from_coordinates when constructing the lisp event, rather
18859 than calculating (incorrect) values locally.
18860
18861 * scroll.c: Make (some) trivial substitutions for renamed and
18862 new macros in dispextern.h, frame.h and window.h.
18863
18864 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
18865 scroll-bars.
18866
18867 * sysdep.c: Make (few) trivial substitutions for renamed and
18868 new macros in dispextern.h, frame.h and window.h.
18869
18870 * term.c: Make (some) trivial substitutions for renamed and
18871 new macros in dispextern.h, frame.h and window.h.
18872
18873 * widget.c: Make (few) trivial substitutions for renamed and
18874 new macros in dispextern.h, frame.h and window.h.
18875
18876 * window.c: Make (many) trivial substitutions for renamed and
18877 new macros in dispextern.h, frame.h and window.h.
18878 (make_window): Initialize new members
18879 left_margin_cols, right_margin_cols, left_fringe_width,
18880 right_fringe_width, fringes_outside_margins, scroll_bar_width,
18881 and vertical_scroll_bar_type.
18882 (coordinates_in_window): Adapt to new fringe/margin positions
18883 and per-window fringes and scroll-bars.
18884 Fix bug related to incorrectly adjusting coordinates by
18885 frame's internal_border_width (the effect normally negible since
18886 the internal_border_width is typically 0 or 1 pixel, but very
18887 noticeable for an internal_border_width of e.g. 25 pixels).
18888 Upon successful return (other than ON_NOTHING), the coordinates
18889 are now always properly converted to window relative for the
18890 given display element.
18891 (window_from_coordinates): Add new parameters wx and wy to
18892 return the window relative x and y position in the returned
18893 window and part. A null arg means, don't return the position.
18894 All callers changed.
18895 (adjust_window_margins): New function which may reduce the width
18896 of the display margins if a window's text area is too small after
18897 resizing or splitting windows.
18898 (size_window): Fix bug that did not account for display margin
18899 widths when checking the minimum width of a window; use
18900 adjust_window_margins.
18901 (set_window_buffer): Call Fset_window_fringes and
18902 Fset_window_scroll_bars to setup per-window elements.
18903 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
18904 existing display margin, fringe widths, and scroll bar settings
18905 (e.g. after splitting a window or resizing the frame).
18906 All callers changed.
18907 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
18908 (Fsplit_window): Duplicate original window's display margin,
18909 fringe, and scroll-bar settings; then call Fset_window_buffer with
18910 KEEP_MARGINS non-nil. This fixes a bug which caused a split
18911 window to only preserve the display margins in one of the windows.
18912 When splitting horizontally, call adjust_window_margins on both
18913 windows to ensure that the text area of the new windows is non too
18914 narrow. This fixes a bug which could cause Emacs to trap if the
18915 width of the split window was less than the width of the display
18916 margins.
18917 (window_box_text_cols): Rename from window_internal_width.
18918 All uses changed. Adapt to per-window fringes and scroll bars.
18919 Fix bug that caused vertical separator to be subtracted also on
18920 window frames. Fix another bug that did not reduce the returned
18921 value by the columns used for display margins.
18922 (window_scroll_line_based): Fix bug related to scrolling too much
18923 when display margins are present (implicitly fixed by the fix to
18924 window_box_text_cols).
18925 (scroll_left, scroll_right): Fix bug related to scrolling too far
18926 by default when display margins are present (implicitly fixed by
18927 the fix to window_box_text_cols).
18928 (struct saved_window): Rename members left to left_col, top to
18929 top_line, width to total_cols, height to total_lines, orig_top to
18930 orig_top_line, orig_height to orig_total_lines. All uses changed.
18931 New members left_margin_cols, right_margin_cols,
18932 left_fringe_width, right_fringe_width, fringes_outside_margins,
18933 scroll_bar_width, and vertical_scroll_bar_type for saving
18934 per-window display elements.
18935 (Fset_window_configuration): Restore display margins, fringes,
18936 and scroll bar settings. This fixes a bug which caused display
18937 margins to be discarded when saving and restoring a window
18938 configuration.
18939 (save_window_save): Save display margins, fringes, and scroll bar
18940 settings. This fixes a bug which caused display margins to be
18941 discarded when saving and restoring a window configuration.
18942 (Fset_window_margins): Do nothing if display margins are not
18943 really changed. Otherwise, call adjust_window_margins to ensure
18944 the text area doesn't get too narrow. This fixes a bug which
18945 could cause Emacs to trap if setting display margins wider than
18946 the width of the window.
18947 (Fset_window_fringes): New defun to allow user to specifically set
18948 this window's fringe widths and position vs. display margins.
18949 (Fwindow_fringes): New defun to return window's actual fringe settings.
18950 (Fset_window_scroll_bars): New defun to allow user to specifically
18951 set this window's scroll bar width and position.
18952 (Fwindow_scroll_bars): New defun to return window's actual scroll
18953 bar settings.
18954 (compare_window_configurations): Also compare display margins,
18955 fringes, and scroll bar settings.
18956 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
18957
18958 * xdisp.c: Make (many) trivial substitutions for renamed and
18959 new macros in dispextern.h, frame.h and window.h.
18960 (window_box_width): Adapt to per-window fringes and scroll bars,
18961 and new fringe vs. display margin position. Note that returned
18962 value is no longer guaranteed to be a whole multiple of the frame
18963 column width, since per-window fringes may now be any width.
18964 (window_box_left_offset): New function like window_box_left, but
18965 value is relative to left border of window (rather than frame).
18966 (window_box_right_offset): New function like window_box_right,
18967 but value is relative to left border of window.
18968 (window_box_left): Adapt to per-window fringes and scroll bars,
18969 and new fringe vs. display margin position. Simplify by using
18970 WINDOW_LEFT_EDGE_X and window_box_left_offset.
18971 (window_box): Allow null args for unnecessary return values;
18972 change/simplify relevant callers.
18973 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
18974 and new fringe vs. display margin position.
18975 Use window_box_left_offset and window_box_right_offset
18976 (get_glyph_string_clip_rect): Adapt to per-window fringes and
18977 scroll bars, and new fringe vs. display margin position.
18978 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
18979 (draw_fringe_bitmap): Rework to handle per-window fringes and new
18980 fringe vs. display margin position.
18981 (hscroll_window_tree): Use window_box_width instead of window_box.
18982 (redisplay_window): Adapt to per-window scroll bars.
18983 (draw_glyphs): Rework to handle per-window fringes and scroll
18984 bars, and new fringe vs. display margin position.
18985 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
18986 (x_clear_end_of_line): Adapt to per-window fringes and scroll
18987 bars, and new fringe vs. display margin position. Fix bug which
18988 increased total width of full_width rows by width of scroll bars
18989 although window's total width already includes that.
18990 (x_fix_overlapping_area): Simplify using window_box_left_offset.
18991 (expose_area): Simplify using window_box_left_offset.
18992 (x_draw_vertical_border): Handle per-window scroll bar settings,
18993 mixing windows with left, right and no scroll bars.
18994
18995 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
18996 where it's used in x_list_fonts (for clarity).
18997 (frame_update_line_height): Remove unused function; functionality
18998 is now done directly when setting the default font in x_set_font.
18999
19000 * xfns.c: Make (many) trivial substitutions for renamed and
19001 new macros in dispextern.h, frame.h and window.h.
19002
19003 * xmenu.c: Make (some) trivial substitutions for renamed and
19004 new macros in dispextern.h, frame.h and window.h.
19005
19006 * xterm.h (struct x_output): Move members left_pos, top_pos,
19007 border_width, pixel_height, pixel_width, line_height,
19008 internal_border_width, vertical_scroll_bar_extra,
19009 left_fringe_width, right_fringe_width, fringe_cols,
19010 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19011 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
19012 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19013 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19014 (PIXEL_WIDTH, PIXEL_HEIGHT)
19015 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
19016 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
19017 frame.h and renamed [see frame.h changes].
19018 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19019 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
19020 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
19021 and renamed [see frame.h changes].
19022
19023 * xterm.c: Make (several) trivial substitutions for renamed and
19024 new macros in dispextern.h, frame.h and window.h.
19025 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
19026 (scroll_run): Adapt to new fringe position.
19027 (glyph_rect): Use window coordinates returned from
19028 window_from_coordinates rather than frame_to_window_pixel_xy.
19029 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19030 scroll-bars.
19031 (handle_one_xevent): Simplify a USE_GTK conditional.
19032 (x_clip_to_row): Remove superfluous whole_line_p arg and code
19033 (fringes are now inside margins, i.e. always in the clipping area).
19034 All callers changed.
19035 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19036 directly, then call compute_fringe_widths. Don't call
19037 frame_update_line_height.
19038
19039 * w32term.h (struct w32_output): Move members left_pos, top_pos,
19040 border_width, pixel_height, pixel_width, line_height,
19041 internal_border_width, vertical_scroll_bar_extra,
19042 left_fringe_width, right_fringe_width, fringe_cols,
19043 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19044 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
19045 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19046 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19047 (PIXEL_WIDTH, PIXEL_HEIGHT)
19048 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
19049 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
19050 frame.h and renamed [see frame.h changes].
19051 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19052 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
19053 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
19054 and renamed [see frame.h changes].
19055
19056 * w32term.c: Make (several) trivial substitutions for renamed and
19057 new macros in dispextern.h, frame.h and window.h.
19058 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
19059 (glyph_rect): Use window coordinates returned from
19060 window_from_coordinates rather than frame_to_window_pixel_xy.
19061 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19062 scroll-bars.
19063 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
19064 (fringes are now inside margins, i.e. always in the clipping area).
19065 All callers changed.
19066 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19067 directly, then call compute_fringe_widths. Don't call
19068 frame_update_line_height.
19069
19070 * w32console.c: Make (few) trivial substitutions for renamed and
19071 new macros in dispextern.h, frame.h and window.h.
19072
19073 * w32fns.c: Make (many) trivial substitutions for renamed and
19074 new macros in dispextern.h, frame.h and window.h.
19075
19076 * w32menu.c: Make (few) trivial substitutions for renamed and
19077 new macros in dispextern.h, frame.h and window.h.
19078
19079 * macterm.h (struct mac_output): Move members left_pos, top_pos,
19080 border_width, pixel_height, pixel_width, line_height,
19081 internal_border_width, vertical_scroll_bar_extra,
19082 left_fringe_width, right_fringe_width, fringe_cols,
19083 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19084 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
19085 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19086 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19087 (PIXEL_WIDTH, PIXEL_HEIGHT)
19088 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
19089 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
19090 frame.h and renamed [see frame.h changes].
19091 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19092 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
19093 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
19094 and renamed [see frame.h changes].
19095
19096 * macterm.c: Make (several) trivial substitutions for renamed and
19097 new macros in dispextern.h, frame.h and window.h.
19098 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
19099 (glyph_rect): Use window coordinates returned from
19100 window_from_coordinates rather than frame_to_window_pixel_xy.
19101 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19102 scroll-bars.
19103 (x_clip_to_row): Remove superfluous whole_line_p arg and code
19104 (fringes are now inside margins, i.e. always in the clipping area).
19105 All callers changed.
19106 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19107 directly, then call compute_fringe_widths. Don't call
19108 frame_update_line_height.
19109
19110 * macfns.c: Make (several) trivial substitutions for renamed and
19111 new macros in dispextern.h, frame.h and window.h.
19112 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
19113
19114 * macmenu.c: Make (few) trivial substitutions for renamed and
19115 new macros in dispextern.h, frame.h and window.h.
19116
19117 * msdos.h (struct x_output): Remove members left_pos, top_pos,
19118 and line_height, and use corresponding new members in struct
19119 frame. All uses changed.
19120 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
19121 superseeded by corresponding macros in frame.h.
19122
19123 * msdos.c: Make (several) trivial substitutions for renamed and
19124 new macros in dispextern.h, frame.h and window.h.
19125 (IT_note_mouse_highlight): Use updated window coordinates returned
19126 by window_from_coordinates, rather than adjusting them locally.
19127 (internal_terminal_init): No need to initialize line_height here;
19128 it now defaults to 1.
19129
19130 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
19131
19132 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
19133 dropping `down' events.
19134
19135 2003-05-24 Andreas Schwab <schwab@suse.de>
19136
19137 * coding.c (find_safe_codings): Fix last change.
19138
19139 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
19140
19141 * xfns.c (x_window): Fix typo from 2003-05-21 change.
19142
19143 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
19144
19145 * xdisp.c (display_mode_element): Increase max depth.
19146 Simplify the error handling code. Use a different error string
19147 for the case where we hit the depth limit.
19148
19149 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
19150
19151 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
19152
19153 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
19154
19155 * intervals.c (get_local_map): Don't get char-property of previous
19156 point any more: get_pos_property already does it and better.
19157
19158 2003-05-21 Dave Love <fx@gnu.org>
19159
19160 [Merged from unicode branch.]
19161
19162 * xfns.c (x_window, x_window): Use use_xim.
19163
19164 * xterm.c (use_xim): Initialize.
19165 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19166 (x_term_init): Maybe set use_xim.
19167
19168 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19169
19170 2003-05-21 Jason Rumney <jasonr@gnu.org>
19171
19172 * unexw32.c (_start): Remove _fmode initialization.
19173
19174 * emacs.c (main) [WINDOWSNT]: Move it here.
19175
19176 2003-05-20 Dave Love <fx@gnu.org>
19177
19178 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
19179
19180 2003-05-19 Richard M. Stallman <rms@gnu.org>
19181
19182 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
19183 as value for QCfont attribute.
19184 (realize_default_face): lface should already exist; crash if not.
19185 Specify 0 for FORCE_P when calling set_lface_from_font_name.
19186
19187 * frame.c (Fignore_event): Doc fix.
19188
19189 2003-05-19 Kenichi Handa <handa@m17n.org>
19190
19191 * coding.c (decode_coding_string): Handle post-read-conversion
19192 even if the coding doesn't require decoding.
19193
19194 2003-05-18 Richard M. Stallman <rms@gnu.org>
19195
19196 * callproc.c (Fcall_process_region): Doc fix.
19197
19198 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
19199
19200 * lread.c (Fload): Print a message if package is obsolete.
19201
19202 * window.c (Fselect_window): Add optional `norecord' arg.
19203 (select_window_1): Fold into Fselect_window.
19204 (select_window_norecord): New function.
19205 (temp_output_buffer_show): Use it. Preserve current buffer.
19206
19207 * window.h (Fselect_window): Update declaration.
19208
19209 * window.c (delete_window, Fother_window, Fset_window_configuration):
19210 * minibuf.c (read_minibuf):
19211 * macterm.c (x_new_focus_frame):
19212 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
19213 * callint.c (Fcall_interactively):
19214 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
19215
19216 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
19217
19218 2003-05-17 David Kastrup <dak@gnu.org>
19219
19220 * process.c (read_process_output): Back out change from 2003-03-09.
19221
19222 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
19223
19224 * editfns.c (get_pos_property): Don't assume that `object' = nil.
19225
19226 * textprop.c (text_property_stickiness): New arg `buffer'.
19227
19228 * intervals.h (text_property_stickiness): New arg `buffer'.
19229 (get_pos_property): Declare.
19230
19231 * intervals.c (get_local_map): Use get_pos_property, to obey
19232 stickiness and empty overlays.
19233 (create_root_interval, graft_intervals_into_buffer): Use BEG.
19234 (merge_properties, intervals_equal, merge_properties_sticky):
19235 Use XCAR, XCDR.
19236 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
19237
19238 2003-05-17 Richard M. Stallman <rms@gnu.org>
19239
19240 * minibuf.c (read_minibuf): If buffer is empty, record the default
19241 in the history.
19242 (Fminibuffer_complete_word): When deleting the overlap, take account
19243 of its real position.
19244
19245 * fns.c (map_char_table): Fix previous change.
19246
19247 * syntax.c (find_defun_start):
19248 When open_paren_in_column_0_is_defun_start,
19249 return beginning of buffer.
19250
19251 * lisp.h (map_char_table): Declare added arg.
19252
19253 * fns.c (map_char_table): New arg TABLE gets the master table.
19254 All calls changed.
19255 Process default and inheritance, resorting to Faref if necessary.
19256
19257 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19258 (Faccessible_keymaps): Pass new arg to map_char_table.
19259
19260 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
19261
19262 * casetab.c (set_case_table): Pass new arg to map_char_table.
19263
19264 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
19265
19266 * lisp.h (specbinding_func): New typedef.
19267 (struct specbinding): Use specbinding_func, to put the `volatile'
19268 in the right place.
19269
19270 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
19271 to avoid GCC warning.
19272
19273 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
19274
19275 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
19276
19277 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
19278
19279 * keyboard.c (apply_modifiers): Don't fill the other cache.
19280
19281 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
19282
19283 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
19284
19285 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
19286 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
19287 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
19288 (Fset_window_configuration, Fcurrent_window_configuration)
19289 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
19290 (Fpos_visible_in_window_p, mark_window_cursors_off)
19291 (window_internal_height, window_internal_width, Frecenter)
19292 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
19293 (replace_buffer_in_all_windows, init_window_once, init_window)
19294 (syms_of_window, keys_of_window): Move from lisp.h.
19295 * lisp.h: Move window.c declarations to window.h.
19296
19297 * bytecode.c: Include window.h.
19298 * emacs.c: Include window.h.
19299
19300 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
19301 (keyremap): Add `parent' field.
19302 (keyremap_step): Use it. Remove `parent' argument.
19303 (read_key_sequence): Setup and use the new `parent' field.
19304
19305 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
19306
19307 * keyboard.c (adjust_point_for_property): Ensure termination.
19308
19309 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
19310
19311 * keyboard.c (follow_key): Remove dead variable `did_meta'.
19312 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
19313 duplicated handling of function-key-map and key-translation-map
19314 in read_key_sequence.
19315 (read_key_sequence): Use them.
19316
19317 * keyboard.c (adjust_point_for_property): Try harder to move point
19318 to the non-sticky end of an invisible property.
19319
19320 * xdisp.c (single_display_prop_intangible_p): Make `space' display
19321 property intangible as well.
19322
19323 2003-05-10 Andreas Schwab <schwab@suse.de>
19324
19325 * xmenu.c (single_menu_item): Change last parameter to void* to
19326 avoid warning.
19327
19328 2003-05-09 Richard M. Stallman <rms@gnu.org>
19329
19330 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
19331 Bind Qinhibit_modification_hooks to t so there will be no GC.
19332 Rename local `tem' to `save_deactivate_mark'.
19333
19334 * eval.c (specpdl_ptr): Declare volatile.
19335 (unbind_to): Copy the whole binding and decrement specpdl_ptr
19336 before doing the work of unbinding it.
19337
19338 * lisp.h (struct specbinding): Declare elements volatile.
19339 (specpdl_ptr): Declare volatile.
19340
19341 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
19342
19343 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
19344 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
19345
19346 2003-05-08 Dave Love <fx@gnu.org>
19347
19348 * coding.c (Vlast_coding_system_used): Doc fix.
19349
19350 2003-05-07 Jason Rumney <jasonr@gnu.org>
19351
19352 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
19353 when system does not support them.
19354
19355 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
19356
19357 * fileio.c (Qwrite_region_annotate_functions): New var.
19358 (build_annotations): Use it to process the global part of the hook.
19359 (syms_of_fileio): Init and staticpro it.
19360
19361 * keyboard.c (safe_run_hooks_error): Display a message instead of
19362 silently ignoring the error.
19363
19364 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
19365
19366 * keyboard.c (input_available_signal): Mark static.
19367 (menu_bar_items): Use map_keymap.
19368 (menu_bar_one_keymap): Remove.
19369 (menu_bar_item): Adjust arglist (for use in map_keymap).
19370 Properly hide a second binding when not both are keymaps.
19371
19372 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
19373 (single_keymap_panes): Use it and map_keymap.
19374 (single_menu_item): Use skp as well.
19375
19376 * keymap.h (map_keymap_function_t): New type.
19377 (map_keymap): Declare.
19378
19379 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
19380 (map_keymap_call, Fmap_keymap): New functions.
19381 (syms_of_keymap): Defsubr map-keymap.
19382
19383 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19384
19385 * gtkutil.c (create_dialog, make_widget_for_menu_item)
19386 (make_menu_item, create_menus, xg_update_menu_item): Don't call
19387 ..._with_mnemonic functions for menu items.
19388
19389 2003-05-01 Kenichi Handa <handa@m17n.org>
19390
19391 * coding.c (coding_system_accept_latin_extra_p): Delete this
19392 function.
19393 (find_safe_codings): Pay attention to
19394 the property tranlsation-table-for-encode of each codings.
19395 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
19396
19397 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
19398
19399 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
19400
19401 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
19402
19403 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
19404
19405 * lisp.h (CHECK): Wrap args in parenthesis.
19406 (specbind): Fix doc: symbol = Qnil is not supported any more.
19407
19408 * bytecode.c (Fbyte_code) <unwind-protect>:
19409 Use Fprogn rather than 0 and Qnil.
19410
19411 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
19412 `double', and `triple' modifiers as well.
19413
19414 2003-04-30 Richard M. Stallman <rms@gnu.org>
19415
19416 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
19417
19418 * alloc.c (abort_on_gc): New variable.
19419 (Fgarbage_collect): Abort if abort_on_gc is set.
19420
19421 * lisp.h (abort_on_gc): Add decl.
19422
19423 * eval.c (Fsignal): Clear abort_on_gc.
19424
19425 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
19426 Reinit FORMAT_START and END before second scan.
19427
19428 * xdisp.c (move_it_vertically_backward): Do the final big else
19429 even if nlines is 0.
19430
19431 * xdisp.c (redisplay_internal): Finish the per-frame loop
19432 even if redisplay is suspended by input.
19433
19434 2003-04-24 Andrew Choi <akochoi@shaw.ca>
19435
19436 * macterm.c (x_list_fonts): Return all fonts that match if
19437 maxnames = -1.
19438
19439 2003-04-25 Kenichi Handa <handa@m17n.org>
19440
19441 * syntax.c (skip_chars): Fix previous change.
19442
19443 2003-04-24 Kenichi Handa <handa@m17n.org>
19444
19445 * syntax.c (skip_chars): Make the code faster by using the common
19446 technique of *p, *stop, and *endp.
19447
19448 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19449
19450 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
19451 tool_bar_items so GTK tool bar expose callback does not access items
19452 being updated.
19453
19454 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
19455
19456 * eval.c (Fapply): Undo last change and add a comment about why.
19457
19458 2003-04-18 Miles Bader <miles@gnu.org>
19459
19460 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
19461 pickier PARSE_MULTIBYTE_SEQ.
19462
19463 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
19464
19465 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
19466 Use XCDR, XCAR, CONSP.
19467 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
19468 (Fapply): Remove unnecessary GCPRO.
19469
19470 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
19471
19472 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
19473
19474 * buffer.h: Don't hardcode BEG==1.
19475
19476 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
19477
19478 2003-04-16 Richard M. Stallman <rms@gnu.org>
19479
19480 * xdisp.c (try_window, try_window_reusing_current_matrix):
19481 When at end of window, set window_end_pos to Z-ZV.
19482
19483 * buffer.c (Foverlay_recenter): Doc fix.
19484
19485 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
19486
19487 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
19488
19489 2003-04-14 Andrew Choi <akochoi@shaw.ca>
19490
19491 * macterm.c (mac_check_for_quit_char): Don't check more often than
19492 once a second.
19493
19494 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
19495
19496 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
19497 specially, so that they can't hide an implicit switch-frame event.
19498 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
19499 (head_table): Use switch-frame as event_kind for select-window.
19500 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
19501
19502 * editfns.c (Fformat): Lisp_Object/int mixup.
19503 (format2): Remove unused var numargs.
19504
19505 2003-04-11 Kenichi Handa <handa@m17n.org>
19506
19507 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
19508 (Qafter_insert_file_set_coding): New variable.
19509 (syms_of_fileio): Initialize and staticpro it. Delete declaration
19510 for after-insert-file-adjust-coding-function.
19511 (Finsert_file_contents): Call Qafter_insert_file_set_coding
19512 instead of Vafter_insert_file_adjust_coding_function.
19513
19514 2003-04-11 Kenichi Handa <handa@m17n.org>
19515
19516 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
19517
19518 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
19519 string. Callers changed.
19520
19521 2003-04-10 Kenichi Handa <handa@m17n.org>
19522
19523 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
19524 (syms_of_fileio): Declare it as a lisp variable.
19525 (Finsert_file_contents):
19526 Call Vafter_insert_file_adjust_coding_function before calling
19527 decode-format.
19528
19529 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19530
19531 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
19532 get GtkAdjustment as widget now is a GtkRange.
19533
19534 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
19535 GtkRange to avoid memory leak.
19536
19537 2003-04-09 Kenichi Handa <handa@m17n.org>
19538
19539 * xfaces.c (Vface_font_rescale_alist): New variable.
19540 (struct font_name): New member rescale_ratio.
19541 (font_rescale_ratio): New function.
19542 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
19543 (better_font_p): On comparing point sized, pay attention to
19544 recale_ratio member of fonts.
19545 (build_scalable_font_name): Reflect font->rescale_ratio in the
19546 font name.
19547 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19548
19549 * lread.c (read1): Before calling index, check if the 2nd
19550 arguemnt is in ASCII range.
19551
19552 2003-04-08 Richard M. Stallman <rms@gnu.org>
19553
19554 * fileio.c (Ffile_symlink_p): Doc fix.
19555
19556 * editfns.c (Fformat): Translate positions of text properties
19557 in the format string to apply them to the result.
19558
19559 * fileio.c (Finsert_file_contents): Doc fix.
19560 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19561
19562 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
19563
19564 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
19565
19566 2003-04-08 Steven Tamm <steventamm@mac.com>
19567
19568 * mac.c (init_mac_osx_environment): Switch libexec and bin so
19569 that self-contained application finds libexec files.
19570
19571 2003-04-08 Kenichi Handa <handa@m17n.org>
19572
19573 * coding.c (code_convert_region_unwind):
19574 Set Vlast_coding_system_used to the argument.
19575 (code_convert_region): If post-read-conversion function changed
19576 the value of last-coding-sytem, keep the new value in
19577 coding->symbol so that it won't be overridden.
19578 (run_pre_post_conversion_on_str): Likewise.
19579 (coding_system_accept_latin_extra_p): New function.
19580 (find_safe_codings): Pay attention to characters registered in
19581 latin-extra-code-table.
19582
19583 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
19584
19585 * Makefile.in (md5.o): Add missing dependency info.
19586
19587 2003-04-06 Richard M. Stallman <rms@gnu.org>
19588
19589 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
19590
19591 * marker.c (verify_bytepos): New function.
19592
19593 * intervals.c (set_intervals_multibyte_1): When becoming
19594 multibyte, adjust right and left child sizes to a whole set of
19595 characters. If an interval gets zero total-length, delete it.
19596 If an interval consists of just its children, delete one of them.
19597
19598 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
19599 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
19600
19601 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
19602 All calls deleted.
19603 (lisp_malloc): Do the work here directly.
19604
19605 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
19606
19607 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
19608 char tables.
19609
19610 2003-04-04 Kenichi Handa <handa@m17n.org>
19611
19612 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
19613 destructively change "%S" to "%s".
19614
19615 2003-04-03 Miles Bader <miles@gnu.org>
19616
19617 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
19618 always set.
19619
19620 2003-04-01 Dave Love <fx@gnu.org>
19621
19622 * xfns.c (xpm_lookup_color): Grok "opaque".
19623
19624 2003-03-31 Andrew Choi <akochoi@shaw.ca>
19625
19626 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
19627 parent window ID.
19628
19629 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
19630
19631 * macterm.h (struct mac_output): Define x_pixels_diff and
19632 y_pixels_diff.
19633
19634 2003-03-31 Juanma Barranquero <lektu@terra.es>
19635
19636 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
19637 blockinput.h and files included from it.
19638
19639 2003-03-31 Kim F. Storm <storm@cua.dk>
19640
19641 The following changes consolidates the common code related to
19642 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
19643 files into frame.c.
19644
19645 * frame.c: Include blockinput.h.
19646 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
19647 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
19648 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
19649 related vars here.
19650 (struct frame_parm_table, frame_parms): New table for describing
19651 frame parameters and their associated Q-variable.
19652 The order of the parameters corresponds to the sequence of the
19653 frame_parm_handlers table in redisplay_interface.
19654 (x_fullscreen_move, x_set_frame_parameters)
19655 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
19656 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
19657 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19658 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
19659 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
19660 Generic functions for processing of frame parameters.
19661 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
19662 (display_x_get_resource, x_get_resource_string): Functions for
19663 generic access to X resources.
19664 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
19665 (x_default_parameter, Fx_parse_geometry): Functions for generic
19666 access to frame parameters.
19667 (x_figure_window_size): Generic calculation of frame size.
19668 Fixed to add space needed for tool bar. Also setup size_hint_flags.
19669 (syms_of_frame): Intern and staticpro frame parameter variables.
19670 Defvar_lisp Vx_resource_class and Vx_resource_name here.
19671 Defsubr Sx_get_resource and Sx_parse_geometry.
19672
19673 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
19674 parameter related vars defined in frame.c.
19675 (EMACS_CLASS): Define here.
19676 (enum FULLSCREEN_*): Define here.
19677 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
19678 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
19679 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
19680 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
19681 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
19682 (x_set_visibility, x_set_autoraise, x_set_autolower)
19683 (x_set_unsplittable, x_set_vertical_scroll_bars)
19684 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
19685 (x_figure_window_size): Add prototypes.
19686
19687 * dispextern.h (frame_parm_handler): New typedef.
19688 (struct redisplay_interface): New member frame_parm_handlers.
19689 (enum resource_types): Move declaration here.
19690 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
19691 (x_default_parameter): Add prototypes.
19692
19693 * window.c: Remove extern decl for frame parameter vars.
19694 (change_window_heights): New generic function;
19695 replaces x_change_window_heights. All users changed.
19696
19697 * window.h (change_window_heights): Add prototype.
19698
19699 * xfaces.c: Remove extern decl for frame parameter vars.
19700
19701 * xterm.h (EMACS_CLASS): Remove. Use generic define.
19702 (struct w32_display_info): Fix type of xrdb member.
19703 (enum FULLSCREEN_*): Remove.
19704 Remove prototypes for generic functions (in frame.h).
19705
19706 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19707 parameters now defined in frame.h and frame.c.
19708 (Vx_resource_name): Remove. Use generic var.
19709 (enum x_frame_parms): Remove (bogus, unused enum).
19710 (check_x_display_info): Make non-static (for frame.c).
19711 (struct x_frame_parm_table, x_frame_parms): Remove.
19712 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19713 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19714 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19715 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19716 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19717 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19718 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19719 Remove. Use generic functions instead.
19720 (enum resource_types): Remove.
19721 (x_set_scroll_bar_default_width): New global function (for frame.c).
19722 (Fx_create_frame): Depend on x_figure_window_size to add space for
19723 toolbar and setup size_hint_flags.
19724 (x_frame_parm_handlers): New table for redisplay_interface.
19725 (syms_of_xfns): Don't intern/staticpro removed vars.
19726
19727 * xterm.c: Remove unnecessary extern declarations.
19728 (x_fullscreen_adjust): Remove. Use generic instead.
19729 (x_redisplay_interface): Add x_frame_parm_handlers member.
19730
19731 * w32gui.h (XrmDatabase): New (dummy) typedef.
19732
19733 * w32term.h (EMACS_CLASS): Remove. Use generic define.
19734 (struct w32_display_info): Fix type of xrdb member.
19735 (enum FULLSCREEN_*): Remove.
19736 (x_fullscreen_adjust): Remove prototype.
19737
19738 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19739 parameters now defined in frame.h and frame.c.
19740 (Vx_resource_name): Remove. Use generic var.
19741 (enum x_frame_parms): Remove (bogus, unused enum).
19742 (check_x_display_info): Make non-static (for frame.c).
19743 (struct x_frame_parm_table, x_frame_parms): Remove.
19744 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19745 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19746 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19747 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19748 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19749 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19750 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19751 Remove. Use generic functions instead.
19752 (enum resource_types): Remove.
19753 (x_set_scroll_bar_default_width): New global function (for frame.c).
19754 (Fx_create_frame): Depend on x_figure_window_size to add space for
19755 toolbar and setup size_hint_flags.
19756 (w32_frame_parm_handlers): New table for redisplay_interface.
19757 (syms_of_w32fns): Don't intern/staticpro removed vars.
19758
19759 * w32term.c: Remove unnecessary extern declarations.
19760 (x_fullscreen_adjust): Remove. Use generic instead.
19761 (x_redisplay_interface): Add w32_frame_parm_handlers member.
19762
19763 * w32reg.c (x_get_string_resource): Use XrmDatabase.
19764
19765 * macgui.h (XrmDatabase): New (dummy) typedef.
19766
19767 * macterm.h (EMACS_CLASS): Remove.
19768 (struct mac_display_info): Add xrdb member.
19769 (struct mac_output): Add want_fullscreen member.
19770
19771 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
19772 parameters now defined in frame.h and frame.c.
19773 (Vx_resource_name): Remove. Use generic var.
19774 (check_x_display_info): Make non-static (for frame.c).
19775 (struct x_frame_parm_table, x_frame_parms): Remove.
19776 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
19777 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
19778 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
19779 (x_change_window_heights, x_set_autoraise, x_set_autolower)
19780 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
19781 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
19782 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
19783 Remove. Use generic functions instead.
19784 (enum resource_types): Remove.
19785 (x_set_scroll_bar_default_width): New global function (for frame.c).
19786 (mac_frame_parm_handlers): New table for redisplay_interface.
19787 (syms_of_macfns): Don't intern/staticpro removed vars.
19788
19789 * macterm.c: Remove unnecessary extern declarations.
19790 (x_redisplay_interface): Add mac_frame_parm_handlers member.
19791
19792 * Makefile.in (frame.o): Add dependency on blockinput.h and files
19793 included from it (atimer.h and systime.h).
19794
19795 2003-03-30 Andreas Schwab <schwab@suse.de>
19796
19797 * xdisp.c (x_insert_glyphs): Fix swapped width and height
19798 parameters for shift_glyphs_for_insert.
19799
19800 * macterm.c (x_redisplay_interface): Add missing entry for
19801 draw_vertical_window_border.
19802
19803 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
19804
19805 * fileio.c (Fexpand_file_name): In the no-handler case, after
19806 expanding, look again for a handler and invoke it. This is needed
19807 for filenames like "/foo/../user@host:/bar/../baz" -- the first
19808 expansion produces "/user@host:/bar/../baz" which needs to be
19809 expanded again for the finame result "/user@host:/baz".
19810
19811 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19812
19813 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
19814 of area to be redrawn for better performance.
19815
19816 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
19817
19818 * xterm.c (take_vertical_position_into_account): Remove.
19819 (xt_action_hook): Call set_vertical_scroll_bar if needed.
19820 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
19821 (xm_scroll_callback, x_create_toolkit_scroll_bar)
19822 (x_set_toolkit_scroll_bar_thumb): Simplify.
19823 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
19824 (XTread_socket): Remove unused var.
19825 (x_make_frame_invisible): Replace goto with else.
19826
19827 * xdisp.c (set_vertical_scroll_bar): New fun.
19828 (redisplay_window): Use it.
19829
19830 2003-03-26 Richard M. Stallman <rms@gnu.org>
19831
19832 * xdisp.c (update_tool_bar): Recompute tool bar if
19833 update_mode_lines is set. Set w->update_mode_line
19834 only if the tool bar contents actually change.
19835 (update_menu_bar): Undo previous change.
19836
19837 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19838
19839 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
19840 (xg_frame_set_char_size): Calculate scroll bar width before frame
19841 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
19842 (xg_separator_p): Check for all documented separator types.
19843 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
19844 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
19845
19846 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
19847 so tool bar gets updated.
19848
19849 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
19850
19851 * data.c (store_symval_forwarding): Re-instate part of the code
19852 that was deleted with too much enthusiasm.
19853
19854 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
19855
19856 * data.c (store_symval_forwarding): Delete special read-only
19857 hack for type == -1, since we now use ->constant instead.
19858 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
19859
19860 * buffer.c (overlays_in): Declare static.
19861 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
19862 `constant' field rather than the variable's `type' field.
19863
19864 2003-03-24 Andrew Choi <akochoi@shaw.ca>
19865
19866 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
19867
19868 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
19869
19870 * fns.c [MAC_OSX]: Do not redefine vector.
19871
19872 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
19873
19874 * macgui.h: Remove definition of No_Cursor.
19875
19876 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
19877
19878 * xdisp.c: Define No_Cursor.
19879 (x_write_glyphs, notice_overwritten_cursor)
19880 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
19881 (note_mouse_highlight): Remove Mac-specific code.
19882 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
19883
19884 2003-03-24 John Paul Wallington <jpw@gnu.org>
19885
19886 * xdisp.c (redisplay_window): If mini window's buffer is not
19887 empty, then redisplay it like other windows.
19888
19889 2003-03-23 Kim F. Storm <storm@cua.dk>
19890
19891 * w32term.c (w32_draw_window_cursor): Fix last change.
19892
19893 2003-03-23 Kenichi Handa <handa@m17n.org>
19894
19895 * alloc.c (make_string_from_bytes, make_specified_string):
19896 Add `const' for the arg CONTENTS.
19897
19898 * lisp.h (make_string_from_bytes, make_specified_string):
19899 Prototypes adjusted.
19900
19901 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19902
19903 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
19904
19905 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
19906 (XG_SB_RANGE): New define.
19907
19908 * gtkutil.c (xg_fixed_handle_expose): New function.
19909 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
19910 expose events.
19911 (xg_update_scrollbar_pos): Take two more arguments, left and width
19912 of scroll bar including borders.
19913 Clear left and right part outside scroll bar separately as some
19914 themes have bars that are not an even number of pixels.
19915 Don't set reallocate_redraws, don't call
19916 gdk_window_process_all_updates.
19917 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
19918 so no need to change it. Calculate size and value with XG_SB_RANGE.
19919
19920 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
19921 Pass left and width of scroll bar including borders to
19922 xg_update_scrollbar_pos.
19923
19924 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
19925
19926 * Makefile.in: Make sure space precedes end-of-line backslashes.
19927
19928 2003-03-22 Kim F. Storm <storm@cua.dk>
19929
19930 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
19931 Add generic versions here. Remove system specific versions
19932 defined elsewhere.
19933
19934 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
19935 Add prototypes.
19936
19937 * xterm.h (STORE_NATIVE_RECT): New macro.
19938
19939 2003-03-21 Kim F. Storm <storm@cua.dk>
19940
19941 * xdisp.c (get_glyph_string_clip_rect):
19942 Use FRAME_INTERNAL_BORDER_WIDTH.
19943
19944 * dispextern.h (struct redisplay_interface): Add active_p
19945 argument to draw_window_cursor member. All uses changed.
19946
19947 2003-03-21 Kim F. Storm <storm@cua.dk>
19948
19949 The following changes consolidate code related to writing and
19950 inserting glyphs, exposing frame, the tool bar, the mouse face,
19951 the output cursor, and help echo from xterm.c, w32term.c and
19952 macterm.c into xdisp.c. It also generalizes the use of the
19953 window_part enum instead of using numeric values throughout.
19954
19955 * xdisp.c: Consolidate gui-independent code here.
19956 Include keymap.h.
19957 (Qhelp_echo): Import.
19958 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
19959 (help_echo_string, help_echo_window, help_echo_object)
19960 (previous_help_echo_string, help_echo_pos): Declare here.
19961 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
19962 (estimate_mode_line_height): Define here. Handle windowing
19963 systems directly (without using estimate_mode_line_height_hook).
19964 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
19965 (update_window_cursor, update_cursor_in_window_tree)
19966 (fast_find_position, fast_find_string_pos)
19967 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
19968 (expose_area, expose_line, expose_overlaps, expose_window)
19969 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
19970 declared static as they are only used locally in xdisp.c.
19971 (draw_glyphs): Rename from x_draw_glyphs and make static.
19972 (tool_bar_item_info, notice_overwritten_cursor): Make static.
19973 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
19974 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
19975 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
19976 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
19977 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
19978 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
19979 (note_mouse_highlight, x_clear_window_mouse_face)
19980 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
19981 (x_intersect_rectangles): New generic functions for use by xdisp.c
19982 and GUI front-ends.
19983 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
19984 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
19985
19986 * dispextern.h (Display_Info): Generic typedef for *_display_info.
19987 (NativeRectangle): Generic typedef for rectangle type.
19988 (enum window_part): Move here from window.c.
19989 (struct redisplay_interface): New members flush_display_optional,
19990 define_frame_cursor, clear_frame_area, draw_window_cursor,
19991 draw_vertical_window_border, shift_glyphs_for_insert.
19992 Rename member clear_mouse_face to clear_window_mouse_face.
19993 (estimate_mode_line_height_hook): Remove hook.
19994 (auto_raise_tool_bar_buttons_p): Don't declare extern.
19995 (tool_bar_item_info): Remove prototype.
19996 (help_echo_string, help_echo_window, help_echo_object)
19997 (previous_help_echo_string, help_echo_pos)
19998 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
19999 (x_stretch_cursor_p, output_cursor): Declare extern.
20000 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
20001 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
20002 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
20003 (display_and_set_cursor, set_output_cursor, x_cursor_to)
20004 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
20005 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
20006 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
20007 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
20008 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
20009 Add prototypes.
20010 (mode_line_string, marginal_area_string): Fix prototypes.
20011
20012 * window.c (enum window_part): Move to dispextern.h.
20013 (coordinates_in_window): Use enum window_part member names
20014 instead of numbers to describe return value.
20015 (struct check_window_data): Change part member to window_part.
20016 (check_window_containing): Return window_part unaltered.
20017 (window_from_coordinates): Change part arg from int to enum
20018 window_part. Allow part arg to be null. All users changed.
20019
20020 * window.h (window_from_coordinates): Fix prototype.
20021
20022 * term.c (estimate_mode_line_height): Move to xdisp.c.
20023
20024 * keyboard.c (make_lispy_event): Use enum window_part.
20025
20026 * dispnew.c (mode_line_string, marginal_area_string): Use enum
20027 window_part instead of int in arg list. Users changed.
20028
20029 * xterm.h (No_Cursor): Declare as None for X.
20030 (struct mac_output): Replace member cross_cursor by hand_cursor.
20031
20032 * xterm.c: Remove consolidated defines and code.
20033 (BETWEEN): Remove unused macro.
20034 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
20035 (x_define_frame_cursor, x_clear_frame_area)
20036 (x_draw_window_cursor): New X-specific functions for RIF.
20037 (x_redisplay_interface): Add new members.
20038
20039 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
20040
20041 * w32term.h (struct w32_output): Remove cross_cursor member.
20042
20043 * w32term.c: Remove consolidated defines and code.
20044 (BETWEEN): Remove unused macro.
20045 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
20046 (w32_define_frame_cursor, w32_clear_frame_area)
20047 (w32_draw_window_cursor): New W32-specific functions for RIF.
20048 (w32_redisplay_interface): Add new members.
20049
20050 * w32gui.h (No_Cursor): Define as 0 for W32.
20051 (XRectangle): Add X compatible rectangle type.
20052 (NativeRectangle): Declare as RECT for W32.
20053 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
20054
20055 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
20056
20057 * w32console.c: Remove consolidated defines and code.
20058
20059 * msdos.h (Display_Info): Add generic typedef.
20060
20061 * msdos.c: Remove consolidated defines and code.
20062 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
20063
20064 * macterm.h (struct mac_output): Replace member cross_cursor by
20065 hand_cursor.
20066 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
20067
20068 * macterm.c: Remove consolidated defines and code.
20069 (BETWEEN): Remove unused macro.
20070 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
20071 (mac_define_frame_cursor, mac_clear_frame_area)
20072 (mac_draw_window_cursor): New Mac-specific functions for RIF.
20073 (x_redisplay_interface): Add new members.
20074
20075 * macgui.h (No_Cursor): Define as 0 for Mac.
20076 (XRectangle): Add X compatible rectangle type.
20077 (NativeRectangle): Declare as Rect for Mac.
20078 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
20079
20080 * macfns.c (x_set_mouse_color): Setup hand_cursor.
20081 (x_set_cursor_color): Use x_display_and_set_cursor.
20082
20083 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
20084 included from it. Add dependency on keymap.h.
20085
20086 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
20087
20088 2003-03-21 Kenichi Handa <handa@m17n.org>
20089
20090 * fileio.c (Fexpand_file_name): Fix previous change.
20091
20092 2003-03-19 Kenichi Handa <handa@m17n.org>
20093
20094 * fileio.c (Ffile_name_directory): Reconstruct file name by
20095 make_specified_string.
20096 (Ffile_name_nondirectory, Ffile_name_as_directory)
20097 (Fdirectory_file_name, Fexpand_file_name)
20098 (Fsubstitute_in_file_name): Likewise.
20099 (Fread_file_name): Compare decoded homedir with DIR and
20100 DEFAULT_FILENAME.
20101
20102 * alloc.c (make_specified_string): If NCHARS is negative, count
20103 the number of characters.
20104
20105 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20106
20107 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
20108 all widgets.
20109
20110 * gtkutil.h: Removed xg_ignore_next_thumb.
20111
20112 2003-03-18 Kenichi Handa <handa@m17n.org>
20113
20114 * coding.c (Vchar_coding_system_table): Remove this variable.
20115 (Vcoding_system_safe_chars): New variable.
20116 (intersection): Remove this function.
20117 (find_safe_codings): Don't use Vchar_coding_system_table, but try
20118 all codings in SAFE_CODINGS.
20119 (Ffind_coding_systems_region_internal): Adjust for the change of
20120 find_safe_codings. Get generic coding systems from
20121 Vcoding_system_safe_chars.
20122 (Fdefine_coding_system_internal): New function.
20123 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
20124 Initialize and staticpro Vcoding_system_safe_chars.
20125
20126 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20127
20128 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
20129 equal old values before updating.
20130
20131 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
20132
20133 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
20134
20135 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20136
20137 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
20138 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
20139 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
20140 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
20141 (xg_create_scroll_bar): Pass bar to button event callback.
20142 (xg_find_top_left_in_fixed): New function.
20143 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
20144 whole scroll bar area. Get old position with
20145 xg_find_top_left_in_fixed, calculate and only clear needed areas.
20146 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
20147 dragging is in progress. Calculate whole as for Motif.
20148 Remove code that saved last values. Call gtk_range functions to
20149 set scroll bar sizes.
20150
20151 * gtkutil.h: Removed xg_ignore_next_thumb.
20152
20153 2003-03-17 Juanma Barranquero <lektu@terra.es>
20154
20155 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
20156 and files included from it.
20157
20158 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
20159
20160 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
20161 multiple occurrences of the same keymap under different prefixes.
20162 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
20163
20164 2003-03-16 Jason Rumney <jasonr@gnu.org>
20165
20166 * w32gui.h: Use HDC for Display.
20167
20168 * w32term.c (w32_encode_char): Prevent double-byte chars from
20169 crashing Emacs.
20170
20171 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
20172 as binary.
20173
20174 2003-03-16 Juanma Barranquero <lektu@terra.es>
20175
20176 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
20177
20178 2003-03-16 Kim F. Storm <storm@cua.dk>
20179
20180 The following changes consolidate some of the gui-independent
20181 parts of the processing and drawing of "glyph strings" from
20182 xterm.c, w32term.c, and macterm.c into xdisp.c.
20183
20184 * dispextern.h (struct glyph): Reduce face_id member from 22 to
20185 21 bits (this reduces number of faces from 4M to 2M).
20186 Replace W32 specific w32_font_type member (2 bits) by generic
20187 font_type member (3 bits) for portability.
20188 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
20189 (enum draw_glyphs_face): Define here.
20190 (struct glyph_string): Define here. Merge W32 and X versions.
20191 (struct redisplay_interface): New members per_char_metric,
20192 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
20193 (VCENTER_BASELINE_OFFSET): Define here.
20194 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
20195 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
20196
20197 * xdisp.c: Consolidate gui-independent "glyph string" code here.
20198 (dump_glyph_string): Moved here.
20199 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
20200 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
20201 (fill_composite_glyph_string, fill_glyph_string)
20202 (fill_image_glyph_string, fill_stretch_glyph_string)
20203 (left_overwritten, left_overwriting, right_overwritten)
20204 (right_overwriting, get_char_face_and_encoding)
20205 (set_glyph_string_background_width, compute_overhangs_and_x)
20206 (append_glyph, append_composite_glyph, produce_image_glyph)
20207 (take_vertical_position_into_account, append_stretch_glyph)
20208 (produce_stretch_glyph): New generic functions (based on X version).
20209 Call platform specific functions through rif.
20210 (INIT_GLYPH_STRING): New macro, hides W32 details.
20211 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
20212 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
20213 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
20214 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
20215 (notice_overwritten_cursor):
20216 Generic functions exported to platform modules. Users changed.
20217
20218 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
20219 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
20220 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
20221 New macros for consolidated code.
20222
20223 * xterm.c: Remove consolidated defines and code.
20224 (x_per_char_metric, x_encode_char)
20225 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
20226 (x_redisplay_interface): Add new members.
20227
20228 * w32gui.h (Display): Add dummy typedef for consolidation.
20229 (XChar2b): Define alias for wchar_t for consolidation.
20230 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
20231
20232 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
20233 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
20234 New macros for consolidation.
20235
20236 * w32term.c: Remove consolidated defines and code.
20237 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
20238 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
20239 (w32_per_char_metric): Change font_type arg to int for RIF.
20240 (w32_encode_char): Return int according to RIF requirements.
20241 (w32_compute_glyph_string_overhangs): Adapt to RIF.
20242 (w32_get_glyph_overhangs): New function for RIF. Uses generic
20243 x_get_glyph_overhangs.
20244 (w32_redisplay_interface): Add new members.
20245
20246 * macgui.h (XChar2b): Move typedef here for consolidation.
20247 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
20248
20249 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
20250 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
20251 consolidation.
20252
20253 * macterm.c: Remove consolidated defines and code.
20254 (mac_per_char_metric): New function for RIF.
20255 (mac_encode_char): Adapt to new RIF requirements.
20256 (mac_compute_glyph_string_overhangs): Adapt for RIF.
20257 (x_redisplay_interface): Add new members.
20258
20259 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
20260
20261 * keymap.c (Vmenu_events): New var.
20262 (syms_of_keymap): Initialize it.
20263 (where_is_internal): Check more carefully what is a menu event.
20264
20265 2003-03-14 Richard M. Stallman <rms@gnu.org>
20266
20267 * lread.c (read1): After #!, exit loop on eof.
20268
20269 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20270
20271 * gtkutil.h: Add declaration for xg_frame_cleared.
20272
20273 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
20274
20275 * gtkutil.c (struct xg_last_sb_pos): New structure.
20276 (handle_fixed_child): New function.
20277 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
20278 and force a redraw on them.
20279 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
20280 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
20281 so we can avoid unneeded redraws.
20282 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
20283 and force a redraw on the scroll bar.
20284 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
20285 if xg_last_sb_pos shows the positions are up to date.
20286 (xg_frame_cleared): New function.
20287
20288 2003-03-13 Kenichi Handa <handa@m17n.org>
20289
20290 * coding.c (Fdetect_coding_region): Fix docstring.
20291 (Fdetect_coding_string): Fix docstring.
20292
20293 2003-03-13 Andreas Schwab <schwab@suse.de>
20294
20295 * gtkutil.c: Add prototype for create_menus.
20296
20297 * data.c (long_to_cons): Fix type of top.
20298
20299 * xselect.c (selection_data_to_lisp_data): Use int instead of
20300 long for an integer of size 4.
20301
20302 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
20303 (xg_tool_bar_help_callback): Likewise.
20304
20305 2003-03-12 Andreas Schwab <schwab@suse.de>
20306
20307 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
20308
20309 2003-03-12 Kim F. Storm <storm@cua.dk>
20310
20311 The following changes consolidate the fringe handling from
20312 xterm.c, w32term.c, and macterm.c into xdisp.c.
20313
20314 * xdisp.c: Consolidate fringe handling code here.
20315 (left_bits, right_bits, continued_bits, continuation_bits)
20316 (ov_bits, zv_bits): Define fringe bitmaps.
20317 (fringe_bitmaps): New array holding fringe bitmaps.
20318 (draw_fringe_bitmap): Draw a specific bitmap; call display
20319 specific drawing routine via rif->draw_fringe_bitmap.
20320 (draw_row_fringe_bitmaps): Generic replacement for
20321 x_draw_row_fringe_bitmaps; all callers changed.
20322 (compute_fringe_widths): Generic replacement for
20323 x_compute_fringe_widths; all callers changed.
20324
20325 * dispextern.h (enum fringe_bitmap_type): Define here.
20326 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
20327 (fringe_bitmaps): Declare extern.
20328 (struct redisplay_interface): New member draw_fringe_bitmap.
20329 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
20330
20331 * xterm.c: Remove generic fringe code.
20332 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
20333 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
20334
20335 * w32term.c: Remove generic fringe code.
20336 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
20337 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
20338
20339 * macterm.c: Remove generic fringe code.
20340 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
20341 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
20342
20343 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
20344
20345 * print.c (Fprin1_to_string): Return unibyte string if possible.
20346
20347 2003-03-09 David Kastrup <dak@gnu.org>
20348
20349 * process.c (read_process_output): We have allocated enough space
20350 for readmax and carryover, so actually use the alloted space.
20351
20352 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20353
20354 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
20355 toolkit scrollbar click.
20356
20357 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
20358 for USE_GTK.
20359 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
20360 also.
20361 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
20362 scrollbar and control is pressed, call x_scroll_bar_handle_click.
20363
20364 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
20365
20366 * gtkutil.c (xg_get_scroll_id_for_window): New function.
20367 (xg_tool_bar_item_expose_callback): New function.
20368 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
20369 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
20370 on the tool bar widget.
20371 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
20372 to expose on the tool bar item widgets.
20373
20374 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20375
20376 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
20377 struct image* when deciding to update (struct image* may have been
20378 deleted from the image cache).
20379
20380 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
20381 the event isn't for a frame (i.e. for dialogs).
20382
20383 2003-03-07 Kenichi Handa <handa@m17n.org>
20384
20385 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
20386 composition components reaches the limit, terminate composing.
20387 (COMPOSITION_OK): New macro.
20388 (detect_coding_iso2022): Use it if an escape sequence for
20389 composition is found.
20390 (coding_restore_composition): Adjust the number of composition
20391 components if it is not sane.
20392
20393 2003-03-06 Juanma Barranquero <lektu@terra.es>
20394
20395 * w32term.h (struct w32_display_info): Add xrdb member to support
20396 passing resources via -xrm on Windows.
20397
20398 * w32term.c (w32_make_rdb): New function.
20399 (w32_term_init): Use it to initialize xrdb member of w32_display_info
20400 struct. Delete leftover code.
20401
20402 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
20403 for resources passed on the command line.
20404
20405 * w32reg.c (w32_get_rdb_resource): New function.
20406 (x_get_string_resource): Use it, so resources passed with -xrm
20407 supercede the ones in the registry.
20408
20409 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20410
20411 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
20412 instead of x_top_window_to_frame.
20413
20414 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20415
20416 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
20417 when restarting Emacs.
20418
20419 2003-03-03 Richard M. Stallman <rms@gnu.org>
20420
20421 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
20422 to run kill-buffer-query-functions.
20423 (Qkill_buffer_query_functions): New var.
20424 (syms_of_buffer): Init and staticpro it.
20425
20426 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20427
20428 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
20429
20430 2003-02-25 Kim F. Storm <storm@cua.dk>
20431
20432 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
20433 If centering point failed to make whole line visible and vscroll
20434 is non-zero, disable vscroll and try centering point again.
20435
20436 * lread.c (read1): Accept `single space' syntax like (? x).
20437
20438 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20439
20440 * keyboard.c (cancel_hourglass_unwind): Surround with
20441 #ifdef HAVE_X_WINDOWS.
20442
20443 2003-02-25 Kenichi Handa <handa@m17n.org>
20444
20445 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
20446 process only when "subprocesses" is defined.
20447
20448 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
20449
20450 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
20451
20452 2003-02-24 Juanma Barranquero <lektu@terra.es>
20453
20454 * callint.c (fix_command): Declare as static void and move before
20455 Fcall_interactively.
20456
20457 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
20458 (syms_of_xdisp): Don't initialize Qwhen.
20459
20460 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20461
20462 * keyboard.c (cancel_hourglass_unwind): New function.
20463 (command_loop_1): Cancel hourglass with unwind-protect.
20464
20465 2003-02-23 Richard M. Stallman <rms@gnu.org>
20466
20467 * callint.c (fix_command): New subroutine, from Fcall_interactively.
20468 Detect (when ... (region-beginning)) etc.
20469 (Fcall_interactively): Call fix_command.
20470 (Qif, Qwhen): New variables.
20471 (syms_of_callint): Init and staticpro them.
20472
20473 * regex.c (print_partial_compiled_pattern): Output to stderr.
20474
20475 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
20476
20477 * dired.c (directory_files_internal): Don't expand directory.
20478 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
20479 instead. From Lars Hansen <larsh@math.ku.dk>.
20480
20481 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
20482
20483 * fns.c (string_to_multibyte): Remove unused var i.
20484 (Flanginfo): Fix int/Lisp_Object mixup.
20485 (void_call2): New fun.
20486 (Fmap_char_table): Use it in place of call2.
20487
20488 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
20489
20490 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
20491
20492 * keymap.c (copy_keymap_1): Make it static.
20493
20494 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
20495
20496 2003-02-22 David Ponce <david@dponce.com>
20497
20498 * lread.c (Fload): Don't check STRING_MULTIBYTE.
20499
20500 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20501
20502 * process.h: Removed subtty field from struct Lisp_Process.
20503
20504 * process.c (create_process): Remove setting of subtty.
20505 (emacs_get_tty_pgrp): New function.
20506 (Fprocess_running_child_p, process_send_signal):
20507 Call emacs_get_tty_pgrp instead of ioctl.
20508 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
20509
20510 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
20511
20512 * keymap.c (Fdefine_key): Doc fix.
20513
20514 2003-02-21 Juanma Barranquero <lektu@terra.es>
20515
20516 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
20517
20518 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
20519 POLLING_PROBLEM_IN_SELECT.
20520
20521 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
20522 Delete #undef of POLLING_PROBLEM_IN_SELECT.
20523
20524 * s/hpux10-20.h: New file.
20525
20526 * process.c (wait_reading_process_input):
20527 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
20528
20529 2003-02-20 Kenichi Handa <handa@m17n.org>
20530
20531 * fontset.c (check_fontset_name): If NAME is nil, return the
20532 default fontset.
20533 (override_font_info): New function.
20534 (Fset_fontset_font): Document that NAME nil means the default fontset.
20535 (Ffontset_info): If FONTSET is not the default fontset, merge
20536 FONTSET onto the copy of the default fontset, and work on that
20537 copy. Document that NAME nil means the default fontset.
20538 (Ffontset_font): Document that NAME nil means the default fontset.
20539
20540 * process.c (setup_process_coding_systems): If the process's
20541 in/out descriptor is -1, do nothing.
20542
20543 2003-02-19 Andreas Schwab <schwab@suse.de>
20544
20545 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
20546 Add prototypes.
20547
20548 2003-02-19 Kenichi Handa <handa@m17n.org>
20549
20550 * xfaces.c (try_alternative_families): Try all scalable fonts if
20551 Vscalable_fonts_allowed is not Qt.
20552
20553 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20554
20555 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
20556
20557 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20558
20559 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
20560 names.
20561
20562 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
20563 (sorted_font_list): Move allocation of struct font_name to
20564 x_face_list_fonts.
20565 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
20566 (Fx_list_fonts): Set maxnames to -1 to get all font names.
20567
20568 2003-02-18 Kim F. Storm <storm@cua.dk>
20569
20570 * lread.c (read1): Fix last change.
20571 "`" is not always special. Allow "?" after a character constant.
20572
20573 2003-02-18 Andrew Choi <akochoi@shaw.ca>
20574
20575 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
20576
20577 2003-02-18 Andreas Schwab <schwab@suse.de>
20578
20579 * window.c (window_scroll_pixel_based): Move outside a
20580 multi-glyph character before setting new window start.
20581
20582 * xdisp.c (in_display_vector_p): New function.
20583 * dispextern.h (in_display_vector_p): Declare.
20584
20585 2003-02-18 Kim F. Storm <storm@cua.dk>
20586
20587 * lread.c (read1): Fix and relax read syntax.
20588 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
20589 Only recognize "," after dotted-pair dot if inside backquote.
20590 Never include "`" or "," (inside backquote) in a symbol.
20591 Allow dotted-pair dot after a character constant.
20592 Allow "`" and "," (inside backquote) after a character constant.
20593
20594 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20595
20596 * gtkutil.c (xg_tool_bar_expose_callback): New function.
20597 (xg_create_tool_bar): Force style of tool bar to be horizontal with
20598 icons. Set name of tool bar to emacs-toolbar.
20599 (update_frame_tool_bar): Connect expose event to
20600 xg_tool_bar_expose_callback.
20601
20602 2003-02-17 Richard M. Stallman <rms@gnu.org>
20603
20604 * keyboard.c (this_command_key_count_reset): New variable.
20605 Initiatize to 0 where this_command_key_count is set.
20606 (read_char): Save and restore this_command_key_count_reset
20607 around input method code.
20608 (read_char): If this_command_key_count_reset, echo reread commands.
20609 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
20610
20611 2003-02-17 Kenichi Handa <handa@m17n.org>
20612
20613 * fns.c (string_to_multibyte): Always return a multibyte string.
20614
20615 2003-02-16 Jason Rumney <jasonr@gnu.org>
20616
20617 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
20618 Negative max_fonts parameter means list all.
20619
20620 2003-02-14 Dave Love <fx@gnu.org>
20621
20622 * fns.c (Flanginfo): Doc fix.
20623
20624 2003-02-13 Kim F. Storm <storm@cua.dk>
20625
20626 * lread.c (read_escape): Interpret \s as a SPACE character, except
20627 for \s-X in a character constant which still is the super modifier.
20628 (read1): Signal an `invalid read syntax' error if a character
20629 constant is immediately followed by a digit or symbol character.
20630
20631 * search.c (Fmatch_data): Doc fix. Explicitly state that
20632 match-data is undefined if last search failed.
20633
20634 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
20635 All uses changed.
20636
20637 2003-02-12 Juanma Barranquero <lektu@terra.es>
20638
20639 * eval.c (Fdefmacro): Fix typo.
20640
20641 2003-02-12 Kim F. Storm <storm@cua.dk>
20642
20643 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
20644 macro is a string, convert meta modifiers in string when copying
20645 the string into a vector.
20646
20647 2003-02-11 Kim F. Storm <storm@cua.dk>
20648
20649 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
20650
20651 2003-02-11 Kenichi Handa <handa@m17n.org>
20652
20653 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
20654
20655 2003-02-10 Kim F. Storm <storm@cua.dk>
20656
20657 * process.c: Doc fixes.
20658 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
20659
20660 2003-02-10 Kenichi Handa <handa@m17n.org>
20661
20662 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
20663
20664 * process.c (QCfilter_multibyte): New variable.
20665 (setup_process_coding_systems): New function.
20666 (Fset_process_buffer, Fset_process_filter):
20667 Call setup_process_coding_systems.
20668 (Fstart_process): Initialize the member `filter_multibyte' of
20669 struct Lisp_Process.
20670 (create_process): Call setup_process_coding_systems.
20671 (Fmake_network_process): New keyward `:filter-multibyte'.
20672 Initialize the member `filter_multibyte' of struct Lisp_Process.
20673 Call setup_process_coding_systems.
20674 (server_accept_connection): Call setup_process_coding_systems.
20675 (read_process_output): If the process has a filter, decide the
20676 multibyteness of a string to given to the filter by
20677 `filter_multibyte' member of the process. If the process doesn't
20678 have a filter and the result of conversion is unibyte, use
20679 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
20680 multibyte form.
20681 (Fset_process_coding_system): Call setup_process_coding_systems.
20682 (Fset_process_filter_multibyte): New function.
20683 (Fprocess_filter_multibyte_p): New function.
20684 (syms_of_process): Intern and staticpro QCfilter_multibyte.
20685 Defsubr Sset_process_filter_multibyte and
20686 Sprocess_filter_multibyte_p.
20687
20688 * process.h (struct Lisp_Process): New member filter_multibyte.
20689
20690 * lisp.h (setup_process_coding_systems): Add prototype.
20691
20692 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
20693 process, update coding systems for the process.
20694
20695 2003-02-09 Kenichi Handa <handa@m17n.org>
20696
20697 * fns.c (string_to_multibyte): New function.
20698 (Fstring_to_multibyte): New function.
20699 (syms_of_fns): Defsubr it.
20700
20701 2003-02-08 Andreas Schwab <schwab@suse.de>
20702
20703 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
20704 instead of the substitution.
20705
20706 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20707
20708 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
20709
20710 * xmenu.c (menu_position_func): Adjust menu popup position so that
20711 the menu is fully visible.
20712
20713 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20714
20715 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
20716 (x_make_frame_invisible, x_wm_set_icon_position):
20717 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
20718
20719 * xfns.c (x_set_name, x_set_title): Ditto.
20720
20721 2003-02-04 Richard M. Stallman <rms@gnu.org>
20722
20723 * keyboard.c (echo_now): Update before_command_echo_length.
20724 (Freset_this_command_lengths): Reset this_command_key_count etc.
20725 immediately rather than arranging to do it later.
20726 (before_command_key_count_1, before_command_echo_length_1)
20727 (before_command_restore_flag): Vars deleted.
20728 (add_command_key): Don't handle before_command_restore_flag.
20729 (read_char, record_menu_key): Don't update before_command_key_count or
20730 before_command_echo_length.
20731 (read_char): Don't handle before_command_restore_flag.
20732
20733 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
20734 in direct-output clauses if it wouldn't be called in the ordinary case.
20735
20736 2003-02-04 Kim F. Storm <storm@cua.dk>
20737
20738 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
20739
20740 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20741
20742 * gtkutil.c (remove_from_container): Copying list is not needed.
20743 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
20744 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
20745 on list returned from gtk_container_get_children to avoid memory leak.
20746
20747 2003-02-01 Jason Rumney <jasonr@gnu.org>
20748
20749 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
20750 local malloc.
20751 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
20752 definitions in xpm.h.
20753 (init_xpm_functions): New function.
20754 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
20755 (init_external_image_libraries): Try to load libXpm.dll.
20756
20757 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
20758 timestamp.
20759
20760 2003-01-31 Dave Love <fx@gnu.org>
20761
20762 * syntax.c (Fskip_chars_forward)
20763 (open-paren-in-column-0-is-defun-start): Doc fix.
20764
20765 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
20766
20767 * fileio.c: Support // at start of name for Cygwin (just added proper
20768 preprocessor tests).
20769
20770 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
20771
20772 * Makefile.in: Use @EXEEXT@ for Cygwin.
20773
20774 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
20775
20776 * s/cygwin.h: Added for Cygwin port.
20777
20778 2003-01-31 Juanma Barranquero <lektu@terra.es>
20779
20780 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
20781 when including gif_lib.h.
20782 (init_gif_functions, init_tiff_functions): New functions.
20783 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
20784 Windows. Disable color table lookups. Call library functions
20785 through pointers determined at runtime.
20786 (init_external_image_libraries): Try to load libungif.dll and
20787 libtiff.dll.
20788
20789 2003-01-31 Kenichi Handa <handa@m17n.org>
20790
20791 * xdisp.c (SKIP_GLYPHS): New macro.
20792 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
20793
20794 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20795
20796 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
20797
20798 2003-01-30 Dave Love <fx@gnu.org>
20799
20800 * alloc.c (Vgc_elapsed, gcs_done): New variables.
20801 (Fgarbage_collect): Use them.
20802 (init_alloc, syms_of_alloc): Set them up.
20803
20804 2003-01-30 Juanma Barranquero <lektu@terra.es>
20805
20806 * w32fns.c (init_external_image_libraries): Add missing operator.
20807
20808 2003-01-29 Jason Rumney <jasonr@gnu.org>
20809
20810 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
20811 an alternative name for jpeg.dll.
20812
20813 2003-01-29 Kenichi Handa <handa@m17n.org>
20814
20815 * xdisp.c (set_cursor_from_row): Pay attention to string display
20816 properties.
20817
20818 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
20819
20820 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
20821 <escape>.
20822 (keycode_to_xkeysym_table): Reformat and add more comments.
20823 (XTread_socket): Drop special case for backspace.
20824
20825 2003-01-28 Andrew Choi <akochoi@shaw.ca>
20826
20827 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
20828 values in old-style RGB specs.
20829
20830 2003-01-27 Juanma Barranquero <lektu@terra.es>
20831
20832 * w32fns.c (init_external_image_libraries): Try alternate names for the
20833 jpeg dll.
20834
20835 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20836
20837 * gtkutil.c (create_dialog, xg_separator_p)
20838 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
20839 before calling strcmp or strlen.
20840
20841 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20842
20843 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
20844 and handle image load failure.
20845
20846 2003-01-26 Jason Rumney <jasonr@gnu.org>
20847
20848 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
20849 New functions.
20850 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
20851 Disable color table lookups. Call jpeg library functions
20852 through pointers determined at runtime.
20853 (init_external_image_libraries): Try to load jpeg.dll.
20854
20855 2003-01-25 Richard M. Stallman <rms@gnu.org>
20856
20857 * lisp.h: Declare format2 instead of format1.
20858
20859 * fileio.c (barf_or_query_if_file_exists):
20860 Call format2 instead of format1.
20861
20862 * editfns.c (format2): New function, replaces format1
20863 but takes exactly two Lisp Objects as format args.
20864
20865 * buffer.c (Fkill_buffer): Call format2 instead of format1.
20866
20867 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20868
20869 * xterm.h: Change to return value of x_dispatch_event to int.
20870
20871 * xterm.c (x_filter_event): New function.
20872 (event_handler_gdk, XTread_socket): Call x_filter_event.
20873 (x_dispatch_event): Change to return value of finish.
20874 (event_handler_gdk): Use return value from x_dispatch_event.
20875
20876 * xfns.c (x_window): Call create_frame_xic for GTK version to
20877 initialize input methods.
20878
20879 * gtkutil.h: Add (void) prototypes.
20880
20881 * gtkutil.c (create_menus): Remove code that puts the help menu to
20882 the right.
20883
20884 2003-01-25 Jason Rumney <jasonr@gnu.org>
20885
20886 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
20887 [HAVE_PNG]: Sync with xfns.c version.
20888 (png_load): Adjust colors for Windows. Use Windows
20889 bitmaps. Disable color table lookups.
20890 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
20891 (init_png_functions): New function.
20892 (png_read_from_memory, png_load): Call png library functions
20893 through pointers determined at runtime.
20894 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
20895 (init_external_image_libraries): New function.
20896 (init_xfns): Call it.
20897
20898 2003-01-24 Andreas Schwab <schwab@suse.de>
20899
20900 * minibuf.c (Fminibuffer_message): Verify type of parameter.
20901
20902 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20903
20904 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
20905 of static initializer.
20906
20907 2003-01-24 Dave Love <fx@gnu.org>
20908
20909 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
20910 architectures.
20911
20912 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
20913 Use __alignof__.
20914
20915 2003-01-24 Kenichi Handa <handa@m17n.org>
20916
20917 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
20918 It it is nonzero, don't pretend that an invisible area doesn't exist.
20919 (command_loop_1): Call adjust_point_for_property with proper
20920 second arg.
20921
20922 2003-01-22 Jason Rumney <jasonr@gnu.org>
20923
20924 Sync changes with xterm.c and xfns.c.
20925
20926 * w32term.c (x_draw_glyph_string_foreground)
20927 (x_draw_composite_glyph_string_foreground): Implement overstriking.
20928
20929 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
20930 phys_cursor's hpos is overwritten. This is still not completely
20931 correct, as it doesn't really make sense to use hpos at all to
20932 get the cursor glyph (as that is relative to the width of the
20933 characters on the line, which may have changed during the update).
20934
20935 * w32term.c (notice_overwritten_cursor): Handle the special case
20936 of the cursor being in the first blank non-text line at the
20937 end of a window.
20938
20939 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
20940 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
20941 Compute from the x position returned by x_draw_glyphs.
20942
20943 (x_display_and_set_cursor): Don't set phys_cursor_width here,
20944 except for NO_CURSOR and system caret, to make phys_cursor_width
20945 contain what its name suggests.
20946 (notice_overwritten_cursor): Consider the cursor image erased if
20947 the output area intersects the cursor image in y-direction.
20948
20949 * w32term.c (note_mode_line_or_margin_highlight): Rename from
20950 note_mode_line_highlight and extend.
20951
20952 * w32term.c (last_window): New variable.
20953 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
20954 (note_mouse_movement): Remove reimplemented code in #if 0.
20955
20956 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
20957 not update_mode_lines, and always set it to 1.
20958
20959 2003-01-21 Jason Rumney <jasonr@gnu.org>
20960
20961 * w32fns.c (IDC_HAND): Define it if system headers don't.
20962
20963 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
20964
20965 * w32term.h (struct w32_output): New member hand_cursor.
20966 (WM_EMACS_SETCURSOR): New message definition.
20967
20968 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
20969 function w32_define_cursor.
20970 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
20971 position, change member name output_data.x to output_data.w32 and
20972 add function w32_define_cursor.
20973 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
20974 and change member name output_data.x to output_data.w32.
20975 (w32_initialize_display_info):
20976 Setup dpyinfo->vertical_scroll_bar_cursor.
20977
20978 * w32fns.c (Vx_hand_shape): New variable.
20979 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
20980 WM_EMACS_SETCURSOR.
20981 (x-create-frame): Setup Cursor types.
20982
20983 2003-01-21 David Ponce <david@dponce.com>
20984
20985 * w32term.c (w32_encode_char): For DIM=1 charset, set
20986 ccl->reg[2] to -1 before calling ccl_driver.
20987 (Sync. with xterm.c x_encode_char change by Kenichi Handa
20988 <handa@m17n.org> on 2002-09-30.)
20989 (w32_draw_relief_rect): Declare all args.
20990 (w32_define_cursor): New.
20991
20992 * w32fns.c (w32_load_cursor): New function.
20993 (w32_init_class): Use it.
20994 (x_put_x_image): Declare all args.
20995
20996 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
20997
20998 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
20999
21000 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21001
21002 * gtkutil.c: Must include stdio.h before termhooks.h.
21003
21004 2003-01-21 Dave Love <fx@gnu.org>
21005
21006 * alloc.c (Fgc_status): Print zombie list.
21007 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
21008 Fix assignment of zombies.
21009 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
21010 Don't take car of non-cons.
21011
21012 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21013
21014 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21015
21016 2003-01-20 David Ponce <david@dponce.com>
21017
21018 * w32menu.c (digest_single_submenu): Declare all args.
21019
21020 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
21021 changes in xmenu.c:
21022
21023 (parse_single_submenu): Use individual keymap's prompt
21024 string as pane name, if there is one.
21025 (set_frame_menubar): Save menu_items_n_panes from each call to
21026 parse_single_submenu and use it when calling digest_single_submenu.
21027
21028 2003-01-20 Steven Tamm <steventamm@mac.com>
21029
21030 * macterm.c (XTread_socket): Check for valid, visible window
21031 before sending a scroll-wheel event.
21032
21033 2003-01-20 Richard M. Stallman <rms@gnu.org>
21034
21035 * xdisp.c (redisplay_window): If mini window's buffer is not
21036 a minibuffer, then redisplay it like other windows.
21037
21038 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21039
21040 * gtkutil.c (xg_create_frame_widgets): Check if there is an
21041 external tool bar before setting tool bar height.
21042
21043 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21044
21045 * xterm.c (handle_one_xevent): Surround popup_activated
21046 with #ifdef:s for non-toolkit version.
21047
21048 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
21049 (gtkutil.o): New file.
21050 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
21051 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
21052
21053 * gtkutil.c: New file for GTK version.
21054
21055 * gtkutil.h: New file for GTK version.
21056
21057 * xterm.h: Add xt_or_gtk_widget.
21058 Include gtk files for USE_GTK.
21059 (struct x_output): Add toolbar_height.
21060 (struct x_output): Add GTK widgets and Gdk size_hints.
21061 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
21062 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
21063 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
21064
21065 * xterm.c: Include gtkutil.h for USE_GTK.
21066 (free_frame_menubar): Declare extern void for USE_GTK.
21067 (note_mouse_highlight): Check popup_activated for USE_GTK.
21068 (xt_action_hook): Don't compile if USE_GTK.
21069 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
21070 (xg_scroll_callback): New function.
21071 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
21072 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
21073 for USE_GTK.
21074 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
21075 xg_show_scroll_bar for USE_GTK.
21076 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
21077 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
21078 (event_handler_gdk): New function for USE_GTK.
21079 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
21080 (handle_one_xevent): Make sure widget is mapped before
21081 calling x_real_positions for USE_GTK.
21082 (XTread_socket): Add GTK event loop for USE_GTK.
21083 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
21084 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
21085 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
21086 (x_iconify_frame): Add code for USE_GTK.
21087 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
21088 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
21089 is in gtkutil.c.
21090 (x_term_init): Add initialization for GTK.
21091 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
21092
21093 * xmenu.c: Include gtkutil.h for USE_GTK.
21094 (Fx_popup_menu): Use current position if x and y are nil.
21095 (single_menu_item, single_menu_item, Fx_popup_dialog):
21096 Check for USE_GTK.
21097 (popup_widget_loop): New function for USE_GTK.
21098 (x_activate_menubar): Add code for USE_GTK.
21099 (popup_activate_callback, popup_deactivate_callback)
21100 (menu_highlight_callback, menubar_selection_callback):
21101 Add USE_GTK versions.
21102 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
21103 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
21104 (free_frame_menubar): Only compile if not USE_GTK. GTK version
21105 is in gtkutil.c.
21106 (popup_selection_callback): New version for USE_GTK.
21107 (create_and_show_popup_menu): New fuction, one USE_GTK version and
21108 one USE_X_TOOLKIT version.
21109 (xmenu_show): Call create_and_show_popup_menu.
21110 (dialog_selection_callback): New version for USE_GTK.
21111 (create_and_show_dialog): New fuction, one USE_GTK version and
21112 one USE_X_TOOLKIT version.
21113 (xdialog_show): Call create_and_show_dialog.
21114
21115 * xfns.c: Include gtkutil for USE_GTK.
21116 (x_window_to_frame, x_any_window_to_frame)
21117 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
21118 (x_top_window_to_frame): Add code for USE_GTK.
21119 (x_set_background_color): Call xg_set_background_color for GTK.
21120 (x_set_menu_bar_lines): Check for USE_GTK.
21121 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
21122 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
21123 (x_window): Call xg_create_frame_widgets for USE_GTK.
21124 (Fx_create_frame): Check for USE_GTK.
21125 (Fx_file_dialog): New implementation for USE_GTK.
21126
21127 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
21128 (update_menu_bar): Add check for USE_GTK.
21129 (update_tool_bar): Add check for USE_GTK and external tool bar.
21130 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
21131 (redisplay_internal): Add check for USE_GTK and popup_activated.
21132 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
21133 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
21134 (display_menu_bar): Add check for USE_GTK
21135
21136 * lisp.h (Vx_resource_name): Declare extern.
21137
21138 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
21139 for USE_GTK.
21140 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
21141
21142 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
21143 (FRAME_EXTERNAL_TOOL_BAR): New macro.
21144 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
21145
21146 * fileio.c (Fread_file_name): Add check for USE_GTK.
21147
21148 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
21149 Add check for USE_GTK.
21150
21151 * config.in: Added HAVE_GTK.
21152
21153 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
21154
21155 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
21156
21157 * charset.h (Funibyte_char_to_multibyte): Export.
21158
21159 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21160
21161 * xmenu.c (mouse_position_for_popup): New function.
21162 (Fx_popup_menu): Call mouse_position_for_popup for X and
21163 mouse_position_hook for others.
21164
21165 2003-01-17 Kim F. Storm <storm@cua.dk>
21166
21167 * editfns.c (Finsert): Mention `string-make-multibyte' and
21168 `string-as-multibyte' in doc string.
21169
21170 2003-01-17 Kenichi Handa <handa@m17n.org>
21171
21172 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
21173
21174 * editfns.c (Fformat): Convert an unibyte char argument that is
21175 formatted by "%c" to multibyte if the total result must be a
21176 multibyte string.
21177
21178 2003-01-16 Kim F. Storm <storm@cua.dk>
21179
21180 * process.c (set-process-filter): Document unibyte/multibyte-ness
21181 of string argument.
21182
21183 2003-01-16 Kenichi Handa <handa@m17n.org>
21184
21185 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
21186
21187 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
21188 (re_search_2): Likewise.
21189
21190 2003-01-15 Kenichi Handa <handa@m17n.org>
21191
21192 * xdisp.c (message_dolog): Fix bug of the case that *Message*
21193 buffer is unibyte.
21194
21195 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
21196
21197 * fns.c (Fsubstring): Clarify doc string.
21198
21199 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
21200 (Fprevious_char_property_change)
21201 (Fnext_single_char_property_change)
21202 (Fprevious_single_char_property_change, Fnext_property_change)
21203 (Fnext_single_property_change, Fprevious_property_change)
21204 (Fprevious_single_property_change, Fadd_text_properties)
21205 (Fput_text_property, Fset_text_properties)
21206 (Fremove_text_properties, Fremove_list_of_text_properties)
21207 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
21208
21209 2003-01-14 Kim F. Storm <storm@cua.dk>
21210
21211 * process.h (struct Lisp_Process): New member plist replaces old
21212 member private_vars. All uses changed.
21213
21214 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
21215 (QCplist): Rename from QCvars. Change all uses.
21216 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
21217 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
21218 (syms_of_process): Intern, staticpro, defsubr these.
21219 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
21220
21221 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
21222
21223 * m/delta.h: Remove (obsolete).
21224
21225 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
21226
21227 * fileio.c (Fdelete_directory, Fdelete_file): Document the
21228 behaviour in front of symlinks.
21229 (Fdelete_file): Raise an error on directories.
21230
21231 2003-01-13 Dave Love <fx@gnu.org>
21232
21233 * fns.c (Freverse): Use QUIT.
21234
21235 2003-01-13 Richard M. Stallman <rms@gnu.org>
21236
21237 * minibuf.c (minibuffer_completion_contents):
21238 Error if point is inside prompt.
21239
21240 * keyboard.c (command_loop_1): Don't redisplay directly
21241 if there's a post-command-hook.
21242
21243 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
21244 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
21245
21246 2003-01-12 Kim F. Storm <storm@cua.dk>
21247
21248 * process.h (struct Lisp_Process): New member private_vars.
21249
21250 * process.c (QCvars): New variable.
21251 (syms_of_process): Intern and staticpro it.
21252 (Fset_process_contact): Removed function.
21253 (Fprocess_variable, Fset_process_variable): New functions.
21254 (syms_of_process): Defsubr them.
21255 (Fstart_process): Initialize private_vars plist to nil.
21256 (Fmake_network_process): New arg :vars to setup the private
21257 variables for new network process.
21258 (server_accept_connection): Copy server's private variables to
21259 client process.
21260
21261 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
21262 crashes). Code rewritten and simplified. Now directly aligns the
21263 pointer and recalculates pure_bytes_used, rather than aligning the
21264 size and adjusting the pointer.
21265
21266 2003-01-11 Kim F. Storm <storm@cua.dk>
21267
21268 * process.c (Fset_process_contact): New function.
21269 (syms_of_process): defsubr it.
21270 (make-network-process): Update doc.
21271
21272 2003-01-10 Andreas Schwab <schwab@suse.de>
21273
21274 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
21275 Reported by Berthold Gunreben <b.gunreben@web.de>.
21276
21277 2003-01-10 Dave Love <fx@gnu.org>
21278
21279 * composite.c (syms_of_composite): Make composition_hash_table weak.
21280
21281 2003-01-09 Kim F. Storm <storm@cua.dk>
21282
21283 * process.c (Fmake_network_process): Convert new port number
21284 to host byte order for `:service t' case. From Mario Lang.
21285
21286 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21287
21288 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
21289 instead of XtAppProcessEvent.
21290
21291 * xterm.c (handle_one_xevent): New function.
21292 (x_dispatch_event): New function.
21293 (XTread_socket): Call handle_one_xevent.
21294
21295 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
21296
21297 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
21298 call XQueryPointer to get coordinates.
21299 (popup_get_selection): Do not set popup_activated_flag to zero,
21300 let popup_deactivate_callback do that. Needed for Motif.
21301 Call x_dispatch_event instead of XtDispatchEvent.
21302 (xmenu_show): Calculate root coordinate from frame top/left position.
21303
21304 2003-01-08 Kim F. Storm <storm@cua.dk>
21305
21306 * process.c (server_accept_connection): Fix recording of new
21307 connection's local address in :local property of contact info.
21308 (Fmake_network_process): Record local network address for new
21309 client processes in :local property of contact info.
21310 (format-network-address): Add arg OMIT-PORT. Change callers.
21311
21312 2003-01-07 Dave Love <fx@gnu.org>
21313
21314 * Makefile.in (fns.o): Depend on coding.h.
21315
21316 2003-01-06 Dave Love <fx@gnu.org>
21317
21318 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
21319 (Vlocale_coding_system): Declare.
21320 (Qcodeset, Qdays, Qmonths, Qpaper): New.
21321 (Flanginfo): New.
21322 (syms_of_fns): Initialize new stuff.
21323
21324 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
21325
21326 * minibuf.c (Fread_variable): Doc fix.
21327
21328 * eval.c (Fuser_variable_p): Doc change. For custom variables,
21329 use the same test as for custom-variable-p.
21330
21331 2003-01-05 Richard M. Stallman <rms@gnu.org>
21332
21333 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
21334 Count LAST_LINE_MISFIT in scroll margin for end of window.
21335 Move label too_near_end before setting SCROLL_MARGIN_POS.
21336 Set LAST_LINE_MISFIT before jumping there.
21337
21338 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
21339 scroll_conservatively case. If scrolling that much doesn't change
21340 STARTP, move it down one line.
21341
21342 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
21343 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
21344
21345 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
21346 selected frame.
21347
21348 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
21349 (syms_of_keymap): Staticpro them.
21350 (Fapropos_internal): Initialize them and clear them out.
21351 Don't GCPRO them.
21352
21353 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
21354
21355 * lisp.h: New misc type Lisp_Save_Value.
21356 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
21357 (XSAVE_VALUE): New macro.
21358 (struct Lisp_Save_Value): New data type.
21359 (union Lisp_Misc): Add u_save_value alternative.
21360 (make_save_value): Declare.
21361
21362 * alloc.c (make_save_value): New function.
21363
21364 * xterm.c (x_catch_errors): Save dpy using make_save_value.
21365 (x_catch_errors_unwind): Call XSync.
21366
21367 2003-01-01 Richard M. Stallman <rms@gnu.org>
21368
21369 * window.c (window_scroll_pixel_based): Partially undo last change.
21370
21371 * keyboard.c (command_loop_1): Call adjust_point_for_property
21372 in direct action cases for Qforward_char and Qbackward_char.
21373 Set already_adjusted so it won't be done twice.
21374
21375 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
21376
21377 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
21378 type definition of size_t.
21379
21380 2003-01-02 Steven Tamm <steventamm@mac.com>
21381
21382 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
21383 distinguish Carbon GUI builds from X11 builds on darwin.
21384
21385 2002-12-30 Steven Tamm <steventamm@mac.com>
21386
21387 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
21388 to default to t.
21389
21390 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
21391
21392 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
21393
21394 2002-12-28 Steven Tamm <steventamm@mac.com>
21395
21396 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
21397 allow building in a different directory than source. Uses some
21398 GNU Make extensions, but there is no other make on Mac OS X.
21399
21400 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
21401
21402 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
21403 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
21404 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
21405 (Fstring_to_number): Mention the returned value in the doc strings.
21406
21407 2002-12-23 Richard M. Stallman <rms@gnu.org>
21408
21409 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
21410 <scroll-down-aggressively>: Doc fix.
21411
21412 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
21413 string as pane name, if there is one.
21414 (set_frame_menubar): Save menu_items_n_panes from each call to
21415 parse_single_submenu and use it when calling digest_single_submenu.
21416
21417 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
21418 Don't try to make last line fully visible if it is past end of window.
21419
21420 2002-12-22 Steven Tamm <steventamm@mac.com>
21421
21422 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
21423 (mac_menu_show): Add support for hierarchical popup menus.
21424 (add_menu_item): Remove indentation support.
21425 (fill_submenu, fill_menu): Create hierarchical menus
21426 instead of using indentation.
21427
21428 2002-12-22 Richard M. Stallman <rms@gnu.org>
21429
21430 * xdisp.c (try_cursor_movement): Don't call try_window here.
21431 (redisplay_window): Never redisplay minibuffer when inactive.
21432
21433 * window.c (select_window_1): Undo 9/21 change.
21434
21435 2002-12-22 Steven Tamm <steventamm@mac.com>
21436
21437 * macterm.c (XTread_socket): Call KeyTranslate for control and
21438 meta to deal correctly shifted non-alpha characters, like C-S-5
21439 being treated like C-%. Do not look for shift key to deal
21440 with masking off control-key with mac-reverse-ctrl-meta.
21441
21442 2002-12-21 Richard M. Stallman <rms@gnu.org>
21443
21444 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
21445 If it is non-nil, run timers. Use an unwind-protect to requeue
21446 the events that were read ahead.
21447 (popup_get_selection_unwind): New subroutine.
21448 (popup_get_selection_queue): File-scope variable now holds that queue.
21449 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
21450 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
21451 Use an unwind-protect to pop down the dialog box.
21452 (xdialog_show_unwind): New subroutine implements that.
21453
21454 * xdisp.c (row_containing_pos): Change exit test using last_y.
21455 (try_window_id): Abort if row_containing_pos returns null.
21456
21457 * lread.c (load_error_handler): New function.
21458 (Fload): Handle errors in Fsubstitute_in_file_name.
21459 Don't expect Fsignal to return.
21460
21461 * eval.c: Errors and throws work right with interrupt blocking.
21462 (struct catchtag): New elt interrupt_input_blocked.
21463 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
21464 (internal_catch, Fcondition_case, internal_condition_case)
21465 (internal_condition_case_1, internal_condition_case_2): Save it.
21466 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
21467
21468 * editfns.c (Fformat): Add parens.
21469
21470 * dired.c (file_name_completion): Fix that change.
21471 Delete special quit-handling code; just use QUIT.
21472
21473 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
21474
21475 * dired.c (file_name_completion): Close directory on error
21476 just as in directory_files_internal.
21477
21478 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
21479
21480 * window.c (Fset_window_configuration): Set old_point to correct
21481 value when new_current_buffer == current_buffer.
21482
21483 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
21484
21485 Revisited my earlier fix for the following entry in etc/PROBLEMS:
21486 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
21487 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
21488
21489 These changes were in part based upon suggestions made by Peter
21490 'Luna' Runestig [peter@runestig.com].
21491
21492 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
21493 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
21494 (g_b_init_get_sid_identifier_authority ): Add several static
21495 global variables.
21496
21497 * w32.c (globals_of_w32): New function. Used to initialize those
21498 global variables that must always be initialized on startup even
21499 when the global variable initialized is non zero. Its primary
21500 purpose at this time is to set the global variables
21501 g_b_init_is_windows_9x, g_b_init_open_process_token,
21502 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
21503 g_b_init_get_sid_identifier_authority to 0 on startup.
21504 Called from main.
21505
21506 * w32.c (is_windows_9x): Perform initialization only if
21507 g_b_init_is_windows_9x is equal to 0. On initialization set
21508 g_b_init_is_windows_9x equal to 1.
21509
21510 * w32.c (open_process_token): Perform initialization only if
21511 g_b_init_open_process_token is equal to 0. On initialization set
21512 g_b_init_open_process_token equal to 1.
21513
21514 * w32.c (get_token_information): Perform initialization only if
21515 g_b_init_get_token_information is equal to 0. On initialization
21516 set g_b_init_get_token_information equal to 1.
21517
21518 * w32.c (lookup_account_sid): Perform initialization only if
21519 g_b_init_lookup_account_sid is equal to 0. On initialization
21520 set g_b_init_lookup_account_sid equal to 1.
21521
21522 * w32.c (get_sid_identifier_authority): Perform initialization
21523 only if g_b_init_get_sid_identifier_authority is equal to 0.
21524 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
21525
21526 * w32fns.c (globals_of_w32fns): New function. Used to initialize
21527 those global variables that must always be initialized on startup
21528 even when the global variable initialized is non zero.
21529 Its primary purpose at this time is to initialize the global variable
21530 track_mouse_event_fn.
21531
21532 * w32fns.c (w32_wnd_proc): Remove initialization of
21533 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
21534
21535 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
21536
21537 * w32menu.c (globals_of_w32menu): New function. Used to
21538 initialize those global variables that must always be initialized
21539 on startup even when the global variable initialized is non zero.
21540 Its primary purpose at this time is to initialize the global
21541 variables get_menu_item_info and set_menu_item_info.
21542
21543 * w32menu.c (initialize_frame_menubar): Remove initialization of
21544 get_menu_item_info and set_menu_item_info.
21545
21546 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
21547
21548 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
21549 Declare them.
21550
21551 * emacs.c (main): Call globals_of_w32 prior to calling
21552 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
21553 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
21554 is defined.
21555
21556 * w32term.c (x_update_window_begin): Fix Windows API error
21557 detected by BoundsChecker. Test to determine if
21558 w32_system_caret_hwnd is NULL prior to attempting to use
21559 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
21560
21561 * w32term.c (x_update_window_end): Fix Windows API error
21562 detected by BoundsChecker. Test to determine if
21563 w32_system_caret_hwnd is NULL prior to attempting to use
21564 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
21565
21566 2002-12-17 Kenichi Handa <handa@m17n.org>
21567
21568 * coding.c (coding_system_require_warning): New variable.
21569 (syms_of_coding): DEFVAR it.
21570
21571 * coding.h (coding_system_require_warning): Extern it.
21572
21573 * fileio.c (choose_write_coding_system): Even if
21574 Vcoding_system_for_write is non-nil, if
21575 coding_system_require_warning is nonzero, call
21576 Vselect_safe_coding_system_function.
21577
21578 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
21579
21580 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
21581 (lisp): Add font-core.
21582
21583 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
21584
21585 * textprop.c (text_read_only): New arg `propval'.
21586 (get_char_property_and_overlay): Remove unused var `next_overlay'.
21587 (verify_interval_modification): Use text_read_only's new arg.
21588
21589 2002-12-13 Kenichi Handa <handa@m17n.org>
21590
21591 * coding.c (Funencodable_char_position): Set pend correctly.
21592
21593 2002-12-12 Jason Rumney <jasonr@gnu.org>
21594
21595 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
21596 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
21597 Be more careful about when help_events are generated.
21598
21599 2002-12-12 Steven Tamm <steventamm@mac.com>
21600
21601 * macterm.c (mac_check_for_quit_char): Correctly set the
21602 modifiers of the event to 0.
21603 * mac.c (sys_select): Duplicate rfds before calling select to
21604 ensure that rfds survive the while loop.
21605
21606 2002-12-11 Kim F. Storm <storm@cua.dk>
21607
21608 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
21609 row_containing_pos returned NULL.
21610
21611 2002-12-10 Steven Tamm <steventamm@mac.com>
21612
21613 * mac.c (sys_read): Fix sys_read to not call select if IO is
21614 non-blocking.
21615 (sys_select): Fix sys_select to not use a timeout larger than
21616 the one given.
21617
21618 2002-12-10 Juanma Barranquero <lektu@terra.es>
21619
21620 * editfns.c (Fformat): Use alloca, not _alloca.
21621
21622 2002-12-09 Richard M. Stallman <rms@gnu.org>
21623
21624 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
21625 as the last thing.
21626
21627 2002-12-09 Dave Love <fx@gnu.org>
21628
21629 * s/sol2-8.h: Removed. (Not necessary.)
21630
21631 2002-12-09 Matthew Swift <swift@alum.mit.edu>
21632
21633 * editfns.c (Fformat): Handle precision in string conversion
21634 specifiers like libc functions do (ie, print at most that many
21635 characters).
21636
21637 2002-12-08 Richard M. Stallman <rms@gnu.org>
21638
21639 * xdisp.c (row_containing_pos): Check more carefully
21640 whether charpos is really in the row before returning it.
21641
21642 2002-12-07 Steven Tamm <steventamm@mac.com>
21643
21644 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
21645
21646 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
21647 each stack frame. This may change as it could be time consuming.
21648
21649 * macterm.c (mac_check_for_quit_char, quit_char_comp)
21650 (init_quit_char_handler, mac_determine_quit_char_modifiers)
21651 (mac_initialize): Add code to check for pressing of quit_char
21652 in the OS event queue.
21653
21654 * mac.c (sys_select): Call mac_check_for_quit_char every second
21655 while blocking on select.
21656
21657 * mac.c (sys_read): Use sys_select to test for input first
21658 before calling read, to allow C-g to break.
21659
21660 2002-12-07 Richard M. Stallman <rms@gnu.org>
21661
21662 * minibuf.c (Fcompleting_read): Doc fix.
21663
21664 * lread.c (syms_of_lread) <load-history>: Doc fix.
21665
21666 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
21667
21668 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
21669 autoload.
21670
21671 * data.c (Fdefalias): Record in load-history redefining an autoload.
21672
21673 * alloca.c: Undo ifdef change accidentally made on 12-04.
21674
21675 2002-12-06 Francesco Potort\e,Al\e(B <pot@gnu.org>
21676
21677 * xfns.c (png_load): Avoid double gamma correction for PNG images.
21678
21679 2002-12-04 Richard M. Stallman <rms@gnu.org>
21680
21681 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
21682
21683 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
21684
21685 * alloca.c: Don't use #error.
21686
21687 2002-12-03 Dave Love <fx@gnu.org>
21688
21689 * buffer.c (Qucs_set_table_for_input): New.
21690 (Fget_buffer_create): Use it.
21691 (Qset_buffer_major_mode_hook): Deleted.
21692 (Fset_buffer_major_mode): Revert previous change.
21693 (init_buffer_once): Intern ucs-set-table-for-input.
21694 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
21695 Add &Qucs_set_table_for_input.
21696
21697 2002-12-03 Andreas Schwab <schwab@suse.de>
21698
21699 * callint.c (Fcall_interactively): Use next_event only if less
21700 than key_count.
21701
21702 2002-12-02 Andrew Choi <akochoi@shaw.ca>
21703
21704 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
21705 names to 255 characters.
21706
21707 * macterm.c (XTread_socket): If all frames have been collapsed,
21708 expand the first one before handling drag-and-drop events.
21709
21710 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
21711 which is detected by autoconf.
21712
21713 2002-12-01 Steven Tamm <steventamm@mac.com>
21714
21715 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
21716 offset in two hints table to allow prebinding to be redone and
21717 allow the executable to be stripped.
21718
21719 2002-11-29 Dave Love <fx@gnu.org>
21720
21721 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
21722 already provided.
21723
21724 2002-11-29 Richard M. Stallman <rms@gnu.org>
21725
21726 * xdisp.c (start_display): Check more intelligently for
21727 whether the line is continued.
21728 (move_it_vertically_backward): Clear it->continuation_lines_width.
21729
21730 2002-11-28 Dave Love <fx@gnu.org>
21731
21732 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
21733 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
21734
21735 2002-11-27 Steven Tamm <steventamm@mac.com>
21736
21737 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
21738 more descriptive error output from lread.c:Fload upon most require
21739 cycles during boostrapping.
21740
21741 2002-11-27 Jason Rumney <jasonr@gnu.org>
21742
21743 * fileio.c (Finsert_file_contents): Give a more appropriate error
21744 for files bigger than 2Gb when off_t is 32 bit.
21745
21746 * dired.c (Ffile_attributes): Don't return negative file sizes for
21747 files bigger than 2Gb when off_t is 32 bit.
21748
21749 2002-11-27 Dave Love <fx@gnu.org>
21750
21751 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21752
21753 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
21754 Test GETPGRP_VOID instead.
21755 [BSD_TERMIOS]: Remove definitions (never used).
21756
21757 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
21758 Don't define.
21759 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21760
21761 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
21762
21763 2002-11-25 Jason Rumney <jasonr@gnu.org>
21764
21765 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
21766 supported.
21767
21768 2002-11-25 Dave Love <fx@gnu.org>
21769
21770 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
21771
21772 * Makefile.in (TEMACS_LDFLAGS): Update last change.
21773
21774 2002-11-25 Andreas Schwab <schwab@suse.de>
21775
21776 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
21777
21778 2002-11-24 Steven Tamm <steventamm@mac.com>
21779
21780 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
21781 determine the size of pointers alloced in unexed space instead
21782 of using possibly invalid emacs_zone pointers. This fixes the
21783 binary incompatibility problems caused by updates to libSystem.B.
21784
21785 2002-11-24 Richard M. Stallman <rms@gnu.org>
21786
21787 * search.c (Fstring_match): Doc fix.
21788
21789 * callint.c (Fcall_interactively): If a command fails because
21790 `*' detects a read-only buffer, but RECORD_FLAG is set,
21791 record it anyway if the args don't actually do tty input.
21792
21793 2002-11-22 Dave Love <fx@gnu.org>
21794
21795 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
21796
21797 * keyboard.c (interrupt_signal): Provide forward declaration.
21798 (kbd_buffer_store_event): Don't declare interrupt_signal.
21799
21800 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
21801
21802 2002-11-21 Richard M. Stallman <rms@gnu.org>
21803
21804 * eval.c (interactive_p): Skip any number of bytecode
21805 and special form frames, in any order.
21806
21807 2002-11-20 Jason Rumney <jasonr@gnu.org>
21808
21809 * w32fns.c (convert_mono_to_color_image): New function.
21810 (xbm_load, xbm_load_image): Use it when foreground or background
21811 is explicitly set.
21812
21813 2002-11-19 Dave Love <fx@gnu.org>
21814
21815 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
21816
21817 2002-11-18 Jason Rumney <jasonr@gnu.org>
21818
21819 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
21820 (XPutPixel): Swap blue and red.
21821 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
21822 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
21823 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
21824 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
21825
21826 2002-11-18 Dave Love <fx@gnu.org>
21827
21828 * m/orion105.h (HAVE_ALLOCA): Don't define.
21829
21830 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
21831
21832 * m/intel386.h: Don't include alloca.h or define alloca.
21833
21834 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
21835 malloc, realloc, calloc.
21836
21837 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
21838 (bcmp): Don't define.
21839
21840 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
21841
21842 * m/amdahl.h: Don't define LIB_STANDARD.
21843
21844 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
21845
21846 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
21847
21848 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
21849 Don't include alloca.h.
21850
21851 * s/aix3-2.h (HAVE_FSYNC): Don't define.
21852
21853 * regex.c (_GNU_SOURCE): Don't define.
21854
21855 * process.c (_GNU_SOURCE): Don't define.
21856
21857 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
21858
21859 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
21860
21861 * s/sol2-8.h: Include sol2-6.h.
21862
21863 2002-11-18 Miles Bader <miles@gnu.org>
21864
21865 * dispextern.h (struct face): Add `overstrike' field.
21866 * xterm.c (x_draw_glyph_string_foreground)
21867 (x_draw_composite_glyph_string_foreground): Implement overstriking.
21868 * xfaces.c (load_face_font): Set `face->overstrike' based on
21869 result from choose_face_font.
21870 (best_matching_font, choose_face_font): Add `needs_overstrike'
21871 argument, and use it to return whether overstriking is desirable
21872 for this face/font combo.
21873 (set_font_frame_param: Pass new argument to choose_face_font.
21874
21875 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
21876
21877 This change is my fix for the following entry in etc/PROBLEMS:
21878 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
21879 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
21880
21881 * w32.c: Added wrapper functions around the win32 API functions
21882 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
21883 GetSidIdentifierAuthority. These wrapper functions serve two
21884 purposes:
21885 1. They ensure that the wrapped function can never be called
21886 when Emacs is running on an operating system on which they are
21887 not supported (Microsoft Windows 95 / 98 / ME).
21888 2. They call the wrapped functions via function pointers rather
21889 than calling them directly. This avoids taking advantage of the
21890 undocumented fact that although these functions are not supported
21891 in the 9x branch of Microsoft Windows, the functions do exist in
21892 the version of advapi32.dll that is found in the 9x branch of
21893 Microsoft Windows.
21894
21895 * w32.c (init_user_info): Replace the calls to the win32 API
21896 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
21897 and GetSidIdentifierAuthority with calls to the newly added
21898 wrapper functions.
21899
21900 * w32.h: Added extern declarations for the following functions:
21901 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
21902 syms_of_w32menu, and void syms_of_fontset.
21903
21904 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
21905 function pointer track_mouse_event_fn in the handler for the
21906 WM_SETFOCUS message.
21907
21908 * w32menu.c (initialize_frame_menubar): Add code to
21909 reinitialize the function pointers set_menu_item_info and
21910 get_menu_item_info.
21911
21912 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
21913
21914 * sound.c: Added a partial implementation of play-sound-internal
21915 for Microsoft Windows. Added various #ifdef / #else / #endif
21916 code blocks to separate the code that will compile under
21917 Microsoft Windows from the code that is specific to GNU/Linux.
21918 Moved several blocks of code around to make this separation of code
21919 into Windows compatible and GNU/Linux compatible code blocks easier.
21920
21921 * makefile.w32-in: Include sound.c and link with WinMM.lib.
21922
21923 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
21924 added support for play-sound-internal under Windows would be
21925 included in the build of Emacs.
21926
21927 2002-11-16 Jason Rumney <jasonr@gnu.org>
21928
21929 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
21930
21931 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
21932
21933 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
21934
21935 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
21936 (adjust_point_for_property): Move out of display and invisible even if
21937 we were already inside before (in case a property was added while
21938 we weren't looking). Be more careful when handling invisible props.
21939 Skip invisible text as if it really wasn't there at all.
21940
21941 2002-11-15 Jason Rumney <jasonr@gnu.org>
21942
21943 * w32term.c (x_draw_image_foreground)
21944 (w32_draw_image_foreground_1): Use standard copy and invert
21945 operations to draw images.
21946
21947 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
21948 depth of 1.
21949 (xbm_read_bitmap_data): Invert bits as xbm is read in.
21950 (XPutPixel): Don't invert bits here.
21951
21952 2002-11-15 Jason Rumney <jasonr@gnu.org>
21953
21954 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
21955 (w32_draw_image_foreground_1): Handle image masks.
21956 (x_draw_image_glyph_string): Don't BitBlt transparently.
21957
21958 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
21959 (x_from_xcolors): Adjust RGB values for W32.
21960 (image_background, image_background_transparent)
21961 (postprocess_image, x_to_xcolors, x_disable_image)
21962 (x_build_heuristic_mask): Adapt for W32 and enable.
21963 (x_create_x_image_and_pixmap): Mark images with palettes as such.
21964 (xbm_load): Remove unused variable.
21965
21966 2002-11-14 Richard M. Stallman <rms@gnu.org>
21967
21968 * buffer.c (syms_of_buffer): Doc fix.
21969
21970 2002-11-14 Dave Love <fx@gnu.org>
21971
21972 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
21973
21974 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
21975 * xmenu.c (unuse_menu_items, digest_single_submenu):
21976 * xfns.c (x_put_x_image):
21977 * xdisp.c (message2_nolog, set_message):
21978 * undo.c (record_point):
21979 * terminfo.c (tparam):
21980 * syntax.c (scan_sexps_forward):
21981 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21982 * composite.c (update_compositions):
21983 * cm.c (calccost, cmgoto):
21984 * charset.c (c_string_width): Declare all args (per C99).
21985
21986 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
21987
21988 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
21989 Don't declare.
21990
21991 * emacs.c (main) [!VMS]: Avoid third arg.
21992
21993 * fns.c (Fcopy_sequence): Doc fix.
21994 (Fmap_char_table): Cast `call2'.
21995
21996 2002-11-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
21997
21998 * s/sol2-8.h: New file.
21999
22000 2002-11-14 Kim F. Storm <storm@cua.dk>
22001
22002 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
22003 dependency on `risky-local-variable' and the :propertize form.
22004
22005 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
22006
22007 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
22008
22009 * syntax.c (scan_sexps_forward): Undo last patch.
22010 Use a more obvious fix: check eob before updating the syntax table.
22011
22012 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
22013
22014 * syntax.c (scan_sexps_forward): Update syntax table before reading
22015 a char rather than after so we don't update the table past eob.
22016
22017 2002-11-09 Dave Love <fx@gnu.org>
22018
22019 * buffer.c (Fset_buffer_major_mode): Fix last change.
22020
22021 * regex.c (regexec): Fix pmatch declaration.
22022
22023 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
22024
22025 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
22026 to self-inserting characters.
22027 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
22028
22029 * coding.c (Vtranslation_table_for_input): New.
22030 (syms_of_coding): DEFVAR it.
22031
22032 2002-11-08 Juanma Barranquero <lektu@terra.es>
22033
22034 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
22035 window.
22036
22037 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22038
22039 * process.c (Fformat_network_address): Remove unused locals p,
22040 cp, and i.
22041
22042 2002-11-06 Dave Love <fx@gnu.org>
22043
22044 * buffer.c (Qset_buffer_major_mode_hook): New.
22045 (Fset_buffer_major_mode): Use it.
22046
22047 2002-11-06 Richard M. Stallman <rms@gnu.org>
22048
22049 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
22050 and stop_polling.
22051
22052 * process.c (wait_reading_process_input):
22053 Test POLLING_PROBLEM_IN_SELECT, not hpux.
22054 Avoid initialization for auto Lisp_Object var.
22055
22056 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
22057
22058 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
22059
22060 2002-11-05 Richard M. Stallman <rms@gnu.org>
22061
22062 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
22063
22064 * callint.c (Fcall_interactively): New local filter_specs.
22065 (Fcall_interactively): Check for progn as well as let.
22066 Add a gcpro.
22067 (Qprogn): New variable.
22068 (syms_of_callint): Staticpro and init Qprogn.
22069
22070 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
22071
22072 * lread.c (Feval_buffer): Doc fix.
22073
22074 2002-11-04 Dave Love <fx@gnu.org>
22075
22076 * keyboard.c (read_char): Always translate iff
22077 Vkeyboard_translate_table is a char table and c is valid.
22078
22079 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22080 and fix C types.
22081
22082 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
22083
22084 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
22085
22086 * editfns.c (get_pos_property): Don't hardcode Qfield.
22087
22088 * keyboard.c (adjust_point_for_property): Handle `display' prop on
22089 overlays. Also handle `invisible' prop.
22090
22091 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
22092
22093 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
22094 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
22095
22096 2002-11-01 Andreas Schwab <schwab@suse.de>
22097
22098 * editfns.c (Fmessage): Revert last change to properly handle %%.
22099
22100 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
22101
22102 * xmenu.c (unuse_menu_items): New fun.
22103 (menu_items_inuse): New var.
22104 (syms_of_xmenu): Initialize it.
22105 (init_menu_items): Use it to detect re-entrance.
22106 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
22107 (Fx_popup_menu): Remove spurious XSETFRAME.
22108
22109 * editfns.c (find_field): Make an exception for nil fields.
22110
22111 2002-11-01 Dave Love <fx@gnu.org>
22112
22113 * m/gec63.h: Deleted.
22114
22115 2002-10-31 Dave Love <fx@gnu.org>
22116
22117 * xterm.c (XTread_socket): Fix last change.
22118 (xaw_scroll_callback): Cast call_data to long to avoid warning.
22119
22120 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
22121
22122 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
22123
22124 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
22125
22126 * editfns.c (overlays_around, get_pos_property): New funs.
22127 (find_field): Use them.
22128 Also be careful not to modify POS before its last use.
22129 (Fmessage): Don't Fformat if there's nothing to format.
22130
22131 2002-10-30 Dave Love <fx@gnu.org>
22132
22133 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
22134 [HAVE_PTY_H]; Include pty.h.
22135
22136 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
22137
22138 * xterm.c (Qeql): Declare.
22139 (Vx_keysym_table): New.
22140 (syms_of_xterm): Initialize it.
22141 (XTread_socket): Use it. Deal with ASCII keysyms.
22142 (XSetIMValues) [HAVE_X11R6]: Prototype.
22143
22144 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
22145 (lispy_kana_keys): Comment out.
22146 (make_lispy_event) [XK_kana_A]: Comment out.
22147 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
22148 Fix sprintf call.
22149
22150 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
22151 regexp.h change).
22152 (TERMINFO, LIBS_TERMCAP): Define.
22153
22154 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
22155 (bcmp): Define conditional on HAVE_BCMP.
22156 (NO_SIOCTL_H): Don't define.
22157 (TIOCSIGSEND): Don't make conditional on IRIX6.
22158
22159 * s/sol2-5.h: Don't include strings.h.
22160 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
22161
22162 * s/irix6-0.h (IRIX6): Don't define.
22163 (bcopy, bcmp, bzero): Don't undef.
22164
22165 * s/irix6-5.h: Don't include strings.h.
22166 (IRIX6): Don't define.
22167 (bcopy, bcmp, bzero): Don't undef.
22168
22169 * syntax.c (Fforward_comment): Doc fix.
22170
22171 2002-10-29 Kim F. Storm <storm@cua.dk>
22172
22173 * process.c (Fsignal_process): Allow PROCESS to be specified by
22174 name in addition to pid (as integer or string).
22175
22176 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
22177
22178 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
22179 environments.
22180
22181 2002-10-27 Kim F. Storm <storm@cua.dk>
22182
22183 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
22184
22185 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
22186
22187 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
22188
22189 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
22190
22191 2002-10-26 Richard M. Stallman <rms@gnu.org>
22192
22193 * editfns.c (Fformat): Detect invalid format letters for floats.
22194
22195 2002-10-25 Kenichi Handa <handa@m17n.org>
22196
22197 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
22198 (x_set_title): Likewise.
22199
22200 2002-10-25 Juanma Barranquero <lektu@terra.es>
22201
22202 * macgui.h:
22203 * w32gui.h: Remove definition of XColor.
22204
22205 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
22206
22207 2002-10-24 Kim F. Storm <storm@cua.dk>
22208
22209 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
22210 Callers changed (supply dummy arg).
22211
22212 * lisp.h (get_window_cursor_type): Update prototype.
22213
22214 * w32term.c (x_display_and_set_cursor): Get active_cursor from
22215 get_window_cursor_type to track system caret.
22216
22217 2002-10-24 Kim F. Storm <storm@cua.dk>
22218
22219 * process.c (Fformat_network_address): New function.
22220 (syms_of_process): Defsubr it.
22221 (list_processes_1): Use it to format :local/:remote address if
22222 service/host is not set; before Emacs would crash in that case.
22223 (Fmake_network_process): Don't use Ffind_operation_coding_system
22224 to setup coding system if host or service is not set.
22225
22226 2002-10-23 Juanma Barranquero <lektu@terra.es>
22227
22228 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
22229
22230 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
22231 COLORREF.
22232
22233 * macgui.h:
22234 * w32gui.h: Add definition of XColor.
22235
22236 * macfns.c:
22237 * w32fns.c:
22238 * xfaces.c: Remove definition of XColor.
22239
22240 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
22241
22242 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
22243
22244 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
22245 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
22246 window if it is dedicated.
22247 (Fshrink_window): Add preserve_before as was done for enlarge_window.
22248 (Vspecial_display_function): Update docstring.
22249
22250 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
22251 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
22252 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
22253
22254 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
22255
22256 * casefiddle.c (casify_region): Don't treat a prefix char as part
22257 of a word when at the beginning.
22258
22259 2002-10-17 Juanma Barranquero <lektu@terra.es>
22260
22261 * lread.c (syms_of_lread): Fix typos.
22262
22263 2002-10-17 Dave Love <fx@gnu.org>
22264
22265 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
22266
22267 2002-10-16 Richard M. Stallman <rms@gnu.org>
22268
22269 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
22270
22271 2002-10-14 Juanma Barranquero <lektu@terra.es>
22272
22273 * w16select.c (syms_of_win16select): Fix docstring for
22274 `selection-coding-system'.
22275
22276 * w32select.c (syms_of_w32select): Likewise.
22277
22278 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
22279
22280 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
22281 a backslash-quoted char.
22282 (scan_lists, scan_sexps_forward): Pacify the compiler.
22283
22284 2002-10-13 Richard M. Stallman <rms@gnu.org>
22285
22286 * window.c (window_scroll): Set immediate_quit.
22287
22288 * print.c (print): When backquote form is the car of a list,
22289 output in old style. Use old_backquote_output to output all
22290 comma forms inside it in old style too.
22291
22292 * buffer.h (struct buffer): Move `undo_list' down below `name'.
22293
22294 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
22295
22296 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
22297 batch mode).
22298
22299 * lread.c (Fload): Doc fix (load-suffixes).
22300
22301 2002-10-10 Steven Tamm <steventamm@mac.com>
22302
22303 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
22304 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
22305 Also switch the default to Qnil from Qt.
22306
22307 2002-10-08 Kenichi Handa <handa@m17n.org>
22308
22309 * coding.c (code_convert_region): When we need more GAP for
22310 conversion, pay attention to the case that coding->produced is not
22311 greater than coding->consumed.
22312
22313 2002-10-07 Richard M. Stallman <rms@gnu.org>
22314
22315 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
22316
22317 2002-10-06 Andrew Choi <akochoi@shaw.ca>
22318
22319 * macmenu.c (mac_menu_show): Add j to count menu items; match
22320 menu_item_selection to it to find selected item.
22321
22322 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22323
22324 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
22325 cases. The correct fix is to pass ReparentNotify to Xt.
22326 The shell widget interprets ConfigureNotify differently depending
22327 on if it has been reparented or not.
22328
22329 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
22330
22331 * editfns.c (Fformat_time_string): Doc fix.
22332
22333 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
22334
22335 * fns.c (Flength): Doc fix.
22336
22337 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
22338
22339 * keyboard.c (keyremap): New struct.
22340 (read_key_sequence): Use it: globally replace keytran_foo with
22341 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
22342 keytran_next and fkey_next to just `next'.
22343
22344 2002-10-04 Steven Tamm <steventamm@mac.com>
22345
22346 * macterm.c (keycode_to_xkeysym_table): Change return to be
22347 treated like an X keysym.
22348
22349 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22350
22351 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
22352 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
22353 This is to also handle x/y changes that occur because of a resize.
22354
22355 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
22356
22357 * frame.c (Vdelete_frame_functions): New variable.
22358 (syms_of_frame): Initialize and defvar it.
22359 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
22360 it when frame's `tooltip' parameter is non-nil.
22361
22362 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
22363
22364 * w32fns.c (x_create_tip_frame): Likewise.
22365
22366 * macfns.c (x_create_tip_frame): Likewise.
22367
22368 2002-09-30 Kenichi Handa <handa@m17n.org>
22369
22370 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
22371 -1 before calling ccl_driver.
22372
22373 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
22374 Only when it is non-nil, handle composition sequence.
22375 (setup_coding_system) <0>: Don't force composition handling.
22376
22377 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
22378
22379 2002-09-29 Richard M. Stallman <rms@gnu.org>
22380
22381 * search.c (Freplace_match): Adjust match data for the substitution
22382 just made in the buffer.
22383
22384 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
22385 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
22386
22387 2002-09-27 Richard M. Stallman <rms@gnu.org>
22388
22389 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
22390 (read_char): Use them. Do all exits thru the end of the function.
22391
22392 2002-09-27 Kenichi Handa <handa@etl.go.jp>
22393
22394 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
22395 is nil.
22396
22397 2002-09-26 Richard M. Stallman <rms@gnu.org>
22398
22399 * regex.h (__restrict_arr): Don't define if already defined.
22400
22401 * coding.c (run_pre_post_conversion_on_str):
22402 Save and restore Vdeactivate_mark.
22403
22404 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
22405
22406 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
22407
22408 2002-09-26 Kenichi Handa <handa@etl.go.jp>
22409
22410 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
22411 nonzero, try face's family at first. Otherwise try FAMILY at first.
22412 (choose_face_font): If C is a single byte char or latin-1, call
22413 try_font_list with PREFER_FACE_FAMILY 1.
22414
22415 2002-09-21 Richard M. Stallman <rms@gnu.org>
22416
22417 * window.c (select_window_1): Don't select frame.
22418 Set frame's selected window only when frame itself is selected.
22419 (Fselect_window): Doc fix.
22420
22421 2002-09-18 Kim F. Storm <storm@cua.dk>
22422
22423 * process.c (make-network-process): Doc fix (there is no
22424 network-server-log-function hook).
22425
22426 2002-09-18 Richard M. Stallman <rms@gnu.org>
22427
22428 * print.c (print): Clear out the unused parts of Vprint_number_table.
22429 (syms_of_print): Doc fix for `print-number-table'.
22430
22431 * unexelf.c (unexec): Undo previous change.
22432
22433 2002-09-17 Andreas Schwab <schwab@suse.de>
22434
22435 * m/alpha.h [LINUX]: Don't define DATA_START.
22436
22437 2002-09-16 Dave Love <fx@gnu.org>
22438
22439 * unexelf.c (unexec): Deal with .got, reinstating change from
22440 25-08-1999.
22441
22442 2002-09-13 Richard M. Stallman <rms@gnu.org>
22443
22444 * s/sol2-6.h (UNEXEC): Comment out definition.
22445
22446 * unexsol.c (unexec): Don't downcase first letter of error msg.
22447
22448 * xfaces.c (Fcolor_supported_p): Just one arg is required.
22449
22450 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
22451
22452 * unexsol.c: Include buffer.h, charset.h, coding.h.
22453
22454 2002-09-11 Richard M. Stallman <rms@gnu.org>
22455
22456 * unexsol.c: Don't use report_file_error; do it by hand
22457 using dlerror.
22458
22459 * process.c (wait_reading_process_input, both versions):
22460 Before calling turn_on_atimers, call stop_polling.
22461
22462 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
22463
22464 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
22465 we go to too_near_end, call clear_glyph_matrix.
22466 (redisplay_window): After make_cursor_line_fully_visible,
22467 call clear_glyph_matrix and bypass `goto done'.
22468
22469 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
22470 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
22471
22472 2002-09-10 Richard M. Stallman <rms@gnu.org>
22473
22474 * fileio.c (Fdo_auto_save): Catch error making directory.
22475 Only call push_message if we need to.
22476 At the same time, make an unwind-protect to pop it.
22477 Rename local message_p to old_message_p.
22478 (do_auto_save_make_dir, do_auto_save_eh): New functions.
22479 (do_auto_save_unwind): Don't call pop_message.
22480
22481 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
22482
22483 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
22484
22485 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
22486
22487 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
22488
22489 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
22490
22491 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
22492 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
22493 (re_match_2_internal): Be more careful with infinite loops.
22494
22495 2002-09-10 Kim F. Storm <storm@cua.dk>
22496
22497 * macros.c (end_kbd_macro): New function.
22498 (Fend_kbd_macro): Use it.
22499
22500 * macros.h (end_kbd_macro): Declare extern.
22501
22502 * keyboard.c (Fdiscard_input): If defining keyboard macro,
22503 end and save it instead of discarding it.
22504
22505 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
22506
22507 * s/sol2-6.h: Fix typo. Add comment.
22508
22509 2002-09-09 Richard M. Stallman <rms@gnu.org>
22510
22511 * regex.c (regnum_t): Use signed int, not unsigned int.
22512
22513 * s/sol2-6.h: New file.
22514
22515 * s/sol2-5.h (UNEXEC): Definition deleted.
22516
22517 2002-09-08 Kim F. Storm <storm@cua.dk>
22518
22519 * macros.c (executing_macro_index): Change type to EMACS_INT.
22520 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
22521
22522 * macros.h (executing_macro_index): Change type to EMACS_INT.
22523
22524 2002-09-06 Richard M. Stallman <rms@gnu.org>
22525
22526 * casetab.c (set_case_table): Make canon table point to eqv table.
22527
22528 2002-09-06 Juanma Barranquero <lektu@terra.es>
22529
22530 * coding.c (syms_of_coding): Fix spacing.
22531
22532 * composite.c (Fcompose_region_internal)
22533 (Fcompose_string_internal): Likewise.
22534
22535 * data.c (Flsh): Likewise.
22536
22537 * fontset.c (Fset_fontset_font): Likewise.
22538
22539 * macfns.c (Fx_server_max_request_size): Likewise.
22540
22541 * w16select.c (syms_of_win16select): Likewise.
22542
22543 * w32select.c (syms_of_w32select): Likewise.
22544
22545 * xselect.c (syms_of_xselect): Likewise.
22546
22547 2002-09-05 Richard M. Stallman <rms@gnu.org>
22548
22549 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
22550 call EXTEND_RANGE_TABLE and return a proper value.
22551 (set_image_of_range): Don't call set_image_of_range_1
22552 if no TRANSLATE or if range includes all of Latin-1.
22553 Only call it for the Latin-1 part of the range.
22554 For other cases, make two separate ranges,
22555 one for the original specified characters and one for
22556 their case-conversions.
22557
22558 2002-09-04 Richard M. Stallman <rms@gnu.org>
22559
22560 * s/sol2-5.h (UNEXEC): Use unexsol.o.
22561
22562 * window.c (displayed_window_lines): Correct for one-off bug
22563 in HEIGHT on non-window displays.
22564
22565 * regex.c (set_image_of_range_1): New function.
22566 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
22567 Return a value to indicate running out of memory.
22568 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
22569 (extend_range_table_work_area): New subroutine.
22570 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
22571 Different calling conventions, and used from set_image_of_range{,_1}.
22572 (IMMEDIATE_QUIT_CHECK): Definitions moved.
22573
22574 2002-09-04 Juanma Barranquero <lektu@terra.es>
22575
22576 * makefile.w32-in: All dependencies updated.
22577
22578 2002-09-01 Richard M. Stallman <rms@gnu.org>
22579
22580 * unexsol.c: New file.
22581
22582 * xfns.c (Qbox): Declare external, don't define.
22583
22584 * xdisp.c (redisplay_window) <force-start case>:
22585 If point is on semi-visible last line, reposition
22586 it at previous line.
22587
22588 * alloc.c (display_malloc_warning): Use display-warning.
22589 (malloc_warning_1): Function deleted.
22590
22591 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
22592
22593 * lread.c (read1): Handle #! by skipping the line.
22594
22595 2002-08-31 Richard M. Stallman <rms@gnu.org>
22596
22597 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
22598 Don't include LDFLAGS.
22599 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
22600
22601 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
22602
22603 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
22604 member of x_display_info unless we compile for some window system.
22605
22606 2002-08-31 Kim F. Storm <storm@cua.dk>
22607
22608 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
22609 (get_window_cursor_type): Don't use them.
22610 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
22611
22612 2002-08-30 Kenichi Handa <handa@etl.go.jp>
22613
22614 * xdisp.c (get_next_display_element): Fix previous change.
22615
22616 2002-08-30 Andrew Choi <akochoi@shaw.ca>
22617
22618 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
22619 (expose_window): Use it to fix the display of overlapping
22620 rows (merge code from xterm.c).
22621
22622 * macfns.c (Qbox): Add extern declaration.
22623
22624 2002-08-30 Juanma Barranquero <lektu@terra.es>
22625
22626 * w32fns.c (Qbox): Make extern.
22627 (syms_of_w32fns): Remove initialization of Qbox.
22628
22629 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
22630
22631 * xfns.c (Fx_open_connection): Fix error message.
22632
22633 2002-08-30 Kim F. Storm <storm@cua.dk>
22634
22635 The following changes consolidates the handling of the cursor
22636 type in xdisp.c, moving duplicate code and functionality from
22637 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
22638
22639 * frame.h (enum text_cursor_kinds): Consolidated here.
22640 Added DEFAULT_CURSOR value.
22641 (struct frame) <desired_cursor, cursor_width>
22642 <blink_off_cursor, blink_off_cursor_width>: New fields.
22643 Consolidated from output_x, output_w32 and output_mac structs.
22644 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22645 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
22646
22647 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
22648 Variables consolidated here.
22649 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
22650 (Vcursor_in_non_selected_windows): Renamed from
22651 cursor_in_non_selected_windows and changed to Lisp_Object.
22652 (syms_of_xdisp): Define and staticpro new and moved variables.
22653 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
22654 consolidated here. Recognize Qhollow setting.
22655 (set_frame_cursor_types): New function to set frame cursor types
22656 based on the frame parameters.
22657 (get_window_cursor_type): New function to calculate new cursor
22658 type and width for the specified window. Based on duplicated
22659 code consolidated here.
22660 Enhancements: cursor-in-non-selected-windows may be a cursor type,
22661 check buffer-local alternate-cursor-type and blink-cursor-alist
22662 before using built-in blink off methods.
22663
22664 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
22665
22666 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
22667 (get_specified_cursor_type, get_window_cursor_type)
22668 (set_frame_cursor_types): Added prototypes.
22669
22670 * macfns.c (x_specified_cursor_type): Removed.
22671 (x_set_cursor_type): Use set_frame_cursor_types.
22672 (Qbar, Qbox): Removed.
22673 (syms_of_macfns): Don't intern or staticpro them.
22674
22675 * macterm.c (x_specified_cursor_type): Remove prototype.
22676 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22677 (x_display_and_set_cursor): Use get_window_cursor_type.
22678 Remove unused local variables cursor_non_selected, active_cursor.
22679 Redraw cursor if hbar cursor width changes.
22680 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
22681
22682 * macterm.h (enum text_cursor_kinds): Removed.
22683 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
22684 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22685 (FRAME_DESIRED_CURSOR): Macro removed.
22686
22687 * w32fns.c (Vblink_cursor_alist): Removed.
22688 (Qbar, Qhbar, Qbox, Qhollow): Removed.
22689 (syms_of_w32fns): Don't intern, staticpro, or define them.
22690 (x_specified_cursor_type): Removed.
22691 (x_set_cursor_type): Use set_frame_cursor_types.
22692
22693 * w32term.c (x_specified_cursor_type): Remove prototype.
22694 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22695 (x_display_and_set_cursor): Use get_window_cursor_type.
22696 Remove unused local variables cursor_off_state.
22697 Redraw cursor if hbar cursor width changes.
22698 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
22699
22700 * w32term.h (enum text_cursor_kinds): Removed.
22701 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
22702 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22703 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22704 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
22705 (struct w32_display_info) <x_highlight_frame>: Renamed member from
22706 w32_highlight_frame.
22707
22708 * xfns.c (Vblink_cursor_alist): Removed.
22709 (Qbar, Qhbar, Qbox, Qhollow): Removed.
22710 (syms_of_xfns): Don't intern, staticpro, or define them.
22711 (x_specified_cursor_type): Removed.
22712 (x_set_cursor_type): Use set_frame_cursor_types.
22713
22714 * xterm.c (x_specified_cursor_type): Remove prototype.
22715 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
22716 (x_display_and_set_cursor): Use get_window_cursor_type.
22717 Remove unused local variables cursor_off_state.
22718 Redraw cursor if hbar cursor width changes.
22719
22720 * xterm.h (enum text_cursor_kinds): Removed.
22721 (struct output_x) <current_cursor, desired_cursor, cursor_width>
22722 <blink_off_cursor, blink_off_cursor_width>: Members removed.
22723 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
22724 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
22725 (x_specified_cursor_type): Remove prototype.
22726
22727 2002-08-28 Richard M. Stallman <rms@gnu.org>
22728
22729 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
22730 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
22731 (Vblink_cursor_alist): New variable.
22732 (syms_of_w32fns): Initialize and defvar it.
22733 (x_specified_cursor_type): Recognize Qbox for filled box.
22734 Exceptions are hollow boxes.
22735 (Qbox, Qhollow): New variables.
22736 (syms_of_w32fns): Initialize and staticpro them.
22737
22738 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
22739 New macros.
22740 (struct w32_output): New fields blink_off_cursor,
22741 blink_off_cursor_width.
22742 (FRAME_CURSOR_WIDTH): New macro.
22743
22744 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
22745 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
22746
22747 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
22748 for bar cursor.
22749
22750 * w32term.c (expose_overlaps): New function.
22751 (expose_window): Use it to fix the display of overlapping rows.
22752
22753 2002-08-28 Simon Josefsson <jas@extundo.com>
22754
22755 * xfns.c (Fx_open_connection): Improve help when X connection
22756 fails, xhost is insecure and xauth is better.
22757
22758 2002-08-28 Juanma Barranquero <lektu@terra.es>
22759
22760 * makefile.w32-in: Add missing dependencies on w32term.h and
22761 composite.h.
22762
22763 * emacs.c (USAGE1): Add missing newline.
22764
22765 2002-08-27 Andrew Choi <akochoi@shaw.ca>
22766
22767 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
22768
22769 2002-08-27 Richard M. Stallman <rms@gnu.org>
22770
22771 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
22772 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
22773 (Vblink_cursor_alist): New variable.
22774 (syms_of_xfns): Initialize and defvar it.
22775 (x_specified_cursor_type): Recognize Qbox for filled box.
22776 Exceptions are hollow boxes.
22777 (Qbox, Qhollow): New variables.
22778 (syms_of_xfns): Initialize and staticpro them.
22779
22780 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
22781 New macros.
22782 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
22783
22784 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
22785 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
22786
22787 * emacs.c (main): Handle --script.
22788 (USAGE1): Mention --script.
22789 (standard_args): Define sort order for --script.
22790
22791 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
22792
22793 * xdisp.c (redisplay_updating_p): Variable removed.
22794 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
22795 New variables.
22796 (init_iterator): Don't free realized faces if
22797 inhibit_free_realized_faces is set.
22798 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
22799 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
22800 initialize Qinhibit_free_realized_faces.
22801
22802 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
22803 when iterator is adding glyphs to a glyph matrix.
22804
22805 2002-08-27 Kenichi Handa <handa@etl.go.jp>
22806
22807 * xdisp.c (get_next_display_element): In unibyte case, don't use
22808 octal form for such eight-bit characters that can be converted to
22809 multibyte char.
22810
22811 2002-08-26 Kim F. Storm <storm@cua.dk>
22812
22813 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
22814 foreground and background colors. From Joe Buehler.
22815
22816 2002-08-26 Miles Bader <miles@gnu.org>
22817
22818 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
22819
22820 2002-08-25 Andrew Choi <akochoi@shaw.ca>
22821
22822 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
22823 defined instead of MAC_OSX.
22824
22825 * s/darwin.h (select): Define select to sys_select only if
22826 HAVE_CARBON is defined.
22827 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
22828 (DONT_REOPEN_PTY): #def it.
22829
22830 * macterm.c (XTread_socket): Remove code to call
22831 SendEventToEventTarget for keys with command modifiers when
22832 mac_command_key_is_meta is nil.
22833
22834 2002-08-24 Andreas Schwab <schwab@suse.de>
22835
22836 * eval.c (Fdefvar): Fix last change.
22837
22838 2002-08-23 Richard M. Stallman <rms@gnu.org>
22839
22840 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
22841 Record variables in load history as (defvar . VAR).
22842 (Fdefvar): Don't record in load history if no initial value.
22843 (Qdefvar): New variable.
22844 (syms_of_eval): Init and staticpro it.
22845
22846 * lread.c (syms_of_lread): Doc fix.
22847 (build_load_history): Use Fmember to see if a definition
22848 is already in the Vload_history element.
22849
22850 * process.c (Fstart_process): Remove /: from program name.
22851
22852 * emacs.c (decode_env_path): Don't add /: if file name handler
22853 has a `safe-magic' property.
22854
22855 * callproc.c (Fcall_process): Remove /: from program name.
22856
22857 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
22858
22859 * regex.c (PATFETCH): Remove the translating fetch.
22860 (PATFETCH_RAW): Rename to PATFETCH.
22861 (set_image_of_range): New fun.
22862 (SET_RANGE_TABLE_WORK_AREA): Use it.
22863 (regex_compile): Don't translate the pattern chars so eagerly.
22864 Only do it when inserting an `exactn' bytecode or when handling
22865 a char-range.
22866 (mutually_exclusive_p): Avoid empty statement.
22867
22868 2002-08-22 Kim F. Storm <storm@cua.dk>
22869
22870 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
22871 end up on a partially visible line; this reverts a specific part
22872 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
22873 display error which has been reported several times now.
22874 However it introduces the problem that changes was supposed to fix.
22875 See my comments in the source if you want to debug this further.
22876
22877 2002-08-20 Kenichi Handa <handa@etl.go.jp>
22878
22879 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22880
22881 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
22882
22883 * msdos.c (croak): Add `void' to definition.
22884
22885 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
22886 Don't define them, they are defined in msdos.c.
22887
22888 * mem-limits.h [MSDOS]: Declare etext.
22889
22890 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
22891 `const' since CORRECT_DIR_SEPS modifies its target.
22892
22893 2002-08-19 Kim F. Storm <storm@cua.dk>
22894
22895 * keyboard.c (Fclear_this_command_keys): Add optional arg
22896 KEEP-RECORD to avoid clearing lossage when we just want to clear
22897 the current key sequence (kmacro needs this).
22898
22899 2002-08-19 Kenichi Handa <handa@localhost>
22900
22901 * composite.c (run_composition_function): Call FUNC if it is fboundp.
22902
22903 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
22904 cons, return Qnil.
22905
22906 2002-08-17 Richard M. Stallman <rms@gnu.org>
22907
22908 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
22909
22910 * sysdep.c [!VMS]: Include sys/files.h.
22911
22912 * editfns.c (save_restriction_restore): Defend from unchained marker.
22913
22914 * buffer.c (overlays_at): Handle extending vec uniformly.
22915 (overlays_in): Handle extending vec from length 0 as in overlays_at.
22916
22917 2002-08-15 Andrew Choi <akochoi@shaw.ca>
22918
22919 * mac.c (init_mac_osx_environment): New function.
22920
22921 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
22922
22923 2002-08-14 Kim F. Storm <storm@cua.dk>
22924
22925 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
22926 executing macro before appending to it (when used from Lisp).
22927 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
22928 which is called prior to each iteration of macro (for kmacro.el).
22929 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
22930
22931 * lisp.h (Fexecute_kbd_macro): Update prototype.
22932
22933 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
22934
22935 2002-08-14 Kenichi Handa <handa@etl.go.jp>
22936
22937 * xselect.c (QUTF8_STRING): New variable.
22938 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
22939 (x_atom_to_symbol): Likewise.
22940 (x_get_local_selection): New argument local_request. If it is
22941 nonzero, call handler_fn with the second arg nil.
22942 (x_handle_selection_request): Call x_get_local_selection with
22943 local_request 0.
22944 (lisp_data_to_selection_data): Don't encode the string here.
22945 (Fx_get_selection_internal): Call x_get_local_selection with
22946 local_request 1.
22947 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
22948
22949 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
22950
22951 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
22952
22953 2002-08-13 Richard M. Stallman <rms@gnu.org>
22954
22955 * minibuf.c (Fminibufferp): New function.
22956 (syms_of_minibuf): Defsubr it.
22957 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
22958
22959 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
22960
22961 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
22962
22963 2002-08-12 Richard M. Stallman <rms@gnu.org>
22964
22965 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
22966 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
22967 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
22968 already.
22969
22970 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
22971
22972 2002-08-11 Andrew Choi <akochoi@shaw.ca>
22973
22974 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
22975 (Vmac_pass_command_to_system): New variable.
22976 (Vmac_pass_control_to_system): New variable.
22977 (do_mouse_moved): Check wp with is_emacs_window.
22978 (XTread_socket): Check window_ptr with is_emacs_window.
22979 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
22980 events back to Mac Toolbox for processing, depending on values of
22981 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
22982 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
22983 Vmac_pass_control_to_system.
22984
22985 2002-08-10 Kenichi Handa <handa@etl.go.jp>
22986
22987 * coding.c (unencodable_char_position): New function.
22988 (Funencodable_char_position): New function.
22989 (syms_of_coding): Defsubr Funencodable_char_position.
22990
22991 2002-08-10 Andrew Choi <akochoi@shaw.ca>
22992
22993 * mac.c (sys_select) [MAC_OSX]: New function.
22994
22995 * macterm.c (MakeMeTheFrontProcess): New function.
22996 (mac_initialize): Call MakeMeTheFrontProcess.
22997
22998 * s/darwin.h: Define select to sys_select.
22999
23000 2002-08-09 Richard M. Stallman <rms@gnu.org>
23001
23002 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
23003
23004 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
23005
23006 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
23007 end of the buffer.
23008
23009 2002-08-08 Ken Raeburn <raeburn@gnu.org>
23010
23011 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
23012
23013 * puresize.h (BASE_PURESIZE): Increase to 910000.
23014
23015 2002-08-08 Kenichi Handa <handa@etl.go.jp>
23016
23017 * coding.c (Ffind_operation_coding_system): For write-region, if
23018 VISIT is a filename, make it the target.
23019
23020 2002-08-07 Richard M. Stallman <rms@gnu.org>
23021
23022 * alloc.c (mark_object): Detect long lists for debugging.
23023 (mark_object_loop_halt): New variable.
23024
23025 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
23026
23027 * data.c (Fmake_variable_frame_local): Doc fix.
23028
23029 2002-08-01 David Ponce <david@dponce.com>
23030
23031 * w32menu.c (local_heap, local_alloc, local_free): New macros.
23032 (malloc_widget_value, free_widget_value)
23033 (w32_free_submenu_strings): Use them.
23034
23035 (push_submenu_start, push_submenu_end, push_left_right_boundary)
23036 (push_menu_pane, push_menu_item, single_keymap_panes)
23037 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
23038 (single_submenu, set_frame_menubar)
23039 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
23040
23041 (Fx_popup_menu): Don't show pop up menu until preceding one is
23042 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
23043
23044 * w32menu.c: Changes adapted from xmenu.c
23045 (set_frame_menubar): First parse all submenus,
23046 then make widget_value trees from them.
23047 Don't allocate any widget_value objects
23048 until we are done with the parsing.
23049 (parse_single_submenu): New function.
23050 (digest_single_submenu): New function.
23051 (single_submenu): Function deleted, replaced by those two.
23052
23053 2002-08-04 Andrew Choi <akochoi@shaw.ca>
23054
23055 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
23056 returns a valid window pointer before proceeding for keyDown and
23057 autoKey events.
23058
23059 2002-08-03 Andrew Choi <akochoi@shaw.ca>
23060
23061 * macterm.c (USE_CARBON_EVENTS): New macro.
23062 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
23063 (x_iconify_frame): Call CollapseWindow.
23064 (Vmac_reverse_ctrl_meta): New variable.
23065 (Vmac_wheel_button_is_mouse_2): New variable.
23066 (init_mac_drag_n_drop): New function.
23067 (mac_do_receive_drag): New function.
23068 (mac_handle_service_event): New function.
23069 (init_service_handler): New function.
23070 (mac_to_emacs_modifiers): New function.
23071 (mac_event_to_emacs_modifiers): New function.
23072 (mac_get_mouse_btn): New function.
23073 (mac_convert_event_ref): New function.
23074 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
23075 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
23076 mac_get_mouse_btn.
23077 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
23078
23079 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
23080 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
23081 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
23082 TOOL_BAR_EVENT for MAC_OS as well.
23083 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
23084 as for WINDOWS_NT.
23085 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
23086
23087 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
23088
23089 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
23090
23091 * xdisp.c (forward_to_next_line_start): Fix a condition that
23092 lead to a newline being skipped.
23093
23094 2002-08-02 Andrew Choi <akochoi@shaw.ca>
23095
23096 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
23097
23098 2002-08-01 Richard M. Stallman <rms@gnu.org>
23099
23100 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
23101
23102 2002-07-31 Andrew Choi <akochoi@shaw.ca>
23103
23104 * macfns.c: #undef init_process before #define-ing it.
23105
23106 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
23107 HAVE_CARBON is defined.
23108
23109 2002-07-31 Richard M. Stallman <rms@gnu.org>
23110
23111 * xmenu.c (set_frame_menubar): First parse all submenus,
23112 then make widget_value trees from them.
23113 Don't allocate any widget_value objects
23114 until we are done with the parsing.
23115 (parse_single_submenu): New function.
23116 (digest_single_submenu): New function.
23117 (single_submenu): Function deleted, replaced by those two.
23118
23119 2002-07-30 Juanma Barranquero <lektu@terra.es>
23120
23121 * w32proc.c (syms_of_ntproc): Fix docstring of
23122 `w32-get-true-file-attributes'.
23123
23124 2002-07-28 Richard M. Stallman <rms@gnu.org>
23125
23126 * s/hpux8.h (HPUX8): Define this before including hpux.h.
23127 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
23128
23129 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
23130
23131 * keyboard.c (make_lispy_event):
23132 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
23133 Explicitly clear up_modifier in event->modifiers.
23134
23135 2002-07-27 Richard M. Stallman <rms@gnu.org>
23136
23137 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
23138
23139 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
23140 for bar cursor.
23141
23142 2002-07-26 Kenichi Handa <handa@etl.go.jp>
23143
23144 * coding.c (detect_coding_iso2022): While checking a byte sequence
23145 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
23146 it in the normal loop.
23147
23148 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
23149
23150 * xterm.c (expose_overlaps): New function.
23151 (expose_window): Use it to fix the display of overlapping rows.
23152
23153 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
23154
23155 2002-07-23 Ken Raeburn <raeburn@gnu.org>
23156
23157 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
23158 since it only depends on XUINT.
23159
23160 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
23161 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
23162 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
23163 Macros deleted.
23164
23165 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
23166 its value over other approaches.
23167 * sysdep.c (start_of_data): Don't define the function if a macro
23168 form has been defined.
23169
23170 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
23171
23172 * xdisp.c (redisplay_updating_p): New variable.
23173 (init_iterator): Don't free realized faces when
23174 redisplay_updating_p is set.
23175 (redisplay_internal): Set redisplay_updating_p while updating
23176 the display.
23177
23178 2002-07-23 Richard M. Stallman <rms@gnu.org>
23179
23180 * editfns.c (Fmessage): Treat "" like nil.
23181
23182 2002-07-23 Kenichi Handa <handa@etl.go.jp>
23183
23184 * xdisp.c (face_before_or_after_it_pos):
23185 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23186
23187 2002-07-22 Juanma Barranquero <lektu@terra.es>
23188
23189 * callproc.c (init_callproc) [DOS_NT]:
23190 Initialize Vshared_game_score_directory to nil.
23191 (syms_of_callproc) [DOS_NT]: Likewise.
23192
23193 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
23194
23195 * xdisp.c (display_line): Replace an abort with xassert.
23196
23197 2002-07-21 Richard M. Stallman <rms@gnu.org>
23198
23199 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
23200 and END_UNCHANGED when setting buffer_unchanged_p.
23201 Use current_matrix_up_to_date_p to decide whether to use
23202 try_cursor_movement.
23203
23204 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
23205
23206 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
23207
23208 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
23209 Set to nil if dir does not exist.
23210 (syms_of_callproc): Init unconditionally and simply.
23211
23212 * buffer.c (Fbuffer_list): Doc fix.
23213
23214 2002-07-21 Ken Raeburn <raeburn@gnu.org>
23215
23216 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
23217
23218 * buffer.c (mmap_realloc): When shrinking, make sure number of
23219 pages to unmap is rounded towards zero.
23220
23221 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
23222 (XSETINT): Deleted.
23223
23224 * m/att3b.h (XINT): Don't define.
23225 (VALBITS, VALMASK, XTYPE): Deleted.
23226 (DATA_SEG_BITS): Define.
23227 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
23228 ARRAY_MARK_FLAG): Deleted.
23229 (DATA_SEG_BITS): Define.
23230 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
23231 (DATA_SEG_BITS): Define.
23232
23233 2002-07-20 Richard M. Stallman <rms@gnu.org>
23234
23235 * print.c (print_error_message): New args CONTEXT and CALLER.
23236 Calls changed.
23237
23238 * lisp.h (print_error_message): Declare new args.
23239
23240 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
23241 and CONTEXT to print_error_message, don't print them here.
23242 For a Quit, don't use Vsignaling_function.
23243 Call message_log_maybe_newline.
23244
23245 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
23246
23247 2002-07-20 Kim F. Storm <storm@cua.dk>
23248
23249 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
23250
23251 2002-07-19 Ken Raeburn <raeburn@gnu.org>
23252
23253 * bytecode.c (struct byte_stack): Pointers into byte string now
23254 point to const.
23255 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
23256 const.
23257 * charset.h (BCOPY_SHORT): Source pointer now points to const.
23258 * coding.c (encode_eol, detect_coding, detect_eol):
23259 (decode_coding, encode_coding, detect_coding_system):
23260 Source strings now treated as const.
23261 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
23262 modify Lisp string contents.
23263 * coding.h (decode_coding, encode_coding, detect_coding,
23264 detect_eol): Declarations updated.
23265 * composite.c (compose_chars_in_text): Treat Lisp string contents
23266 as const.
23267 * dispnew.c (safe_bcopy): Source pointer now points to const.
23268 * lisp.h (STRING_COPYIN): New macro.
23269 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
23270 (internal_with_output_to_temp_buffer): Declarations updated.
23271 * print.c (temp_output_buffer_setup):
23272 (internal_with_output_to_temp_buffer): Buffer name argument is now
23273 pointer to const.
23274 * sound.c (struct sound_device): Function pointer field "write"
23275 buffer argument now points to const.
23276 (vox_write): Buffer argument points to const.
23277 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
23278 contents as const.
23279 * sysdep.c (emacs_write): Buffer pointer now const.
23280 * term.c (encode_terminal_code): Buffer pointer now const.
23281 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
23282 (x_face_list_fonts, x_update_menu_appearance):
23283 (hash_string_case_insensitive): Treat Lisp string contents as const.
23284
23285 2002-07-19 Juanma Barranquero <lektu@terra.es>
23286
23287 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
23288
23289 * fileio.c (syms_of_fileio): Likewise.
23290 (Ffile_name_as_directory): Fix argument name in docstring.
23291 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
23292
23293 2002-07-18 Richard M. Stallman <rms@gnu.org>
23294
23295 * data.c (Fdefalias): Doc fix.
23296
23297 2002-07-17 Dave Love <fx@gnu.org>
23298
23299 * intervals.h (text_property_stickiness): Use P_.
23300
23301 * ccl.c: Remove `emacs' conditionals.
23302 (ccl_backtrace_table): Fix size spec.
23303 (ccl_driver): Fix type errors.
23304
23305 2002-07-16 Ken Raeburn <raeburn@gnu.org>
23306
23307 * alloc.c (xstrdup, make_string, make_unibyte_string)
23308 (make_multibyte_string, build_string): String pointer args now
23309 point to const.
23310 * charset.c (find_charset_in_text, c_string_width):
23311 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
23312 * fileio.c (report_file_error):
23313 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
23314 (count_combining_before, count_combining_after, insert_1_both):
23315 (insert, insert_and_inherit, insert_string):
23316 (insert_before_markers, insert_before_markers_and_inherit):
23317 * lread.c (intern, oblookup, hash_string):
23318 * minibuf.c (temp_echo_area_glyphs):
23319 * search.c (fast_c_string_match_ignore_case):
23320 * sysdep.c (emacs_open, set_file_times):
23321 * xfaces.c (xstricmp):
23322 * xdisp.c (store_frame_title, string_char_and_length):
23323 (message_dolog, message2, message2_nolog, set_message): Likewise.
23324 (set_message_1): Cast message string argument to const pointer.
23325 * editfns.c (general_insert_function): Insertion function now
23326 takes pointer to const for input data.
23327 * charset.h (find_charset_in_text, c_string_width):
23328 (parse_str_as_multibyte): Declarations updated.
23329 * dispextern.h (xstricmp): Declaration updated.
23330 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
23331 (count_size_as_multibyte, count_combining_before):
23332 (count_combining_after, insert_1, insert_1_both, message_dolog):
23333 (insert, insert_and_inherit, insert_before_markers)
23334 (insert_before_markers_and_inherit, set_message, message2):
23335 (message2_dolog, build_string, make_string, make_unibyte_string):
23336 (make_multibyte_string, intern, oblookup, report_file_error):
23337 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
23338 (emacs_open, xstrdup): Declarations updated.
23339 * systime.h (set_file_times): Declaration updated.
23340
23341 * charset.c (find_charset_in_text, lisp_string_width): Use const
23342 for pointer to lisp string data.
23343 * charset.h (FETCH_STRING_CHAR_ADVANCE):
23344 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
23345 * coding.c (Ffind_coding_systems_region_interval):
23346 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
23347 (Fmake_directory_internal, Fdelete_directory):
23348 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
23349 * fontset.c (font_family_registry, fs_query_fontset):
23350 (list_fontsets):
23351 * frame.c (Fframe_parameter):
23352 * keyboard.c (cmd_error_internal):
23353 * keymap.c (Fdescribe_buffer_bindings):
23354 * lread.c (complete_filename_p, openp):
23355 * minibuf.c (Fminibuffer_complete_word):
23356 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
23357 (face_before_or_after_it_pos, next_element_from_string):
23358 (get_overlay_arrow_glyph_row, display_mode_element):
23359 (decode_mode_spec_coding):
23360 * xterm.c (same_x_server): Likewise.
23361
23362 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
23363 settings of non-existent fields.
23364
23365 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
23366 copy a lisp value.
23367
23368 * lread.c (Fintern_soft): Use string macros instead of
23369 Lisp_String fields.
23370 * keyboard.c (echo_char, parse_modifiers_uncached):
23371 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
23372 * textprop.c (validate_interval_range, interval_of): Likewise.
23373
23374 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
23375
23376 * charset.h (FETCH_STRING_CHAR_ADVANCE)
23377 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
23378 XSTRING()->size_byte.
23379
23380 * lisp.h (SDATA, SREF): Produce rvalue.
23381 (SSET): New macro.
23382 * alloc.c (make_event_array): Use SSET for storing into a string.
23383 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
23384 a string.
23385 * casefiddle.c (casify_object): Use SSET.
23386 * charset.h (FETCH_STRING_CHAR_ADVANCE)
23387 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
23388 address of string contents.
23389 * data.c (Faref): Use SDATA.
23390 (Faset): Use SDATA, SSET.
23391 * dired.c (directory_files_internal): Use SSET.
23392 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
23393 (Fread_file_name): Use SREF, SSET.
23394 * fns.c (concat): Use SSET.
23395 (concat, Fdelete): Use SDATA.
23396 * insdel.c (insert_from_string_1): Use SDATA.
23397 * keyboard.c (Fevent_convert_list): Use SREF.
23398 * lread.c (Fload): Use SDATA, SSET.
23399 * macfns.c (validate_x_resource_name): Use SSET.
23400 * process.c (status_message): Use SSET.
23401 * search.c (wordify): Use SDATA.
23402 (Freplace_match): Use SREF.
23403 * w32fns.c (validate_x_resource_name): Use SSET.
23404 * xfns.c (validate_x_resource_name): Use SSET.
23405 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
23406
23407 2002-07-16 Richard M. Stallman <rms@gnu.org>
23408
23409 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
23410
23411 * xdisp.c (reconsider_clip_changes):
23412 Don't test prevent_redisplay_optimizations_p.
23413 (redisplay_internal): Test prevent_redisplay_optimizations_p
23414 along with clip_changed in some cases.
23415 (try_window_id): Likewise.
23416 (redisplay_window): New local var buffer_unchanged_p.
23417
23418 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
23419
23420 * process.c (create_process): Test USG_SUBTTY_WORKS.
23421 (process_send_signal): Clean up handling of GID.
23422 Detect errors in ioctls meant to set GID.
23423
23424 * window.c (temp_output_buffer_show):
23425 Don't set prevent_redisplay_optimizations_p.
23426
23427 2002-07-15 Juanma Barranquero <lektu@terra.es>
23428
23429 * eval.c (Fdefvaralias): Add docstring argument.
23430
23431 2002-07-15 Ken Raeburn <raeburn@gnu.org>
23432
23433 * lisp.h (STRING_INTERVALS): Produce rvalue.
23434 (STRING_SET_INTERVALS): New macro.
23435 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
23436 * fns.c (Fstring_as_multibyte): Likewise.
23437 * intervals.c (balance_possible_root_interval, delete_interval)
23438 (create_root_interval, copy_intervals_to_string): Likewise.
23439 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
23440 instead of 0.
23441
23442 2002-07-14 Ken Raeburn <raeburn@gnu.org>
23443
23444 * lisp.h (STRING_SET_CHARS): New macro.
23445 (SCHARS, SBYTES): Produce rvalues.
23446 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
23447 * fns.c (concat): Likewise.
23448 * lread.c (read_vector): Likewise.
23449
23450 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
23451 (STRING_SET_UNIBYTE): New macro.
23452 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
23453 length of -1) changed to use STRING_SET_UNIBYTE.
23454 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
23455 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
23456 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
23457 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
23458 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
23459 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
23460 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
23461 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
23462 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
23463 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
23464 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
23465 STRING_BYTES or indirection changed to SCHARS, SBYTES,
23466 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
23467 unchanged for now.
23468
23469 2002-07-13 Kim F. Storm <storm@cua.dk>
23470
23471 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
23472
23473 2002-07-12 Richard M. Stallman <rms@gnu.org>
23474
23475 * fileio.c (Fwrite_region): Doc fix.
23476
23477 * print.c (print_error_message): Don't handle Vsignaling_function here.
23478
23479 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
23480 (command_loop_1): Avoid certain actions after memory-full error.
23481
23482 * eval.c (Fsignal): Don't call cancel_hourglass.
23483 For a memory-full error, don't call Vsignal_hook_function
23484 and don't set Vsignaling_function.
23485
23486 * process.c (process_send_signal): Add abort call.
23487
23488 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
23489
23490 * keymap.c (Fkey_binding): Fix typo.
23491
23492 2002-07-11 Richard M. Stallman <rms@gnu.org>
23493
23494 * alloc.c (Vmemory_full): New variable.
23495 (Vmemory_signal_data): Rename from memory_signal_data.
23496 Uses changed.
23497 (syms_of_alloc): Defvar them.
23498 (memory_full, buffer_memory_full): Set Vmemory_full.
23499
23500 * lisp.h (Vmemory_full): Add declaration.
23501 (current_column, indented_beyond_p): Change declaration.
23502
23503 * indent.c (last_known_column): Declare as double, not float.
23504 (current_column, current_column_1, string_display_width)
23505 (position_indentation): Return `double'.
23506 (indented_beyond_p): Arg `column' is `double'. Callers changed.
23507
23508 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
23509 (back_to_previous_visible_line_start)
23510 (reseat_at_next_visible_line_start, next_element_from_buffer):
23511 Use `double', not `float', when calling indented_beyond_p.
23512
23513 * s/hpux11.h (BROKEN_SA_RESTART): Define.
23514
23515 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
23516
23517 2002-07-11 Juanma Barranquero <lektu@terra.es>
23518
23519 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
23520 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
23521 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
23522 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
23523 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
23524 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
23525
23526 2002-07-10 Juanma Barranquero <lektu@terra.es>
23527
23528 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
23529 All callers changed.
23530
23531 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
23532
23533 * data.c (Fdefalias): Add an optional `docstring' argument.
23534 (set_internal, Fsetq_default): Use XCAR/XCDR.
23535
23536 * composite.c (HASH_VALUE, HASH_KEY):
23537 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
23538
23539 2002-07-09 Kenichi Handa <handa@etl.go.jp>
23540
23541 * callproc.c (Fcall_process): Fix previous change.
23542
23543 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
23544
23545 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
23546 Add support for hash-tables.
23547 (Ftry_completion): Return t even if the string appears multiple times.
23548
23549 * fns.c (Fnconc): Use XCDR.
23550 (Fprovide): Use CONSP and XCDR.
23551 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
23552 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
23553 (Fmake_hash_table): Accept `:size nil'.
23554 (Fmakehash): Delete: moved to subr.el.
23555 (syms_of_fns): Don't defsubr makehash.
23556
23557 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
23558 (HASH_TABLE_SIZE): Move from fns.c.
23559
23560 2002-07-07 Richard M. Stallman <rms@gnu.org>
23561
23562 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
23563 Instead just return 0 when there is something to be done.
23564 (try_scrolling): If make_cursor_line_fully_visible returns 0,
23565 retry scrolling as if cursor were off the bottom.
23566 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
23567 return CURSOR_MOVEMENT_MUST_SCROLL.
23568 (redisplay_window): If make_cursor_line_fully_visible returns 0,
23569 go to try_to_scroll.
23570
23571 * buffer.c (Fbuffer_local_value): Store current value into its binding
23572 so we get the up-to-date value for the binding that is loaded.
23573
23574 * eval.c (Fdefmacro): Doc fix.
23575
23576 2002-07-05 Dave Love <fx@gnu.org>
23577
23578 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
23579 correctly.
23580
23581 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
23582 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
23583 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
23584 CCL_LookupCharConstTbl.
23585 (syms_of_ccl): Defvar translation-hash-table-vector.
23586
23587 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23588
23589 * xdisp.c: Remove unused variable `face'.
23590
23591 2002-07-04 Juanma Barranquero <lektu@terra.es>
23592
23593 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
23594 obsolescence information.
23595
23596 2002-07-03 Andrew Choi <akochoi@shaw.ca>
23597
23598 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
23599 pattern. Search cache first.
23600 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
23601 for Japanese font.
23602 (XLoadQueryFont): Use it.
23603
23604 2002-07-02 Richard M. Stallman <rms@gnu.org>
23605
23606 * keymap.c (Fdefine_key): Doc fix.
23607
23608 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
23609
23610 2002-07-02 Juanma Barranquero <lektu@terra.es>
23611
23612 * keymap.c (syms_of_keymap): Fix typo.
23613
23614 2002-07-01 Andrew Choi <akochoi@shaw.ca>
23615
23616 * s/darwin.h: Define POSIX_SIGNALS.
23617
23618 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
23619 and FSRefMakePath to convert FSSpec returned with Apple Event to
23620 Posix pathname.
23621 (mac_initialize) [TARGET_API_MAC_CARBON]:
23622 Call init_required_apple_events and disable the `Quit' menu item
23623 provided automatically by the Carbon Toolbox.
23624
23625 2002-07-01 Dave Love <fx@gnu.org>
23626
23627 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23628 for K&R.
23629
23630 * xterm.c: Fix prototype for K&R.
23631
23632 * term.c (costs_set): Declare static, non-initialized for pcc.
23633
23634 2002-07-01 Richard M. Stallman <rms@gnu.org>
23635
23636 * keyboard.c (timer_last_idleness_start_time): New variable.
23637 (timer_start_idle): Set that.
23638 (read_key_sequence): Use that to reset timer_idleness_start_time
23639 to previous value.
23640
23641 * window.c (Frecenter): With arg, set optional_new_start.
23642
23643 * xdisp.c (redisplay_internal): Make optional_new_start really work.
23644
23645 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
23646 buffer for completion.
23647
23648 2002-06-29 Ken Raeburn <raeburn@gnu.org>
23649
23650 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
23651
23652 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23653
23654 * keyboard.c (readable_filtered_events): New function that filters
23655 FOCUS_IN_EVENT depending on parameter.
23656 (readable_events): Calls readable_filtered_events, not filtering
23657 FOCUS_IN_EVENT.
23658 (get_filtered_input_pending): New function, filtering parameter passed
23659 to readable_filtered_events.
23660 (get_input_pending): Calls get_filtered_input_pending, not filtering
23661 FOCUS_IN_EVENT.
23662 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
23663 FOCUS_IN_EVENT.
23664
23665 * xterm.h (struct x_output): Add focus_state.
23666
23667 * xterm.c (x_focus_changed): New function.
23668 (x_detect_focus_change): New function.
23669 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
23670 EnterNotify and LeaveNotify to track X focus changes.
23671
23672 2002-06-28 Andreas Schwab <schwab@suse.de>
23673
23674 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
23675
23676 2002-06-27 Kim F. Storm <storm@cua.dk>
23677
23678 * xdisp.c (mode_line_string_list, mode_line_string_face)
23679 (mode_line_string_face_prop): New variables.
23680 (store_mode_line_string): New function.
23681 (display_mode_element): Use store_mode_line_string to
23682 add mode-line string elements to mode_line_string_list
23683 when mode_line_string_list is non-nil.
23684 (Fformat_mode_line): Now returns propertized string by
23685 default. New arg NO-PROPS to ignore properties.
23686 (decode_mode_spec): Only add two dashes for %- in propertized
23687 mode-line string.
23688 (syms_of_xdisp): Init and staticpro mode_line_string_list.
23689
23690 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
23691
23692 * minibuf.c (minibuffer_completion_contents): Add return type.
23693
23694 2002-06-27 Juanma Barranquero <lektu@terra.es>
23695
23696 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
23697
23698 2002-06-26 Juanma Barranquero <lektu@terra.es>
23699
23700 * fileio.c (read_file_name_cleanup): Add missing return.
23701
23702 2002-06-26 Richard M. Stallman <rms@gnu.org>
23703
23704 * window.c (Frecenter): Don't set force_start flag.
23705
23706 * minibuf.c (do_completion, Fminibuffer_complete_word)
23707 (Fminibuffer_completion_help): Complete just the text before point.
23708 (minibuffer_completion_contents): New function.
23709
23710 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
23711
23712 * frame.c (frames_bury_buffer): Function deleted.
23713
23714 2002-06-25 Miles Bader <miles@gnu.org>
23715
23716 * callint.c (Fcall_interactively): When checking to see if doprnt hit
23717 the end of callint_message, allow for a terminating '\0'.
23718
23719 2002-06-24 Juanma Barranquero <lektu@terra.es>
23720
23721 * w32select.c: Include composite.h.
23722
23723 * w16select.c: Likewise.
23724
23725 2002-06-24 Kenichi Handa <handa@etl.go.jp>
23726
23727 * callproc.c (Fcall_process): If code detection is necessary,
23728 call detect_coding directly here.
23729
23730 * coding.c (detect_eol): Preserve coding->cmp_data.
23731
23732 * w16select.c (Fw16_get_clipboard_data):
23733 * w32fns.c (w32_to_x_font):
23734 * w32select.c (Fw32_get_clipboard_data):
23735 * xselect.c (selection_data_to_lisp_data):
23736 * xterm.c (XTread_socket): Disable composition handling.
23737
23738 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
23739
23740 * print.c (temp_output_buffer_setup): Kill all local variables.
23741
23742 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
23743
23744 * lread.c (Fread): Remove redundant and imprecise declaration.
23745
23746 * xfns.c (check_x_display_info): Use check_x_frame.
23747
23748 * .gdbinit (xprintsym): Use the new `xname' field.
23749 (xsymbol): Use it.
23750
23751 2002-06-22 Jason Rumney <jasonr@gnu.org>
23752
23753 * w32fns.c (file_dialog_callback): New function.
23754 (Fx_file_dialog): Allow selecting directories as well as files.
23755
23756 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23757
23758 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
23759 OpenBSD. Add support for mipseb-*-netbsd* machines.
23760
23761 2002-06-17 Andrew Choi <akochoi@shaw.ca>
23762
23763 * macterm.c (mac_scroll_area): Set foreground and backcolor to
23764 black and white before scrolling. Restore frame background and
23765 foreground color after scrolling.
23766 (do_window_update): Call XClearWindow before calling expose_frame.
23767 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
23768 FRAME_FOREGROUND_PIXEL of frame.
23769
23770 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
23771 test Mac command key as <ALT> key.
23772
23773 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
23774
23775 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
23776
23777 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
23778 Lookup keys in function-key-map immediately so that key-translation-map
23779 can be applied earlier.
23780 Remove function_key_possible and key_translation_possible, replaced
23781 by checking `keytran_start < t'.
23782
23783 * .gdbinit (xsymbol): Use the new `xname' field.
23784
23785 2002-06-17 Andrew Choi <akochoi@shaw.ca>
23786
23787 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
23788 test Mac command key as <ALT> key.
23789
23790 * mac.c (do_applescript): Call initialize_applescript if necessary
23791 when first called. Dispose of result_desc only when there is no error.
23792 (Fdo_applescript): Use %d format specifier instead of %ld.
23793
23794 2002-06-16 Andrew Choi <akochoi@shaw.ca>
23795
23796 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
23797 of FrontWindow for cases keyDown and autoKey.
23798
23799 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
23800 Vdefault_fontset to Monaco with mac-roman coding.
23801
23802 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
23803 init_process before and after inclusion of Carbon/Carbon.h, resp.
23804
23805 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
23806 cursor_gc.
23807 (add_font_name_table_entry): New function.
23808 (init_font_name_table): Use add_font_name_table_entry; add italic,
23809 bold, and bold-italic entries for truetype fonts.
23810
23811 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
23812 for Mac too.
23813 (try_font_list) [MAC_OS]: If no font matches given registry, try
23814 fonts with any registry matching face_family.
23815 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
23816
23817 * s/darwin.h: If autoconf detects the Ncurses library, define
23818 LIBS_TERMCAP to -lncurses to use it.
23819
23820 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
23821
23822 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
23823
23824 2002-06-15 Richard M. Stallman <rms@gnu.org>
23825
23826 * window.c (Fset_window_configuration): Explicitly preserve
23827 the point value that new_current_buffer had at the start.
23828
23829 2002-06-14 Juanma Barranquero <lektu@terra.es>
23830
23831 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
23832 Fix typos.
23833
23834 2002-06-14 Kim F. Storm <storm@cua.dk>
23835
23836 * insdel.c (insert_1_both, insert_from_string_1)
23837 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
23838 insert happened in the end_unchanged region. Otherwise, the
23839 redisplay may be confused and duplicate the last line in the
23840 buffer [seen after save-buffer when require-final-newline==t].
23841
23842 2002-06-13 Jason Rumney <jasonr@gnu.org>
23843
23844 * w32.c (init_environment): Remove EMACSLOCKDIR.
23845 (stat): Swap _S_IFDIR and _S_IFREG.
23846
23847 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23848
23849 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
23850 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
23851 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
23852 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
23853 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
23854 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
23855 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
23856 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
23857 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
23858 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
23859 SELECTION_REQUEST_EVENT, selection_clear_event to
23860 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
23861 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
23862 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
23863 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
23864 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
23865 no_event to NO_EVENT.
23866
23867 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23868
23869 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
23870
23871 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
23872
23873 * intervals.c (textget): Don't forget to `return'.
23874 (lookup_char_property): Use XCAR/XCDR.
23875
23876 2002-06-12 Juanma Barranquero <lektu@terra.es>
23877
23878 * xdisp.c (Fformat_mode_line): Fix typo.
23879
23880 2002-06-12 Kim F. Storm <storm@cua.dk>
23881
23882 * xdisp.c (Fformat_mode_line): New function.
23883 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
23884 (store_frame_title_char, store_frame_title): Use unconditionally.
23885 (init_xdisp): Defsubr Fformat_mode_line.
23886 Initialize frame_title_buf etc. unconditionally.
23887
23888 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
23889
23890 * keyboard.c (read_key_sequence):
23891 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
23892 things through those maps after downcasing events.
23893 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
23894 applies after function-key-map.
23895 Make sure that keytran can be done in the middle in the sequence.
23896 Be careful not to throw away events past the one we downcase.
23897
23898 * lread.c (read_integer): Remove unused var `tem'.
23899 (read1): Fix int/Lisp_Object mixup.
23900
23901 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
23902
23903 2002-06-11 Richard M. Stallman <rms@gnu.org>
23904
23905 * keyboard.c (readable_events): Ignore any number of
23906 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
23907
23908 2002-06-09 Miles Bader <miles@gnu.org>
23909
23910 * xfaces.c (Ftty_supports_face_attributes_p): New function.
23911 (parse_rgb_list, tty_lookup_color): New functions.
23912 (tty_defined_color): Use `tty_lookup_color' to do all the work.
23913 (color_distance, Fcolor_distance): New functions.
23914 (TTY_SAME_COLOR_THRESHOLD): New macro.
23915 (Qtty_color_standard_values): New variable.
23916 (syms_of_xfaces): Initialize new vars & functions.
23917
23918 2002-06-08 Colin Walters <walters@verbum.org>
23919
23920 * textprop.c (Vchar_property_alias_alist): New variable.
23921 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
23922
23923 * intervals.c (lookup_char_property): New function for looking up
23924 overlay and text properties, created from textget.
23925 (textget): Use it.
23926
23927 * intervals.h (lookup_char_property): Declare.
23928 (Vchar_property_alias_alist): Declare.
23929
23930 * buffer.c (Foverlay_get): Use lookup_char_property.
23931
23932 2002-06-07 Sam Steingold <sds@gnu.org>
23933
23934 * xselect.c (lisp_data_to_selection_data): Fix last change:
23935 *data_ret is not a Lisp string, while unibyte_string is.
23936
23937 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
23938
23939 * xselect.c (lisp_data_to_selection_data): Fix last change:
23940 set size_ret.
23941
23942 2002-06-07 Andreas Schwab <schwab@suse.de>
23943
23944 * m/amdx86-64.h: New file.
23945
23946 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
23947
23948 * fns.c (Fstring_make_unibyte): Doc fix.
23949
23950 * xselect.c (lisp_data_to_selection_data): If the requested type
23951 is STRING, call string_make_unibyte to encode the selected text
23952 as a string.
23953
23954 * window.c (Fset_window_hscroll): Doc fix.
23955
23956 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23957
23958 * fileio.c (choose_write_coding_system):
23959 Call select-safe-coding-system properly.
23960
23961 2002-06-03 Richard M. Stallman <rms@gnu.org>
23962
23963 * xdisp.c (message_with_string): Error if STRING is not a string.
23964
23965 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
23966
23967 * fileio.c (choose_write_coding_system): Pass FILE arg to
23968 Vselect_safe_coding_system_function.
23969
23970 2002-06-03 Ken Raeburn <raeburn@gnu.org>
23971
23972 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
23973
23974 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
23975
23976 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
23977 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
23978 * keymap.c (describe_command): Likewise.
23979 * minibuf.c (read_minibuf): Likewise.
23980
23981 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
23982 Cast `current_column' return value to int.
23983 (back_to_previous_visible_line_start)
23984 (reseat_at_next_visible_line_start, next_element_from_buffer):
23985 Cast `indented_beyond_p' 3rd arg to float.
23986
23987 * indent.c (last_known_column): Now a float.
23988 (current_column_1, position_indentation, current_column)
23989 (string_display_width): Return float.
23990 (Fcurrent_column): Cast `current_column' return value to int.
23991 (Fcurrent_indentation): Cast `position_indentation' retval to int.
23992 (indented_beyond_p): Third arg now a float.
23993 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
23994
23995 * lisp.h (current_column): Now returns float.
23996 (indented_beyond_p): 3rd arg now a float.
23997
23998 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
23999
24000 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
24001 is Qcompound_text_with_extensions.
24002
24003 * xselect.c (lisp_data_to_selection_data): Always set selection
24004 type as string if x_encode_text returns streingp non-NULL.
24005
24006 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
24007
24008 2002-05-30 Richard M. Stallman <rms@gnu.org>
24009
24010 * window.c (Fset_window_configuration): Correct the handling
24011 of point in current buffer, to work with multiple windows.
24012
24013 2002-05-29 Colin Walters <walters@verbum.org>
24014
24015 * lread.c (Fread_from_string): Don't depend on order of evaluation
24016 for C function parameters.
24017
24018 2002-05-28 Richard M. Stallman <rms@gnu.org>
24019
24020 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
24021 way for blinked-off state and for a nonselected window.
24022
24023 * window.c (window_scroll_pixel_based): Don't call Fbolp;
24024 instead, see if the new start pos is at beginning of line.
24025
24026 * fileio.c (Fwrite_region): If START is a string, don't
24027 make any annotations.
24028
24029 * eval.c (syms_of_eval): Doc fix.
24030
24031 2002-05-28 Colin Walters <walters@debian.org>
24032
24033 * emacs.c (USAGE1): Add --no-splash.
24034 (standard_args): Ditto.
24035
24036 2002-05-28 Colin Walters <walters@gnu.org>
24037
24038 * lread.c (readchar_count): New variable.
24039 (readchar): Increment it.
24040 (unreadchar): Decrement it.
24041 (read_multibyte): Decrement it.
24042 (Vread_with_symbol_positions): New variable.
24043 (Vread_symbol_positions_list): New variable.
24044 (read_internal_start): New function, created from Fread and
24045 Fread_from_string. Handle Vread_symbol_positions_list and
24046 Vread_with_symbol_positions.
24047 (readevalloop, Fread, Fread_from_string): Use it.
24048 (read1): Use readchar_count to add symbol positions to
24049 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
24050 (syms_of_lread): DEFVAR_LISP and initialize them.
24051
24052 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
24053 (substitute_object_recurse, substitute_object_in_subtree)
24054 (substitute_in_interval): Prototype.
24055 (read_multibyte): Return c if it's less than zero.
24056
24057 2002-05-28 Kim F. Storm <storm@cua.dk>
24058
24059 * fileio.c (Fread_file_name_internal): Added brute-force
24060 speed up for using predicate file-directory-p.
24061
24062 2002-05-28 Kim F. Storm <storm@cua.dk>
24063
24064 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
24065 New variables.
24066 (syms_of_fileio): DEFVAR_LISP them.
24067 (read_file_name_cleanup): New unwind function.
24068 (Fread_file_name_internal): Only return completions satifying
24069 Vread_file_name_predicate. Temporarily unwind protect and rebind
24070 default-directory while checking completions against the predicate.
24071 (Fread_file_name): Added PREDICATE argument. Specbind it to
24072 Vread_file_name_predicate during completion.
24073 Call Vread_file_name_function to read the file name if non-nil.
24074
24075 * lisp.h (Fread_file_name): Now has 6 args.
24076
24077 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
24078 predicate for Fread_file_name when reading directory name.
24079 Supply Qnil for predicate in other calls to Fread_file_name.
24080
24081 2002-05-26 Miles Bader <miles@gnu.org>
24082
24083 * term.c (tty_capable_p): New function.
24084 * dispextern.h (tty_capable_p): New function declaration.
24085 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
24086 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
24087
24088 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
24089
24090 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
24091 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
24092 (Vwrite_region_annotate_functions): Docstring fix.
24093
24094 2002-05-23 Kim F. Storm <storm@cua.dk>
24095
24096 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
24097 phys_cursor's hpos is overwritten. This is still not completely
24098 correct, as it doesn't really make sense to use hpos at all to
24099 get the cursor glyph (as that is relative to the width of the
24100 characters on the line, which may have changed during the update).
24101
24102 2002-05-22 Jason Rumney <jasonr@gnu.org>
24103
24104 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
24105 Lisp_Object.
24106 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
24107 Use modified enumfont_t struct.
24108
24109 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
24110
24111 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
24112 Handle the `hbar' cursor type.
24113 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
24114
24115 * w32fns.c (Qhbar): New variable.
24116 (x_specified_cursor_type): Use it.
24117
24118 2002-05-21 Ken Raeburn <raeburn@gnu.org>
24119
24120 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
24121 now, when the address is needed.
24122
24123 2002-05-21 Colin Walters <walters@gnu.org>
24124
24125 * Makefile.in (shortlisp): Add font-core.el.
24126
24127 2002-05-20 Richard M. Stallman <rms@gnu.org>
24128
24129 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
24130
24131 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
24132 equivalent key bindings here.
24133
24134 2002-05-20 Ken Raeburn <raeburn@gnu.org>
24135
24136 Change symbol structure to contain a lisp object for the symbol
24137 name:
24138 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
24139 object field named "xname".
24140 (SYMBOL_NAME): New macro.
24141 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
24142 name field.
24143 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
24144 (mark_object, gc_sweep): Use symbol xname field and XSTRING
24145 instead of name field.
24146 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
24147 SYMBOL_NAME instead of XSYMBOL and name field.
24148 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
24149 instead of XSYMBOL and name field.
24150 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
24151 and SYMBOL_NAME instead of XSYMBOL and name field.
24152 * coding.c (Fread_coding_system, code_convert_region1)
24153 (code_convert_string1, code_convert_string_norecord)
24154 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
24155 XSYMBOL and name field.
24156 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
24157 (Fmake_variable_buffer_local, Fmake_local_variable)
24158 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
24159 of XSYMBOL and name field.
24160 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
24161 XSYMBOL and name field.
24162 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
24163 instead of XSYMBOL and name field.
24164 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
24165 XSYMBOL and name field.
24166 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
24167 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24168 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
24169 instead of XSYMBOL and name field.
24170 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
24171 (parse_modifiers, apply_modifiers, Fevent_convert_list)
24172 (parse_solitary_modifier, Fexecute_extended_command):
24173 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24174 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
24175 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
24176 of XSYMBOL and name field.
24177 (describe_command, describe_translation): Use SYMBOL_NAME and
24178 assignment instead of XSYMBOL and name field and XSETSTRING.
24179 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
24180 instead of XSYMBOL and name field.
24181 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
24182 name field and XSETSTRING.
24183 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
24184 of XSYMBOL and name field.
24185 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
24186 assignment instead of XSYMBOL and name field and XSETSTRING.
24187 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
24188 XSTRING instead of XSYMBOL and name field.
24189 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
24190 and XSTRING instead of XSYMBOL and name field.
24191 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
24192 and XSTRING instead of XSYMBOL and name field.
24193 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
24194 XSTRING instead of XSYMBOL and name field.
24195 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
24196 of XSYMBOL and name field.
24197 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
24198 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24199
24200 2002-05-19 Ken Raeburn <raeburn@gnu.org>
24201
24202 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
24203 and XCDR real rvalues in most configurations.
24204
24205 * buffer.c (fix_overlays_in_range, fix_overlays_before):
24206 Don't take the address of the cdr part of a cons cell; instead, track
24207 the parent cell and call XSETCDR, or set the variable for the head
24208 of the list if we haven't started down the list yet.
24209
24210 2002-05-19 Richard M. Stallman <rms@gnu.org>
24211
24212 * doc.c (reread_doc_file): Don't ask for confirmation.
24213
24214 2002-05-18 Jason Rumney <jasonr@gnu.org>
24215
24216 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
24217 (xbm_load_image): Use it.
24218 (xbm_load): Ditto.
24219 (xbm_read_bitmap_data): Reverted to xfns.c version.
24220 From David Ponce <david@dponce.com>.
24221
24222 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
24223
24224 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
24225 2.02 and later.
24226
24227 2002-05-16 Juanma Barranquero <lektu@terra.es>
24228
24229 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
24230
24231 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
24232
24233 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
24234 meaningful test.
24235 (read_char_minibuf_menu_prompt): Fix typo.
24236
24237 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
24238
24239 * eval.c (Fcommandp): Doc fix.
24240
24241 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
24242
24243 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
24244 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
24245 (Fset_keymap_parent): Gcpro a bit more.
24246 (access_keymap): Gcpro around meta_map call and around the main loop.
24247 (get_keyelt): Gcpro when following indirect references.
24248 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
24249 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
24250 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
24251 Remove useless ad-hoc remap code.
24252
24253 2002-05-13 Richard M. Stallman <rms@gnu.org>
24254
24255 * search.c (search_buffer): Give up boyer moore search if inverse
24256 translation change charset_base.
24257
24258 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
24259
24260 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
24261 characters is carried over from the previous block of text, adjust
24262 coding->produced to account for the extra character.
24263
24264 2002-05-11 Andreas Schwab <schwab@suse.de>
24265
24266 * coding.c (intersection): Keep the elements of the returned list
24267 in the same order as in the first list.
24268
24269 2002-05-11 Kim F. Storm <storm@cua.dk>
24270
24271 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
24272 only update cmm_size if realloc actually succeeds.
24273 Testing with initial size of 2 elements revealed that using
24274 realloc on GNU/Linux would cause a random trap in xmalloc
24275 later on, so I rewrote the code to use malloc/bcopy/free instead
24276 of realloc.
24277
24278 2002-05-10 Jason Rumney <jasonr@gnu.org>
24279
24280 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
24281
24282 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
24283
24284 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
24285 parens, to ensure correct evaluation order.
24286
24287 2002-05-10 Kim F. Storm <storm@cua.dk>
24288
24289 * keymap.c (Vemulation_mode_map_alists): New variable.
24290 (syms_of_keymap): DEFVAR_LISP it.
24291 (current_minor_maps): Process keymap alists in that list before
24292 minor-mode-overriding-map-alist and minor-mode-map-alist.
24293
24294 2002-05-09 Richard M. Stallman <rms@gnu.org>
24295
24296 * search.c (Freplace_match): Doc fix.
24297
24298 2002-05-09 Kim F. Storm <storm@cua.dk>
24299
24300 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
24301 Enlarge cursor rectangle drawn around image with non-zero relief.
24302
24303 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
24304 Enlarge cursor rectangle drawn around image with non-zero relief.
24305
24306 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
24307 Enlarge cursor rectangle drawn around image with non-zero relief.
24308
24309 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
24310
24311 * xselect.c (lisp_data_to_selection_data): Don't set selection
24312 type if comes from the Lisp object's car. If the selection
24313 contains a pure ASCII text, always return QSTRING as its type.
24314
24315 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24316
24317 * mac.c (mac-cut-function): Doc fix.
24318
24319 2002-05-05 Richard M. Stallman <rms@gnu.org>
24320
24321 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
24322
24323 2002-05-04 Jason Rumney <jasonr@gnu.org>
24324
24325 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
24326 for event-click-count.
24327
24328 * process.c (init_process): Only add server subfeature if we can
24329 use non-blocking I/O.
24330
24331 2002-05-04 Andrew Choi <akochoi@shaw.ca>
24332
24333 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
24334 repeatedly.
24335
24336 2002-05-03 Jason Rumney <jasonr@gnu.org>
24337
24338 * process.c (Fmake_network_process): Only support server sockets
24339 when we can make them non-blocking.
24340
24341 * s/ms-w32.h (HAVE_SELECT): Define.
24342
24343 * w32.h (FILE_NDELAY): New flag.
24344
24345 * w32.c (sys_getpeername, fcntl): New functions.
24346 (_sys_read_ahead): Temporarily block on non-blocking sockets.
24347
24348 * w32proc.c: Include sys/file.h.
24349
24350 2002-05-03 Colin Walters <walters@verbum.org>
24351
24352 * callproc.c (Vgame_score_directory): Renamed to
24353 Vshared_game_score_directory.
24354
24355 2002-04-30 Richard M. Stallman <rms@gnu.org>
24356
24357 * s/gnu.h [emacs]: Include stdio.h.
24358 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
24359
24360 * eval.c (do_autoload): Error if called while preparing to dump.
24361
24362 * fns.c (Frequire): Error if need to load while preparing to dump.
24363
24364 2002-04-28 Colin Walters <walters@verbum.org>
24365
24366 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
24367 Default to "~/.emacs.d/games".
24368
24369 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
24370
24371 * lread.c (openp): Change arg exec_only to predicate.
24372 (build_load_history): Use XCAR/XCDR.
24373 (Flocate_file_internal): New fun.
24374 (syms_of_lread): Defsubr it.
24375 (Fload): Update call to openp.
24376
24377 * lisp.h (openp): Update prototype.
24378
24379 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
24380 * w32proc.c (sys_spawnve):
24381 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
24382 * w32.c (check_windows_init_file):
24383 * sound.c (Fplay_sound_internal):
24384 * process.c (Fstart_process):
24385 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
24386 * mac.c (run_mac_command):
24387 * emacs.c (init_cmdargs):
24388 * callproc.c (Fcall_process): Update call to openp.
24389
24390 * textprop.c (remove_properties): Don't use XCAR without CONSP.
24391
24392 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
24393
24394 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24395
24396 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
24397 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
24398
24399 2002-04-28 Richard M. Stallman <rms@gnu.org>
24400
24401 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
24402
24403 * eval.c (Fcommandp): New arg for_call_interactively.
24404 * lisp.h (Fcommandp): Declare new arg.
24405
24406 2002-04-28 Jason Rumney <jasonr@gnu.org>
24407
24408 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
24409
24410 * w32.c (stat, fstat): Use file index information to generate
24411 inodes for directories where available.
24412
24413 2002-04-26 Andrew Choi <akochoi@shaw.ca>
24414
24415 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
24416 [HAVE_CARBON]: Include Mac object files.
24417
24418 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
24419 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
24420 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
24421 MAC_OSX, and MAC_OS instead of macintosh.
24422
24423 * editfns.c [MAC_OS8]: Include stdio.h.
24424
24425 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
24426
24427 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
24428 Apple Monaco.
24429
24430 * process.c (QCfamily, QCfilte): Declare extern.
24431 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
24432 calling select.
24433
24434 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
24435
24436 * tparam.c [MAC_OSX]: Don't define BC and UP.
24437
24438 * config.in [HAVE_CARBON]: Add.
24439
24440 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
24441 Move here from mac/src and mac/inc.
24442
24443 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
24444
24445 2002-04-26 Gerd Moellmann <gerd@gnu.org>
24446
24447 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
24448 Compute phys_cursor_width from the x position returned
24449 by x_draw_glyhs, which is cheaper.
24450 (x_display_and_set_cursor): Compute the buffer-local value
24451 of `cursor-in-non-selected-windows' only when needed.
24452
24453 2002-04-25 Gerd Moellmann <gerd@gnu.org>
24454
24455 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
24456 cursor on a stretch glyph has a width that depends on
24457 x_stretch_cursor_p.
24458
24459 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24460
24461 * abbrev.c (abbrev-start-location): Doc fix.
24462
24463 * indent.c (Fvertical_motion): Fix last change.
24464
24465 2002-04-25 Gerd Moellmann <gerd@gnu.org>
24466
24467 * indent.c (Fvertical_motion): Move to the start of the line
24468 containing PT before moving up or down.
24469
24470 2002-04-24 Gerd Moellmann <gerd@gnu.org>
24471
24472 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
24473 case of writing a whole row, more or less analogous to the case of
24474 writing only parts of a row.
24475
24476 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
24477 0 for NO_CURSOR.
24478
24479 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
24480
24481 2002-04-23 Colin Walters <walters@verbum.org>
24482
24483 * buffer.c (syms_of_buffer): Doc fix.
24484
24485 2002-04-23 Gerd Moellmann <gerd@gnu.org>
24486
24487 * xterm.c (notice_overwritten_cursor): Handle the special case
24488 of the cursor being in the first blank non-text line at the
24489 end of a window.
24490
24491 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
24492 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
24493 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
24494 bar cursors only, to make phys_cursor_width contain what its name
24495 suggests.
24496 (notice_overwritten_cursor): Consider the cursor image erased if
24497 the output area intersects the cursor image in y-direction.
24498
24499 2002-04-23 Simon Marshall <simon@gnu.org>
24500
24501 * xfns.c (x_set_mouse_color): Change default for cross_cursor
24502 to XC_hand2.
24503
24504 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24505
24506 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
24507
24508 2002-04-22 Kim F. Storm <storm@cua.dk>
24509
24510 * textprop.c (remove_properties): Fixed trap for malformed plist.
24511
24512 2002-04-22 Richard M. Stallman <rms@gnu.org>
24513
24514 * cmds.c (Fend_of_line): Handle intangible text in mid line.
24515
24516 * window.c (make_window): Initialize height_fixed_p,
24517 last_cursor_off_p, and p->cursor_off_p slots.
24518
24519 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24520
24521 * fns.c (use-dialog-box): Doc fix.
24522
24523 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24524
24525 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
24526 variables `row', `i' and `area'.
24527 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
24528 toolkit library.
24529
24530 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
24531
24532 * xfaces.c (clear_font_table): Don't free the default font of
24533 a frame even if it's on another display.
24534 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
24535 that could be Qt.
24536
24537 2002-04-19 Juanma Barranquero <lektu@terra.es>
24538
24539 * indent.c (Fmove_to_column): Remove unused local variable
24540 `next_boundary_byte'.
24541 (current_column_1): Likewise.
24542
24543 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
24544
24545 * msdos.c (Qhbar): New variable.
24546 (syms_of_msdos): Intern and staticpro it.
24547 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
24548 cursor type.
24549
24550 2002-04-19 Dave Lambert <dlambert@acm.org>
24551
24552 Theses change implement an underscore-like (`hbar') cursor.
24553
24554 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
24555
24556 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
24557 Handle the `hbar' cursor type.
24558 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
24559
24560 * xfns.c (Qhbar): New variable.
24561 (syms_of_xfns): Intern and staticpro it.
24562 (x_specified_cursor_type): Handle `hbar' cursor.
24563
24564 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
24565 not defined.
24566
24567 2002-04-18 Richard M. Stallman <rms@gnu.org>
24568
24569 * textprop.c (remove_properties): New arg LIST allows scanning
24570 either a list or a plist.
24571 (interval_has_some_properties_list): New function, like
24572 interval_has_some_properties using list instead of plist.
24573 All callers changed.
24574 (Fremove_list_of_text_properties): New function.
24575 (syms_of_textprop): Defsubr it.
24576
24577 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
24578
24579 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
24580
24581 2002-04-17 Juanma Barranquero <lektu@terra.es>
24582
24583 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
24584
24585 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
24586
24587 * window.c (coordinates_in_window): Don't report on margin area
24588 if its width is zero.
24589
24590 2002-04-16 Jason Rumney <jasonr@gnu.org>
24591
24592 * w32fns.c (Fx_file_dialog): Decode file name before using.
24593
24594 * w32term.c (construct_drag_n_drop): Likewise.
24595
24596 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
24597
24598 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
24599 store load-history in pure space.
24600
24601 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
24602
24603 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
24604
24605 * xterm.c (Qlatin_1, Qutf_8): New vars.
24606 (syms_of_xterm): Initialize them.
24607 (XTread_socket): Eliminate incorrect optimization that tried to avoid
24608 decoding the output of X*LookupString.
24609 Always use latin-1 to decode the output of XLookupString.
24610 Try Xutf8LookupString if XmbLookupString failed.
24611
24612 * region-cache.c (new_region_cache): Use BEG.
24613
24614 2002-04-16 Gerd Moellmann <gerd@gnu.org>
24615
24616 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
24617 configuration files.
24618 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
24619 returns 0.
24620
24621 2002-04-15 Andreas Schwab <schwab@suse.de>
24622
24623 * config.in: Regenerated using autoheader.
24624
24625 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
24626 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
24627 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
24628 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
24629 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
24630 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
24631 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
24632 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
24633 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
24634 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
24635 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
24636 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
24637 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
24638 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
24639 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
24640 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
24641 STACK_DIRECTION, now set by autoconf.
24642
24643 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24644
24645 * dispnew.c (marginal_area_string): Sort arguments.
24646
24647 * dispextern.h (marginal_area_string): Add prototype.
24648
24649 2002-04-13 Richard M. Stallman <rms@gnu.org>
24650
24651 * fileio.c (Finsert_file_contents):
24652 Don't call temp_output_buffer_setup--do just part, by hand.
24653
24654 * coding.c (run_pre_post_conversion_on_str):
24655 Don't call temp_output_buffer_setup--do just part, by hand.
24656
24657 * keyboard.c (command_loop_1): Don't call start_hourglass
24658 or cancel_hourglass when executing a macro.
24659
24660 * marker.c (count_markers): New function.
24661
24662 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
24663 grow without limit. Move recently used elements to the front.
24664
24665 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
24666
24667 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
24668
24669 2002-04-12 Gerd Moellmann <gerd@gnu.org>
24670
24671 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
24672 rows marginal areas.
24673 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
24674 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
24675
24676 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
24677
24678 2002-04-12 Dave Love <fx@gnu.org>
24679
24680 * dispnew.c (marginal_area_string): New.
24681
24682 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
24683 (Qleft_margin, Qright_margin): Declare.
24684 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
24685
24686 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
24687 note_mode_line_highlight and extended.
24688
24689 * keyboard.c (Qleft_margin, Qright_margin): Declare.
24690 (make_lispy_event): Deal with mouse events in margins.
24691
24692 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
24693
24694 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
24695
24696 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
24697 than deactivating the mark if tmm is set to `lambda'.
24698 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
24699 Use a single event for HELP_EVENT.
24700 (Fexecute_extended_command): Save last_point_position.
24701
24702 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24703
24704 * lisp.h (Fpropertize): Add prototype.
24705
24706 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
24707
24708 2002-04-10 Colin Walters <walters@verbum.org>
24709
24710 * config.in: Add HAVE_SHARED_GAME_DIR.
24711
24712 * callproc.c (Vgame_score_directory): New variable.
24713 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
24714
24715 2002-04-10 Richard M. Stallman <rms@gnu.org>
24716
24717 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
24718
24719 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
24720
24721 * minibuf.c (read_minibuf): Use empty_string.
24722 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
24723 Short-circuit the search as soon as it "failed".
24724 (Fall_completions): Allow lambda forms and lists of strings for alist.
24725 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
24726 when require_match is nil.
24727 (Ftest_completion): Rename from `test_completion' and export to elisp.
24728 Call the predicate also when alist is a list.
24729 Obey Vcompletion_regexp_list.
24730 (do_completion, Fminibuffer_complete_and_exit): Use it.
24731 (Fassoc_string): Rename from `assoc_for_completion'.
24732 Allow list of strings as well and export to elisp.
24733
24734 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
24735
24736 * puresize.h (BASE_PURESIZE): Increase to 900KB.
24737
24738 2002-04-08 Juanma Barranquero <lektu@terra.es>
24739
24740 * w32.c (sys_accept): Don't hide variable `s'.
24741
24742 2002-04-05 Gerd Moellmann <gerd@gnu.org>
24743
24744 * callint.c (Fcall_interactively): Use INTEGERP instead of
24745 NUMBERP for checking Vhistory_length.
24746
24747 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24748
24749 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
24750 Doc fix to reflect it.
24751
24752 2002-04-04 Richard M. Stallman <rms@gnu.org>
24753
24754 * xdisp.c (display_mode_element): New arg RISKY.
24755 Disregard text props found or specified within a variable
24756 that isn't marked risky-local-variable.
24757 (Qrisky_local_variable): New variable.
24758 (syms_of_xdisp): Init and staticpro it.
24759
24760 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
24761
24762 * undo.c (record_point): New fun.
24763 (record_delete, record_insert): Use it.
24764
24765 2002-04-03 Juanma Barranquero <lektu@terra.es>
24766
24767 * doc.c (Fdocumentation): Add missing parentheses.
24768 (Fdocumentation_property): Likewise.
24769
24770 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
24771
24772 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
24773 data is 0, just return nil.
24774
24775 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
24776
24777 * msdos.c (syms_of_msdos): Fix last change with
24778 mouse_autoselect_window.
24779
24780 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24781
24782 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
24783 mouse_autoselect_window.
24784
24785 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
24786
24787 * keyboard.c (make_lispy_event): Handle unknown keysyms together
24788 with system-specific keysyms. Use it also for unknown function keys.
24789
24790 * doc.c (reread_doc_file): Return whether reload was attempted.
24791 (Fdocumentation, Fdocumentation_property): Don't try to reload
24792 if the doc is 0 and only ask once.
24793
24794 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
24795
24796 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
24797
24798 * keyboard.c (read_char): If the event was Qselect_window,
24799 restore timer_idleness_start_time to its previous value.
24800
24801 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
24802
24803 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
24804
24805 * region-cache.c (new_region_cache): Use BEG.
24806
24807 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
24808 Use BEG and BEG_BYTE.
24809
24810 * doc.c (get_doc_string): Return nil if the location is wrong.
24811 (reread_doc_file): New fun.
24812 (Fdocumentation, Fdocumentation_property):
24813 Call it if get_doc_string fails.
24814 (Fsnarf_documentation): Make it work for a dumped Emacs.
24815
24816 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
24817 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
24818
24819 * charset.c (Fstring): Allow 0 arguments.
24820
24821 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
24822
24823 * process.c (DATAGRAM_CONN_P, list_processes_1)
24824 (Fprocess_datagram_address, Fset_process_datagram_address)
24825 (Fset_network_process_options, server_accept_connection):
24826 Fix some int/Lisp_Object confusions (thank you union types).
24827
24828 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24829
24830 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
24831
24832 * w32term.c: Likewise.
24833 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
24834
24835 * keyboard.c (Qselect_window): New symbol.
24836 (head_table): Use it.
24837 (keys_of_keyboard): Bound select-window event to handle-select-window.
24838 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
24839
24840 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
24841 (last_window): New variable.
24842 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
24843 (note_mouse_movement): Remove reimplemented code in #if 0.
24844 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
24845 Emacs windows.
24846
24847 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
24848
24849 2002-03-31 Gerd Moellmann <gerd@gnu.org>
24850
24851 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
24852 Callers changed.
24853
24854 2002-03-30 Richard M. Stallman <rms@gnu.org>
24855
24856 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
24857 loop whenever it stops making progress.
24858
24859 * widget.c (set_frame_size): Don't call change_frame_size.
24860
24861 2002-03-30 Gerd Moellmann <gerd@gnu.org>
24862
24863 * dispnew.c (direct_output_for_insert):
24864 Call mark_window_display_accurate.
24865
24866 2002-03-29 Jason Rumney <jasonr@gnu.org>
24867
24868 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
24869
24870 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
24871
24872 * Makefile.in (lread.o): Depend on coding.h.
24873
24874 * lread.c (openp, Fload): Encode the file name before passing it
24875 to `stat', `access', and `emacs_open'.
24876 (openp): GCPRO the encoded file name. Don't recompute Lisp
24877 strings unnecessarily.
24878
24879 2002-03-29 Kim F. Storm <storm@cua.dk>
24880
24881 * fns.c (Flax_plist_put): Doc fix.
24882
24883 2002-03-28 Miles Bader <miles@gnu.org>
24884
24885 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
24886
24887 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24888
24889 * process.c (set-network-process-options): Add usage.
24890 (make-network-process): Doc fix.
24891
24892 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
24893
24894 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
24895
24896 2002-03-26 Richard M. Stallman <rms@gnu.org>
24897
24898 * fns.c (Fsubstring_no_properties): New function.
24899 (Flax_plist_get, Flax_plist_put): New functions.
24900 (syms_of_fns): defsubr them.
24901
24902 * xdisp.c (update_menu_bar): Test only update_mode_lines;
24903 don't test or alter w->update_mode_line.
24904
24905 * window.c (Fdisplay_buffer): Doc fix.
24906
24907 2002-03-24 Richard M. Stallman <rms@gnu.org>
24908
24909 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
24910
24911 2002-03-24 Gerd Moellmann <gerd@gnu.org>
24912
24913 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
24914 (Fdefmacro): Handle `(declare ...)'.
24915 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
24916 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
24917
24918 2002-03-24 Jason Rumney <jasonr@gnu.org>
24919
24920 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
24921 (xbm_file_p): Add prototypes.
24922 (xbm_format, xbm_image_p): Sync with xfns.c.
24923 (reflect_byte): New function.
24924 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
24925 (xbm_load_image): Create bitmaps with a depth of 1.
24926 (init_xfns): Enable XBM images.
24927
24928 2002-03-23 Jason Rumney <jasonr@gnu.org>
24929
24930 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
24931 correctly. Do not pass up_modifier to keyboard buffer.
24932
24933 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
24934
24935 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
24936
24937 * Makefile.in (bootstrapclean): New target.
24938 (bootstrap-temacs, bootstrap-doc): Remove.
24939 (bootstrap-emacs): Use a bog-standard `temacs'.
24940 Don't bother to build a DOC file.
24941
24942 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
24943
24944 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
24945 in temacs even if !CANNOT_DUMP.
24946 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
24947
24948 * alloc.c (check_pure_size): Only output a warning.
24949
24950 2002-03-22 Jason Rumney <jasonr@gnu.org>
24951
24952 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
24953 supported.
24954
24955 * w32term.c (zv_bits): Declare as short, for word alignment.
24956 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
24957 (syms_of_w32term): Define x-use-underline-position-properties.
24958
24959 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
24960 (clear_image_cache): Block input, fix logic, clear matrices in
24961 all frames that share this cache.
24962
24963 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
24964
24965 * emacs.c (main): Update the Copyright year in the blurb printed
24966 by "emacs --version".
24967
24968 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
24969
24970 * xterm.c (XTread_socket): If XK_ISO_Lock and
24971 XK_ISO_Last_Group_Lock are defined, handle keysyms between
24972 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
24973
24974 2002-03-21 Kim F. Storm <storm@cua.dk>
24975
24976 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
24977 menu-bar bindings in keymap and local-map properties _are_ used.
24978 But try keymap property first in accordance with 2002-01-03 patch.
24979 Added comment describing why this is not always reliable.
24980 (tool_bar_items): Ditto for tool-bar.
24981
24982 2002-03-21 Jason Rumney <jasonr@gnu.org>
24983
24984 * w32fns.c (x_clear_image_1): Disable color table code.
24985
24986 2002-03-21 Kim F. Storm <storm@cua.dk>
24987
24988 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
24989 removed the wrong version of the DEFUN macro; fixed it.
24990
24991 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
24992 Fmember rather than Fmemq).
24993 (Fprovide): Check that subfeatures is a list.
24994
24995 * process.c (QCfeature, QCdatagram): Removed variables.
24996 (QCtype, Qdatagram): New variables.
24997 (network_process_featurep): Removed function.
24998 (Fmake_network_process): Removed :feature check.
24999 Use :type 'datagram instead of :datagram t to create a datagram
25000 socket. This allows us to add other connection types (e.g. raw
25001 sockets) later in a consistent manner.
25002 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
25003 supported subfeatures for feature make-network-process.
25004 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
25005 Intern and staticpro QCtype and Qdatagram.
25006 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
25007
25008 * xfns.c (QCtype): Remove duplicate declaration and
25009 initialization (is now declared in process.c).
25010
25011 * w32fns.c (QCtype): Remove duplicate declaration and
25012 initialization (is now declared in process.c).
25013
25014 2002-03-21 Richard M. Stallman <rms@gnu.org>
25015
25016 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
25017 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
25018 when jumping to `fail' to avoid undoing reg changes in the
25019 last iteration of the loop.
25020 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
25021
25022 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
25023 Depend on process.h.
25024
25025 2002-03-20 Jason Rumney <jasonr@gnu.org>
25026
25027 Most of the following changes are still conditional on HAVE_IMAGES
25028 which is not set by default on Windows.
25029
25030 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
25031
25032 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
25033 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
25034 (four_corners_best, x_clear_image_1, x_clear_image)
25035 (x_alloc_image_color, postprocess_image)
25036 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
25037 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
25038 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
25039
25040 * w32gui.h (struct XImage): Define.
25041
25042 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
25043 extract mouse co-ordinates.
25044
25045 2002-03-20 Jason Rumney <jasonr@gnu.org>
25046
25047 * w32.c (init_winsock): Dynamically load new server and UDP
25048 socket functions.
25049 (socket_to_fd): New function.
25050 (sys_socket): Use it.
25051 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
25052 (sys_recvfrom, sys_sendto): New wrapper functions.
25053
25054 * process.c (QCfamily, QCfilter): Remove duplicate declaration
25055 and initialization.
25056
25057 * makefile.w32-in (LIBS): Remove $(WSOCK32).
25058
25059 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
25060
25061 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
25062 Don't use "sun" as a variable, it's a predefined constant on Sun
25063 machines.
25064
25065 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25066
25067 * bytecode.c (Fbyte_code): Revert last change.
25068
25069 2002-03-19 Kim F. Storm <storm@cua.dk>
25070
25071 * makefile.w32-in (LIBS): Add $(WSOCK32).
25072 From David Ponce <dponce@voila.fr>.
25073
25074 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25075
25076 * process.c (wait_reading_process_input): Move variables `pname'
25077 and `pnamelen' down where they are used.
25078
25079 * bytecode.c (Fbyte_code): Discard unused computed value to
25080 prevent gcc warning.
25081
25082 * lisp.h (Fplist_member): Add prototype.
25083
25084 2002-03-18 Kim F. Storm <storm@cua.dk>
25085
25086 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
25087 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
25088
25089 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
25090 Remove explicit GNU_LINUX settings for datagram support.
25091
25092 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25093
25094 * process.c (Fmake_network_process): Remove unused variable `sa'.
25095 Doc fix. Add usage:.
25096 (set_socket_options): Remove unused variables `optnum' and `opttype'.
25097
25098 2002-03-17 Richard M. Stallman <rms@gnu.org>
25099
25100 * xdisp.c (cursor_type_changed): New variable.
25101 (redisplay_internal): Redisplay all windows if cursor_type_changed.
25102 Clear it when clearing windows_or_buffers_changed.
25103 (try_cursor_movement, redisplay_window, try_window_id)
25104 (try_window_reusing_current_matrix): Test cursor_type_changed
25105 along with windows_or_buffers_changed.
25106
25107 * window.h (cursor_type_changed): New variable.
25108
25109 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
25110 not update_mode_lines, and always set it to 1.
25111
25112 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
25113 if no frames needed redrawing.
25114
25115 2002-03-17 Kim F. Storm <storm@cua.dk>
25116
25117 The following changes add support for network server processes,
25118 datagram connections, and local (unix) sockets.
25119
25120 * process.h (struct Lisp_Process): New member log.
25121 Doc fix: Member command used to indicate stopped network process.
25122 Doc fix: Member childp contains plist for network process.
25123 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
25124
25125 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
25126 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
25127 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
25128 variables.
25129 (NETCONN1_P): New macro.
25130 (DATAGRAM_SOCKETS): New conditional symbol.
25131 (datagram_address): New array.
25132 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
25133 (status_message): Use concat3.
25134 (Fprocess_status): Add `listen' status to doc string. Return
25135 `stop' for a stopped network process.
25136 (Fset_process_buffer): Update contact plist for network process.
25137 (Fset_process_filter): Ditto. Don't enable input for stopped
25138 network processes. Server must listen, even if filter is t.
25139 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
25140 New functions.
25141 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
25142 (Fprocess_contact): Added KEY argument. Handle datagrams.
25143 (list_processes_1): Optionally show only processes with the query
25144 on exit flag set. Dynamically adjust column widths. Omit tty
25145 column if not needed. Report stopped network processes. Identify
25146 server and datagram network processes.
25147 (Flist_processes): New optional arg `query-only'.
25148 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
25149 (conv_lisp_to_sockaddr, set_socket_options)
25150 (network_process_featurep, unwind_request_sigio): New helper
25151 functions.
25152 (Fprocess_datagram_address, Fset_process_datagram_address):
25153 (Fset_network_process_options): New lisp functions.
25154 (Fopen_network_stream): Removed. Now defined in simple.el.
25155 (Fmake_network_process): New lisp function. Code is based on
25156 previous Fopen_network_stream, but heavily reworked with new
25157 property list based argument list, support for datagrams, server
25158 processes, and local sockets in addition to old client-only
25159 functionality.
25160 (server_accept_connection): New function.
25161 (wait_reading_process_input): Use it to handle incoming connects.
25162 Do not enable input on a new connection if process is stopped.
25163 (read_process_output): Handle datagram sockets. Use 2k buffer for
25164 them.
25165 (send_process): Handle datagram sockets.
25166 (Fstop_process, Fcontinue_process): Apply to network processes. A
25167 stopped network process is indicated by setting command field to t.
25168 (Fprocess_send_eof): No-op if datagram connection.
25169 (Fstatus_notify): Don't read input for a stream server socket or a
25170 stopped network process.
25171 (init_process): Initialize datagram_address array.
25172 (syms_of_process): Intern and staticpro new variables, defsubr new
25173 functions.
25174
25175 2002-03-16 Jason Rumney <jasonr@gnu.org>
25176
25177 * w32fns.c (w32_to_all_x_charsets): Return correct type in
25178 startup case.
25179
25180 2002-03-16 Richard M. Stallman <rms@gnu.org>
25181
25182 * xdisp.c (redisplay_internal, redisplay_windows):
25183 Use list_of_error to call internal_condition_case_1.
25184 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
25185 so as to catch all errors with no possibility of debugger redisplay.
25186 (list_of_error): New variable.
25187 (syms_of_xdisp): Init and staticpro it.
25188
25189 * print.c (print_object): Delete `\ ' from printed rep of frame.
25190
25191 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
25192
25193 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
25194 until its implementation is fixed.
25195
25196 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25197
25198 * xfns.c (png_load): Remove unused variable `gamma_str'.
25199
25200 2002-03-14 Richard M. Stallman <rms@gnu.org>
25201
25202 * xfns.c (x_real_positions): Handle failure in XQueryTree.
25203
25204 2002-03-14 Miles Bader <miles@gnu.org>
25205
25206 * intervals.c (adjust_for_invis_intang): New function.
25207 (set_point_both): Use `adjust_for_invis_intang' to do most of the
25208 work for dealing with invisible+intangible regions. Do so before
25209 and after both forward and backward movements, to handle both
25210 front-sticky and rear-sticky cases.
25211 * textprop.c (text_property_stickiness): Function moved here from
25212 `editfns.c'.
25213 * intervals.h (text_property_stickiness): New declaration.
25214 * editfns.c (char_property_eq): Function removed.
25215 (text_property_stickiness): Function moved to `textprop.c'.
25216
25217 2002-03-13 Jason Rumney <jasonr@gnu.org>
25218
25219 * config.in: Add STRFTIME_NO_POSIX2.
25220
25221 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
25222 and %OX when underlying strftime does not.
25223
25224 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
25225
25226 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
25227 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
25228 line) to avoid annoying flicker.
25229 (xm_scroll_callback): Get rid of the now unnecessary kludge.
25230 (XTread_socket): Mark it static.
25231
25232 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
25233
25234 2002-03-13 Kim F. Storm <storm@cua.dk>
25235
25236 * puresize.h (BASE_PURESIZE): Increase to 775000.
25237
25238 2002-03-12 Juanma Barranquero <lektu@terra.es>
25239
25240 * editfns.c (syms_of_editfns): Fix typo.
25241
25242 2002-03-12 Gerd Moellmann <gerd@gnu.org>
25243
25244 * xsmfns.c: Include stdio.h because termhooks.h needs it.
25245 Include termopt.h for interrupt_input.
25246
25247 2002-03-11 Andreas Schwab <schwab@suse.de>
25248
25249 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
25250
25251 2002-03-11 Gerd Moellmann <gerd@gnu.org>
25252
25253 * xterm.c (note_mouse_movement): Put code for
25254 x_autoselect_window_p in #if 0.
25255
25256 * lread.c (Fload): Don't assume that message_with_string uses the
25257 string it is given like a C string.
25258
25259 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
25260
25261 * xterm.h (x_session_check_input, x_session_initialize): Declare.
25262
25263 * xterm.c (XTread_socket): Add call to x_session_check_input and
25264 x_session_have_connection.
25265 (x_initialize): Add call to x_session_initialize.
25266
25267 * termhooks.h (enum event_kind): Add save_session_event.
25268
25269 * keyboard.c: Add Emacs event save_session_event.
25270
25271 * emacs.c (main): Add call to syms_of_xsmfns.
25272
25273 * lisp.h (syms_of_xsmfns): Declare extern.
25274
25275 * config.in: Add HAVE_X_SM.
25276
25277 * Makefile.in (LIBXT): Add -lSM -lICE
25278 if HAVE_X_SM and not USE_X_TOOLKIT.
25279 (XOBJ): New file xsmfns.c added.
25280
25281 * xsmfns.c: New file for X session management.
25282
25283 2002-03-09 Jason Rumney <jasonr@gnu.org>
25284
25285 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
25286 read-only when setting modified time.
25287
25288 2002-03-08 Gerd Moellmann <gerd@gnu.org>
25289
25290 * xdisp.c (move_it_vertically_backward): At the end of the function,
25291 when moving forward by lines, treat terminal frames specially.
25292
25293 * keyboard.c (echo_char): Make sure to add a separator between
25294 keys even if echo_dash hasn't been called.
25295
25296 * xdisp.c: Use new string macros.
25297 (update_echo_area): Pass number of bytes to message3 instead of
25298 number of chars.
25299 (set_message_1): Don't access a string's size_byte directly.
25300 (decode_mode_spec_coding): Use number of bytes of eoltype string
25301 instead number of chars.
25302
25303 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
25304
25305 2002-03-08 Juanma Barranquero <lektu@terra.es>
25306
25307 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
25308 24-bit.
25309
25310 2002-03-06 Jason Rumney <jasonr@gnu.org>
25311
25312 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
25313
25314 2002-03-06 Gerd Moellmann <gerd@gnu.org>
25315
25316 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
25317 (cancel_echoing, echo_length, echo_truncate): Changed to
25318 work with new kboard definition.
25319 (echo_now): Use message3_nolog instead of message2_nolog.
25320
25321 * alloc.c (mark_kboards): Mark echo_string.
25322
25323 * keyboard.h (ECHOBUFSIZE): Removed.
25324 (struct kboard): Member echoptr removed, member echobuf renamed
25325 to echo_string.
25326
25327 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
25328 message3 instead of message2 to display the message using STRING's
25329 text properties.
25330
25331 2002-03-05 Andreas Schwab <schwab@suse.de>
25332
25333 * xdisp.c (hscroll_margin): Change to EMACS_INT.
25334
25335 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
25336
25337 * frame.c (default-frame-alist): Explain that setting it doesn't
25338 affect existing frames.
25339
25340 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
25341
25342 * indent.c (skip_invisible): Fix my brain fart.
25343
25344 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
25345
25346 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
25347
25348 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
25349 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
25350 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
25351 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
25352 and variables to use EMACS_INT instead of just int.
25353
25354 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
25355
25356 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
25357
25358 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
25359 environment, pass it down with corrected value.
25360
25361 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25362
25363 * lread.c (read_filtered_event): Do not call start_hourglass
25364 before returning.
25365
25366 2002-03-04 Juanma Barranquero <lektu@terra.es>
25367
25368 * w32term.c (x_display_and_set_cursor): Fix typo.
25369
25370 2002-03-03 Richard M. Stallman <rms@gnu.org>
25371
25372 * fileio.c (Fmake_temp_name): Doc fix.
25373
25374 2002-03-03 Gary Wong <gtw@gnu.org>
25375
25376 * termcap.c [!emacs]: Replace ospeed for building standalone
25377 libtermcap, for binary compatibility.
25378
25379 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
25380
25381 2002-03-03 Richard M. Stallman <rms@gnu.org>
25382
25383 * xrdb.c (file_p): Rename arg `path' to `filename'.
25384
25385 * abbrev.c (Fexpand_abbrev): Increment plist as use count
25386 only if it is an integer.
25387
25388 * xfns.c (png_load): Set screen_gamma based on f->gamma.
25389 If png_get_sRGB gives an answer, call png_set_gamma
25390 using the default image gamma value.
25391
25392 * lread.c (read1): When reading from a file, default string to
25393 multibyte only if it has some multibyte characters.
25394
25395 * print.c (print_object): Output multibyte chars 128...255
25396 using \x even if ! print_escape_multibyte.
25397
25398 * xdisp.c (display_mode_element): Move the places where
25399 bytepos, charpos, this, and lisp_string are set.
25400 Use lisp_string to set bytepos.
25401
25402 * xdisp.c (redisplay_internal):
25403 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
25404
25405 * xdisp.c (display_mode_element): Merge properties specified with
25406 :propertize onto those that come with the string.
25407
25408 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
25409
25410 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
25411 automatic-hscrolling. Users changed.
25412 <hscroll-margin>: Renamed from automatic-hscroll-margin.
25413 Users changed.
25414 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
25415
25416 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
25417
25418 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
25419
25420 2002-03-02 Kim F. Storm <storm@cua.dk>
25421
25422 * window.c (Fminibuffer_selected_window): New function.
25423 (syms_of_window): Defsubr it.
25424
25425 2002-03-01 Kim F. Storm <storm@cua.dk>
25426
25427 * window.h (struct window): New member phys_cursor_width.
25428
25429 * window.c (make_window, replace_window): Init phys_cursor_width.
25430
25431 * xterm.c (x_display_and_set_cursor): Blink box cursor using
25432 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
25433
25434 * w32term.c (x_display_and_set_cursor): Blink box cursor using
25435 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
25436
25437 * lisp.h (GCPRO6): New macro.
25438
25439 * process.c (Fopen_network_stream): Use GCPRO6.
25440
25441 2002-03-01 Kim F. Storm <storm@cua.dk>
25442
25443 * process.c (Qconnect, Qfailed): New variables.
25444 (syms_of_process): Intern and staticpro them.
25445 (Fprocess_status): Document connect and failed return values.
25446 [NON_BLOCKING_CONNECT]: New conditional.
25447 (connect_wait_mask, num_pending_connects): New variables.
25448 (status_message): Convert Qfailed status.
25449 (Fopen_network_stream): Added support for non-blocking connect.
25450 New optional args: filter, sentinel, non_blocking. Doc updated.
25451 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
25452 (deactivate_process): Handle pending non-blocking connect.
25453 (wait_reading_process_input): Poll for status of non-blocking
25454 connects. Exec sentinel directly when connect succeeds.
25455 (status_notify): Don't read process output if not yet connected.
25456
25457 2002-02-28 Kim F. Storm <storm@cua.dk>
25458
25459 * window.c (minibuf_selected_window): Renamed from
25460 Vminibuf_selected_window. Users changed.
25461 (syms_of_window): Staticpro it.
25462
25463 2002-02-26 Kim F. Storm <storm@cua.dk>
25464
25465 The following changes add a new Vminibuf_selected_window variable
25466 which is similar to Vminibuf_scroll_window, but which is only set
25467 on entry to the minibuffer (from a non-minibuffer window):
25468
25469 * window.c (Vminibuf_selected_window): New variable.
25470 (struct save_window_data): New member minibuf_selected_window.
25471 (Fset_window_configuration): Restore Vminibuf_selected_window.
25472 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
25473 Set minibuf_scroll_window member to nil if minibuf_level is 0.
25474 (compare_window_configurations): Compare minibuf_selected_window.
25475
25476 * window.h (Vminibuf_selected_window): Declare extern.
25477
25478 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
25479 entry to minibuffer or on entry from a non-minibuffer window.
25480
25481 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
25482 Vminibuf_selected_window instead of Vminibuf_scroll_window.
25483
25484 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
25485 instead of Vminibuf_scroll_window when deciding in which window
25486 the region should be highlighted. Consequently, the region remains
25487 highlighteded even when a completion buffer is also displayed.
25488
25489 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
25490
25491 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
25492
25493 * xselect.c (Qcompound_text_with_extensions): Renamed from
25494 Qcompound_text_no_extensions.
25495 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
25496
25497 2002-02-26 Juanma Barranquero <lektu@terra.es>
25498
25499 * w32proc.c (syms_of_ntproc): Doc fix.
25500
25501 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25502
25503 * intervals.h: Include "dispextern.h" unconditionally.
25504
25505 2002-02-24 Jason Rumney <jasonr@gnu.org>
25506
25507 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
25508 and disp-table.elc.
25509 (lisp): Add emacs-lisp/backquote.elc.
25510
25511 2002-02-24 Kim F. Storm <storm@cua.dk>
25512
25513 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
25514 The validation of the event type was too strict as it didn't
25515 allow string events; buffer names are used in bindings for
25516 menu-bar-select-buffer (see `menu-bar-update-buffers').
25517
25518 2002-02-23 Kim F. Storm <storm@cua.dk>
25519
25520 The following changes rework my patch of 2002-02-06 which
25521 added command remapping by entering the commands directly into
25522 the keymaps. Now, command remapping uses an explicit `remap'
25523 prefix in the keymaps, i.e. [remap COMMAND].
25524
25525 * keymap.c (Qremap, remap_command_vector): New variables.
25526 (is_command_symbol): Remove function.
25527 (Fdefine_key): No longer accept a symbol for KEY.
25528 Added validation of [remap COMMAND] argument for KEY.
25529 The DEF is no longer required to be a symbol when remapping a command.
25530 (Fremap_command): New function to remap command through keymaps.
25531 (Flookup_key): Perform command remapping initiated by
25532 Fremap_command directly for speed.
25533 (Fkey_binding): Use Fremap_command for command remapping.
25534 (where_is_internal): Handle new command remapping representation.
25535 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
25536 staticpro them. Defsubr Fremap_command.
25537
25538 * keymap.h (Fremap_command): Declare extern.
25539 (is_command_symbol): Remove extern.
25540
25541 * keyboard.c (command_loop_1): Use Fremap_command for command
25542 remapping; now try command remapping for all symbols.
25543
25544 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
25545
25546 * coding.h (run_pre_post_conversion_on_str): Add prototype.
25547
25548 2002-02-23 Jason Rumney <jasonr@gnu.org>
25549
25550 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
25551 on the string before encoding it.
25552 (Fw32_get_clipboard_data): Run post-read-conversion on the string
25553 after decoding it.
25554
25555 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
25556
25557 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25558
25559 * w32term.c (enter_timestamp): Remove unused static variable to
25560 prevent warning.
25561
25562 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
25563
25564 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
25565
25566 * w16select.c (Fw16_get_clipboard_data): Fix last change.
25567
25568 * xselect.c (selection_data_to_lisp_data): Fix last change.
25569
25570 2002-02-22 Jason Rumney <jasonr@gnu.org>
25571
25572 * w32term.h (struct w32_output): New member menu_command_in_progress.
25573
25574 * w32menu.c (menubar_selection_callback): Free the menu and
25575 clear the menu_command_in_progress flag.
25576
25577 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
25578 (menu_free_timer): New variable.
25579 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
25580 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
25581 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
25582 menu command is in progress.
25583 <WM_COMMAND>: Set the menu_command_in_progress flag.
25584 Kill any menu_free_timer that is running.
25585
25586 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
25587 Call ExtTextOutA rather than ExtTextOut.
25588
25589 2002-02-22 Eli Zaretskii <eliz@gnu.org>
25590
25591 * puresize.h (BASE_PURESIZE): Increase to 755000.
25592
25593 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
25594
25595 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
25596 on the string before encoding it.
25597 (Fw16_get_clipboard_data): Run post-read-conversion on the string
25598 after decoding it.
25599
25600 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
25601
25602 Support for ICCCM Extended Segments in X selections:
25603
25604 * xselect.c <Qcompound_text_no_extensions>: New variable.
25605 (syms_of_xselect): Intern and staticpro it.
25606 (selection_data_to_lisp_data): Run post-read-conversion on decoded
25607 selection text.
25608 (lisp_data_to_selection_data): If next-selection-coding-system is
25609 compound-text-no-extensions, set the type of selection to be
25610 compound-text.
25611
25612 * xterm.h (x_encode_text): Update prototype.
25613
25614 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
25615 callers changed. If SELECTIONP is non-zero, run the
25616 pre-write-conversion function before encoding the selection text.
25617
25618 2002-02-21 Kim F. Storm <storm@cua.dk>
25619
25620 * frame.c (syms_of_frame): Change mouse-highlight default to t.
25621
25622 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
25623 Correct composing of language-change event.
25624
25625 2002-02-20 Kim F. Storm <storm@cua.dk>
25626
25627 * keyboard.c (menu_bar_items): Don't include keymap or local-map
25628 bindings at PT when building menu (the menu is not updated often
25629 enough for this to work reliable).
25630 (tool_bar_items): Likewise.
25631 (current_active_maps): Removed unused (and buggy) function.
25632
25633 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25634
25635 * xfns.c (gif_load): Use correct width and height for GIF images.
25636
25637 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
25638
25639 * floatfns.c (Fatan): Accept an optional second arg and call
25640 atan2 if passed 2 args.
25641
25642 2002-02-18 Jason Rumney <jasonr@gnu.org>
25643
25644 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
25645
25646 2002-02-17 Jason Rumney <jasonr@gnu.org>
25647
25648 * w32term.c (x_autoselect_window_p): New variable.
25649 (syms_of_w32term): DEFVAR_BOOL and initialize it.
25650 (note_mouse_movement): Use it.
25651
25652 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
25653
25654 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
25655
25656 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25657 New variables.
25658 (syms_of_w32fns): Intern and staticpro them.
25659 (x_frame_parms) <"fullscreen">: New parameter.
25660 (x_fullscreen_move, x_set_fullscreen): New functions.
25661 (x_set_frame_parameters): Support Qfullscreen.
25662 (x_real_positions): Save x/y_pixels_diff frame params.
25663 (x_figure_window_size): Support full-screen frames.
25664 (Fx_create_frame): Default the fullscreen parameter.
25665
25666 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
25667 (x_fullscreen_adjust): New functions.
25668 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
25669 fullscreen. Call x_check_fullscreen_move, and set the
25670 want_fullscreen member of output_data.w32
25671 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
25672
25673 * w32term.h: New enum for FULLSCREEN_* constants.
25674 (struct w32_output): New members want_fullscreen, x_pixels_diff,
25675 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
25676 (x-fullscreen-adjust): New prototype.
25677
25678 2002-02-17 Kim F. Storm <storm@cua.dk>
25679
25680 * frame.c (Vmouse_highlight): New variable.
25681 (syms_of_frame): DEFVAR_LISP it.
25682
25683 * frame.h (Vmouse_highlight): Declare extern.
25684
25685 * xterm.h (struct x_display_info): Add mouse_face_hidden.
25686
25687 * xterm.c (disable_mouse_highlight): Removed variable.
25688 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
25689 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25690 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
25691 and on after keyboard input.
25692 (x_term_init): Initialize mouse_face_hidden.
25693
25694 * msdos.h (struct display_info): Add mouse_face_hidden.
25695
25696 * msdos.c (disable_mouse_highlight): Removed variable.
25697 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25698 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
25699 (internal_terminal_init): Initialize mouse_face_hidden.
25700 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
25701 and on after keyboard input.
25702
25703 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
25704
25705 * w32term.c (disable_mouse_highlight): Removed variable.
25706 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
25707 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
25708 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
25709 and on after keyboard input.
25710 (w32_initialize_display_info): Initialize mouse_face_hidden.
25711
25712 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
25713
25714 * msdos.c (last_mouse_window): New variable.
25715 (dos_rawgetc): Fix last change--if the mouse is in the same window
25716 as recorded in last_mouse_window, don't select this window.
25717
25718 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
25719
25720 * msdos.c (x_autoselect_window_p): New variable.
25721 (syms_of_msdos): Defvar it.
25722 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
25723 which the last mouse movement occured, unless it is already selected.
25724
25725 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
25726 New variables.
25727 (syms_of_xdisp): DEVFAR them.
25728 (hscroll_window_tree): Use automatic_hscroll_margin and
25729 Vautomatic_hscroll_step to compute the amount of window scrolling.
25730
25731 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25732
25733 * xterm.c (x-autoselect-window): New variable.
25734 (note_mouse_movement): Use it.
25735
25736 * keyboard.c: Do not include "systime.h" twice.
25737
25738 2002-02-15 Andreas Schwab <schwab@suse.de>
25739
25740 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
25741
25742 * alloc.c (NSTATICS): Increase to 1280.
25743
25744 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
25745
25746 * alloc.c (NSTATICS): Bump to 1026.
25747
25748 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
25749 (Vx_super_keysym): New variables.
25750 (syms_of_xterm): DEFVAR_LISP them.
25751 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
25752 variables to determine which keys to use for the various modifiers.
25753
25754 2002-02-13 Kim F. Storm <storm@cua.dk>
25755
25756 * window.c (Vmode_line_in_non_selected_windows): Removed.
25757 (mode_line_in_non_selected_windows): New variable.
25758 (syms_of_window): DEFVAR_BOOL it.
25759
25760 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
25761 Use mode_line_in_non_selected_windows.
25762 (mode_line_in_non_selected_windows): Declare extern.
25763 (Vmode_line_in_non_selected_windows): Removed extern.
25764
25765 2002-02-13 Richard M. Stallman <rms@gnu.org>
25766
25767 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
25768 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
25769 (Fclear_this_command_keys): Doc fixes.
25770
25771 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
25772 (update_face_from_frame_parameter): Increment face_change_count
25773 and windows_or_buffers_changed to force redisplay using changed faces.
25774
25775 * xdisp.c (QCpropertize): New variable.
25776 (mode_line_proptrans_alist): New variable.
25777 (display_mode_element): New arg PROPS; all calls changed.
25778 Implement this, for strings.
25779 Handle literal output of strings by sharing the
25780 main-line code for strings, using local var `literal'.
25781 Handle :propertize feature.
25782 (syms_of_xdisp): Initialze and staticpro QCpropertize and
25783 mode_line_proptrans_alist.
25784
25785 2002-02-11 Kim F. Storm <storm@cua.dk>
25786
25787 * window.c (Vmode_line_in_non_selected_windows): New variable.
25788 (syms_of_window): DEFVAR_LISP it.
25789
25790 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
25791 (CURRENT_MODE_LINE_FACE_ID): Use it.
25792 (Vmode_line_in_non_selected_windows): Declare extern.
25793
25794 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
25795 to get mode line face.
25796
25797 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
25798
25799 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
25800 variables; cus-start.el doesn't need them anymore.
25801
25802 2002-02-09 Kim F. Storm <storm@cua.dk>
25803
25804 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
25805 reduction. This fixes a display problem where stray newlines were
25806 inserted in the window (corrected by C-l). Clarified code (IMHO).
25807
25808 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
25809
25810 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
25811
25812 * xdisp.c (display_mode_lines): Fix last change.
25813
25814 2002-02-09 Jason Rumney <jasonr@gnu.org>
25815
25816 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
25817 match each other.
25818 (w32_load_system_font): Prevent Cleartype fonts from loading.
25819 (Fx_show_tip): Ensure tip frames are above other topmost windows.
25820
25821 2002-02-09 Kim F. Storm <storm@cua.dk>
25822
25823 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
25824 (CURRENT_MODE_LINE_HEIGHT): Use it.
25825 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
25826
25827 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
25828 (pos_visible_p, handle_face_prop): Likewise.
25829 (display_mode_lines): Likewise, but for the real selected window.
25830 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
25831
25832 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
25833 in non-selected windows.
25834 (realize_basic_faces): Realize it.
25835 (syms_of_term): Intern and staticpro it.
25836
25837 2002-02-08 Kim F. Storm <storm@cua.dk>
25838
25839 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
25840 Changed mail addresses to emacs-devel@gnu.org.
25841
25842 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
25843
25844 * fileio.c (Fsubstitute_in_file_name): If the file name includes
25845 ~user, and there's no such user, don't discard everything before ~user.
25846
25847 * floatfns.c (Fround): Doc fix.
25848
25849 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25850
25851 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
25852
25853 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
25854
25855 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
25856
25857 2002-02-07 Kim F. Storm <storm@cua.dk>
25858
25859 * keymap.c (where_is_internal): Only check whether definition is
25860 remapped if it fulfills is_command_symbol.
25861
25862 2002-02-07 Andreas Schwab <schwab@suse.de>
25863
25864 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
25865
25866 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
25867
25868 2002-02-06 Kim F. Storm <storm@cua.dk>
25869
25870 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
25871 defining command remapping. Doc updated.
25872 (Flookup_key): Remap command through keymap if KEY is a symbol.
25873 (is_command_symbol): New function.
25874 (Fkey_binding): Use it. New optional argument NO-REMAP.
25875 Doc updated. Callers changed. Perform command remapping via
25876 recursive call unless that arg is non-nil.
25877 (where_is_internal): New argument no_remap. Callers changed.
25878 Call recursively to find original key bindings for a remapped
25879 comand unless that arg is non-nil.
25880 (Fwhere_is_internal): New optional argument NO-REMAP.
25881 Doc updated. Callers changed. Pass arg to where_is_internal.
25882
25883 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
25884 (is_command_symbol): Add prototype.
25885
25886 * keyboard.c (Vthis_original_command): New variable.
25887 (syms_of_keyboard): DEFVAR_LISP it.
25888 (command_loop_1): Set it, and perform command remapping.
25889
25890 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25891
25892 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
25893
25894 2002-02-06 Jason Rumney <jasonr@gnu.org>
25895
25896 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
25897
25898 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
25899
25900 * charset.c (get_charset_id): Use if-else instead of ?:.
25901
25902 2002-02-06 Richard M. Stallman <rms@gnu.org>
25903
25904 * filelock.c (S_ISLNK): Define if not defined.
25905
25906 2002-02-03 Richard M. Stallman <rms@gnu.org>
25907
25908 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
25909
25910 * lread.c (read1): Redesign strategy for force_multibyte and
25911 force_singlebyte. Now is_multibyte records whether read_buffer
25912 is multibyte. Encountering any multibyte character makes it so.
25913
25914 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
25915
25916 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
25917 with the same sequence, map that sequence to f10 rather than f0.
25918
25919 2002-02-03 Andreas Schwab <schwab@suse.de>
25920
25921 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
25922 latter never being defined on GNU/Linux.
25923
25924 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
25925
25926 * xfaces.c (realize_default_face): Don't set the weight and slant of
25927 the default face to Qnormal, unless these attributes are unspecified.
25928
25929 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25930
25931 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
25932 Call cancel_hourglass unconditionally.
25933
25934 * eval.c (Fsignal): Remove duplicated declaration of
25935 the variable `display_hourglass_p'.
25936
25937 2002-01-31 Richard M. Stallman <rms@gnu.org>
25938
25939 * editfns.c (region_limit): Nicer error message.
25940
25941 * coding.c (decode_composition_emacs_mule):
25942 Give up if NCOMPONENT gets too large to index `component'.
25943
25944 * callint.c (check_mark): New arg to specify clearer error message.
25945 Callers changed.
25946
25947 2002-01-27 Richard M. Stallman <rms@gnu.org>
25948
25949 * minibuf.c (Fcompleting_read): Doc fix.
25950
25951 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25952
25953 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
25954 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
25955 Fix doc-strings.
25956
25957 2002-01-26 Richard M. Stallman <rms@gnu.org>
25958
25959 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
25960
25961 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
25962 and scroll_up_aggressively.
25963
25964 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25965
25966 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
25967
25968 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
25969
25970 * textprop.c (Fnext_property_change, Fnext_single_property_change)
25971 (Fprevious_property_change, Fprevious_single_property_change):
25972 Stay within the narrowed-buffer boundaries.
25973
25974 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
25975
25976 * term.c (Ftty_display_color_cells): New function.
25977 (syms_of_term): Defsubr it.
25978 (Ftty_display_color_cells, Ftty_display_color_p): Change the
25979 argument name to DISPLAY. Doc fix.
25980
25981 * dispextern.h: Add prototype for set_tty_color_mode and
25982 tty_setup_colors.
25983
25984 2002-01-24 Jason Rumney <jasonr@gnu.org>
25985
25986 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
25987 If region left to draw is not what was expected, mark the frame as
25988 garbaged.
25989
25990 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
25991 Combine the regions returned by BeginPaint and GetUpdateRect.
25992
25993 2002-01-23 Jason Rumney <jasonr@gnu.org>
25994
25995 * w32term.c (x_update_window_begin): Only hide caret if
25996 w32_use_visible_system_caret is set.
25997 (x_update_window_end): Only show caret if
25998 w32_use_visible_system_caret is set.
25999 (syms_of_w32term): Handle SystemParametersInfo call failing.
26000
26001 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
26002
26003 2002-01-22 Richard M. Stallman <rms@gnu.org>
26004
26005 * unexelf.c (unexec): Define n so as to cause compilation error
26006 for the code where people have often written n instead of nn.
26007
26008 * .gdbinit (hookpost-run): Defined.
26009
26010 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26011
26012 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
26013
26014 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26015
26016 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
26017 if fullscreen is being set.
26018
26019 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26020
26021 * minibuf.c (Fminibuffer_contents)
26022 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
26023 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
26024
26025 2002-01-21 Richard M. Stallman <rms@gnu.org>
26026
26027 * window.c (check_frame_size): Fix minimum height calculation.
26028
26029 2002-01-20 Ken Raeburn <raeburn@gnu.org>
26030
26031 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
26032 height before comparison.
26033 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
26034
26035 2002-01-20 Jason Rumney <jasonr@gnu.org>
26036
26037 * w32term.c (w32_system_caret_width): Remove.
26038 (w32_use_visible_system_caret): New user flag.
26039 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
26040 Windows reports a screen reader running.
26041 (x_update_window_begin): Hide the system caret.
26042 (x_update_window_end): Show the system caret.
26043 (x_display_and_set_cursor): Don't draw a cursor when
26044 w32_use_visible_system_caret is set. Do not adjust width.
26045
26046 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
26047 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
26048 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
26049 the user requests it. Use system default width when creating.
26050 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
26051
26052 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
26053 New window messages.
26054
26055 2002-01-20 Richard M. Stallman <rms@gnu.org>
26056
26057 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
26058
26059 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26060
26061 * doprnt.c (doprnt1): Fix typos in error call.
26062
26063 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
26064
26065 * unexelf.c (unexec) [__sgi]: Support the .got sections.
26066
26067 2002-01-20 Jason Rumney <jasonr@gnu.org>
26068
26069 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
26070 that Windows returns. If a double check fails, try to guess how
26071 ExtTextOut is going to act.
26072
26073 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
26074 in place of stricmp.
26075 (w32_list_synthesized_fonts): Removed.
26076 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
26077 (struct enumfont_t): New element; list.
26078 (enum_font_cb2): List all style and charset variations of a font.
26079 (Fw32_select_font): New optional argument; include_proportional.
26080 Exclude vertical fonts. Exclude proportional fonts unless
26081 include_proportional is non-nil.
26082 (w32_enable_synthesized_fonts): Change to a boolean.
26083 (Fw32_send_sys_command): Doc fix.
26084
26085 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26086
26087 * dispnew.c (update_frame): Move the variable `tem' to the block
26088 where it is used.
26089
26090 2002-01-19 Jason Rumney <jasonr@gnu.org>
26091
26092 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
26093 call to face-set-after-frame-default.
26094
26095 2002-01-18 Richard M. Stallman <rms@gnu.org>
26096
26097 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
26098 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
26099
26100 2002-01-17 Richard M. Stallman <rms@gnu.org>
26101
26102 * window.c (enlarge_window): When exceeding size of parent,
26103 directly delete all the siblings instead of trying to resize it.
26104
26105 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26106
26107 * term.c (set_tty_color_mode): Remove unused variable `tem'.
26108
26109 2002-01-16 Henrik Enberg <henrik@enberg.org>
26110
26111 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
26112
26113 2002-01-16 Kim F. Storm <storm@cua.dk>
26114
26115 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
26116 is invisible. This can happen if cursor is on top line of a
26117 window, and we switch to a buffer with a header line.
26118
26119 * w32term.c (x_erase_phys_cursor): Ditto.
26120
26121 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26122
26123 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
26124 `dont_resize' only when used.
26125
26126 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
26127
26128 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
26129
26130 * xdisp.c (display_mode_element): When computing charpos, depend
26131 on multibyteness of elt, not the text in field.
26132
26133 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26134
26135 * buffer.c (Fkill_all_local_variables):
26136 Increment `update_mode_lines' only once.
26137
26138 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26139
26140 * lisp.h (adjust_after_replace_noundo)
26141 (Fupdate_coding_systems_internal): Add prototypes.
26142
26143 * sound.c (Fplay_sound): Initialize header_size also for :data case.
26144
26145 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
26146
26147 Support for the --color command-line argument and tty-color-mode
26148 frame parameter:
26149
26150 * term.c (tty_default_color_capabilities, tty_setup_colors)
26151 (set_tty_color_mode): New functions.
26152 (term_init): Call tty_default_color_capabilities.
26153 (Qtty_color_mode_alist): New variable.
26154 (syms_of_term): Intern and staticpro it.
26155
26156 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
26157 frames.
26158 (do_switch_frame): For termcap frames, switch the tty
26159 color mode as specified by the frame's parameters.
26160 (Qtty_color_mode): New variable.
26161 (syms_of_frame): Intern and staticpro it.
26162
26163 * emacs.c (USAGE2): Add the --color option.
26164 (standard_args): Ditto.
26165
26166 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26167
26168 * xterm.h (struct x_output): New members want_fullscreen,
26169 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
26170 y_pixels_outer_diff.
26171 New enum for FULLSCREEN_* constants.
26172 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
26173 is NULL.
26174 (x_fullscreen_adjust): Add prototype.
26175
26176 * emacs.c (USAGE2): Add the new full-screen arguments.
26177 (standard_args): Ditto.
26178
26179 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
26180 New variables.
26181 (syms_of_xfns): Intern and staticpro them.
26182 (x_frame_parms) <"fullscreen">: New parameter.
26183 (x_fullscreen_move, x_set_fullscreen): New functions.
26184 (x_set_frame_parameters): Support for Qfullscreen.
26185 (x_real_positions): More accurate computation of the frame position.
26186 (x_figure_window_size): Support full-screen frames.
26187 (Fx_create_frame): Default the fullscreen parameter.
26188
26189 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
26190 (XTread_socket) <Expose>: Call x_check_fullscreen.
26191 <ConfigureNotify>: Don't resize to fullscreen.
26192 Call x_check_fullscreen_move, and set the want_fullscreen member of
26193 output_data.x.
26194
26195 2002-01-13 Jason Rumney <jasonr@gnu.org>
26196
26197 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
26198 for mice with more than 3 buttons.
26199
26200 * w32term.c (parse_button): New parameter xbutton. Callers changed.
26201 (w32_read_socket): Handle new "XBUTTON" messages.
26202
26203 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
26204 (syms_of_w32fns): DEFVAR_BOOL it.
26205 (w32_wnd_proc): Handle new "XBUTTON" messages.
26206
26207 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26208
26209 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
26210
26211 2002-01-13 Andreas Schwab <schwab@suse.de>
26212
26213 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
26214
26215 2002-01-12 Andreas Schwab <schwab@suse.de>
26216
26217 * .gdbinit (xbuffer): Remove address operator since data is now a
26218 pointer.
26219
26220 2002-01-11 Richard M. Stallman <rms@gnu.org>
26221
26222 * insdel.c (adjust_after_replace_noundo): New function.
26223
26224 * coding.c (code_convert_region): Don't copy old text if undo disabled.
26225
26226 2002-01-09 Jason Rumney <jasonr@gnu.org>
26227
26228 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
26229 when checking for multiple frames.
26230
26231 2002-01-08 Richard M. Stallman <rms@gnu.org>
26232
26233 * window.c (delete_window): Rewrite the code for changing the
26234 selected window to handle the case where WINDOW is not a leaf.
26235
26236 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
26237
26238 * process.c (send_process): Set src_multibyte to 1 after the call
26239 top setup_coding_system, not before the call.
26240
26241 2002-01-07 Jason Rumney <jasonr@gnu.org>
26242
26243 * xmenu.c (set_frame_menubar, xmenu_show):
26244 (xdialog_show): Initialize wv->help to Qnil.
26245
26246 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
26247 (w32_dialog_show): Initialize wv->help to Qnil.
26248
26249 2002-01-06 Jason Rumney <jasonr@gnu.org>
26250
26251 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
26252
26253 * w32menu.c (w32_menu_display_help): Revert last change.
26254
26255 * xmenu.c (menu_highlight_callback): Revert last change.
26256
26257 2002-01-06 Andreas Schwab <schwab@suse.de>
26258
26259 * insdel.c (make_gap_larger): Make sure buffer size does not
26260 overflow range of int.
26261
26262 2002-01-05 Jason Rumney <jasonr@gnu.org>
26263
26264 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
26265 OVERLAPS_P.
26266
26267 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
26268
26269 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
26270 to the left or to the right of the pointer, put it against
26271 the left screen edge.
26272 (x_frame_parms): Add missing braces around initializer.
26273
26274 * w32term.c (x_setup_relief_colors): Don't compute an image's
26275 background color if it doesn't have a Pixmap.
26276 (notice_overwritten_cursor): Don't depend on
26277 output_cursor and updated_area. Compare pixel coordinates with
26278 window's cursor pixel coordinates.
26279 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
26280 Call notice_overwritten_cursor with new arg list.
26281 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
26282 unconditionally.
26283 (x_draw_image_relief): Use predefined macro instead of
26284 constant when the value of `tool_bar_button_relief' is negative.
26285
26286 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
26287
26288 2002-01-04 Richard M. Stallman <rms@gnu.org>
26289
26290 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
26291
26292 2002-01-03 Richard M. Stallman <rms@gnu.org>
26293
26294 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
26295 (Fkey_binding): Try the `keymap' property map first.
26296 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
26297 minor mode bindings.
26298
26299 2002-01-03 Kim F. Storm <storm@cua.dk>
26300
26301 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
26302
26303 2002-01-02 Richard M. Stallman <rms@gnu.org>
26304
26305 * keyboard.c (read_key_sequence): Handle the keymap property
26306 before minor mode maps.
26307
26308 * editfns.c (Fformat): Update thissize from field_width
26309 based on the actual width, in the string case.
26310
26311 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26312
26313 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
26314 when used as truth value to prevent gcc warnings.
26315
26316 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
26317 * w32proc.c: Include <config.h>.
26318
26319 2002-01-01 Andreas Schwab <schwab@suse.de>
26320
26321 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
26322 not EMACS_INT, to make them compatible with DEFVAR_INT.
26323 * lisp.h (max_specpdl_size): Adjust declaration.
26324
26325 2002-01-01 Richard M. Stallman <rms@gnu.org>
26326
26327 * print.c (print_object): Test print_escape_nonascii only for
26328 unibyte strings.
26329 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
26330 when outputting to a multibyte buffer.
26331
26332 2001-12-29 Richard M. Stallman <rms@gnu.org>
26333
26334 * print.c (print_object): In multibyte string, use hex escapes.
26335 Use octal only for unibyte strings.
26336 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
26337
26338 * lread.c (read_escape): New arg BYTEREP for reporting whether
26339 escape forces unibyte or multibyte.
26340 (read1): When reading a string, take note of that info.
26341
26342 2001-12-29 Ken Raeburn <raeburn@gnu.org>
26343
26344 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
26345 comparison to test lisp value returned by Fget.
26346
26347 2001-12-29 Richard M. Stallman <rms@gnu.org>
26348
26349 * lisp.h (max_specpdl_size): Add declaration.
26350
26351 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
26352
26353 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
26354 Handle modifier bits. Correct typo in error message.
26355
26356 2001-12-28 Richard M. Stallman <rms@gnu.org>
26357
26358 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
26359 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
26360 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26361 Update calls to Fdefine_abbrev.
26362 (write_abbrev): Update for changed data format.
26363 Don't list "system" abbrevs.
26364 (Fexpand_abbrev): Update use count with new data format.
26365 (describe_abbrev): Update for changed data format.
26366 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
26367
26368 * config.in (HAVE_MBSINIT): Add #undef.
26369
26370 * strftime.c (mbsinit): Define as no-op if not available.
26371
26372 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
26373 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
26374
26375 * keymap.c (Flookup_key): Error message if key has wrong data type.
26376 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
26377 (exclude_key): New variable.
26378
26379 2001-12-28 Gerd Moellmann <gerd@gnu.org>
26380
26381 * xterm.c (x_setup_relief_colors): Don't compute an image's
26382 background color if it doesn't have a Pixmap.
26383
26384 * xterm.c (notice_overwritten_cursor): Don't depend on
26385 output_cursor and updated_area. Compare pixel coordinates with
26386 window's cursor pixel coordinates.
26387 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
26388 Call notice_overwritten_cursor with new arg list.
26389 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
26390 unconditionally.
26391
26392 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
26393 height of the cursor line to the amount to scroll.
26394
26395 2001-12-27 Richard M. Stallman <rms@gnu.org>
26396
26397 * intervals.c (set_point_both): The position after an invisible,
26398 intangible character is not an acceptable stopping point.
26399
26400 2001-12-27 Ken Raeburn <raeburn@gnu.org>
26401
26402 * window.c (enlarge_window): In new preserve_before code, convert
26403 CURBEG from lisp object to integer before doing arithmetic.
26404
26405 2001-12-27 Richard M. Stallman <rms@gnu.org>
26406
26407 * bytecode.c (Fbyte_code): Undo previous change.
26408
26409 2001-12-26 Kim F. Storm <storm@cua.dk>
26410
26411 * keyboard.c (record_char): Ignore duplicate help-echo events only
26412 separated by mouse-movement. When tracking mouse, only record
26413 first and last mouse-movement event in same window.
26414 Don't record mouse-movement events in keyboard macros.
26415
26416 2001-12-25 Richard M. Stallman <rms@gnu.org>
26417
26418 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
26419 (Fenlarge_window): New arg PRESERVE_BEFORE.
26420
26421 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
26422 instead of Fstring_as_unibyte.
26423
26424 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26425
26426 The following changes remove mocklisp support:
26427
26428 * mocklisp.h, mocklisp.c: Files removed.
26429
26430 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
26431 `Qmocklisp' and `Qmocklisp_arguments'.
26432 Remove prototype of syms_of_mocklisp.
26433
26434 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
26435
26436 * callint.c: Do not include mocklisp.h.
26437 (Fcall_interactively): Do not test for mocklisp case.
26438
26439 * eval.c: Remove variables `Qmocklisp_arguments',
26440 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
26441 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
26442 Do not test for mocklisp case.
26443 (Fwhile): Remove unused variable `tem'.
26444 (syms_of_eval): Remove variable `moclisp-arguments'.
26445
26446 * data.c (wrong_type_argument): Remove mocklisp case.
26447
26448 * doc.c (Fdocumentation): Remove mocklisp case.
26449
26450 * emacs.c (main): Do not call syms_of_mocklisp.
26451
26452 2001-12-21 Richard M. Stallman <rms@gnu.org>
26453
26454 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
26455 to the left or to the right of the pointer, put it against
26456 the left screen edge.
26457
26458 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
26459
26460 * Makefile.in (distclean): Remove .gdbinit if we are building
26461 outside the source tree.
26462
26463 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
26464
26465 * w32.c (emacs_root_dir): New function.
26466
26467 * msdos.c (emacs_root_dir): New function.
26468
26469 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
26470 of the current drive as the fallback for default_directory.
26471
26472 * dired.c (file_name_completion): Run the elements of
26473 completion-ignored-extensions through ENCODE_FILE.
26474
26475 * lisp.h (scmp): Remove prototype, since it's now a static
26476 function private to dired.c.
26477
26478 2001-12-18 Richard M. Stallman <rms@gnu.org>
26479
26480 * dired.c (scmp): Function moved from minibuf.c.
26481 Delete multibyte handling--used only on encoded strings.
26482
26483 * minibuf.c (scmp): Function moved to dired.c.
26484
26485 * fns.c (merge): Add QUIT call.
26486
26487 2001-12-18 Dave Love <fx@gnu.org>
26488
26489 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
26490 language/georgian.el.
26491
26492 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
26493
26494 * Makefile.in (lisp, shortlisp): Synchronize with changes to
26495 lisp/Makefile.in:DONTCOMPILE.
26496
26497 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26498
26499 * xdisp.c (window_box_height): Do not return negative values.
26500 From Gerd Moellmann <gerd@gnu.org>.
26501
26502 * keyboard.c (head_table): Add missing braces around initializer.
26503
26504 * term.c (keys): Likewise.
26505
26506 * xfns.c (x_frame_parms, visual_classes): Likewise.
26507
26508 2001-12-17 Sam Steingold <sds@gnu.org>
26509
26510 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
26511 patch (COMPOSING_P, not COMPOSING).
26512
26513 2001-12-17 Richard M. Stallman <rms@gnu.org>
26514
26515 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
26516
26517 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
26518 before calling decode_coding.
26519
26520 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
26521
26522 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
26523 instead of only for COMPOSITION_DISABLED.
26524
26525 2001-12-16 Richard M. Stallman <rms@gnu.org>
26526
26527 * alloc.c (pure_alloc): After overflow, allocate just a small block.
26528
26529 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
26530
26531 * buffer.h (struct buffer): New field `display_error_modiff'.
26532 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
26533
26534 * window.c (Frecenter): Clear display_error_modiff field.
26535
26536 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
26537 Call redisplay_window, but not if display_error_modiff field says no.
26538 (redisplay_window_error): New function.
26539 (displayed_buffer): New variable.
26540 (redisplay_internal, redisplay_windows): Call the new functions
26541 instead of redisplay_window directly.
26542
26543 2001-12-15 Richard M. Stallman <rms@gnu.org>
26544
26545 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
26546
26547 2001-12-14 Andrew Innes <andrewi@gnu.org>
26548
26549 * makefile.w32-in (EMACSLOADPATH): Define.
26550 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
26551 (bootstrap-temacs): Remove dependency on bootstrap-clean.
26552
26553 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
26554
26555 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
26556 parameter have a numeric value all the time.
26557
26558 * w32fns.c (x_report_frame_params): Likewise.
26559
26560 2001-12-12 Richard M. Stallman <rms@gnu.org>
26561
26562 * fileio.c (Fwrite_region): Doc fix.
26563
26564 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
26565 (redisplay_internal): Call clear_image_cache only for window terminals.
26566
26567 2001-12-12 Gerd Moellmann <gerd@gnu.org>
26568
26569 * xdisp.c (move_it_vertically_backward): Change heuristic
26570 for the case that we didn't move far enough initially.
26571
26572 * window.c (Frecenter): Simplify computation in the case of window
26573 system frames and ARG < 0; use window_box_height.
26574
26575 2001-12-11 Richard M. Stallman <rms@gnu.org>
26576
26577 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
26578 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
26579
26580 2001-12-11 Andrew Innes <andrewi@gnu.org>
26581
26582 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
26583 arg is negative.
26584
26585 2001-12-11 Richard M. Stallman <rms@gnu.org>
26586
26587 * m/hp800.h: Split the __hpux conditional into the parts
26588 that are right for GNU/Linux too and the parts that are not.
26589 Use the former if GNU_LINUX.
26590 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
26591
26592 * s/gnu-linux.h (GNU_LINUX): Defined.
26593
26594 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26595
26596 * macros.c, msdos.c, w16select.c: Change doc-string comments to
26597 `new style' [w/`doc:' keyword].
26598
26599 2001-12-10 Jason Rumney <jasonr@gnu.org>
26600
26601 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
26602 before using.
26603
26604 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26605
26606 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
26607 keyword].
26608
26609 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
26610
26611 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
26612
26613 * s/hpux10.h (srand48): Don't undefine.
26614
26615 2001-12-09 Jason Rumney <jasonr@gnu.org>
26616
26617 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
26618 Add comment to explain where the struct came from.
26619 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
26620 (add_menu_item): Process pop-up menus first to avoid memory leak.
26621 (add_menu_item, w32_menu_display_help): Use `help' field as
26622 Lisp_Object.
26623 (w32_free_submenu_strings): Only free owner-drawn strings.
26624
26625 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26626
26627 * COPYING: Moved back.
26628
26629 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
26630 Add parentheses around && within ||.
26631
26632 * indent.c (compute_motion): Likewise.
26633
26634 * intervals.c (merge_properties_sticky): Likewise.
26635
26636 * coding.c (setup_coding_system, shrink_encoding_region)
26637 (Fdecode_sjis_char): Likewise.
26638
26639 2001-12-07 Andreas Schwab <schwab@suse.de>
26640
26641 * xdisp.c (display_mode_element): Don't read past end of string if
26642 it ends with '%'.
26643
26644 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
26645 can hold.
26646
26647 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
26648 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
26649 type changed to Lisp_Object.
26650 (syms_of_data): DEFVAR_LISP them.
26651
26652 2001-12-07 Richard M. Stallman <rms@gnu.org>
26653
26654 * callproc.c (init_callproc): Set Vdata_directory based on the source
26655 location whenever Emacs was run uninstalled.
26656
26657 2001-12-06 Paul Eggert <eggert@twinsun.com>
26658
26659 * config.in (HAVE_WORKING_VFORK): New #undefs.
26660 * process.c (create_process):
26661 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
26662 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
26663 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
26664 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
26665 * m/intel386.h (HAVE_VFORK): Likewise.
26666 * m/mips-siemens.h (HAVE_VFORK): Likewise.
26667 * m/mips.h (HAVE_VFORK): Likewise.
26668 * s/freebsd.h (vfork): Remove #define.
26669 * s/lynxos.h (HAVE_VFORK): Remove #undef.
26670 * s/usg5-4-2.h: Fix comment about vfork.
26671
26672 2001-12-06 Richard M. Stallman <rms@gnu.org>
26673
26674 * s/hpux10.h (random): Add undef.
26675 (HAVE_RANDOM): Define it just once.
26676
26677 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
26678
26679 * eval.c: Undo last change: the standard syntax is not wanted.
26680
26681 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
26682
26683 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
26684 scroll bars of the frame before deleting the frame itself. If the
26685 frame has a widget, delete the frame with XtDestroyWidget, and do
26686 not call XDestroyWindow before that.
26687
26688 2001-12-06 Kim F. Storm <storm@cua.dk>
26689
26690 * xfns.c (x_report_frame_params): Return actual fringe widths.
26691
26692 * w32fns.c (x_report_frame_params): Return actual fringe widths.
26693
26694 2001-12-05 Andrew Innes <andrewi@gnu.org>
26695
26696 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
26697 excessively large.
26698
26699 * insdel.c (make_gap_larger): New function.
26700 (make_gap_smaller): New function.
26701 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
26702 Call make_gap_smaller if arg is negative.
26703
26704 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
26705
26706 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
26707 Pass a dummy argument when calling interrupt_signal.
26708 (parse_menu_item): Mark disabled items before checking for empty def.
26709 (read_char_minibuf_menu_prompt): Make safety more visible.
26710 (read_key_sequence): Add a `first_unbound' variable.
26711 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
26712 unbound prefix as soon as we can detect it.
26713
26714 * doc.c (Fsnarf_documentation): Add prototype.
26715 (get_doc_string): Handle negative arguments.
26716 (Fdocumentation): Use AREF and ASIZE.
26717 Move the calls to get_doc_string to a single place.
26718 Don't confuse an interactive-spec for a docstring reference.
26719 (Fdocumentation_property): Take advantage of the fact that
26720 get_doc_string now ignores the sign of the docstring position.
26721
26722 * eval.c: Use standard syntax for usage in docstrings.
26723
26724 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26725
26726 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
26727
26728 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26729
26730 * xterm.c (x_draw_image_relief): Use predefined macro instead of
26731 constant when the value of `tool_bar_button_relief' is negative.
26732
26733 2001-12-02 Richard M. Stallman <rms@gnu.org>
26734
26735 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
26736 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
26737
26738 * fileio.c (read_non_regular): Delete Fsignal call.
26739
26740 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
26741
26742 * lisp.h (run_hook_list_with_args): Undo last change.
26743
26744 2001-12-01 Gerd Moellmann <gerd@gnu.org>
26745
26746 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
26747
26748 2001-12-01 Jason Rumney <jasonr@gnu.org>
26749
26750 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
26751
26752 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
26753 [!WM_MOUSELEAVE]: Define.
26754
26755 * w32menu.c (current_popup_menu, get_menu_item_info):
26756 (set_menu_item_info): New vars.
26757 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
26758 (w32_menu_show): Set current_popup_menu.
26759 (add_menu_item): Allocate new strings for owner-drawn menu items
26760 and help strings.
26761 Use owner-draw for disabled menu items again.
26762 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
26763 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
26764
26765 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
26766 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
26767 <WM_EXITMENULOOP>: Free menu strings.
26768 <WM_MOUSELEAVE>: Stop tracking mouse.
26769 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
26770
26771 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
26772 and mouse face.
26773
26774 2001-12-01 Kim F. Storm <storm@cua.dk>
26775
26776 The following changes add left-fringe and right-fringe
26777 frame parameters to adjust fringe widths, or remove one or
26778 both fringes.
26779
26780 * frame.h (struct frame): Remove trunc_area_pixel_width and
26781 trunc_area_cols fields.
26782 (Qleft_fringe, Qright_fringe): Declare.
26783 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
26784
26785 * frame.c (Qleft_fringe, Qright_fringe): New vars.
26786 (syms_of_frame): Initialize them.
26787
26788 * window.c (coordinates_in_window): Handle separate left and right
26789 fringe widths.
26790
26791 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
26792 and fringe_cols fields.
26793 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
26794 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
26795 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
26796 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
26797 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
26798 (x_compute_fringe_widths): Add prototype.
26799
26800 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
26801 fill fringe evenly with small dashes.
26802 (x_draw_fringe_bitmap): Clear background if necessary. Align and
26803 clip the new ZV bitmap to avoid jitter between rows.
26804 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
26805 background. Don't draw fringe bitmaps if fringe width is zero.
26806 (x_compute_fringe_widths): New function.
26807 (x_new_font, x_set_window_size_1): Use it.
26808
26809 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
26810 (x_set_frame_parameters): Process `font' parameter before other
26811 parameters as fringe widths depend on it.
26812 (x_set_fringe_width): New function.
26813 (x_figure_window_size): Use x_compute_fringe_widths.
26814 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
26815 parameters.
26816
26817 * widget.c (set_frame_size): Use x_compute_fringe_widths.
26818 (EmacsFrameSetCharSize): Ditto.
26819
26820 * w32term.h: Merged changes from xterm.h.
26821 * w32term.c: Merged changes from xterm.c.
26822 * w32fns.c: Merged changes from xfns.c.
26823
26824 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26825
26826 * COPYING: Removed.
26827
26828 2001-11-29 Dave Love <fx@gnu.org>
26829
26830 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
26831 extra extra slot.
26832 (detect_coding_mask): Fix call of detect_coding_iso2022.
26833
26834 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26835
26836 * fileio.c (file-name-coding-system)
26837 (default-file-name-coding-system): Doc fix (links to referenced
26838 variables added).
26839
26840 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
26841
26842 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
26843 Add dummy uses of gcproN variables.
26844
26845 * category.c (describe_category, describe_category_1)
26846 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
26847 (syms_of_category): Don't defsubr Sdescribe_categories.
26848
26849 2001-11-28 Richard M. Stallman <rms@gnu.org>
26850
26851 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
26852
26853 * Makefile.in (lispdir): New variable, referring to build dir.
26854 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
26855
26856 2001-11-28 Andrew Innes <andrewi@gnu.org>
26857
26858 * w32menu.c (w32_menu_display_help): Actually add the new argument
26859 OWNER.
26860
26861 2001-11-28 Jason Rumney <jasonr@gnu.org>
26862
26863 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
26864 menu items. From David Ponce <dponce@wanadoo.fr>.
26865 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
26866 conditionally.
26867 (w32_menu_display_help): New argument OWNER. Rewritten to store a
26868 help event in the owner frame's keyboard buffer.
26869
26870 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
26871 (Fx_show_tip): Don't subtract last width from row width.
26872
26873 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
26874 (w32_read_socket): Use EQ to compare frames.
26875
26876 2001-11-28 Gerd Moellmann <gerd@gnu.org>
26877
26878 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
26879 OVERLAPS_P.
26880
26881 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26882
26883 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
26884 `gcpro3' and `gcpro4'.
26885
26886 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
26887
26888 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
26889
26890 * ccl.c: Use AREF and ASIZE.
26891
26892 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
26893
26894 * lisp.h (run_hook_list_with_args): Remove.
26895 (LIST_END_P): Fix call to wrong_type_argument.
26896 (make_fixnum_or_float): Use EMACS_INT rather than int.
26897
26898 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
26899
26900 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
26901 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
26902
26903 * eval.c: Use AREF and ASIZE.
26904 (Ffetch_bytecode): Add the file name to the error message.
26905
26906 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
26907 which match the end of the file-name.
26908 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
26909 is not a valid env var, but leave it as is instead.
26910
26911 * keymap.c (access_keymap): Handle t bindings like nil bindings.
26912 Make nil bindings in char-tables transparent.
26913 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
26914
26915 2001-11-26 Richard M. Stallman <rms@gnu.org>
26916
26917 * textprop.c (set_text_properties_1): Allow START, END in either order.
26918 Do nothing if range is empty.
26919
26920 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
26921
26922 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
26923 (clean): Not here.
26924
26925 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
26926
26927 * textprop.c (set_text_properties_1): Clearly mark that the
26928 interval should not be empty.
26929
26930 * intervals.c (graft_intervals_into_buffer):
26931 Don't call set_text_properties_1 on an empty interval.
26932
26933 2001-11-25 Richard M. Stallman <rms@gnu.org>
26934
26935 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
26936
26937 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
26938 don't lose the data in it.
26939
26940 2001-11-25 Juanma Barranquero <lektu@terra.es>
26941
26942 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
26943
26944 * buffer.c (Fkill_buffer): Likewise.
26945
26946 * print.c (temp_output_buffer_setup): Likewise.
26947
26948 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
26949
26950 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
26951
26952 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
26953
26954 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
26955 Niemitalo <kon@iki.fi>.
26956
26957 2001-11-25 Jason Rumney <jasonr@gnu.org>
26958
26959 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
26960
26961 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
26962 (Fx_show_tip): Block input during frame creation.
26963 (Fx_show_tip, Fx_hide_tip): Enable.
26964
26965 2001-11-24 Richard M. Stallman <rms@gnu.org>
26966
26967 * lread.c (Fload): Detect recursive load error for more than 3
26968 nestings of the same file.
26969 (Vrecursive_load_depth_limit): Variable deleted.
26970 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
26971
26972 2001-11-24 Jason Rumney <jasonr@gnu.org>
26973
26974 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
26975 mouse position if either left or top is not specified.
26976
26977 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
26978 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
26979 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
26980 (my_create_tip_window): Assign tip_window.
26981 (x_create_tip_frame): Use same defaults as X.
26982 (compute_tip_xy): Remove unused variable. Use full screen width.
26983 (Fx_show_tip): Do not double height. Call ShowWindow directly.
26984
26985 * w32term.c (x_after_update_window_line): Doc fix.
26986 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
26987 frames.
26988 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
26989
26990 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
26991 for all Windowed systems.
26992
26993 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
26994
26995 * msdos.c (IT_clear_screen): If the frame's faces are not yet
26996 realized, use the initial screen colors to clear the screen.
26997
26998 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26999
27000 * textprop.c (Fset_text_properties): Remove unused variables
27001 `unchanged', `prev_changed', `s' and `len'.
27002
27003 * search.c (Freplace_match): Remove unused variable `inslen'.
27004
27005 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
27006
27007 2001-11-22 Jason Rumney <jasonr@gnu.org>
27008
27009 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
27010 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
27011 (my_create_tip_window): New function.
27012 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
27013 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
27014
27015 2001-11-20 Jason Rumney <jasonr@gnu.org>
27016
27017 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
27018 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
27019
27020 * w32fns.c (Vw32_system_coding_system): Remove.
27021 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
27022
27023 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
27024
27025 * fileio.c (Fwrite_region): Move choose_write_coding_system to
27026 after build_annotations.
27027
27028 * syntax.c (describe_syntax): Add dummy arg.
27029 (describe_syntax_1): Update call to describe_vector.
27030
27031 * category.c (describe_category): Add dummy arg.
27032 (describe_category_1): Update call to describe_vector.
27033
27034 * keymap.c (Fdescribe_vector): Add `describer' parameter.
27035 (describe_command, describe_translation): Add dummy second param.
27036 (describe_map): Call elt_describer with two arguments.
27037 (describe_vector_princ): Add `fun' parameter.
27038 Call it instead of the hardcoded `princ'.
27039 (describe_vector): Add arg `args'.
27040 Pass it as a new second argument to elt_describer.
27041
27042 * keymap.h (describe_vector): Update prototype.
27043
27044 * frame.c: Don't include keymap.h any more.
27045 (keys_of_frame): Remove.
27046
27047 * lisp.h (keys_of_frame): Remove declaration.
27048
27049 * emacs.c (main): Don't call `keys_of_frame' any more.
27050
27051 2001-11-14 Andreas Schwab <schwab@suse.de>
27052
27053 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
27054 if defined, 0 otherwise.
27055 (MAP_FAILED): Define if not defined and use it to test mmap failure.
27056 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
27057
27058 2001-11-19 Richard M. Stallman <rms@gnu.org>
27059
27060 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
27061
27062 2001-11-18 Jason Rumney <jasonr@gnu.org>
27063
27064 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
27065 (x_draw_bar_cursor): If the background color of the glyph under
27066 the cursor equals the frame's cursor color, use the glyph's
27067 foreground color for drawing the bar cursor.
27068 (x_after_update_window_line): Clear internal border in different
27069 circumstances.
27070 (w32_set_vertical_scroll_bar): Check for width and height > 0.
27071 (w32_draw_relief_rect): Correct relief by 1 pixel.
27072 (x_set_glyph_string_background_width):
27073 Set extends_to_end_of_line_p if the row's fill_line_p is set and
27074 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
27075 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
27076 if cursor_in_non_selected_windows is false.
27077 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
27078 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
27079 Notice if cursor gets overwritten.
27080 (notice_overwritten_cursor): Renamed from
27081 note_overwritten_text_cursor. Rewritten to take glyph widths
27082 into account, and to take X positions as parameters.
27083 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
27084 around call to x_draw_glyphs.
27085 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
27086 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
27087 color to use for image glyph reliefs.
27088 (x_draw_image_relief): Accept zero tool_bar_button_relief.
27089 (glyph_rect): Remove unused variable `area'.
27090
27091 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
27092 some items.
27093 (x_set_internal_border_width): Set frame garbaged when window
27094 doesn't exist yet.
27095 (Fx_create_frame): Accept zero tool_bar_button_relief.
27096 (x_clear_image_1, four_corners_best, image_background)
27097 (image_background_transparent): New functions.
27098 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
27099 (gs_format): Add `:background' entry.
27100 (lookup_image): Set IMG's background color if specified.
27101 (pbm_load, xbm_load_image, png_load): Set IMG's background field
27102 when appropriate.
27103 (x_clear_image_1): Reset `background_valid' and
27104 `background_transparent_valid' fields.
27105 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
27106 calculating it here. Set IMG's background_transparent field.
27107 (enum xpm_keyword_index): Add XPM_BACKGROUND.
27108 (enum png_keyword_index): Add PNG_BACKGROUND.
27109 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
27110 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
27111 (enum gif_keyword_index): Add GIF_BACKGROUND.
27112 (enum gs_keyword_index): Add GS_BACKGROUND.
27113 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
27114 Pre-calculate image background color where necessary.
27115 (x_create_x_image_and_pixmap, xbm_load, gs_load):
27116 Use display info's n_cbits entry for screen depth.
27117 (Fx_show_tip): Remove unused variables `buffer', `top',
27118 `left', `max_width' and `max_height'.
27119
27120 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
27121
27122 2001-11-18 Gerd Moellmann <gerd@gnu.org>
27123
27124 * puresize.h (BASE_PURESIZE): Increase to 750000.
27125
27126 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27127
27128 * frame.c (Fframe_live_p): Doc fix.
27129
27130 2001-11-18 Richard M. Stallman <rms@gnu.org>
27131
27132 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
27133 (message_dolog_marker3): New static variables hold three markers.
27134 (syms_of_xdisp): Initialize and staticpro them.
27135 (message_dolog): Use message_dolog_marker1..3 instead of
27136 allocating markers each time. Unchain them when done.
27137
27138 2001-11-17 Richard M. Stallman <rms@gnu.org>
27139
27140 * doc.c (Fsnarf_documentation): Doc fix.
27141
27142 2001-11-17 Andreas Schwab <schwab@suse.de>
27143
27144 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
27145
27146 2001-11-17 Richard M. Stallman <rms@gnu.org>
27147
27148 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
27149
27150 2001-11-17 Jason Rumney <jasonr@gnu.org>
27151
27152 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
27153
27154 2001-11-17 Gerd Moellmann <gerd@gnu.org>
27155
27156 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
27157 with invalid position.
27158
27159 2001-11-16 Richard M. Stallman <rms@gnu.org>
27160
27161 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
27162
27163 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
27164 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
27165 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
27166
27167 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
27168
27169 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
27170
27171 * fileio.c (build_annotations): Split off the tail.
27172 (build_annotations_2): New fun. Extracted from build_annotations.
27173 (Fwrite_region): Split the call to build_annotations into two
27174 calls to build_annotations and build_annotations_2.
27175
27176 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27177
27178 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
27179 clear_waiting_for_input with argument.
27180
27181 * xterm.h (x_update_cursor): Remove duplicated prototype.
27182
27183 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
27184
27185 * xterm.c (waiting_for_input): Remove unnecessary declaration.
27186
27187 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
27188
27189 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
27190
27191 * fileio.c (choose_write_coding_system): New fun, extracted
27192 from Fwrite_region.
27193 (Fwrite_region): Use it.
27194
27195 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
27196 (funcall_lambda, run_hook_with_args): Make static and add prototype.
27197 (ml_apply, find_handler_clause): Add prototype.
27198
27199 2001-11-16 Eli Zaretskii <eliz@gnu.org>
27200
27201 * config.in: Add #undef HAVE_COFF_H.
27202
27203 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
27204 Required for ISC 4.1.
27205
27206 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
27207
27208 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
27209 Andrew Wiseman <a.wiseman@btclick.com>.
27210
27211 2001-11-16 Kim F. Storm <storm@cua.dk>
27212
27213 The following changes are made to clean up the various internal
27214 references to the fringes to actually use the term `fringe' for
27215 them. Previously, they were called `flags areas', `bitmap areas',
27216 `left/right side of windows', or implicitly as `flags' or
27217 `bitmaps':
27218
27219 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
27220 Comments fixed. Use renamed symbols.
27221
27222 * dispnew.c: Comment fix. Use renamed symbols.
27223
27224 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
27225 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
27226 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
27227
27228 * msdos.c: Comment fix.
27229
27230 * w32fns.c: Use renamed symbols.
27231
27232 * w32term.c: Comment fixes. Use renamed symbols.
27233 (fringe_bitmap_type): Renamed from bitmap_type.
27234 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
27235 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
27236 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
27237
27238 * w32term.h: Comment fixes. Use renamed symbols.
27239 (fringes_extra): Renamed from flags_areas_extra.
27240 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
27241 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
27242 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
27243 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
27244 (FRAME_X_LEFT_FRINGE_WIDTH):
27245 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
27246 (FRAME_X_RIGHT_FRINGE_WIDTH):
27247 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
27248
27249 * widget.c: Use renamed symbols.
27250
27251 * window.c: Comment fixes. Use renamed symbols.
27252 (coordinates-in-window-p): Doc fix.
27253
27254 * xdisp.c: Comment fixes. Use renamed symbols.
27255
27256 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
27257
27258 * xfns.c: Use renamed symbols.
27259
27260 * xterm.c: Comment fixes. Use renamed symbols.
27261 (fringe_bitmap_type): Renamed from bitmap_type.
27262 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
27263 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
27264 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
27265
27266 * xterm.h: Comment fixes. Use renamed symbols.
27267 (fringes_extra): Renamed from flags_areas_extra.
27268 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
27269 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
27270 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
27271 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
27272 (FRAME_X_LEFT_FRINGE_WIDTH):
27273 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
27274 (FRAME_X_RIGHT_FRINGE_WIDTH):
27275 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
27276
27277 2001-11-15 Jason Rumney <jasonr@gnu.org>
27278
27279 * w32menu.c (add-menu-item): Make help_echo and radio buttons
27280 work for most menu items. From David Ponce
27281 <david.ponce@wanadoo.fr>.
27282
27283 2001-11-15 Gerd Moellmann <gerd@gnu.org>
27284
27285 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
27286 Some x_set_* function expect to be called even if old and new
27287 value are equal.
27288
27289 * xdisp.c (build_desired_tool_bar_string): Accept zero
27290 tool_bar_button_relief.
27291
27292 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
27293
27294 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
27295
27296 * xterm.c (x_draw_bar_cursor): If the background color of the
27297 glyph under the cursor equals the frame's cursor color, use
27298 the glyph's foreground color for drawing the bar cursor.
27299
27300 * dispnew.c (direct_output_forward_char): Fix character/byte
27301 position comparison.
27302
27303 2001-11-15 Miles Bader <miles@gnu.org>
27304
27305 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
27306 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
27307 Update arguments to find_field.
27308 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
27309 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
27310 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
27311 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
27312
27313 2001-11-14 Richard M. Stallman <rms@gnu.org>
27314
27315 * editfns.c (Fpropertize): Allow call with 1 arg.
27316
27317 * dispextern.h (image_background, image_background_transparent):
27318 Conditionalize on HAVE_X_WINDOWS.
27319
27320 2001-11-13 Richard M. Stallman <rms@gnu.org>
27321
27322 * print.c (Fprin1_to_string): Doc fix.
27323
27324 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
27325
27326 * floatfns.c (Fceiling, Ffloor): Doc fixes.
27327
27328 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
27329
27330 * fileio.c (Ffile_accessible_directory_p): Doc fix.
27331
27332 * eval.c (syms_of_eval): Doc fix.
27333
27334 * coding.c (syms_of_coding): Doc fix.
27335
27336 * doc.c (Fsnarf_documentation): Doc fix.
27337
27338 * dispnew.c (syms_of_display): Doc fix.
27339
27340 * category.c (Fget_unused_category): Doc fix.
27341
27342 * buffer.c (syms_of_buffer): Doc fixes.
27343
27344 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
27345
27346 * print.c (prin1, print): Doc fix.
27347
27348 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27349
27350 * fontset.h: Remove declarations of variables
27351 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
27352
27353 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
27354 `Vclip_large_size_font'.
27355
27356 2001-11-13 Jason Rumney <jasonr@gnu.org>
27357
27358 * w32fns.c: Doc fix.
27359
27360 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27361
27362 * xfaces.c (Fface_attributes_as_vector): Doc fix.
27363
27364 * fns.c: Doc fix.
27365
27366 * emacs.c: Doc fix.
27367
27368 * coding.c: Doc fix.
27369
27370 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
27371 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
27372 `new style' [w/`doc:' keyword].
27373
27374 2001-11-12 Richard M. Stallman <rms@gnu.org>
27375
27376 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
27377 LeaveNotify events. Only FocusIn and FocusOut do that now.
27378 (x_display_and_set_cursor): Do display hollow cursors in active
27379 minibuffer windows when they are not selected.
27380
27381 2001-11-12 Jason Rumney <jasonr@gnu.org>
27382
27383 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
27384 * w32term.c: Change doc-string comments to `new style'
27385 [w/`doc:' keyword]. Doc fixes.
27386
27387 * w32fns.c: Don't define max.
27388 (Fx_open_connection): Only execute once.
27389
27390 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27391
27392 * ccl.c: Change macros to use do-while block instead of if-else.
27393 Use braces to follow GNU Coding Standards.
27394
27395 2001-11-11 Richard M. Stallman <rms@gnu.org>
27396
27397 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
27398
27399 * lread.c (read_escape): Use end_of_file_error for reporting eof.
27400
27401 * insdel.c (replace_range): Use adjust_markers_for_replace
27402 instead of adjust_markers_for_delete and adjust_markers_for_insert.
27403
27404 * intervals.h (set_text_properties, set_text_properties_1): Declare.
27405
27406 * textprop.c (set_text_properties_1): New subroutine
27407 broken out of set_text_properties.
27408 (set_text_properties): Use set_text_properties_1.
27409
27410 * intervals.c (graft_intervals_into_buffer):
27411 Use set_text_properties_1 to clear out properties.
27412
27413 * search.c (Freplace_match): Use replace_range to insert
27414 and delete. Don't request property inheritance from
27415 surrounding text.
27416
27417 2001-11-10 Jason Rumney <jasonr@gnu.org>
27418
27419 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
27420 vertical fonts. Allow them if face name is explicitly specified.
27421 Do not give up if we find a font that cannot be converted to an xlfd.
27422
27423 2001-11-10 Gerd Moellmann <gerd@gnu.org>
27424
27425 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
27426 instead of malloc/free.
27427
27428 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27429
27430 * xfaces.c (merge_face_vectors): Use braces to follow GNU
27431 Coding Standards.
27432 (Finternal_set_lisp_face_attribute): Likewise.
27433
27434 * buffer.c (Fbury_buffer): Likewise.
27435
27436 * indent.c (current_column_1): Remove unused variable `prev_col'.
27437
27438 * coding.c (encode_coding): Use precomputed value of `src'.
27439 (encode_coding): Remove unused variable `src_end'.
27440 (code_convert_region): Remove unused variables `count'.
27441
27442 2001-11-07 Jason Rumney <jasonr@gnu.org>
27443
27444 * w32term.c (x_display_and_set_cursor): Do not move system caret
27445 if cursor_glyph is NULL.
27446
27447 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27448
27449 * keymap.c (access_keymap): Fix compilation error.
27450
27451 2001-11-07 Miles Bader <miles@gnu.org>
27452
27453 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
27454
27455 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27456
27457 * intervals.c (graft_intervals_into_buffer):
27458 Remove #ifdef'd-out code.
27459 (graft_intervals_into_buffer): Remove unused variable `middle'.
27460
27461 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
27462 code (eval-current-buffer).
27463 Change doc-string comments to `new style' [w/`doc:' keyword].
27464
27465 2001-11-06 Richard M. Stallman <rms@gnu.org>
27466
27467 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
27468
27469 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
27470
27471 * lread.c (read1): Fix behavior with nested backquoting.
27472
27473 * keyboard.c (make_lispy_event): Check integerness and fix
27474 Lisp_Object/int mixup.
27475
27476 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27477
27478 * fns.c (copy_hash_table): Remove unused variable `v'.
27479
27480 * fontset.c (fontset_font_pattern): Remove unused variable
27481 `family_registry'.
27482
27483 * indent.c (current_column_1): Remove unused variable `prev_col'.
27484
27485 2001-11-05 Richard M. Stallman <rms@gnu.org>
27486
27487 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
27488
27489 * buffer.c (Fkill_buffer): Don't delete auto save file
27490 if buffer is modified.
27491
27492 2001-11-05 Andrew Innes <andrewi@gnu.org>
27493
27494 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
27495 CHECK_NUMBER_CDR.
27496
27497 2001-11-05 Richard M. Stallman <rms@gnu.org>
27498
27499 * unexelf.c (unexec): Minor changes; clean up comments.
27500
27501 2001-11-05 Sam Steingold <sds@gnu.org>
27502
27503 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
27504
27505 2001-11-05 Andreas Schwab <schwab@suse.de>
27506
27507 * sound.c (sound_perror): Save errno from being clobbered.
27508
27509 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
27510
27511 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
27512 the program image directly.
27513
27514 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27515
27516 * buffer.h (Fbuffer_local_value): Add prototype.
27517
27518 2001-11-04 Richard M. Stallman <rms@gnu.org>
27519
27520 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
27521 and CHECK_BUFFER.
27522
27523 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
27524 (record_char): Likewise.
27525
27526 * keyboard.c (make_lispy_event): Don't insist a drag event must
27527 move to a different buffer position. Instead, check for moving at
27528 least double_click_fuzz.
27529
27530 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
27531
27532 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
27533
27534 * indent.c (current_column_1, Fmove_to_column): Separate the code
27535 for display-table glyphs from the code for buffer text, to fix
27536 bugs in the former.
27537
27538 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
27539
27540 * buffer.c (Fbuffer_local_value): New function.
27541 (syms_of_buffer): Defsubr it.
27542
27543 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
27544 value of `cursor-in-non-selected-windows'.
27545
27546 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
27547 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
27548 (syms_of_xdisp): Initialize it.
27549
27550 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27551
27552 * xfns.c (Fx_create_frame): Doc fix.
27553
27554 * coding.c: Change doc-string comments to `new style' [w/`doc:'
27555 keyword].
27556
27557 * eval.c (top_level_value, top_level_set): Remove commented and
27558 #ifdef'd-out code.
27559 (Fdefvar): Fix usage in doc-string.
27560
27561 2001-11-03 Richard M. Stallman <rms@gnu.org>
27562
27563 * xfns.c: Include unistd.h, if it exists.
27564
27565 * editfns.c: Move the include of ctype.h after unistd.h.
27566
27567 * gmalloc.c: Test BROKEN_PROTOTYPES.
27568
27569 2001-11-03 Ken Raeburn <raeburn@gnu.org>
27570
27571 * lisp.h (CHECK_STRING_CAR): New macro.
27572 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
27573 treating XCAR and XCDR as lvalues.
27574 (openp): Use CHECK_STRING_CAR.
27575 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
27576
27577 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
27578
27579 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
27580 (SIGMASKTYPE): Define.
27581
27582 * syssignal.h (sigunblock): Don't define if already defined.
27583
27584 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27585
27586 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
27587 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
27588 Fix typos in comments.
27589
27590 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
27591 and #ifdef'd-out code.
27592 Fix and reindent comments.
27593
27594 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
27595
27596 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
27597 argument `i' in macros.
27598
27599 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
27600 `i' in macros.
27601
27602 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
27603 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
27604 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
27605 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
27606 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
27607 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
27608 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
27609 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
27610 in macros.
27611
27612 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
27613 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
27614 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
27615 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
27616 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
27617 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
27618 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
27619 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
27620 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
27621 (remove unused second argument).
27622
27623 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
27624
27625 * syntax.c (describe_syntax): New wrapper.
27626 (Finternal_describe_syntax_value): Rename from describe_syntax.
27627 Don't insert space at front and \n at the end.
27628 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
27629
27630 * regex.c (re_wctype): Try to fix some warnings.
27631 (regcomp, regexec): Don't forget the __restrict.
27632
27633 2001-11-02 Richard M. Stallman <rms@gnu.org>
27634
27635 * textprop.c (Fget_char_property): Doc fix.
27636
27637 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27638
27639 * process.c (Fstart_process): Add usage to doc-string.
27640
27641 * data.c (Fsetq_default): Ditto.
27642
27643 * callint.c (Finteractive): Ditto.
27644
27645 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
27646
27647 * macros.c: Don't include keymap.h any more.
27648
27649 2001-11-01 Richard M. Stallman <rms@gnu.org>
27650
27651 * data.c (Fmake_local_variable): Doc fix.
27652
27653 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
27654 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
27655
27656 * keymap.c (Fdescribe_buffer_bindings): Print character property
27657 bindings along with or instead of the buffer local map.
27658 Make the overriding maps override what they should.
27659
27660 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27661
27662 * window.c (grow_mini_window): Fix typo in comment.
27663
27664 2001-11-01 Gerd Moellmann <gerd@gnu.org>
27665
27666 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
27667 (XTset_vertical_scroll_bar): Likewise.
27668
27669 * xfns.c (x_build_heuristic_mask): Use four_corners_best
27670 instead of IMAGE_BACKGROUND.
27671
27672 * xfns.c (four_corners_best): Reindent.
27673
27674 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27675 Handle :box so that it is possible to specify sexprs.
27676
27677 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
27678
27679 * s/hpux11.h: New file.
27680
27681 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27682
27683 * emacs.c (USAGE1): Show command line option --no-window-system
27684 instead of --no-windows in usage.
27685 (standard_args): Rename --no-windows to --no-window-system.
27686 (bug_reporting_address): Follow Emacs coding conventions.
27687
27688 * eval.c (Fcommandp): Doc fix.
27689 Change doc-string comments to `new style' [w/`doc:' keyword].
27690
27691 * frame.c (Fframe_live_p): Doc fix.
27692
27693 * buffer.c (selective-display-ellipses): Doc fix.
27694
27695 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27696
27697 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
27698
27699 * xfaces.c (realize_x_face): If C is not a single-byte character,
27700 set the face's colors_copied_bitwise_p instead of the defaulted_p
27701 members which have a different meaning.
27702 (free_face_colors): Do nothing for a face whose colors have been
27703 copied bitwise.
27704
27705 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
27706
27707 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27708
27709 * marker.c, mocklisp.c: Change doc-string comments to `new style'
27710 [w/`doc:' keyword].
27711
27712 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27713
27714 * fns.c (require_unwind): Return Lisp_Object.
27715
27716 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27717
27718 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
27719 (last-input-char): Revert doc-string to be the same as the
27720 doc-string of `last-input-event'.
27721
27722 * xdisp.c: Fix typos in comments.
27723
27724 2001-10-31 Gerd Moellmann <gerd@gnu.org>
27725
27726 * window.c (grow_mini_window): Handle case that the root
27727 window is already smaller than the nominal mininum height.
27728
27729 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
27730
27731 * emacs.c (main): Don't call keys_of_macros any more.
27732
27733 * lisp.h (keys_of_macros): Remove.
27734
27735 * macros.c (keys_of_macros): Remove.
27736
27737 * xfaces.c (Fface_attribute_relative_p): Declare args.
27738
27739 2001-10-30 Jason Rumney <jasonr@gnu.org>
27740
27741 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
27742 (enum_font_cb2): Ignore fonts with vertical orientation.
27743
27744 2001-10-30 Richard M. Stallman <rms@gnu.org>
27745
27746 * keyboard.c (Finput_pending_p): Doc fix.
27747
27748 2001-10-30 Gerd Moellmann <gerd@gnu.org>
27749
27750 * xterm.c (x_after_update_window_line): Don't run the code
27751 clearing in borders for rows whose visible height is 0.
27752
27753 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
27754 resized_p flag is set. If not set, use the much less flickering
27755 method previously used.
27756
27757 * dispnew.c (change_frame_size_1): Set frame's resized_p.
27758
27759 * frame.h (struct frame) <resized_p>: New member.
27760
27761 * lread.c (to_multibyte): Ensure read_buffer is at least twice
27762 as large as the number of bytes to convert.
27763
27764 * lread.c (to_multibyte): New function.
27765 (read1): Use it.
27766
27767 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
27768
27769 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
27770
27771 2001-10-30 Gerd Moellmann <gerd@gnu.org>
27772
27773 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
27774 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
27775 if the row's fill_line_p is set and drawing the last glyph with
27776 DRAW_IMAGE_{RAISED,SUNKEN}.
27777
27778 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
27779
27780 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
27781
27782 * xmenu.c: Include coding.h and charset.h.
27783 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
27784 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
27785 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
27786 Explicitly set wv->help. Use `TRUE' rather than `True'.
27787 (menu_help_callback): Use empty_string.
27788
27789 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
27790 (Fx_popup_dialog): Explicitly init f.
27791 (w32_menu_display_help): Use empty_string.
27792
27793 2001-10-29 Richard M. Stallman <rms@gnu.org>
27794
27795 * fns.c (Frequire): Detect recursive try to require the same
27796 feature 3 or more levels deep, and get error.
27797 (require_unwind): New subroutine.
27798 (require_nesting_list): New variable.
27799 (syms_of_fns): Init and staticpro it.
27800
27801 * print.c (print_object): Clarify indication of insertion type.
27802
27803 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
27804
27805 * coding.c (syms_of_coding): Document that locale-coding-system is
27806 used for decoding input on X.
27807
27808 * window.c (Fscroll_left, Fscroll_right): Doc fix.
27809
27810 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27811
27812 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
27813 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
27814
27815 2001-10-29 Gerd Moellmann <gerd@gnu.org>
27816
27817 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
27818 use NO_CURSOR if cursor_in_non_selected_windows is false.
27819
27820 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
27821 the slant attribute if FRAME is t.
27822
27823 * xfns.c (x_set_internal_border_width): Set frame garbaged
27824 when X window doesn't exist yet.
27825
27826 * xterm.c (x_after_update_window_line): Clear internal border
27827 in different circumstances.
27828
27829 * xterm.c (XTread_socket) <KeyPress>: Don't use
27830 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
27831 <handa@etl.go.jp>.
27832
27833 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
27834
27835 * m/ibms390.h: New file. From Adam Thornton
27836 <athornton@sinenomine.net>.
27837
27838 2001-10-28 Gerd Moellmann <gerd@gnu.org>
27839
27840 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
27841
27842 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
27843 a loop counter.
27844
27845 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27846
27847 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
27848
27849 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
27850 keyword].
27851 Fix typos in comments.
27852
27853 * emacs.c (bug_reporting_address): New function.
27854 Use it when displaying usage message.
27855
27856 * minibuf.c (read_minibuf): Remove unused external declaration of
27857 variable `Qread_only'.
27858
27859 * keymap.c (access_keymap): Remove unused variable `charset'.
27860
27861 2001-10-28 Miles Bader <miles@gnu.org>
27862
27863 * xfaces.c (merge_face_heights): Handle TO being relative as well.
27864 Remove #ifdef'd-out code.
27865 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
27866 (syms_of_xfaces): Initialize them.
27867
27868 2001-10-27 Jason Rumney <jasonr@gnu.org>
27869
27870 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
27871 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
27872 position using the system caret.
27873
27874 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
27875 (w32_system_caret_height, w32_system_caret_x)
27876 (w32_system_caret_y): New variables for tracking system caret.
27877 (w32_initialize): Initialize them.
27878 (x_display_and_set_cursor): Make system caret follow the active cursor.
27879
27880 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
27881 New messages types.
27882
27883 * w32term.c (note_mouse_highlight): Clear old help_echo.
27884
27885 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27886
27887 * xterm.c: Fix typo in a comment.
27888
27889 * emacs.c: Fix typos in comments.
27890 Remove unnecessary spaces.
27891 Change doc-string comments to `new style' [w/`doc:' keyword].
27892 (USAGE2): Fix typos in usage string.
27893
27894 * xterm.c: Fix typo in a comment.
27895
27896 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
27897 emacs.c.
27898
27899 2001-10-27 Gerd Moellmann <gerd@gnu.org>
27900
27901 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
27902 instead of 1/2 line_height in the heuristic for skipping
27903 farther backward when target_y was not reached.
27904
27905 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
27906 Display errno only if non-zero.
27907 (sound_warning): New function.
27908 (vox_configure): Don't treat failing to set sample rate as error.
27909 (various places): Improve error messages.
27910
27911 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
27912
27913 * fileio.c (Faccess_file): Run the argument filename through
27914 Fexpand_file_name, before using it.
27915
27916 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
27917 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
27918
27919 2001-10-26 Gerd Moellmann <gerd@gnu.org>
27920
27921 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
27922
27923 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
27924 Fix clearing in the case of scroll bars on the right.
27925
27926 2001-10-26 Juanma Barranquero <lektu@terra.es>
27927
27928 * w32gui.h (XImage): Add a dummy typedef.
27929
27930 2001-10-26 Gerd Moellmann <gerd@gnu.org>
27931
27932 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
27933
27934 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
27935
27936 * frame.c (Fframe_parameter): Fix last change.
27937
27938 * fileio.c: Revert last change (which removed old commented-out
27939 version of expand-file-name). Add a comment that explains why
27940 this old version should not be removed.
27941
27942 2001-10-25 Gerd Moellmann <gerd@gnu.org>
27943
27944 * frame.c (Fframe_parameter): Fix a bug whereby some
27945 ``artificial'' frame parameters, like `minibuffer' were not
27946 obtained by calling Fframe_parameters.
27947
27948 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
27949 cursor differently.
27950
27951 * xdisp.c (move_it_vertically_backward): Compute line height
27952 differently. Add heuristic to try to be more compatible to 20.x.
27953
27954 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
27955
27956 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
27957
27958 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
27959 boolean.
27960
27961 2001-10-25 Miles Bader <miles@gnu.org>
27962
27963 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
27964 BG is a pointer to a structure, not a structure.
27965 (gif_format, png_format): Add missing commas.
27966
27967 2001-10-24 Richard M. Stallman <rms@gnu.org>
27968
27969 * xfaces.c (Fface_attributes_as_vector): New function.
27970 (syms_of_xfaces): Defsubr it.
27971
27972 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27973
27974 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
27975 variable `area'.
27976
27977 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27978
27979 * search.c (scan_newline): Remove unused variable `selective_display'.
27980
27981 2001-10-25 Miles Bader <miles@gnu.org>
27982
27983 * dispextern.h (struct image): Add `background',
27984 `background_valid', and `background_transparent' fields.
27985 (image_background, image_background_transparent): New declarations.
27986 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
27987 * xfns.c (image_background, image_background_transparent)
27988 (four_corners_best): New functions.
27989 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
27990 (gs_format): Add `:background' entry.
27991 (lookup_image): Set IMG's background color if specified.
27992 (pbm_load, xbm_load_image, png_load): Set IMG's background field
27993 when appropriate.
27994 (x_clear_image_1): Reset `background_valid' and
27995 `background_transparent_valid' fields.
27996 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
27997 calculating it here. Set IMG's background_transparent field.
27998 (enum xpm_keyword_index): Add XPM_BACKGROUND.
27999 (enum png_keyword_index): Add PNG_BACKGROUND.
28000 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
28001 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
28002 (enum gif_keyword_index): Add GIF_BACKGROUND.
28003 (enum gs_keyword_index): Add GS_BACKGROUND.
28004 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
28005 Pre-calculate image background color where necessary.
28006 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
28007 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
28008 color to use for image glyph reliefs.
28009
28010 2001-10-24 Gerd Moellmann <gerd@gnu.org>
28011
28012 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
28013 in full-width rows.
28014
28015 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
28016 Fix clearing of area not covered by scroll bar.
28017
28018 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28019
28020 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
28021 and `real_start'.
28022 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
28023 (glyph_rect): Remove unused variable `area'.
28024
28025 2001-10-24 Gerd Moellmann <gerd@gnu.org>
28026
28027 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
28028
28029 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
28030 (row_containing_pos): Take additional argument DY.
28031 Treat rows ending in middle of char differently.
28032 (display_line): Handle tabs on window systems differently.
28033
28034 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
28035 with additional argument.
28036
28037 * dispextern.h (row_containing_pos): Adjust prototype.
28038
28039 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
28040 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
28041 (try_window_id, try_window_reusing_current_matrix)
28042 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
28043 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
28044
28045 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28046
28047 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
28048 gnuemacs).
28049 (HAVE_BOXES): Fix typo in comment.
28050 (push_menu_pane): Fix typo in comment.
28051
28052 * xdisp.c (display_prop_string_p): Remove unused local declaration
28053 of `Qwhen'.
28054 (single_display_prop_string_p): Remove unused local declarations
28055 of `Qwhen' and `Qmargin'.
28056 (string_buffer_position): Remove unused variable `around'.
28057 (store_frame_title): Remove unused variable `width'.
28058
28059 * window.c: Don't define max.
28060 (coordinates_in_window): Remove unused variable `uy'.
28061
28062 * widget.c: Don't define max.
28063
28064 * process.c: Don't define max.
28065 (create_process): Remove unused variable `buffer'.
28066
28067 2001-10-23 Gerd Moellmann <gerd@gnu.org>
28068
28069 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
28070
28071 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
28072
28073 * xfaces.c (Finternal_set_lisp_face_attribute)
28074 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
28075 frame is on a windowed display.
28076
28077 2001-10-23 Gerd Moellmann <gerd@gnu.org>
28078
28079 * dispnew.c (sync_window_with_frame_matrix_rows):
28080 Fix handling of windows which aren't full-width, fix handling
28081 of marginal areas.
28082
28083 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
28084
28085 2001-10-23 Andreas Schwab <schwab@suse.de>
28086
28087 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
28088 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
28089
28090 2001-10-23 Gerd Moellmann <gerd@gnu.org>
28091
28092 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
28093 REAL_END. Notice if cursor gets overwritten.
28094 (notice_overwritten_cursor): Take X positions as parameters.
28095 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
28096 around call to x_draw_glyphs.
28097
28098 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28099
28100 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
28101 instead of C) and usage.
28102
28103 * editfns.c (char-to-string): Fix argument names (use CHAR instead
28104 of C) and usage.
28105
28106 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
28107 `left', `max_width' and `max_height'.
28108
28109 2001-10-23 Gerd Moellmann <gerd@gnu.org>
28110
28111 * xdisp.c (display_line): For a tab continued to the next line,
28112 set row's ends_in_middle_of_char_p.
28113
28114 2001-10-22 Gerd Moellmann <gerd@gnu.org>
28115
28116 * xdisp.c (display_line): Fix computation of continuation lines
28117 width for TABs.
28118
28119 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28120
28121 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
28122 `Qlaplace'.
28123
28124 * fileio.c: Remove unused code.
28125
28126 2001-10-22 Miles Bader <miles@gnu.org>
28127
28128 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
28129 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
28130 Remove `DOC_STRINGS_IN_COMMENTS' cases.
28131
28132 2001-10-21 Jason Rumney <jasonr@gnu.org>
28133
28134 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
28135
28136 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
28137
28138 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
28139 (Finsert_string): Avoid the multi-line string literals warning.
28140
28141 2001-10-22 Miles Bader <miles@gnu.org>
28142
28143 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
28144 (Fdocumentation): Don't use it.
28145 (syms_of_doc): Don't initialize it.
28146
28147 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
28148 * print.c (Fwith_output_to_temp_buffer): Likewise.
28149 * window.c (Fsave_window_excursion): Likewise.
28150 * editfns.c (Fsave_excursion, Fsave_current_buffer)
28151 (Fsave_restriction): Likewise.
28152 * eval.c (Frun_hooks, Frun_hook_with_args)
28153 (Frun_hook_with_args_until_failure)
28154 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
28155 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
28156 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
28157 (Funwind_protect, Fcondition_case): Likewise.
28158 * coding.c (Ffind_operation_coding_system): Likewise.
28159 * keyboard.c (Ftrack_mouse): Likewise.
28160
28161 2001-10-21 Miles Bader <miles@gnu.org>
28162
28163 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
28164 (Fmake_hash_table): Add usage: string to doc string.
28165 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
28166 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
28167 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
28168 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
28169 (Fml_prefix_argument_loop): Likewise.
28170
28171 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28172
28173 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
28174
28175 * sysdep.c (init_sys_modes): Change doc-string comments to `new
28176 style' [w/`doc:' keyword].
28177
28178 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
28179 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
28180 comments to `new style' [w/`doc:' keyword].
28181
28182 2001-10-21 Jason Rumney <jasonr@gnu.org>
28183
28184 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
28185
28186 * w32term.c (remember_mouse_glyph): New function.
28187 (w32_mouse_position): Use it.
28188 (note_mouse_movement): If the mouse moved off the glyph, remember
28189 its new position.
28190
28191 * w32term.h (struct w32_output): Correct spelling of x_compatible.
28192 (w32_display_info): Add mouse_face_overlay.
28193
28194 * w32term.c (notice_overwritten_cursor): Renamed from
28195 note_overwritten_text_cursor. Rewritten to take glyph widths into
28196 account.
28197 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
28198 (fast_find_string_pos): New function.
28199 (fast_find_position): Return the correct vpos. Add parameter
28200 STOP. In the final row, stop before glyphs having STOP as object.
28201 Don't consider glyphs that are not from a buffer.
28202 (fast_find_position) [0]: Add a presumably more correct version
28203 for after 21.1.
28204 (expose_window_tree, expose_frame): Don't compute intersections here.
28205 (expose_window): Do it here instead.
28206 (expose_window_tree, expose_window, expose_line): Return 1 when
28207 overwriting mouse-face.
28208 (expose_window): If W is the window currently being updated, mark
28209 the frame garbaged.
28210 (expose_frame): If mouse-face was overwritten, redo it.
28211 (x_use_underline_position_properties): New variable.
28212 (syms_of_xterm): DEFVAR_BOOL it.
28213 (x_draw_glyph_string): Add comment to use it in future.
28214 (x_draw_glyph_string): Restore clipping after drawing box.
28215 Fix a computation of the underline position.
28216 (w32_get_glyph_string_clip_rect): Minor cleanup.
28217 (x_fill_stretch_glyph_string): Remove an assertion.
28218 (x_produce_glyphs): Don't convert multibyte characters
28219 to unibyte characters in unibyte buffers.
28220 (cursor_in_mouse_face_p): New function.
28221 (x_draw_stretch_glyph_string): Use it to choose a different GC
28222 when drawing a cursor within highlighted text. Don't draw
28223 background again if it has already been drawn.
28224 (x_draw_glyph_string_box): Don't draw a full-width
28225 box just because the glyph row's full_width_p flag is set.
28226 (x_draw_glyphs): Fix computation of rightmost x for
28227 full-width rows.
28228 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
28229 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
28230 change bottom shadow accordingly. Some cleanup.
28231 (x_update_window_end): Handle overwritten mouse face
28232 also for tool bar windows.
28233 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
28234 DRAW is DRAW_IMAGE_RAISED.
28235 (clear_mouse_face): Return 1 if text with mouse face was
28236 actually redrawn. Make the function static.
28237 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
28238 optimize away highlighting if we pass over that same overlay again.
28239 (note_mouse_highlight): Call mouse_face_overlay_overlaps
28240 to detect a case where we have to highlight a different region
28241 despite not having left the currently highlighted region.
28242 Set mouse_face_overlay in the x_display_info. Avoid changing the
28243 mouse pointer shape when show_mouse_face has already done it, or
28244 there is no need. Handle mouse-face and help-echo in strings.
28245 (glyph_rect): New function.
28246 (w32_mouse_position): Use it to raise the threshold for mouse
28247 movement event generation.
28248 (w32_initialize_display_info): Initialize the x_display_info's
28249 mouse_face_overlay.
28250 (w32_set_vertical_scroll_bar): Don't clear a zero height
28251 or width area.
28252 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
28253 a widget to zero height.
28254
28255 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
28256 Protect unibyte strings created by replacing their multibyte
28257 equivalents in menu_items.
28258 (w32_menu_show): Don't overwrite an item's name with its key
28259 description in case the description is a multibyte string.
28260 (single_submenu): Some cleanup.
28261
28262 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
28263 (postprocess_image): New function.
28264 (lookup_image): Call it for all image types except PostScript.
28265 (x_kill_gs_process): Call postprocess_image.
28266 (tiff_error_handler, tiff_warning_handler): New functions.
28267 (tiff_load): Install them as handlers.
28268 (x_kill_gs_process): Recognize if someone has cleared the image
28269 cache under us.
28270 (valid_image_p): Protect better against invalid image
28271 specifications. Previous code could signal an error.
28272 (Fx_hide_tip, Fshow_tip): Doc fix.
28273 (Fv_max_tooltip_size): New variable.
28274 (syns_of_xfns): DEFVAR_LISP it.
28275 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
28276 window buffer to *tip* right after creating the frame. Set frame's
28277 window_width. Use a maximum tooltip size specified by
28278 Vx_max_tooltip_size, if that has valid contents.
28279 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
28280 Make sure the tooltip is completely visible.
28281 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
28282 (Fx_create_frame): Adjust the frame's height for presence
28283 of the tool bar before calling x_figure_window_size.
28284 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
28285 when the window gets smaller.
28286 (x_set_foreground_color): Set frame's cursor_pixel.
28287 (x_set_foreground_color, x_set_background_color): Cleaned up.
28288 (x_set_font): Handle case of x_new_fontset returning the same name
28289 as before, although there was a change in fontsets.
28290
28291 2001-10-21 Miles Bader <miles@gnu.org>
28292
28293 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
28294 (Flogxor): Add usage: string to doc string.
28295 * charset.c (Fstring): Likewise.
28296 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
28297 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
28298
28299 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28300
28301 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
28302
28303 * alloc.c: Reindent DEFUNs with doc: keywords.
28304
28305 * abbrev.c (Finsert_abbrev_table_description): Reindent.
28306
28307 * frame.c: Change doc-string comments to `new style' [w/`doc:'
28308 keyword].
28309
28310 See ChangeLog.9 for earlier changes.
28311
28312 ;; Local Variables:
28313 ;; coding: iso-2022-7bit
28314 ;; add-log-time-zone-rule: t
28315 ;; End:
28316
28317 Copyright (C) 2001, 2002, 2003, 2004, 2005,
28318 2006, 2007 Free Software Foundation, Inc.
28319
28320 This file is part of GNU Emacs.
28321
28322 GNU Emacs is free software; you can redistribute it and/or modify
28323 it under the terms of the GNU General Public License as published by
28324 the Free Software Foundation; either version 3, or (at your option)
28325 any later version.
28326
28327 GNU Emacs is distributed in the hope that it will be useful,
28328 but WITHOUT ANY WARRANTY; without even the implied warranty of
28329 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28330 GNU General Public License for more details.
28331
28332 You should have received a copy of the GNU General Public License
28333 along with GNU Emacs; see the file COPYING. If not, write to the
28334 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
28335 Boston, MA 02110-1301, USA.
28336
28337 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4